code
stringlengths
2
1.05M
var chai = require('chai') var should = chai.should() var chaiAsPromised = require('chai-as-promised') var BluebirdPromise = require('bluebird') var requireNew = require('require-new') var spawn = require('../index.js') chai.use(chaiAsPromised) describe('spawn-please', function() {...
const del = require('del'); const fs = require('fs'); const path = require('path'); const webpack = require('webpack'); const config = require('../webpack.config'); describe('example', () => { it('creates a file my-file.json', async () => { await del(path.join(__dirname, '..', 'build')); await new Promise((r...
import React from 'react'; import {Link} from 'react-router'; import {Row, Col} from 'elemental'; import get from 'lodash/get'; import State from 'lib/state'; import {actions as peopleActions} from 'lib/reactions/people'; import styles from './index.less'; export default function PersonRow({ person }) { let { na...
/** @license ISC License (c) copyright 2017 original and current authors */ /** @author Ian Hofmann-Hicks (evil) */ const First = require('.') const Maybe = require('../core/types').proxy('Maybe') const curry = require('../core/curry') const isFunction = require('../core/isFunction') const isSameType = require('../co...
/** * `sync` * * --------------------------------------------------------------- * * Synchronize files from the `assets` folder to `.tmp/public`, * smashing anything that's already there. * * This task synchronizes one directory with another (like rsync). * In the default Sails asset pipeline, it plays very si...
/** * @fileoverview Restrict file extensions that may be required * @author Scott Andrews */ 'use strict'; var path = require('path'); // ------------------------------------------------------------------------------ // Constants // ------------------------------------------------------------------------------ va...
'use strict'; angular.module('projektSwdApp', ['ngRoute']) .config(function ($routeProvider) { $routeProvider .when('/about', { templateUrl: 'views/about.html', controller: 'AboutCtrl' }) .when('/', { templateUrl: 'views/main.html', controller: 'MainCtrl' }...
App.ImageUploadComponent = Ember.Component.extend({ barWidth: "width: 0;", startUpload: false, uploadStatus: "上传", imageUrl: "", imageObject: false, urlChanged: function () { if (!(this.get('imageUrl'))) { this.set('imageObject', false); } }.observes('imageU...
Parse.Cloud.beforeSave("citations", function(request, response) { if (!request.object.get("proactive_outreach")) { request.object.set("proactive_outreach", false); } if (!request.object.get("court_address")) { court_address = '' request.object.set("court_address", false); } response.success(); });...
define([ 'jquery', 'd3', 'kb_vis_visWidget' ], function ( $, d3 ) { 'use strict'; $.KBWidget({ name: 'kbaseScatterplot', parent: 'kbaseVisWidget', version: '1.0.0', options: { overColor: 'yellow', weight: 20, color: 'black'...
#!/usr/bin/env node var sig_parser = require('../lib/signature_parser') , sig = require('../lib/signature') , assert = require('assert') , util = require('util') ; var s = sig_parser.parse('yyyyuu'); s.forEach(function(arg) { assert.ok( arg instanceof sig.Basic) }); s = sig_parser.parse('yyy...
"use strict"; (function() { var name = document.getElementById("name"); var randomButton = document.getElementById("random-button"); var opacityButton = document.getElementById("opacity-button"); var otherButton = document.getElementById("other-button"); // Define event handler as a named function functi...
import config from '../config.js'; import resources from '../loader.js'; import { key } from '../Input.js' import { screenShake } from '../ScreenShake.js' import Entity from './Entity.js' const _ = require('lodash'); const defaults = { x:-20, y:-95, w:0.5, h:0.875, angle:-1.5708, velX:15, velY:0, mass:...
import {RNS_SHOW_NOTIFICATION, RNS_HIDE_NOTIFICATION, RNS_REMOVE_ALL_NOTIFICATIONS} from './const'; //Example opts // { // title: 'Hey, it\'s good to see you!', // message: 'Now you can see how easy it is to use notifications in React!', // position: 'tr', // autoDismiss: 0, // action: { // label: 'Aweso...
/*! jQuery UI - v1.10.4 - 2014-02-24 * http://jqueryui.com * Includes: jquery.ui.widget.js * Copyright 2014 jQuery Foundation and other contributors; Licensed MIT */ (function( $, undefined ) { var uuid = 0, slice = Array.prototype.slice, _cleanData = $.cleanData; $.cleanData = function( elems ) { for ( var i = 0,...
 var level = 6; var logger = require('caterpillar').createLogger({ level: level }); var filter = require('caterpillar-filter').createFilter(); var human = require('caterpillar-human').createHuman(); if(typeof window === 'undefined') { logger .pipe(filter) .pipe(human) .pi...
import fs from 'co-fs' import Mock from 'mockjs' import mkdirp from 'mkdirp' import pathToRegexp from 'path-to-regexp' import {join, normalize, resolve} from 'path' export default function(root = '.', options = {}){ root = normalize(resolve(root)) options = Object.assign({ index : '/index' }, opti...
//>>built require({cache:{"url:dojox/widget/Calendar/CalendarMonth.html":'\x3cdiv class\x3d"dojoxCalendarMonthLabels" style\x3d"left: 0px;" \n\tdojoAttachPoint\x3d"monthContainer" dojoAttachEvent\x3d"onclick: onClick"\x3e\n \x3ctable cellspacing\x3d"0" cellpadding\x3d"0" border\x3d"0" style\x3d"margin: auto;"\x3e\n...
/* */ (function(Buffer) { var Buffer, create; Buffer = require("buffer").Buffer; create = require("./create"); module.exports = create('xmodem', function(buf, previous) { var code, count, crc, i; if (!Buffer.isBuffer(buf)) { buf = Buffer(buf); } crc = previou...
import { h } from 'omi'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon(h("path", { d: "M8.65 3.35L5.86 6.14c-.32.31-.1.85.35.85H8V13c0 .55.45 1 1 1s1-.45 1-1V6.99h1.79c.45 0 .67-.54.35-.85L9.35 3.35c-.19-.19-.51-.19-.7 0zM16 17.01V11c0-.55-.45-1-1-1s-1 .45-1 1v6.01h-1.79c-.45 0-.67.5...
weatherApp.controller('homeController', ['$scope', 'cityService', '$location', function($scope, cityService, $location) { $scope.city = cityService.city; $scope.$watch('city', function() { cityService.city = $scope.city; }); $scope.submit = function() { $location.path("/forec...
/*! kibana - v3.1.1 - 2014-10-02 * Copyright (c) 2014 Rashid Khan; Licensed Apache License */ define(["angular","lodash"],function(a,b){var c=a.module("kibana.factories");c.factory("storeFactory",function(){return function(a,c,d){if(!b.isFunction(a.$watch))throw new TypeError("Invalid scope.");if(!b.isString(c))throw...
export default { debit: 'debit', credit: 'credit', savings: 'savings', both: 'both' }
angular.module('commonService', []).config(function($httpProvider){ $httpProvider.interceptors.push('StatusInterceptor'); }); angular.module("commonService",["ngMd5"], function($httpProvider) { //fix angular default post method // Use x-www-form-urlencoded Content-Type $httpProvider.defaults.headers.post['Conte...
/*! * Base JavaScript Document * * copyright 2015, Yury Istomenok <iyl@tut.by> */ function clickShare(type, urlAddScore) { if (type == 'vk' || type == 'ok') { $.ajax({ type: "POST", url: urlAddScore, dataType: "json", success: function(data){ ...
version https://git-lfs.github.com/spec/v1 oid sha256:b59682843d2ac8d0ad3d4b09acccbdb44e2e46fd171ca9e43134168a394b7764 size 12993
'use strict'; var tasker = require('tasker/tests/tasker/b.js'); tasker.put('task-1', ['task-2']);
const state = { langs: [] } const mutations = { add_lang (state, lang) { state.langs.push(lang) }, revert_selected (state, short_name) { var lang = state.langs.find(x => x.short_name == short_name) lang.selected = !lang.selected } } const getters = {} const actions = {} export default { stat...
'use strict'; module.exports = { entry: { background: ['./src/background.js'], 'content-script': ['./src/content-script.js'] }, output: { filename: '[name].js', path: './app/scripts' }, module: { loaders: [{ test: /\.js$/, loader: 'babel?presets[]=es2015', exclude: /node...
/* * SIDEBAR MENU * ------------ * This is a custom plugin for the sidebar menu. It provides a tree view. * * Usage: * $(".sidebar).tree(); * * Note: This plugin does not accept any options. Instead, it only requires a class * added to the element that contains a sub-menu. * * When used with the sideba...
var clc = require('cli-color') var async = require('async') module.exports = function (db) { return function (callback) { db.databaseConnectRegistryIngest(function () { // remove the any old stuff var collection = db.databaseRegistryIngest.collection('viaf') console.log('Dropping Table') ...
if (typeof(define) !== 'function') { var define = require('amdefine.js'); } define(['require', 'tv4', './src/eventhandling'], function (require, tv4, eventHandling) { var suites = []; var consoleLog, fakeLogs; global.XMLHttpRequest = require('xhr2').XMLHttpRequest; function FakeRemote(connected) { this....
var csv = ".txt"; var dataPath = "https://cocoflyliu.github.io/stock_crawler/data/"; var f1 = document.getElementById("form1") console.log(f1); var f2 = document.getElementById("form2") var f3 = document.getElementById("form3") var f4 = document.getElementById("form4") var namePath = da...
function loadFile(url,next) { var req = new XMLHttpRequest(); req.open("GET", url, true); req.responseType = "arraybuffer"; req.onload = function (event) { var arrayBuffer = req.response; if (arrayBuffer && req.status === 200) { if (next) next(arrayBuffer); } else { ...
/** * Created by 斌 on 2017/2/28. */ var foo = function(){ var a = 3, b = 5; debugger; var bar = function() { var b = 7, c = 11; a += b + c; debugger; }; bar (); debugger; }; foo();
/*! * Ext JS Library 3.2.0 * Copyright(c) 2006-2010 Ext JS, LLC * licensing@extjs.com * http://www.extjs.com/license */ Ext.ux.Portlet = Ext.extend(Ext.Panel, { anchor : '100%', frame : true, collapsible : true, draggable : true, cls : 'x-portlet' }); Ext.reg('portlet', Ext.ux.Portlet);
import React, { Component, PropTypes } from 'react'; import Link from '../Link'; import s from '../VehicleResults/VehicleResults.scss'; import CategorizedResult from '../LuverneResults/CategorizedResult'; import withStyles from '../../decorators/withStyles'; import LuverneStore from '../../stores/LuverneStore'; import ...
{ "materials": { }, "decodeParams": { "decodeOffsets": [-8150,-870,-8197,0,0,-511,-511,-511], "decodeScales": [0.026986,0.026986,0.026986,0.000978,0.000978,0.001957,0.001957,0.001957] }, "urls": { "freerun2.utf8": [ { "material": "mat.1", "attribRange": [0, 9347], "indexRange"...
import Api from '~/api'; import axios from '~/lib/utils/axios_utils'; import { deprecatedCreateFlash as createFlash } from '~/flash'; import * as types from './mutation_types'; import { FETCH_PACKAGES_LIST_ERROR_MESSAGE, DELETE_PACKAGE_ERROR_MESSAGE, DELETE_PACKAGE_SUCCESS_MESSAGE, DEFAULT_PAGE, DEFAULT_PAGE_...
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.io=e()}}(function(){var define,module,exports;return ...
var gulp = require('gulp'); var path = require('path'); var clean = require('gulp-clean'); var uglify = require('gulp-uglify'); var foreach = require('gulp-foreach'); var rename = require("gulp-rename"); var stylus = require('gulp-stylus'); var buffer = require('vinyl-buffer'); var nib = require('nib'); var gu...
/** * composite functions * @returns {Function} */ exports.composite = function (/**functions**/) { var callables = Array.prototype.slice.call(arguments, 0); return function () { var s = this, result = []; for (var i = 0, len = callables.length; i < len; i++) { var cal...
'use strict'; var gulp = require('gulp'); var browserSync = require('browser-sync'); var browserSyncSpa = require('browser-sync-spa'); var config = require('./config'); var paths = config.paths; function browserSyncInit(baseDir, browser) { browser = browser === undefined ? 'default' : browser; var routes; // if...
/** * A class to parse color values * @author Stoyan Stefanov <sstoo@gmail.com> * @link http://www.phpied.com/rgb-color-parser-in-javascript/ * @license Use it if you like it */ exports = module.exports = function (color_string) { this.ok = false; // strip any leading # if (color_string.c...
// 使用 co-busboy 下载多个文件到磁盘里 // 如果你只想下载文件到临时目录里 使用 https://github.com/cojs/multipart // 它对文件描述符有限制,而这个没有 const os = require('os') const path = require('path') const Koa = require('koa') const fs = require('fs-promise') const koaBody = require('koa-body') const app = module.exports = new Koa() app.use(koaBody({multip...
'use strict'; const toMarkdown = require('to-markdown'); function replacePlainText(innerHTML, node) { return node.style.display !== 'none' ? innerHTML : ''; } function replaceDivs(innerHTML, node) { if (node.className.includes('box') || node.className.includes('thumb')) { return ''; } if (no...
/* * File: app.js * * This file was generated by Sencha Architect version 2.2.2. * http://www.sencha.com/products/architect/ * * This file requires use of the Ext JS 4.2.x library, under independent license. * License of Sencha Architect does not include license for Ext JS 4.2.x. For more * details see http://w...
'use es6'; import {Map} from 'immutable'; import Coordinate from '../../data/Coordinate'; import CoordinateBuilder from '../../data/builders/CoordinateBuilder'; import DriverEtaSearch from '../DriverEtaSearch'; export default class DriverEtaSearchBuilder { static build(json) { let args = Map(); if (!('sta...
/** * League of Legends API * String replacer */ module.exports = function (originString, replaceWith, callback) { for (var id in replaceWith) if (replaceWith.hasOwnProperty(id)) originString = originString.replace(new RegExp("{" + id + "}"), replaceWith[id]); var matches = originStrin...
import { assert } from 'chai'; import { describe, it } from 'mocha'; import Ember from 'ember'; import <%= classifiedModuleName %>Mixin from '<%= dasherizedPackageName %>/mixins/<%= dasherizedModuleName %>'; describe('<%= classifiedModuleName %>Mixin', function() { // Replace this with your real tests. it('wor...
import * as actionTypes from '../constants/actionTypes'; const initialState = { crafts: { fishing: 1, gardening: 1, }, hp: 12, maxHp: 12, level: 1, exp: 1, tnl: 20, bonuses: { treasureHunter: 0, }, }; const statsReducer = (state = initialState, action) => { switch (action.type) { case actionTypes.GAIN...
const FileIndex = require('./../../src/util/fileIndex'); const FileRecognizer = require('./../../src/util/fileRecognizer'); const FileUtils = require('./../../src/util/fileUtils'); const assert = require('assert'); const sinon = require('sinon'); describe('fileIndex', () => { let logger = {}; let options = {};...
export { default as coffee } from './coffee'
/** * Fuse.js v6.1.0 - Lightweight fuzzy-search (http://fusejs.io) * * Copyright (c) 2020 Kiro Risk (http://kiro.me) * All Rights Reserved. Apache Software License 2.0 * * http://www.apache.org/licenses/LICENSE-2.0 */ 'use strict'; function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "...
// Problem 2. Reverse number // Write a function that reverses the digits of given decimal number. // Example: // input output // 256 652 // 123.45 54.321 var num = 123.45; function reverseNum (num) { var numToString = num.toString(), reverseString = numToString.split("").reverse().join(""), stringToNum = Nu...
var modpath = "/Applications/XAMPP/xamppfiles/htdocs/jogo/modules/"; // Later to be global var lmodule_mysql = function() { this.connectinfo = undefined; this.query = function(query) { if(this.connectinfo == undefined) { return "notconnected"; } this.connectinfo["query"] = query; ...
var EventEmitter = require('events').EventEmitter; var util = require('util'); var Client = require(__dirname+'/client'); var defaults = require(__dirname + '/defaults'); //external genericPool module var genericPool = require('generic-pool'); //cache of existing client pools var pools = {}; var PG = function(clien...
// // // Copy-and-paste from https://github.com/ariya/phantomjs/blob/master/examples/run-qunit.js // // "use strict"; var system = require('system'); /** * Wait until the test condition is true or a timeout occurs. Useful for waiting * on a server response or for a ui change (fadeIn, etc.) to occur. * * @param te...
/* * Copyright (C) 2016 Nicholas Jillings * * 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 without limitation the * rights to use, copy, modify, merge, p...
/*! * jquery-range-slider * jQuery plugin to create range selector * Copyright (c) 2015 Radoslav Salov * Distributed under MIT license * Copyright for portions of the project are held by: * Nitin Hayaran (c) 2014-2015 ( https://github.com/nitinhayaran/jRange ) */ (function($, window, document, undefined) { 'us...
/*! * SAP UI development toolkit for HTML5 (SAPUI5/OpenUI5) * (c) Copyright 2009-2015 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ /** * Initialization Code and shared classes of library sap.ui.ux3. */ sap.ui.define(['jquery.sap.global', 'sap/ui/cor...
'use strict'; angular.module('scumboardApp', [ 'ngCookies', 'ngResource', 'ngSanitize', 'btford.socket-io', 'ui.router', 'ui.bootstrap', 'ui.sortable' ]) .config(function ($stateProvider, $urlRouterProvider, $locationProvider) { $urlRouterProvider .otherwise('/scumboard'); $locationProvi...
/*------------------------------------------------------------------------------ File: www/admin/js/home.js Project: MUN Computer Science Society Website Version: 0.1.0 By: Tim Oram Website: http://society.cs.mun.ca Email: muncssociety@gmail.com ----------------------------------------------------------...
// import React from 'react'; // import { shallow } from 'enzyme'; // import LoadMoreButton from '../index'; describe('<LoadMoreButton />', () => { it('Expect to have unit tests specified', () => { expect(true).toEqual(false); }); });
const gulp = require("gulp"); const sourcemaps = require("gulp-sourcemaps"); const plumber = require("gulp-plumber"); const sass = require("gulp-sass"); const inject = require("gulp-inject"); const clean = require("gulp-clean"); const gnf = require("gulp-npm-files"); const gutil = require("gulp-util"); const webpack = ...
define([ 'backbone', 'communicator' ], function( Backbone, Communicator ) { 'use strict'; var RegionManager = Backbone.Marionette.Controller.extend({ initialize: function() { console.log('Initialize a Region Manager'); /* internal region manager */ this._regionManager = new Backbone.Mari...
/*! * Farbtastic: jQuery color picker plug-in v1.3u * * Licensed under the GPL license: * http://www.gnu.org/licenses/gpl.html */ (function($) { $.fn.farbtastic = function (options) { $.farbtastic(this, options); return this; }; $.farbtastic = function (container, callback) { var container = $(container)...
'use strict'; const zlib = require('zlib'); // via https://github.com/danmactough/node-feedparser/blob/master/examples/compressed.js#L38-L46 module.exports = (res, encoding) => { let decompress; if (encoding.match(/\bdeflate\b/)) { decompress = zlib.createInflate(); } else if (encoding.match(/\bgz...
import MobileParentView from 'ghost/views/mobile/parent-view'; var SettingsView = MobileParentView.extend({ // MobileParentView callbacks showMenu: function () { $('.js-settings-header-inner').css('display', 'none'); $('.js-settings-menu').css({right: '0', left: '0', 'margin-right': '0'}); ...
var path = require('path'); var webpack = require('webpack'); module.exports = { devtool: ['eval','sourcemap'], entry: [ 'webpack-hot-middleware/client', './src/index' ], output: { path: path.join(__dirname, 'devel'), filename: 'bundle.js', publicPath: '/dist/' }, plugins: [ new web...
/** * HTML patterns * * @author Craig Campbell * @version 1.0.7 */ Rainbow.extend('html', [ { 'name': 'source.php.embedded', 'matches': { 2: { 'language': 'php' } }, 'pattern': /&lt;\?=?(?!xml)(php)?([\s\S]*?)(\?&gt;)/gm }, { ...
module.exports = { presets: ["babel-preset-expo"], env: { production: {}, }, plugins: [ [ "@babel/plugin-proposal-decorators", { legacy: true, }, ], ["@babel/plugin-proposal-optional-catch-binding"], ], }
import alt from '../libs/alt'; export default alt.generateActions('toggleVideoSize');
var gulp = require('gulp'), autoprefixer = require('gulp-autoprefixer'), concat = require('gulp-concat'), cssmin = require('gulp-cssmin'), del = require('del'), eslint = require('gulp-eslint'), inject = require('gulp-inject'), less = require('gulp-less'), merge2 = require('merge2'), plumber = require(...
var path = require('path') var express = require('express') var bodyParser = require('body-parser') var hbs = require('express-handlebars') var routes = require('./routes') var app = express() module.exports = app app.use(bodyParser.urlencoded({extended: true})) app.engine('hbs', hbs({extname: 'hbs'})) app.set('vi...
function MouseSpringyCircles(){ var springyCircles = []; //array of SpringyCircle objects var numberOfSpringyCircles = 100; var allTheKeys = "1234567890qwertyuiopasdfghjklzxcvbnm"; this.setup = function(){ createCanvas(windowWidth,windowHeight); //make a fullscreen canvas, thanks to: http://codepen.io/gray...
var nameChange; var messageChange; var key = localStorage.getItem("key"); var database = new Firebase('https://vivid-heat-9192.firebaseio.com/accounts/' + key); async: true; $(document).ready(function(){ var imgS; var newItem; database.on("value", function(data) { var snapshot = data; console.log(dat...
/* @flow */ import stringScore from 'sb-string_score' import type { TextEditor, Point } from 'atom' const REGEX_LABEL = /(\w+)/ const REGEX_PREFIX = /((:\w[\w:-]+)|(\$\w*)|::(\w+)|([\w\\]+))$/ export function getTransformedText(textEditor: TextEditor, bufferPosition: Point): string { const textBuffer = textEditor....
/** * @depends TheHelpingHand.ElementTable */ TheHelpingHand.EventHunger = function() { TheHelpingHand.Event.call( this ); this.name = 'Hunger'; this.icon = 'meat.png'; this.counteredBy = ['food']; }; TheHelpingHand.EventHunger.prototype = Object.create( TheHelpingHand.Event.prototype ); TheHel...
import React from 'react'; import EntypoIcon from '../EntypoIcon'; const iconClass = 'entypo-svgicon entypo--CreativeCommonsNoncommercialEu'; let EntypoCreativeCommonsNoncommercialEu = (props) => ( <EntypoIcon propClass={iconClass} {...props}> <path d="M16.8,3.2C15,1.3,12.7,0.4,10,0.4c-2.7,0-4.9,0.9-6.8,2...
function playerName() { //TODO: Config setting return ''; } //appMessageQueue from Neal //https://github.com/Neal/Ultra/blob/master/src/js/src/appmessagequeue.js var items = {}; var ENDPOINTS = { PLAYERS: 0, ATTACKS: 1, PLAYERCREATE: 2, PLAYERDELETE: 3, GAMECREATE: 4, GAMEACTION: 5, CHECKSTATUS: 6 }; var B...
/* * Copyright (c) 2012-2016 André Bargull * Alle Rechte vorbehalten / All Rights Reserved. Use is subject to license terms. * * <https://github.com/anba/es6draft> */ const { assertBuiltinFunction, assertSame, } = Assert; /* 20.2.2.21 Math.log10 ( x ) */ assertBuiltinFunction(Math.log10, "log10", 1); ass...
module.exports = function(){ angular.module('httpBackendMock', ['ngMockE2E']) .run(function($httpBackend, appConfig) { console.log("running module divisionCollectionHttpBackendMock") function quote(str) { return str.replace(/(?=[\/\\^$*+?.()|{}[\]])/g, "\\"); } var url = appConfig.restUrl + '/divisi...
/* Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang( 'specialchar', 'it', { options: 'Opzioni carattere speciale', title: 'Seleziona carattere speciale', toolbar: 'Inserisci...
'use strict' var api = require('../api/area') var def = require('../definition/area/square-millimeter') var unit = 'square-millimeter' api.augment(unit, def) module.exports = api.get(unit)
define(['jquery', 'metisMenu'], function($, metisMenu) { function initNavMenu() { $('#ul-mnu').metisMenu({ }) } $(function() { initNavMenu() }) })
version https://git-lfs.github.com/spec/v1 oid sha256:d9a6d6cd82e044aa5a510e87a4d720dc7b0c75171e3a4df7db740154bfa9b638 size 2433
(function () { //user_data if (localStorage.getItem("user_data") === null) { //load JSON into local storage utils.readJsonFile("../data/users_data.json", function (text) { var data = JSON.parse(text); localStorage.setItem("user_data", JSON.stringify(data)); }); ...
export default ( v, fn ) => { if ( typeof v !== 'object' ) { throw new TypeError( 'Expected an Object or Array in the first argument, got ' + ( typeof v ) ); } if ( typeof fn !== 'function' ) { throw new TypeError( 'Expected a Function in the second argument, got ' + ( typeof fn ) ); } const keys = Object.ke...
import { ReactSelector } from 'testcafe-react-selectors' class Syncing { syncing = ReactSelector('Syncing') } export default Syncing
/* Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ (function(){function f(a,b){var c=a.config.autocomplete_commitKeystrokes||CKEDITOR.config.autocomplete_commitKeystrokes;this.editor=a;this.throttle=void 0!...
'use strict'; // Declare app level module which depends on views, and components var app = angular.module('jamesApp', ['firebase']);
define([ 'jquery', 'facilitation/phase-manager', 'facilitation/forum-manager', 'facilitation/doc-manager', 'facilitation/message-manager', 'facilitation/vis/pie', 'facilitation/vis/dot', 'semantic-ui', 'realtime/socket' ], function( $, PhaseManager, ForumManager, DocManager, MessageManager, Pie, Dot ) {...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var HTTPRequest_1 = require("./HTTPRequest"); function loadImage(src) { return new Promise(function (resolve, reject) { var img = document.createElement('img'); img.addEventListener('load', function () { resolve...
'use strict'; (function(factory) { if (typeof module === 'object' && module.exports) { // CommonJS factory(module.exports, { chai: require('chai') }); } else if (typeof self === 'object') { // Window or WorkerGlobalScope if (typeof self.chai === 'undefined') { throw new Error('Dep...
GameSetting.Setup.LvUp = { MaxLv: 20, Basic: { State: { LvUpExp: "{SourceState.LvUpExp}*2", MaxHp: "{SourceState.MaxHp}*1.1" } }, HumanWarrior: { State: { PDefend: "{SourceState.PDefend}+0.5", MDefend: "{SourceState.MDefend}+0.25",...
/* * blueimp Gallery Video Factory JS 1.0.0 * https://github.com/blueimp/Gallery * * Copyright 2013, Sebastian Tschan * https://blueimp.net * * Licensed under the MIT license: * http://www.opensource.org/licenses/MIT */ /*global define, window, document */ (function (factory) { 'use strict'; if (type...
var bike = require("./transportation/bike"); var bus = require("./transportation/bus"); var car = require("./transportation/car"); var walk = require("./transportation/walk"); var bike = require("./transportation/bike"); var Promise = require('bluebird'); var AVG_SALARY_PER_SEC = 0.00693629807; var METER_TO_MILE = 0.0...
define(function(require, exports, module) { /** * 投票 * * @module Vote */ 'use strict'; var $ = require('$'), Core = require('./core'); /** * 单选投票,基于表情投票接口,最多可创建10个选择项。 * @class SingleVote * @extends core * @constructs */ var SingleVote = Core.ex...
/** * Extended Parameter * 1. Default Parameter * 2. Rest Parameter * 3. Spread Operator */