text stringlengths 2 1.04M |
|---|
import configureStore from "./configureStore"
import reducers from "./reducers"
import creatRootSagas from "./sagas"
import { useReactotron } from "../config/env"
import { combineReducers } from "redux"
import { createEnvironment } from "./environment"
/* ------------- Assemble The Reducers ------------- */
export con... |
import { createSlice } from "@reduxjs/toolkit";
import PostService from "@Services/PostService";
import { isArray, chain, identity, head, tail } from "lodash";
// Workaround
// should drop rootElement from server-side.
function tidyPost(post = {}) {
if (post.content && post.content.rootElement) {
post.content = ... |
'use stritc'
var Localidad = require('../models/localidad');
function agregar (req, res){
var parametros = req.body;
var localidad = new Localidad();
localidad.nombre = parametros.nombre;
localidad.provincia = parametros.provincia._id;
Localidad.find({nombre: localidad.nombre, provincia: localidad.provincia}).e... |
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
const { DataMi... |
/*
* excelFormulaUtilitiesJS
* https://github.com/joshatjben/excelFormulaUtilitiesJS/
*
* Copyright 2011, Josh Bennett
* licensed under the MIT license.
* https://github.com/joshatjben/excelFormulaUtilitiesJS/blob/master/LICENSE.txt
*
* Some functionality based off of the jquery core lib
* Copyright 2011, John... |
// import $ from 'jquery';
// const hamburger = function () {
// $('.header__hamburger').on('click', () => {
// $('.header__hamburger').toggleClass('header__hamburger--active');
// $('.header__navList').toggleClass('header__navList--active');
// $('body').toggleClass('noScroll');
// });
// $('.header... |
import React from 'react'
import { Switch, Route } from 'react-router-dom'
import Home from './pages/Home'
import Denoise from './pages/Denoise'
import Parameters from './pages/Parameters'
import Process from './pages/Process'
const Routes = () => (
<Switch>
<Route exact path='/' component={Home} />
<Route ... |
import React from 'react'
import Layout from '../components/Layout'
import Gallery from '../examples/Gallery'
export default function Testing() {
return (
<Layout>
<main className="page">
<Gallery />
</main>
</Layout>
)
} |
'use strict'
export default class PlayerUtils {
/**
* 新しいプレイヤーデータを生成し返します
*
* @param {Number} entryNo
* @param {String} cardName
* @param {bool} isSubCard true: サブカードである/ false: サブカードではない
*/
static createPlayerData (entryNo, cardName, isSubCard) {
return {
... |
const urlToFetch = "https://cfw-takehome.developers.workers.dev/api/variants";
let urls = [];
let contentStrs = [];
//let HTMLWriter = new HTMLRewriter.on('*', new ElementHandler()).onDocument(new DocumentHandler());
initVars();
async function initVars(){
await assignUrls();
await assignContentStrs();
}
addEve... |
const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const MiniCssExtractplugin = require('mini-css-extract-plugin');
const CssMinimizerPlugin = require('css-minimizer-webpack-plugin');
const TerserPlugin = require('terser-webpack-plugin');
const imgOutput = 'sources/img/[name][ext]'... |
function parseHashBangArgs(aURL) {
aURL = aURL || window.location.href;
var vars = {};
var hashes = aURL.slice(aURL.indexOf('#') + 1).split('&');
for(var i = 0; i < hashes.length; i++) {
var hash = hashes[i].split('=');
if(hash.length > 1) {
vars[hash[0]] = hash[1];
} else {
... |
const assert = require('../assert.js').for('Attr');
const {parseHTML} = global[Symbol.for('linkedom')];
const {document} = parseHTML('<html test />');
const attr = document.documentElement.getAttributeNode('test');
assert(JSON.stringify(attr.cloneNode()), '[2,"test"]');
attr.value = 456;
assert(JSON.stringify(attr... |
'use strict'
const { PuppeteerExtraPlugin } = require('puppeteer-extra-plugin')
/**
* Block resources (images, media, css, etc.) in puppeteer.
*
* Supports all resource types, blocking can be toggled dynamically.
*
* @param {Object} opts - Options
* @param {Set<string>} [opts.blockedTypes] - Specify which resou... |
import React from 'react';
import '../scss/components/footer.scss';
import Emoji from './emoji';
const Footer = () => (
<div className="footer-wrapper">
<div className="footer-content">
<div className="footer-social">
Say hi on Twitter <Emoji symbol="👋🏼" />{' '}
<a
className="twitter-handle"
... |
/*******************************************************************************
Copyright (C) 2012 Gamieon, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including wi... |
import { Link } from "gatsby"
// import PropTypes from "prop-types"
import React from "react"
const Footer = () => (
<footer class="footer">
<div class="container py-5">
<div class="row">
<div class="col-12 col-md">
<h4 style={{color: 'white'}}>Alma</h4>
<small class="d-block ... |
import { combineReducers } from 'redux';
import { routerReducer as router } from 'react-router-redux';
import directories from './modules/directories';
import source from './modules/source';
import target from './modules/target';
import error from './modules/error';
import settings from './modules/settings';
export de... |
const generateWebhook = require("../webhook/generate-webhook");
const parser = require("@babel/parser").parse;
const generate = require("@babel/generator").default;
const {
server,
transformedWithMoreWebhooks,
transformedWithWebhooksandEnv
} = require("./server-mocks");
it("should return the new code with regist... |
const path = require('path')
const url = require('url')
const { app, BrowserWindow } = require('electron')
let mainWindow
let isDev = false
if (
process.env.NODE_ENV !== undefined &&
process.env.NODE_ENV === 'development'
) {
isDev = true
}
function createMainWindow() {
mainWindow = new BrowserWindow({
width:... |
module.exports = function reverse (n) {
let number = String(n);
let result = '';
if(number[0] === '-'){
number = number.slice(1, number.length);
}
for(let i = number.length - 1; i >= 0; i--){
result += number[i];
}
return +result;
} |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { t... |
const faker = require('faker');
const nock = require('nock');
const modelDiscoverer = require('../../../core/workers/model-discoverer');
// Tests the analytics processor definition fetch.
const testDiscoverAnalyticsProcessorDefinitions = () => {
describe('discover analytics processor definitions', () => {
it('s... |
/// <reference path="xrm_v9.js" />
/// <reference path="isfs_utility.js" />
if (typeof(ISFS) === "undefined") {
ISFS = {
__namespace: true
};
}
ISFS.EnrolmentDetail = {
/**
*/
OnFormLoad: function (executionContext) {
var formContext = executionContext.getFormContext();
i... |
"use strict";
/**
* Encapsulates a redirect to the given route.
*/
function Redirect(to, params, query) {
this.to = to;
this.params = params;
this.query = query;
}
module.exports = Redirect; |
module.exports = {
NODE_ENV: '"production"',
ENV_CONFIG: '"prod"',
BASE_API: '"http://www.goodexam.com.cn"'
} |
import { LinkContainer } from "react-router-bootstrap";
import React, { useState, useEffect } from "react";
import { Link, useHistory } from "react-router-dom";
import { Nav, Navbar, NavItem, NavDropdown } from "react-bootstrap";
import "./App.css";
import Routes from "./Routes";
import { AppContext } from "./libs/cont... |
import ForwardKinematicsPage from "./ForwardKinematicsPage"
import InverseKinematicsPage from "./InverseKinematicsPage"
import LandingPage from "./LandingPage"
import LegPatternPage from "./LegPatternPage"
import WalkingGaitsPage from "./WalkingGaitsPage"
export {
ForwardKinematicsPage,
InverseKinematicsPage,
... |
import * as React from 'react';
import wrapIcon from '../utils/wrapIcon';
const rawSvg = (iconProps) => {
const { className, primaryFill } = iconProps;
return React.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", xmlns: "http://www.w3.org/2000/svg", className: className },
React.crea... |
import React, { Component } from 'react';
import { graphql } from 'react-apollo';
import {getBookQuery} from '../queries/queries';
class BookDetails extends Component {
displayBookDetails(){
const {book} = this.props.data;
if(book){
return(
<div>
<h... |
const native_func = globalThis.createImageBitmap;
const nativeCreateImageBitmap = native_func ?
(...args) => native_func.call( globalThis, ...args ) : false;
export { nativeCreateImageBitmap }; |
/*** 自动生成echarts的option,主要是针对Y轴的生成做了,优化,
* 根据Y轴的数据,自动生成Y轴的配置数组,每个形状的图形,做了一个
* 目前支持,堆叠柱状图,折线图,堆叠面积图
*/
/**
* @author zgli
* 堆叠柱状图
*@param divDom:图表元素的位置,DOM DIV元素
*@param colorArr:图例的颜色
*/
/**
*
* @param divDom 图表元素的位置,DOM DIV元素
* @param titleArray 图表元素的名称数组,按照图元素显示的顺序
* @param colorArr 图表元素的颜色数组,按照图元素显示的顺序... |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'link', 'vi', {
acccessKey: 'Phím hỗ trợ truy cập',
advanced: 'Mở rộng',
advisoryContentType: 'Nội dung hướng dẫn',
advisoryTitle: 'Nhan đề hướn... |
import {
BufferAttribute,
BufferGeometry,
FileLoader,
Loader
} from 'three';
node_modules/three/examples/jsm/loaders/DRACOLoader.js
node_modules/three
const _taskCache = new WeakMap();
class DRACOLoader extends Loader {
constructor( manager ) {
super( manager );
this.decoderPath = '';
this.decoderConfig... |
/*!
* @pixi/math - v5.2.1
* Compiled Tue, 28 Jan 2020 23:33:11 UTC
*
* @pixi/math is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license
*/
//# sourceMappingURL=math.min.js.map |
/**
* Select a class
* @param {("fr"|"en")} language - Language to use in the response
* @param {module:"discord.js".Message} message - Message from the discord server
* @param {String[]} args=[] - Additional arguments sent with the command
*/
async function ClassCommand(language, message, args) {
let [entity] = ... |
/**
* complex.js
*
* Defines a basic complex number.
*/
/**
* Basic representation of a complex number. Has a real value `r` and an
* imaginary value `i`. Can handle addition, scaling, squaring, and
* absolute value operations.
*/
class Complex {
/**
* Initializes the complex number
*
* @param r T... |
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ re... |
import React from 'react';
import { Route, Switch } from 'react-router-dom';
import './App.scss';
import Home from './common/Home';
import MainHeader from './common/MainHeader';
import MenuLayout from './common/MenuLayout';
import CreateServer from './servers/CreateServer';
export default function App() {
return (
... |
//# sourceMappingURL=yasqe.bundled.min.js.map |
/**
* Visual Blocks Language
*
* Copyright 2020 Arthur Zheng.
* https://github.com/zhengyangliu/scratch-blocks
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apach... |
let state = {};
function pagination(querySet, page, rows) {
var trimStart = (page - 1) * rows
var trimEnd = trimStart + rows
var trimmedData = querySet.slice(trimStart, trimEnd)
var pages = Math.round(querySet.length / rows);
return {
'querySet': trimmedData,
'pages': pages,
... |
import React from 'react'
import PropTypes from 'prop-types'
import SplitPane from 'react-split-pane'
import { observer, inject } from 'mobx-react'
import compose from 'recompose/compose'
import withHandlers from 'recompose/withHandlers'
import styled from 'styled-components'
import TableRow from './Table/TableRow'
im... |
cordova.define('cordova/plugin_list', function(require, exports, module) {
module.exports = [
{
"id": "cordova-plugin-device.device",
"file": "plugins/cordova-plugin-device/www/device.js",
"pluginId": "cordova-plugin-device",
"clobbers": [
"device"
]
},
{
"id": "com.unarin.cordova.be... |
// var env = require('./env.js');
var dotenv = require('dotenv');
var PubNub = require('pubnub');
dotenv.load();
window.updateCounterChart = function() {
const pubnub = new PubNub({
subscribeKey : 'sub-c-e58317c4-fcd5-11e6-8240-0619f8945a4f'
});
eon.chart({
pubnub: pubnub,
channels: ["counterIoTUp... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
let callMeForm = document.querySelector('.call-me-form');
let emailRequestForm= document.querySelector('.email-form');
document.addEventListener('DOMContentLoaded', async function() {
let posts = await getPosts();
let articles = document.querySelector('.articles');
articles.innerHTML='';
... |
import bcrypt from 'bcrypt';
import config from 'config';
import Promise from 'bluebird';
import slugify from 'limax';
import debugLib from 'debug';
import { extend, defaults, intersection } from 'lodash';
import logger from '../lib/logger';
import * as auth from '../lib/auth';
import errors from '../lib/errors';
impo... |
import { __extends } from "tslib";
import { DecodeAuthorizationMessageRequest, DecodeAuthorizationMessageResponse } from "../models/models_0";
import { deserializeAws_queryDecodeAuthorizationMessageCommand, serializeAws_queryDecodeAuthorizationMessageCommand, } from "../protocols/Aws_query";
import { getSerdePlugin } f... |
const path = require('path');
const createWebpackConfigForDevelopment = require('@commercetools-frontend/mc-scripts/config/create-webpack-config-for-development');
const distPath = path.resolve(__dirname, 'dist');
const entryPoint = path.resolve(__dirname, 'src/index.js');
const sourceFolders = [
path.resolve(__dirn... |
ZRF = {
JUMP: 0,
IF: 1,
FORK: 2,
FUNCTION: 3,
IN_ZONE: 4,
FLAG: 5,
SET_FLAG: 6,
POS_FLAG: 7,
SET_POS_FLAG: 8,
ATTR: 9,
SET_ATTR: 10,
PROMOTE: 11,
MODE: 12,
ON_BOARD_DIR: 13,
... |
const { EventEmitter } = require('events');
const { makeEscape } = require('./util/string');
const QueryBuilder = require('./query/querybuilder');
const QueryCompiler = require('./query/querycompiler');
const SchemaBuilder = require('./schema/builder');
const SchemaCompiler = require('./schema/compiler');
const TableB... |
var observableProto;
/**
* Represents a push-style collection.
*/
var Observable = Rx.Observable = (function () {
/**
* @constructor
* @private
*/
function Observable(subscribe) {
this._subscribe = subscribe;
}
observableProto =... |
'use strict';
var fs = require('fs');
var path = require('path');
var assert = require('assert');
var fixtures = path.resolve.bind(path, __dirname, 'fixtures');
module.exports = function(App, options, runner) {
var app;
var resolve = require('resolve-glob');
describe('app.lookups', function() {
beforeEach... |
var convert = require("../lib"),
assert = require("assert"),
tests = {};
tests["get kg"] = function () {
var actual = convert().describe("kg"),
expected = {
abbr: "kg",
measure: "mass",
system: "metric",
singular: "Kilogram",
plural: "Kilograms",
};
assert.deepEqual(actua... |
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/gaoyia-parse/components/wxParseTemplate10"],{"0ace":function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=function(){t.e("components/gaoyia-parse/components/wxParseTemplate11").then(function(){return re... |
let tickCount = 0
function tick() {
tickCount++
moving()
}
function moving() {
let moved = false
let speed = 10/world.grid.camera.zoom
if(keys[87] || keys[38]) { // north
world.grid.move({x:0,y:speed})
moved = true
}
if(keys[68] || keys[39]) { // east
world.grid.move({x:-speed,y:0})
... |
/**
* Form validation example for ConboJS
* @author Neil Rackett
*/
conbo('ns', function()
{
var ns = this;
ns.MyApp = conbo.Application.extend
({
namespace: ns,
// You can use cb-max-chars to limit the number of characters that can be entered into a form field
maxNameLength: 12,
// You can cb-re... |
/* eslint-disable no-undef */
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import { withRouter } from 'react-router-dom'
// ... necessary edits, START
import Explore from './presenters/Explore';
import { resetErrorMessage } from '../../redux/modules... |
var t = require('../..')
if (process.argv[2] === 'child') {
process.on('SIGTERM', function () {
console.log('yolo')
})
t.pass('this is fine 1')
t.pass('this is fine 2')
t.pass('this is fine 3')
t.test('child test', function (t) {
t.plan(3)
t.pass('this is fine 4')
t.pass('this is fine 5')
... |
/*!
* Bootstrap v3.3.7 (http://getbootstrap.com)
* Copyright 2011-2016 Twitter, Inc.
* Licensed under the MIT license
*/
/**
* bootbox.js 5.5.2
*
* http://bootboxjs.com/license.txt
*/
/*! jQuery Mobile v1.5.0-alpha.1 | Copyright jQuery Foundation, Inc. | jquery.org/license */
|
const Router = require('express').Router;
const router = new Router();
const getLatestStatus = require('../lib/getLatestStatus');
router.get('/hosts', (req, res) => {
getLatestStatus()
.then(data => {
res.json(data)
});
});
router.get('/clients', (req, res) => {
const clients = [];
const wss = req... |
var mongodb = require('mongodb');
var vm = require('vm');
var json = require('./json');
//Adaptors for BSON types
var DBRef = function(namespace, oid, db) {
//Allow empty/undefined db value
if (db == undefined || db == null) {
db = '';
}
return mongodb.DBRef(namespace, oid, db);
}
var Timestamp = functi... |
/* @flow strict-local */
import type { UserStatusState, PerAccountApplicableAction } from '../types';
import {
LOGOUT,
LOGIN_SUCCESS,
ACCOUNT_SWITCH,
REGISTER_COMPLETE,
EVENT_USER_STATUS_UPDATE,
} from '../actionConstants';
import { NULL_OBJECT } from '../nullObjects';
const initialState: UserStatusState = N... |
import React from 'react';
import PropTypes from 'prop-types';
import {connect} from 'react-redux';
import {Router, Link, Nav} from 'yii-steroids/ui/nav';
import {Notifications} from 'yii-steroids/ui/layout';
import {push} from 'react-router-redux';
import _orderBy from 'lodash/orderBy';
import _values from 'lodash/val... |
Ember.TEMPLATES["test/fixtures/simple"] = Ember.HTMLBars.template({"id":null,"block":"{\"statements\":[[\"open-element\",\"p\",[]],[\"flush-element\"],[\"text\",\"Hello, my name is \"],[\"append\",[\"unknown\",[\"name\"]],false],[\"text\",\".\"],[\"close-element\"]],\"locals\":[],\"named\":[],\"yields\":[],\"blocks\":[... |
const db = require('_helpers/db');
const Game = db.Game;
const Developer = db.Developer;
const Publisher = db.Publisher;
const mongoose = require('mongoose');
const developerService = require('../developer/developer.service');
const publisherService = require('../publisher/publisher.service');
module.exports = {
ge... |
// Simpatico main Interactive Front-End (simpatico-ife.js)
//-----------------------------------------------------------------------------
// This JavaScript is the main entry point to the Interactive Front-End
// component of the Simpatico Project (http://www.simpatico-project.eu/)
//
//------------------------------... |
// Generated by CoffeeScript 1.3.3
/* Annotate - a text enhancement interaction jQuery UI widget
# (c) 2011 Szaby Gruenwald, IKS Consortium
# Annotate may be freely distributed under the MIT license
*/
(function() {
var Backbone, EntityCache, Stanbol, VIE, delayThrottle, jQuery, ns, root, uriSuffix, vie,... |
'use strict';
const {
errnoException,
codes: {
ERR_ASSERTION,
ERR_CPU_USAGE,
ERR_INVALID_ARG_TYPE,
ERR_INVALID_ARRAY_LENGTH,
ERR_INVALID_OPT_VALUE,
ERR_UNCAUGHT_EXCEPTION_CAPTURE_ALREADY_SET,
ERR_UNKNOWN_SIGNAL
}
} = require('internal/errors');
const util = require('util');
const cons... |
'use strict'
var test = require('tape')
var fakeTimers = require('@sinonjs/fake-timers')
var dbFactory = require('../utils/db')
test('has "add" method', function (t) {
t.plan(1)
var db = dbFactory()
var store = db.hoodieApi()
t.is(typeof store.add, 'function', 'has method')
})
test('adds object to db', fu... |
import { createGlobalStyle } from "styled-components";
import reset from "styled-reset";
const globalStyles = createGlobalStyle`
${reset};
@font-face {
font-family: 'GmarketSansBold';
src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansBold.woff') format('woff');
... |
var _ = require('./lodash'),
sanitizeOptions = require('./util').sanitizeOptions,
addFormParam = require('./util').addFormParam,
parseRequest = require('./parseRequest');
// Methods supported by Java Unirest Library
const SUPPORTED_METHODS = ['GET', 'POST', 'PUT', 'HEAD', 'PATCH', 'DELETE', 'OPTIONS'];
/**
*... |
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
})... |
const ApplicationContext = require("../../shared/config/ApplicationContext.js");
const App = function (props) {
// Use minified build for 'hyperion.autodesk.io' so we get analytics data.
const viewer3dJs = ApplicationContext.env === "prod" ? "viewer3D.min.js" : "viewer3D.js";
const bannerImage = `${Applica... |
const commands = require('./commands')
const isDirectMessage = function isDirectMessage (msg) {
// slack direct messages channel id start with D
return msg.type === 'message' && msg.channel.charAt(0) === 'D'
}
const isBotMessage = function isBotMessage (msg) {
return msg.subtype && msg.subtype === 'bot_message'... |
import PropTypes from "prop-types"
export default A=>class __$1 extends A{
static displayName=`continuable-${A.displayName}`
static childContextTypes={
...super.childContextTypes,
shouldContinueCompose: PropTypes.func
}
getChildContext(){
return {
...super.getChildContext(),
... |
import React, { Component } from 'react';
import './UserLoginForm.css'
import auth from '../../utils/auth';
import { Form, Icon, Input, Button, Checkbox, Alert } from 'antd';
import Cookies from 'js-cookie';
import FacebookLoginButton from '../FacebookLoginButton/FacebookLoginButton';
import GithubLoginButton from '../... |
const fs = require('fs');
const { performance } = require('perf_hooks');
const { v4: uuidv4 } = require('uuid');
const createNetworkThrottledScenario = (params) => {
return async (page, client) => {
await client.send('Network.emulateNetworkConditions', params);
};
};
const TEST_RUN_ID = process.env.TEST_RUN_I... |
var class_ext_1_1_net_1_1_m_v_c_1_1_belongs_to_association_attribute =
[
[ "CreateAssociation", "d1/da5/class_ext_1_1_net_1_1_m_v_c_1_1_belongs_to_association_attribute.html#ad22eb15af78f82e797531a9848edbeea", null ],
[ "ForeignKey", "d1/da5/class_ext_1_1_net_1_1_m_v_c_1_1_belongs_to_association_attribute.html#... |
"use strict";
const chai = require('chai');
const assert = require('assert');
const e = require('../../constants/errors');
const ast_types = require('../../constants/ast_types');
const ast_nodes = require('../../parser/ast_nodes');
/* Instantiating nodes */
const string1 = 'not so random string 1';
c... |
import React, {Component} from 'react';
import {BrowserRouter,Route} from 'react-router-dom'
import {Switch, Redirect} from 'react-router'
import MainLayout from './MainLayout';
import Home from './Home';
import Loader from './Loader';
import UserSelection from './UserSelection';
import Chatroom from './Chatroom';
impo... |
import {history} from '../history'
// const user = JSON.parse(localStorage.getItem("user"))
// const token = user && user.token
const baseurl = "http://142.93.152.229/ajo/api/"
const loginurl ="auth/login";
// const registerurl ="auth/register";
// const fetchGroup = "fetch_group?token="+token
export const login = (... |
module.exports = function(wallaby) {
return {
maxConsoleMessagesPerTest: 100000,
files: ['src/**/*.js'],
tests: ['test/**/*.spec.js'],
setup: function() {
var chai = require('chai');
global.expect = chai.expect;
},
env: {
type: 'node',
runner: 'node'
},
com... |
import assert from "assert";
import sinon from "sinon";
import { extract } from "../../../../src/core/labeller/twitch.js";
describe("core/labeller/twitch.js", function () {
describe("extract()", function () {
it("should return null when there isn't parameter", async function () {
con... |
let { env, getPorts, checkPort } = require('../lib')
let init = require('./_init')
let dynalite = require('dynalite')
let series = require('run-series')
/**
* Starts an in-memory Dynalite DynamoDB server
* - Automatically creates any tables or indexes defined by the project
* - Also creates local session table(s) j... |
import {FireDb,FirebaseAuth,userId} from "@/firebase";
import {ref, set ,onValue,get, child,push,runTransaction } from "firebase/database";
import router from "@/router";
function deletep(k)
{
const userId = FirebaseAuth.currentUser.uid;
// let _ref= ref(FireDb, `/users/${userId}/rooms/${room_id}`);
let _re... |
const chalk = require('chalk');
module.exports = {
// Usage: script [options] etc
usagePrefix: (str) => {
return chalk.yellow(str.slice(0, 6)) + '\n ' + str.slice(7);
},
// Options: Arguments: etc
group: str => chalk.yellow(str),
// --help etc
flags: str => chalk.green(str),
//... |
// @flow
import { transform } from 'babel-core'
import plugin from '../src'
function transformCode(input /* : string */, opts /* : ?Object */ = {}) {
const { code } = transform(input, {
babelrc: false,
plugins: [[plugin, opts]],
})
return code
}
test('add flow comments', () => {
const input = `
type H... |
import videojs from 'video.js';
import { createTransferableMessage } from './bin-utils';
import { stringToArrayBuffer } from './util/string-to-array-buffer';
import { transmux } from './segment-transmuxer';
import { segmentXhrHeaders } from './xhr';
import {workerCallback} from './util/worker-callback.js';
import {
d... |
/* eslint-disable react/no-did-mount-set-state, no-param-reassign */
import React from 'react'
import reactCSS from 'reactcss'
import color from '../../helpers/color'
import isUndefined from 'lodash/isUndefined'
import { EditableInput } from '../common'
import UnfoldMoreHorizontalIcon from '@icons/material/UnfoldMore... |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
// Constants
import * as actions from '../../actions';
import * as routes from '../../constants/routes';
// Static/Stateless
import SubmitButton from '../../components/buttons/SubmitButton';
c... |
/**
* @license
* Copyright 2015 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requir... |
/*globals define*/
/*eslint-env node, browser*/
/**
* @author kecso / https://github.com/kecso
*/
define(['common/util/assert', 'common/core/constants', 'blob/BlobConfig'], function (ASSERT, CONSTANTS, BlobConfig) {
'use strict';
function exportLibraryWithAssets(core, libraryRoot, callback) {
expor... |
const Discord = require('discord.js');
exports.run = (client, message, args) => {
return message.channel.send
("**Sunucumuz Az Sonra Bakıma Girecektir Lütfen Güvenli Çıkış Sağlayın.**\n**Açılınca Aktif Atılacaktır Yetkilileri Darlamayın !**\n*STAR ROLEPLAY YÖNETİM EKİBİ* \n||@everyone|... |
/*!
* inputmask.date.extensions.js
* https://github.com/RobinHerbots/Inputmask
* Copyright (c) 2010 - 2017 Robin Herbots
* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
* Version: 3.3.11
*/
!function (factory) {
"function" == typeof define && define.amd ? define(["./dependency... |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @emails oncall+metro_bundler
* @format
*/
'use strict';
jest.mock('../../../Assets');
const {getAssetFiles} = require('../..... |
module.exports = function (grunt) {
require('load-grunt-tasks')(grunt);
grunt.loadNpmTasks('grunt-serve');
grunt.initConfig({
jshint: {
//list of source files to analyze
all: [
'Gruntfile.js',
'javascript/*.js',
//use to check pattern specs as well
'../spec/*.js'
... |
/*!
* # Semantic UI 2.0.3 - Search
* http://github.com/semantic-org/semantic-ui/
*
*
* Copyright 2015 Contributors
* Released under the MIT license
* http://opensource.org/licenses/MIT
*
*/ |
module.exports = {
extends: [
'airbnb-typescript',
'airbnb/hooks',
'plugin:@typescript-eslint/recommended',
'plugin:jest/recommended',
'plugin:prettier/recommended',
],
plugins: ['react', '@typescript-eslint', 'jest'],
env: {
browser: true,
es6: true,
jest: true,
},
globals: ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.