code stringlengths 2 1.05M |
|---|
/**
* Created by Fiamma on 2017/2/8.
*/
var express = require('express');
var categoryModel= require('../../dal/category');
var router = express.Router();
var Response = require('../../common/Response');
router.post('/loadTags', function (req, res, next) {
var word = req.body.word;
categoryModel.loadOne(word... |
let DragAndDropHandler;
import path from 'path';
import fs from 'fs';
import { $ } from 'atom';
import DirectoryView from './directory-view';
import FileView from './file-view';
export default
(DragAndDropHandler = (function() {
DragAndDropHandler = class DragAndDropHandler {
static initClass() {
this.pro... |
var gulp = require('gulp'),
webpack = require('webpack-stream'),
zip = require('gulp-zip'),
del = require('del'),
rename = require("gulp-rename"),
webserver = require('gulp-webserver'),
ghPages = require('gulp-gh-pages');
gulp.task('default', ['webpack', 'phaser']);
gulp.task('watch', ['default'], function... |
'use strict';
const express = require('express');
const router = express.Router();
/* GET home page. */
router.get('/', (req, res) => {
res.render('index', { title: 'Express' });
});
router.get('/ajax/dashboard', (req, res) => {
res.render('ajax/dashboard');
});
module.exports = router;
|
export default {
storage: {
default: "zhixingdb_chuhedq",
connections: {
"zhixingdb_chuhedq": {
provider: "mongo",
url: "mongodb://localhost:27017/zhixingdb_chuhedq"
}
}
}
};
|
version https://git-lfs.github.com/spec/v1
oid sha256:439b9ebb6759d856b7c4378332da037c28364f5b021faa4f4b406b74a5769c4a
size 1984
|
import * as constants from './constants';
import ErrorQueue from './ErrorQueue.class';
let LoggerWorker = null;
let config = {};
function isObject(val) {
return Object.getPrototypeOf(val) === Object.prototype;
}
function log(error) {
if (LoggerWorker && config.useWorker) {
LoggerWorker.postMessage({
... |
import React from "react"
import { graphql, Link } from "gatsby"
import Img from "gatsby-image"
import Layout from "../components/layout_1"
const Article = ({ data }) => {
return (
<Layout>
<Link to="/">Go back to index page</Link>
<div>
<h2>{data.article.title}</h2>
{data.article.ima... |
// Generated by CoffeeScript 1.10.0
(function() {
var BL, BR, Cube, DB, DBL, DF, DFR, DL, DLF, DR, DRB, FL, FR, UB, UBR, UF, UFL, UL, ULB, UR, URF, cornerColor, cornerFacelet, edgeColor, edgeFacelet, ref, ref1, ref2;
ref = [0, 1, 2, 3, 4, 5, 6, 7], URF = ref[0], UFL = ref[1], ULB = ref[2], UBR = ref[3], DFR = ref[... |
import * as av_ace from "./ace-view.js";
import * as av_utils from "./utils.js";
// ----------------------------------------------------------------------
// args: {parent:, uri:, view_mode:, coloring:, viewport:}
export function show_antigenic_map_widget(args) {
const widget_options = {
view_mode: {mode:... |
version https://git-lfs.github.com/spec/v1
oid sha256:da147bec68f5609549d3750044017c813460f8f0f85a24f5caf3d6114273b101
size 17081
|
import Ember from 'ember';
import layout from '../templates/components/sl-calendar-day';
/**
* @module
* @augments ember/Component
*/
export default Ember.Component.extend({
// -------------------------------------------------------------------------
// Dependencies
// --------------------------------... |
/**
* Created by Dean Panayotov Local on 25.1.2015 г..
*/
var a_i_background = new Image();
a_i_background.src = 'assets/canvas/bg.png';
var a_i_highlights = new Image();
a_i_highlights.src = 'assets/canvas/highlights.png';
var a_i_house_cut = new Image();
a_i_house_cut.src = 'assets/canvas/house_cut.png';
var a_i_a... |
(function () {
var canvas = document.getElementById("canvas"),
context = canvas.getContext("2d"),
img = document.createElement("img");
canvas.width = 512;
canvas.height = 512;
context.fillStyle = "white";
context.fillRect( 0, 0, canvas.width, canvas.height );
document.body.style... |
var React = require('react');
var ReactCSSTransitionGroup = React.addons.CSSTransitionGroup;
//https://desandro.github.io/3dtransforms/docs/card-flip.html
var FlipComponent = React.createClass({
getInitialState: function() {
return {items: ['hello', 'world', 'click', 'me']};
},
render: function()... |
module.exports = require('path').join(__dirname, 'onelineperfile.js');
|
// Place all the behaviors and hooks related to the matching controller here.
// All this logic will automatically be available in application.js.
function make_element(value){
jQuery("#attribute_element").empty()
if(value != ""){
if(value=='channel'){
jQuery.getJSON("/infodeploy/channels/get_all",function(... |
$(document).ready(function() {
var handleDataTableButtons = function() {
if ($("#table1").length) {
$("#table1").DataTable({
dom: "Bfrtip",
buttons: [
{
extend: "copy",
className: "btn-sm"
},
{
extend: "csv",
className: "btn... |
'use strict';
// Dependencies
var gulp = require('gulp'),
nodemon = require('gulp-nodemon'),
notify = require('gulp-notify'),
livereload = require('gulp-livereload'),
changed = require('gulp-changed'),
del = require('del'),
gutil = require('gulp-util'),
concat = require('gulp-concat'),
... |
/**
* Created by User on 2/1/2015.
*/
/**
* Created by User on 2/1/2015.
*/
"use strict";
angular.module('common').directive(
"imgLazyLoad",
function( $window, $document, $rootScope ) {
var lazyLoader = (function() {
var images = [];
// Define the render timer for the laz... |
var assert = (typeof window === 'undefined') ? require('assert') : window.chai.assert;
var _ = (typeof window === 'undefined') ? require('lodash') : window._;
var Platform = (typeof window === 'undefined') ? require('platform') : window.Platform;
var Benchmark = (typeof window === 'undefined') ? require('benchmark') : ... |
var path = require('path');
var webpack = require('webpack');
var HtmlWebpackPlugin = require('html-webpack-plugin');
var ExtractTextPlugin = require("extract-text-webpack-plugin");
var AssetsPlugin = require('assets-webpack-plugin');
var assetsPluginInstance = new AssetsPlugin();
require('es6-promise').polyfill();
m... |
#!/usr/bin/env node
'use strict'
const restClient = require('request-promise')
const express = require('express')
const morgan = require('morgan')
const _ = require('underscore')
const bodyParser = require('body-parser')
const session = require('express-session')
const moment = require('moment')
const Q = require('q'... |
module.exports = {
AppBar: require('./app-bar'),
AppCanvas: require('./app-canvas'),
Avatar: require('./avatar'),
Badge: require('./badge'),
BeforeAfterWrapper: require('./before-after-wrapper'),
Card: require('./card/card'),
CardActions: require('./card/card-actions'),
CardExpandable: require('./card/c... |
'use strict';
var through = require('through2');
var assert = require('assert');
var iterator = require('./');
describe('iterator-streams', function () {
it('should create an iterator function when given a stack', function () {
var called = [];
var stack = getStack(called);
var fn = iterator(stack);
... |
'use strict';
module.exports = function(ob, faker, mongoose, jwt, definitions, errors, headers){
module.createBeatsBoard = {
name: 'Create beats board',
description: 'Create an beats board within a given world',
method: 'POST',
headers: [headers.tokenHeader],
params: {
url: {
world_... |
(function (){
'use strict';
angular.module('eliteApp').controller('gameCtrl', ['$stateParams', 'eliteApi', gameCtrl]);
function gameCtrl($stateParams, eliteApi) {
var vm = this;
var gameId = Number($stateParams.id)
eliteApi.getLeagueData().then(function(data) {
vm.game = _.find(data.games, {id: game... |
import React from 'react';
import PageLayout from 'layouts/PageLayout/PageLayout';
import { connect } from 'react-redux';
import WorkItems from 'components/work-items';
import styles from './work-view.css';
const mapStateToProps = (state) => ({
work: state.work,
routerState: state.router
});
export class WorkView ... |
(function () {
'use strict';
var controllerId = 'model2d';
angular.module('app').controller(controllerId,
['$rootScope','$scope', 'common', 'config','$route','ModelService','$http', model2d]);
function model2d($rootScope,$scope, common, config ,route,ModelService,$http) {
App.init();
... |
import { assert } from 'meteor/practicalmeteor:chai';
var syncTimeout,functionList=[];
function syncFunction(newFunction,time) {
function newTimeout() {
let x = functionList.pop();
syncTimeout=setTimeout(function() {
x.func();
syncTimeout=undefined;
if(functionList.length>0) newTimeout();
... |
const mysql = require("mysql");
const { withPromiseLogging } = require("../testing/logging");
// Run an array of functions returning Promises sequentially.
// Function N+1 will be executed after function N resolves.
// Rejects on the first error encountered.
const sequencePromises = (promiseFns) =>
promiseFns.reduce... |
'use strict';
var myTable = document.getElementById('stores');
var allStores = [];
//Array for the different times of day
var timesOfDay = ['6am: ', '7am: ', '8am: ', '9am: ', '10am: ', '11am: ', '12pm: ', '1pm: ', '2pm: ', '3pm: ', '4pm: ', '5pm: ', '6pm: ', '7pm: ', '8pm:'];
//Constructor function
function Store(na... |
const db = require('../database/database');
const logger = require('../logs/logger');
// check LOCATION data type
// are we going to use PostGIS? Should the type be:
// "GEOMETRY"
db.query(`CREATE TABLE IF NOT EXISTS "events" (
_id serial primary key,
title varchar(256) not null,
event_desc varchar(256),
star... |
const fs = require('fs-extra');
const path = require('path');
const execSync = require('child_process').execSync;
const Promise = require('bluebird');
const inquirer = require('inquirer');
const bookshelf = require('../src/lib/bookshelf');
const logger = require('../src/lib/log');
const log = log... |
var searchData=
[
['checkerror',['CheckError',['../vix__errglobals_8h.html#a03486e2efafef6911389c4e76a25492f',1,'vix_errglobals.h']]],
['close',['Close',['../classVixen_1_1File.html#a3f1848aba4558bd98714c528c3fe0b73',1,'Vixen::File::Close()'],['../classVixen_1_1IFile.html#ae22fba81f1a450f94bbaa993e342d28b',1,'Vixen... |
Router.configure({
layoutTemplate: "appBody",
waitOn: function() {
return [
Meteor.subscribe("all_roles"),
Meteor.subscribe("games"),
Meteor.subscribe("game_players"),
Meteor.subscribe("game_roles"),
Meteor.subscribe("public_users"),
Meteor.subscribe("messages")
];
},
}... |
'use strict';
var isA = require("Espresso/oop").isA;
var oop = require("Espresso/oop").oop;
var init = require("Espresso/oop").init;
var trim = require("Espresso/trim").trim;
var isA = require("Espresso/oop").isA;
var oop = require("Espresso/oop").oop;
var ComponentManagerEvent = require("Espresso/Component/Event/Ma... |
// MooTools: the javascript framework.
// Load this file's selection again by visiting: http://mootools.net/more/95a9482aa0492fb9a7b4760783a7d754
// Or build this file again with packager using: packager build More/More More/Class.Refactor More/Date More/Date.Extras More/Fx.Reveal More/Drag More/Slider More/Color More... |
var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err;... |
// Regular expression that matches all symbols in the `Lm` category as per Unicode v7.0.0:
/[\u02B0-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0374\u037A\u0559\u0640\u06E5\u06E6\u07F4\u07F5\u07FA\u081A\u0824\u0828\u0971\u0E46\u0EC6\u10FC\u17D7\u1843\u1AA7\u1C78-\u1C7D\u1D2C-\u1D6A\u1D78\u1D9B-\u1DBF\u2071\u207F\u209... |
'use strict';
/*
* Author: Pavel Bely
* Mail: poul-white@yandex.ru
*
* Item controller with directive
*/
import app from '../../modules/app';
import markup from './item.html';
import {
updateContent,
remove
} from '../../redux/actions';
class ItemController {
constructor($ngRedux, {$parent}) {
... |
import { default as testSetup } from '../../fixtures/testSetup'
var GeoPackageTileRetriever = require('../../../lib/tiles/retriever').GeoPackageTileRetriever
// , GeoPackageAPI = require('../../..')
, BoundingBox = require('../../../lib/boundingBox').BoundingBox
// , testSetup = require('../../fixtures/testSetu... |
'use strict';
var React = require('react');
var SvgIcon = require('../../svg-icon');
var HardwareKeyboardArrowRight = React.createClass({
displayName: 'HardwareKeyboardArrowRight',
render: function render() {
return React.createElement(
SvgIcon,
this.props,
React.createElement('path', { d: ... |
require('babel-polyfill');
var Express = require('express');
var webpack = require('webpack');
var config = require('config');
var webpackConfig = require('./dev.config');
var compiler = webpack(webpackConfig);
var host = config.host || 'localhost';
var port = (Number(config.port) + 1) || 3001;
var serverOptions = {
... |
var template = require('./template.marko');
exports.renderer = function(input, out) {
input.ui = input.ui || '';
input.ui += input.country || '';
template.render(input, out);
};
|
/************************* Project Setting *****************************/
fis.set('project.md5Length', 7);
fis.set('project.md5Connector ', '.');
fis.set('project.name', 'yhtml5');
fis.set('project.static', '/static');
fis.set('project.ignore', ['*.test.*', '*.psd', '.git/**', '/**/demo.*','/dist/**']);
fis.set('projec... |
import Head from 'zefir/head'
import React from 'react'
const {OPTIMIZELY_KEY} = process.env
const isDesktop = window.innerWidth > 768
const robotoFontLink = <link
href='https://fonts.googleapis.com/css?family=Roboto:300,400,500,700'
rel='stylesheet' />
const ptMonoFontLink = <link
href='https://fonts.google... |
/**
* Created by anubhavshrimal on 13/6/16.
*/
var app = angular.module("myApp", []);
'use strict';
app.controller("firstCtrl", ["$scope", function ($scope) {
}]);
app.directive("country", function () {
return {
"scope": {},
"link": function (scope, elem, attrs) {
console.log("c... |
import * as React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M21 3H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h5v1c0 .55.45 1 1 1h6c.55 0 1-.45 1-1v-1h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.1-.9-2-2-2zm-1 14H4c-.55 0-1-.45-1-1V6c0-.55.45-1 1-1h16c.55 0 1 .45 1 1v10c0 .55-... |
console.log('index.js loaded');
// if (DEVELOPMENT && module.hot) {
// module.hot.accept();
// }
|
// Copyright 2010 The Closure Library Authors. 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
//
// Unl... |
(function(){
return compare(getArrayFromArgs(arguments), (a, b) => a <= b);
});
|
'use strict';
const OK = { ok: true };
function respondOk(ctx, status = 200) {
ctx.status = status;
ctx.body = OK;
}
module.exports = respondOk;
|
asynctest(
'browser.tinymce.core.dom.SelectionTest',
[
'ephox.agar.api.Pipeline',
'ephox.mcagar.api.LegacyUnit',
'ephox.mcagar.api.TinyLoader',
'global!document',
'tinymce.core.caret.CaretContainer',
'tinymce.core.Env',
'tinymce.core.text.Zwsp',
'tinymce.themes.modern.Theme'
],
f... |
var Q = require('q');
var chalk = require('chalk');
var PackageRepository = require('../core/PackageRepository');
var createError = require('../util/createError');
var defaultConfig = require('../config');
var open = require('opn');
function register(logger, name, url, config) {
var repository;
var registryCli... |
/// <reference path="../../_references.js" />
'use strict';
describe('WelcomeController', function() {
beforeEach(module('vstorm'));
it('should have version', inject(function($controller) {
var scope = {};
var sut = $controller('welcomeController', { $scope: scope });
expect(scope.v... |
/**
* Created by zhaoky on 2017/1/19.
*/
export default "hea~~"; |
module.exports = {
env: {
browser: true,
es6: true,
node: true,
'shared-node-browser': true
},
parserOptions: {
sourceType: 'module',
ecmaFeatures: {
classes: true
},
ecmaVersion: 2018
},
plugins: ['filenames', 'eslint-comments'],
extends: [
'eslint:recommended',... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.deps = {
get proxy() {
return fetch('./proxy').default;
},
get isStream() {
return fetch('is-stream');
},
get contentType() {
return fetch('content-type');
},
get http() {
ret... |
"use strict";
const importCsvFile = require('./toolkit/importCsvFile.js');
const exportToMySql = require('./toolkit/exportToMySql.js');
const mysql = require('nodejs-mysql').default;
const config = {
host: "localhost",
port: 5000,
user: "root",
password: "root",
database: "earthquakes",
dateSt... |
export default function SelectionInViewMixin(Base) {
return class SelectionInView extends Base {
componentDidMount() {
if (super.componentDidMount) { super.componentDidMount(); }
this.scrollSelectionIntoView();
}
componentDidUpdate() {
if (super.componentDidUpdate) { super.componentDi... |
// @flow
// Required libraries
import { combineReducers } from 'redux';
// Required files
import pages from './pages';
const rootReducer = combineReducers({
pages
});
export default rootReducer;
|
// extend.js
Object.extend = Object.extend || function (target, source) {
for (var key in source) {
target[key] = source[key];
}
return target;
};
|
'use strict';
// not using ES6 import/export syntax, since we need to require() in a handler
// what the ES6 syntax does not permit
var vm = require('vm');
var errorCatcherInPlace = false;
var messageHandler = function messageHandler() {
console.error('No thread logic initialized.'); // eslint-disable-line no-conso... |
module.exports = function(app){
app.get('/', function(req, res){
res.render("home/index");
});
} |
var gulp = require('gulp');
var browserify = require('browserify');
var source = require('vinyl-source-stream');
var buffer = require('vinyl-buffer');
var uglify = require('gulp-uglify');
gulp.task('build', function () {
browserify('lib/main.js')
.bundle()
.pipe(source('field.min.js'))
.pipe(buffer())
... |
typeof window !== "undefined" &&
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define([], factory);
else if(typeof exports === 'object')
exports["Hls"] = f... |
import { fabricate, empty } from "../../../test/helpers/db"
import app from "../../../"
import request from "superagent"
describe("sessions endpoints", () => {
beforeEach(function(done) {
empty(() => {
fabricate("users", {}, (_, user) => {
this.user = user
this.server = app.listen(5000, () ... |
async function sendAndDelete(msg, messageToSend, logger, deleteAfterMs) {
const sentMessage = await msg.channel.createMessage(messageToSend, null, msg);
setTimeout(
async () => {
try {
await sentMessage.delete('Auto delete error message');
} catch (err) {
logger.warn({
even... |
/*!
* vue-i18n v9.0.0-alpha.15
* (c) 2020 kazuya kawaguchi
* Released under the MIT License.
*/
var VueI18n = (function (exports, vue) {
'use strict';
/**
* Original Utilities
* written by kazuya kawaguchi
*/
const RE_ARGS = /\{([0-9a-zA-Z]+)\}/g;
/* eslint-disable */
function format(m... |
/*! @2014 Leo Wang. All Rights Reserved */
define("entry/request/Action",["require","echarts","echarts/chart/bar","echarts/chart/pie","./Model","./View","./option/spentByType","./option/countByType","./option/simpleLine","eoo","er/Action"],function(require){var e=require("echarts");require("echarts/chart/bar"),require(... |
"use strict";
let Caf = require("caffeine-script-runtime");
Caf.defMod(module, () => {
return (() => {
let SemanticTokenStn;
return (SemanticTokenStn = Caf.defClass(
class SemanticTokenStn extends require("../BaseStn") {
constructor() {
let base;
super(...arguments);
... |
/**
* @licstart The following is the entire license notice for the
* Javascript code in this page
*
* Copyright 2021 Mozilla Foundation
*
* 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... |
import React, { Component } from "react";
import { Heading } from "spectacle";
import Rx from "rx";
const Wrapper = ({time, textColor}) => (
<Heading textColor={textColor}>{time}ms </Heading>
);
export default class TimeDifference extends Component {
constructor () {
super();
this.state = { time: 0 };
... |
'use strict';
angular.module('mismatchServices').factory('mouseTracking', ['$q', function($q) {
var tracker = {
position: {
'x': 0,
'y': 0
},
trackingTimer: null,
trackingData: "",
updatingFrequency: 17.0,
setUpdatingFrequency: function(updatingFrequency) {
tracker.updating... |
/* global describe, beforeEach, afterEach, it, expect */
'use strict';
var chai = require('chai');
var computedModule = require('../../../src/subscribable/computed.js');
describe('Computed', function () {
var fakeYal;
beforeEach(function resetFakeYalSpies() {
fakeYal = {
unpack: chai.spy(... |
import './chunk-2452e3d3.js';
import './helpers.js';
import './chunk-8ed29c41.js';
import { r as registerComponent, u as use } from './chunk-cca88db8.js';
import './chunk-2ef19b56.js';
import './chunk-42f463e6.js';
import { D as Dropdown, a as DropdownItem } from './chunk-e2606096.js';
export { D as BDropdown, a as BDr... |
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
connect: {
server: {
options: {
port: 8000,
base: '.',
keepalive: true
}
}
}
});
grunt.loadNpmTasks('grunt-contrib-connect');
grunt.registerTask... |
import React from 'react';
import createReactClass from 'create-react-class';
import PropTypes from 'prop-types';
import { RaisedButton } from 'material-ui';
export default createReactClass({
displayName: 'Hook',
propTypes: {
model: PropTypes.object.isRequired
},
render: function() {
const { model } ... |
/**
* PostContants
*/
export const POST_TO_SERVER = '@@linklink/PostPage/POST_TO_SERVER';
export const POST_PINGSTART = '@@linklink/PostPage/POST_PINGSTART';
export const POST_PINGSUCCESS = '@@linklink/PostPage/POST_PINGSUCCESS';
export const POST_PINGERROR = '@@linklink/PostPage/POST_PINGERROR';
export const PO... |
//Documentation for Phaser's (2.6.2) sprites:: phaser.io/docs/2.6.2/Phaser.Sprite.html
class PlayerBody extends Phaser.Sprite {
//initialization code in the constructor
constructor(game, hp) {
super(game, game.world.centerX, game.world.centerY, 'playerBody');
this.anchor.set(0.5);
this.... |
function randomEmpoyees() {
var rdm = [];
var allTeams = ["business", "tech", "admin", "com", "integ", "presta"];
function randomDate(start, end) {
return new Date(
start.getTime() + Math.random() * (end.getTime() - start.getTime())
);
}
function randomTeam() {
return allTeams[Math.floor(... |
$(document).ready(function() {
var input = document.getElementById("input");
input.addEventListener("input", function() {
var text, arr, output = "", string;
text = $(this).text();
arr = text.split(" ");
for(var i=0; i < arr.length; i++) {
string = capitaliseFirstLetter(arr[i]);
outpu... |
describe("Product", function() {
it("歯車秒間0個に必要な組立機数は0", function() {
expect(0).toEqual(iron_gear_wheel.require_builder_count(0));
});
it("歯車秒間1.5個に必要な組立機数は1", function() {
expect(1).toEqual(iron_gear_wheel.require_builder_count(1.5));
});
it("歯車秒間15個に必要な組立機数は10", function() {
expect(10).toEqual(iron_gear_whe... |
var request = require('request');
var moment = require("moment");
var weather = require('./weather');
// 根据拼音差城市天气id
var url = "http://apistore.baidu.com/microservice/weather?citypinyin=" + process.argv[2] || "nanjing";
request(url, function(error, response, body) {
if (!error && response.statusCode == 200) {
var ... |
import {getQueriesForElement} from './get-queries-for-element'
import * as queries from './queries'
import * as queryHelpers from './query-helpers'
export * from './queries'
export * from './wait-for'
export * from './wait-for-element-to-be-removed'
export {getDefaultNormalizer} from './matches'
export * from './get-n... |
var ebml = require('../lib/ebml/index.js'),
assert = require('assert');
describe('embl', function() {
describe('Encoder', function() {
function createEncoder(expected, done) {
var encoder = new ebml.Encoder();
encoder.on('data', function(chunk) {
assert.equal(chu... |
const bootState = {
create: function () {
game.scale.PageAlignHorizonally = true;
game.scale.scaleMode = Phaser.ScaleManager.SHOW_ALL;
game.physics.startSystem(Phaser.Physics.ARCADE);
game.state.start('load');
}
};
|
/**
* QCObjects 1.0
* ________________
*
* Author: Jean Machuca <correojean@gmail.com>
*
* Cross Browser Javascript Framework for MVC Patterns
* QuickCorp/QCObjects is licensed under the
* GNU Lesser General Public License v3.0
* [LICENSE] (https://github.com/QuickCorp/QCObjects/blob/master/LICENSE.txt)
*
*... |
// Sample Testacular configuration file, that contain pretty much all the available options
// It's used for running client tests on Travis (http://travis-ci.org/#!/vojtajina/testacular)
// Most of the options can be overriden by cli arguments (see testacular --help)
// base path, that will be used to resolve files ... |
import React, {PureComponent, PropTypes} from 'react';
import {Text, TouchableHighlight, StyleSheet} from 'react-native';
export default class Button extends PureComponent {
static propTypes = {
label : PropTypes.node.isRequired,
onPress: PropTypes.func.isRequired,
};
render() {
return (
<Tou... |
export default [
{
key: 'multiple',
ignore: true
},
];
/* eslint-enable max-len */
|
var receiveData = require('./receiveData');
var PROMPTREGEX = require('../lib/statics').PROMPT;
var SPLITREGEX = require('../lib/statics').SPLIT;
module.exports = function (stream, opt, callback) {
var args = Array.prototype.slice.call(arguments);
callback = args.pop();
if (typeof(callback) !== 'function') {
... |
import React from 'react';
import createReactClass from 'create-react-class';
import PropTypes from 'prop-types';
import _ from 'lodash';
import { Overlay, Request } from 'lore-react-forms-material-ui';
import formMap from './formMap';
export default createReactClass({
displayName: 'Wizard',
propTypes: {
step... |
/**
* @license Highstock JS v8.0.3 (2020-03-06)
* @module highcharts/indicators/natr
* @requires highcharts
* @requires highcharts/modules/stock
*
* Indicator series type for Highstock
*
* (c) 2010-2019 Paweł Dalek
*
* License: www.highcharts.com/license
*/
'use strict';
import '../../indicators/natr.src.js'... |
var main = require("../../../endpoints/auth/login")
var wrap = require("../wrap")
module.exports = async function () {
await wrap(main(
this.request.body.requestToken,
this.request.body.screenName,
this.request.body.password
),this)
} |
typeof window !== "undefined" &&
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define([], factory);
else if(typeof exports === 'object')
exports["Hls"] = f... |
/*
* /MathJax-v2/localization/sco/HTML-CSS.js
*
* Copyright (c) 2009-2018 The MathJax Consortium
*
* 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/l... |
/*!
* Copyright (c) 2017 ~ present NAVER Corp.
* billboard.js project is licensed under the MIT license
*
* billboard.js, JavaScript chart library
* https://naver.github.io/billboard.js/
*
* @version 3.2.2
* @requires billboard.js
* @summary billboard.js plugin
*/
(function webpackUniversalModuleDefinition(ro... |
/*
* GoJS v2.1.38 JavaScript Library for HTML Diagrams, https://gojs.net
* GoJS and Northwoods Software are registered trademarks of Northwoods Software Corporation, https://www.nwoods.com.
* Copyright (C) 1998-2021 by Northwoods Software Corporation. All Rights Reserved.
* THIS SOFTWARE IS LICENSED. THE LICENSE ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.