code
stringlengths
2
1.05M
// DATA_TEMPLATE: dom_data oTest.fnStart("2746 - Stable sorting"); $(document).ready(function () { $('#example').dataTable(); oTest.fnTest( "Initial sort", null, function () { var ret = $('#example tbody tr:eq(0) td:eq(0)').html() == 'Gecko' && ...
var Dictionary = require("@kaoscript/runtime").Dictionary; module.exports = function() { var __ks_Dictionary = {}; return { __ks_Dictionary: __ks_Dictionary }; };
/** * @fileoverview Disallows or enforces spaces inside of array brackets. * @author Jamund Ferguson * @copyright 2015 Jamund Ferguson. All rights reserved. * @copyright 2014 Brandyn Bennett. All rights reserved. * @copyright 2014 Michael Ficarra. No rights reserved. * @copyright 2014 Vignesh Anand. All rights re...
var Store = function () { this._store = null; this._fetch = null; this._list = null; this.store = function (event) { var id = this.eventCount(), fetchedEvent = null, ret = {}; this._store(event); fetchedEvent = this.fetch(id); ret = { id: id, success: event == fet...
'use strict'; const test = require('ava'); const Vinyl = require('vinyl'); const pEvent = require('p-event'); const gulpBom = require('.'); test('main', async t => { const stream = gulpBom(); const dataPromise = pEvent(stream, 'data'); stream.end(new Vinyl({ contents: Buffer.from('unicorn') })); const file = ...
// In your code, you would do the following: // require('sprintf'); require('../lib/sprintf'); var text = sprintf('Hello %%s, a formatted number is: %3.2f\n', 22/7); process.stdout.write(text); text.printf('Jakob');
var AppDispatcher = require('../dispatcher/AppDispatcher'); var RecipeConstants = require('../constants/RecipeConstants'); var UserStore = require('../stores/UserStore'); var ActionTypes = RecipeConstants.ActionTypes; module.exports = { GetAll: function(){ var user = UserStore.get(); AppDispatcher.dispatch({...
import os from 'os' import path from 'path' import Promise from 'bluebird' import thinky from '../thinky' import Repo from './Repo' import * as errors from '../errors' import Ensure from '../utils/Ensure' import Table from '../utils/Table' import fs from '../utils/fs' impo...
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @class */ CKEDITOR.dom.nodeList = function (nativeList) { this.$ = nativeList; }; CKEDITOR.dom.nodeList.prototype = { count: function () {...
define(['underscore', 'zepto', 'backbone', 'jst'], function(_, $, Backbone, jst){ return Backbone.View.extend({ render : function(){ this.$el.append(jst.hello({})); return this; } }); });
import * as React from 'react'; import TopLayoutBlog from 'docs/src/modules/components/TopLayoutBlog'; import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown'; const pageFilename = 'blog/material-ui-v1-is-out'; const requireRaw = require.context('!raw-loader!./', false, /material-ui-v1-is-out\.md$/); e...
import { app, BrowserWindow } from 'electron'; import appState from 'reducers'; import { applyMiddleware, compose } from 'redux'; import { createMainStore } from 'redux-electron'; let mainWindow = null; let middlewares = []; let enhancer = compose( applyMiddleware(...middlewares) ); const store = cr...
/** * Exports object that contains names of arguments as a key and their configuration objects as a value * * @example * export default { * argumentName: { * desc: 'Description for the argument', * required: false, * optional: true, * type: String || Number || Array || Object, * defaults...
const fakeReport = { posts: [] }; export const report = (state = fakeReport, action) => { switch (action.type) { case 'ADD_REPORT': return action.payload; default: return state; } };
// Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /** * @name: S15.10.2.15_A1_T30; * @section: 15.10.2.15; * @assertion: The internal helper function CharacterRange takes two CharSet parameters A and B and performs the * followin...
import GenericFormObject from '../lib/GenericFormObject' export default class TagFormObject extends GenericFormObject { static get model() { return 'tag' } static get type() { return 'tags' } static get properties() { return [ 'name-de', 'keywords-de', 'explanations-de', 'name-en', 'keywo...
/** * Review warning exclusion table/setting handler */ (function(i) { // create exclusion table i.form.ReviewWarningNotificationExclusions = new i.form.ExclusionTable( 'reviewWarningNotificationExclusions', 'review warning notifications' ); // generate table $(function() { i.form.ReviewWarn...
var structtesting__1__1internal__1__1__enable__if__3__01true__01__4_8js = [ [ "structtesting_1_1internal_1_1_enable_if_3_01true_01_4", "structtesting__1__1internal__1__1__enable__if__3__01true__01__4_8js.html#a081ed59c71930c22524c4c787587470c", null ] ];
'use strict'; const { MessageEmbed } = require('discord.js'); const Command = require('../../models/Command.js'); const { getChannels, setupPages, constructTypeEmbeds, constructItemEmbeds, createChunkedEmbed, embedDefaults, chunkify, checkAndMergeEmbeds, } = require('../../CommonFunctions'); const negate = '✘'; c...
const normalizeCoordinate = (value) => { if (!value) { return value; } if (value === undefined || value === '-') { return value; } return parseInt(value, 10); }; export default normalizeCoordinate;
var _ = require('lodash'); var os = require('os'); var settings = { timeout: 1000 }; exports.set = function(k, v){ settings[k] = v || 1000; }; var start = function(tag, args){ var profile = { _target: tag, _start: (new Date()).toString(), _time: Date.now() }; // data i...
import React from "react"; import TestUtils from 'react-addons-test-utils'; import expect from 'expect'; import Hello from '../src/hello.js'; import jsdom from 'mocha-jsdom'; jsdom(); describe('<Hello />', () => { it('Should return an h1 whith "Hello" string', () => { const component = TestUtils.renderIntoDocu...
import * as authentication from './authentication'; import * as game from './game'; export default { authentication, game, };
'use strict'; var app = angular.module('shiftContentApp'); /** * Notification service * Maintains multiple queues of notification messages each of which may * have a message test, type and a timeout in seconds an infinite. * You can display those queued messages via notifications directives in * your templates. ...
var fs = require("fs"); var path = require("path"); module.exports = function (pathName, filter, callback) { fs.readdir(pathName, function (err, list) { var newList = []; if (err) return callback(err); list.forEach(function (entry) { if (path.extname(entry) === "." + filter) { new...
var express = require('express'); var router = express.Router(); var competitionsController = require('../controllers/competitionsController'); var teamsController = require('../controllers/teamsController'); router.route('/competitions') .get(competitionsController.competitionsIndex) .post(competitionsContro...
version https://git-lfs.github.com/spec/v1 oid sha256:4ae2bc1563676a3250508bd87792e15d49e99b913c568fbffb0fda280e7081be size 2214
version https://git-lfs.github.com/spec/v1 oid sha256:3a02997b9d58d17460b4294216b77cb9570eb3a51963eacf77242605c4e52fa2 size 71521
/*! jQuery plugin for Hammer.JS - v1.0.1 - 2014-02-03 * http://eightmedia.github.com/hammer.js * * Copyright (c) 2014 Jorik Tangelder <j.tangelder@gmail.com>; * Licensed under the MIT license */ !function(a,b){"use strict";function c(a,c){a.event.bindDom=function(a,d,e){c(a).on(d,function(a){var c=a.originalEvent||...
/*! * Start Bootstrap - Creative Bootstrap Theme (http://startbootstrap.com) * Code licensed under the Apache License v2.0. * For details, see http://www.apache.org/licenses/LICENSE-2.0. */ (function($) { "use strict"; // Start of use strict // jQuery for page scrolling feature - requires jQuery Easing pl...
var transmissionStore = require('../transmissions/store.js'); var renderCache = require('../render/cache.js'); var hashObject = require('../utils/hash.js').object; var applyTransmission = function(state, req, replacements) { //console.log("APTRA", state, req, replacements); for (var i in replacements) { var repla...
import React, { PropTypes, Component } from 'react' import cx from 'classnames' import { CONST } from '../constants/Const'; import $ from 'jquery' export default class Bonus extends Component { static get defaultProps() { return { data: {}, stageWidth: 0, stageHeight: ...
var fs = require("fs"); var path = require("path"); /** * 把dir中的文件的换行符号替换成\r\n chr(13)+chr(10) * @param {string} dir 指向一个文件或文件夹 */ var replace = function (dir, deep) { if (!fs.existsSync(dir)) { return console.warn(`指定的路径${dir}不存在!`); } if (dir.match(/node_modules/)) { if (typeof deep !==...
export const getCounters = (results, unavailableHeroes) => { let counters = results.reduce((allCounters, heroCounter) => { return allCounters.concat(heroCounter.counterPicks); }, []) counters = _.orderBy( counters ,['counterCoefficient'], ['desc']); let recommendedCounters = []; for (let i = 0; i < counte...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
/* * data type parameter */ module.exports = { type: 'integer' };
/** * DevExtreme (viz/gauges/circular_indicators.js) * Version: 16.2.5 * Build date: Mon Feb 27 2017 * * Copyright (c) 2012 - 2017 Developer Express Inc. ALL RIGHTS RESERVED * EULA: https://www.devexpress.com/Support/EULAs/DevExtreme.xml */ "use strict"; var baseIndicatorsModule = require("./base_indicators"), ...
// 二分查找 arr = [1,3,5,7,11,24,35,100] function binarySearch(arr,n){ var end = arr.length,start = 0,res while(end>start){ var mid = (end+start)>>1 if (arr[mid]>n) { end = mid-1 }; if (arr[mid]<n) { start = mid+1 }; if (arr[mid]==n) { res = mid break }; } if (res) { console.log(res) }els...
const { standardAction, standardActionMulti } = require('./utils/actions') module.exports = { getLabel: ({ decisions, tasks }) => { const { optedOut, bassReferralNeeded, bassAreaNotSuitable, curfewAddressRejected } = decisions const { bassRequest, curfewAddress } = tasks if (optedOut) { return 'Of...
var $ = require('jquery'); var alertDialog; var confirmDialog; var handleConfirm; function createAlert() { if (!alertDialog) { alertDialog = $( '<div class="modal fade w-win-dialog" tabindex="-1" role="dialog">' + '<div class="modal-dialog" role="document">' + '<div class="modal-content">'...
8.0-alpha2:0858d4ac02ba729b42e2da3d15f648f4871c9ac722e8d8d1179d340f2ef087b0
import * as React from 'react'; import Link from 'next/link' import Head from '../component/Head'; import css from 'next/css' import Menu2 from '../component/Menu2'; const styles = { header: css({ display: 'flex', marginBottom: 20, marginTop: 150 }) } export default class App extends React.Component {...
export const centerGameObjects = (objects) => { objects.forEach(function (object) { object.anchor.setTo(0.5) }) } export const initText = (objects) => { objects.forEach(function (text) { text.context.font = text.font text.context.fontSize = text.fontSize text.context.fill = text.fill text.cont...
'use strict'; module.exports = function(app) { // Root routing var core = require('../../app/controllers/core'); app.route('/').get(core.getIndex); app.route('/cms_login').post(core.CMSLogin); app.route('/threads').get(core.CMSList); app.route('/threads').post(core.CMSInsert); app.route('/threads...
/** * === Remote downloader/crawler service helpers === * * (c) FASAR Software 2017-2018 */ /** * Starts the service at.serviceUrl, assuming that the specified service * downloads a result page located at startUrl. * * This also delegates the clean-up phase of the HTML source code directly to the * specified...
var config = { channel: '#hackzogtumCoburg', server: 'irc.freenode.net', user: 'hackzog', user_password: '', }; module.exports = config;
//var visuals = ['counts_table','metadata_table','dheatmap','barcharts','piecharts','fheatmap', // 'dendrogram01','dendrogram03','pcoa','pcoa3d','geodistribution','adiversity','phyloseq_bars01', // 'phyloseq_hm02','phyloseq_nw03','phyloseq_ord04','phyloseq_tree05'] // 'dbrowser', // ...
cobalt.editor = (function(self) { function cobaltEditor(el, debug) { var editor = this; this.container = ( typeof el == 'string' ? document.querySelector(el) : el ); this.container.contentEditable = true; this.fragment = cobalt.fragment('',''); this.selection = cobalt....
// Get user activity counters across all modules // // Params: // - data.user_id (ObjectId) // - data.current_user_id (Object), same as env.user_info // // Returns: // - data.count (Number) // // Used in: // - member profile // - usercard // - admin interface (for multiple users) // 'use strict'; module.export...
/* Copyright (C) 2011-2014 Mattias Ekendahl. Used under MIT license, see full details at https://github.com/developedbyme/dbm/blob/master/LICENSE.txt */ dbm.registerClass("dbm.thirdparty.facebook.constants.PagePermissionTypes", null, function(objectFunctions, staticFunctions, ClassReference) { //console.log("dbm.third...
'use strict'; /** * push.js * ======= * A compact, cross-browser solution for Javascript desktop notifications * * Credits * ------- * Tsvetan Tsvetkov (ttsvetko) * Alex Gibson (alexgibson) * * License * ------- * * The MIT License (MIT) * * Copyright (c) 2015 Tyler Nickerson * * Permission is hereby ...
var functions = require('../../src/utils/functions'); describe('Functions module', function() { describe('cb function', function() { it('should map the input to a callback', function(done) { functions.cb(function(x) { return x * x }, function(err, x) { ...
import { clone, Command, CommandManager, Event, PersistenceService, serialize, Shortcut, ShortcutDispatcher, stringifyFactory } from '@qgrid/core'; export class PersistencePlugin { constructor(plugin, createDefaultModel) { const { model, observeReply } = plugin; this.plugin = plugin; this.service = new Persist...
import { fromJS } from 'immutable'; export const LOGIN_REQUEST = 'loginPage/LOGIN_REQUEST'; export const loginRequest = (username, password) => ({ type: LOGIN_REQUEST, username, password, }); export const LOGIN_SUCCESS = 'loginPage/LOGIN_SUCCESS'; export const loginSuccess = (user) => ({ type: LOGIN_SUCCESS, ...
'use babel' import { PJV } from 'package-json-validator' export default { name: 'Package.json validator', grammarScopes: ['source.json'], scope: 'file', lintsOnChange: true, // const VALID_SEVERITY = new Set(['error', 'warning', 'info']) severities: { errors: 'error', warnings: 'warning', ...
import url from 'url'; import browserSync from 'browser-sync'; import gulp from 'gulp'; import config from '../config'; gulp.task('browser-sync', () => { const DEFAULT_FILE = 'index.html'; const ASSET_EXTENSION_REGEX = new RegExp(`\\b(?!\\?)\\.(${config.assetExtensions.join('|')})\\b(?!\\.)`, 'i'); browserSync....
/*! * https://github.com/Starcounter-Jack/Fast-JSON-Patch * json-patch-duplex.js 0.5.0 * (c) 2013 Joachim Wester * MIT license */ var __extends = this.__extends || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; function __() { this.constructor = d; } __.prototype = b.prototype; ...
/* * Copyright (c) 2012 VMware, Inc. All Rights Reserved. * * 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, ...
import React, { Component } from 'react' import { graphql, compose } from 'react-apollo' import { RewritesList } from '../../../server/graphql/queries/rewrite' import Routes from '../routes/web' import { Header } from '../../components/web' class UniversalApp extends Component { componentWillMount() { } ...
var express = require('express'), handler = require('./handler'), routing = require('./routing'), app = express(); var routes = routing.routes, L = routes.length; for (var i = 0; i < L; i++){ if(routes[i].public === true){ app.use(express.static(__dirname + routes[i].path)); } else ...
/*! * @copyright@ */ // Disable some ESLint rules. camelcase (some "_" in names to indicate indexed variables (like in math)), valid-jsdoc (not completed yet), no-warning-comments (some TODOs are left) // All other warnings, errors should be resolved /*eslint-disable camelcase, valid-jsdoc, no-warning-comments */ /...
var fs = require('fs'); var requireDirectory = require('require-directory'); var routes = requireDirectory(module, './routes'); var stack = []; /** * Mount routes with directory. * * Examples: * * // mount routes in app.js * require('./config/routes')(app); * * @param {Object} app * @param {Object...
// Copyright Collab 2015-2016 define( { "myText2": "Dit is nog een test." } );
/** * @class InnoHelper * @static * Class provide methods to work with **Cloud**. * * @example * var inno = require('./inno-helper'); * * inno.setVars({ * var1: 'value1', * var2: 'value2' * }); * * inno.setVar('varName', process.env.VAR_NAME); * * app.pos...
var gulp = require('gulp'); var less = require('gulp-less'); var uglify = require('gulp-uglify'); var jshint = require('gulp-jshint'); var karma = require('gulp-karma'); var concat = require('gulp-concat'); var mochaPhantomJS = require('gulp-mocha-phantomjs'); var inject = require("gulp-inject"); require('gulp-release...
jQuery(document).ready(function ($) { $('.sp-video-gallery').sprintVideoGallery({ thumbnailsNavButtons: false, thumbnailsVisible: { 0: 3, 640: 4, 1280: 5 } }); });
version https://git-lfs.github.com/spec/v1 oid sha256:d5075871e3619581a6c0d81758e8076f22b3e4e11f6389f05b0723044c41a9a0 size 664
'use strict'; var key = require('./key') var d3 = require('d3') function Row (viz) { if (!(this instanceof Row)){ return new Row(viz) } this.viz = viz } Row.prototype.updateSel = function updateSel(sel, expanded, data){ var self = this var update = sel.selectAll('.cxviz-eventloop-row').data(data.event...
'use strict'; exports.Injector = require('./dist/injector.js').Injector; exports.Logger = require('./dist/logger.js').Logger; exports.Consumer = require('./dist/Consumer.js').Consumer; exports.Publisher = require('./dist/Publisher.js').Publisher; exports.AmqpMicro = require('./dist/AmqpMicro.js').AmqpMicro; exports.opt...
const webpack = require('webpack') const path = require('path') const fs = require('fs'); const nodeModules = {}; fs.readdirSync('node_modules') .filter(x => ['.bin'].indexOf(x) === -1) .forEach(mod => nodeModules[mod] = 'commonjs ' + mod); module.exports = { entry: './index.js', target: 'node', external...
import { CacheHCPerSecond, CacheLastHeavenlyChips, CacheTimeTillNextPrestige, } from '../../Cache/VariablesAndData'; import Beautify from '../BeautifyAndFormatting/Beautify'; /** * This function creates a header object for tooltips. * @param {string} text Title of header * @returns {object} div An object con...
// If a job with the same name, queue, and args is already in the delayed queue(s), do not enqueue it again var delayQueueLock = function(worker, func, queue, job, args, options){ var self = this; self.name = 'delayQueueLock'; self.worker = worker; self.queue = queue; self.func = func; self.job = job; se...
import React from 'react'; import Card from './Card'; export default function FriendProfile({ name, image }) { return ( <Card> <div className="friend-profile"> <img src={image} alt={name} /> <h3>{name}</h3> </div> </Card> ); }
"use strict"; var _ = require("underscore"); var util = require("substance-util"); var NodeSurfaceProvider = function(doc) { this.document = doc; this.nodeTypes = this.document.nodeTypes; this.nodeSurfaces = {}; this.listenTo(this.document, "operation:applied", this.onGraphUpdate); }; NodeSurfaceProvider.Pr...
if (typeof module !== 'undefined' && typeof module.exports !== 'undefined') { module.exports = defineProperty; } /** * Define non-enumarable getter property on object * * @param {object} object * @param {string} name * @param {function} method */ function defineProperty(object, name, method) { Object.de...
import React from 'react'; const InputNumber = ({ style = {}, className = '', min, max, value, onChange }) => { return ( <input style={{ ...style, ...styles.base }} className={ className } type="number" name="quantity" value={ value } onChange={ (e) => onChange(parseFloat(e.ta...
const React = require('react'); const ReactVoice = require('./ReactVoice'); ReactVoice.render( <> <alex>Hello</alex> <victoria>React Fiber</victoria> <kyoko>こんにちは React Reconciler</kyoko> </> );
import './style/index.js' import Progress from './progress' export default Progress
(function($) { var form = $('#elementForm'); var textarea = form.find('textarea'); codeMirror = CodeMirror.fromTextArea(textarea[0], { mode: { name: "xml", htmlMode: true, alignCDATA: true}, keyMap: 'sublime', styleActiveLine: true, matchBr...
/** * @author Jérémy BOUNY / https://github.com/jbouny | http://www.jeremybouny.fr * @file js/displayASCII.js * * Part of the project asw-tetris https://github.com/jbouny/asw-tetris * * Display the tetris game in an 2D View. */ var Display2D = { ms_Canvas: null, ms_Context: null, ms_Scale: 0, ms_Colors:...
import React from 'react'; import Button from 'rsuite/es/Button'; import ButtonToolbar from 'rsuite/es/ButtonToolbar'; import StyledButton from './StyledButton'; import 'rsuite/es/ButtonToolbar/styles/themes/default.less'; import 'rsuite/es/button/styles/themes/default.less'; function App() { return ( <div styl...
import EmberRouter from '@ember/routing/router'; import config from './config/environment'; const Router = EmberRouter.extend({ location: config.locationType, rootURL: config.rootURL }); Router.map(function() { this.route('commits'); this.route('ember-data-test'); }); export default Router;
/* * Copyright 2016 Hewlett-Packard Enterprise Development Company, L.P. * Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. */ define([ 'settings/js/settings-page', 'find/app/page/settings/validate-on-save-modal', 'find/app/util/confirm-vie...
auth.$inject = [ '$rootScope', 'userService', 'ngDialog', '$state' ]; export default function auth($rootScope, userService, ngDialog, $state) { $rootScope.$on('$stateChangeStart', (event, toState, toParams) => { if (!(toState.data && toState.data.public) && !userService.isAuthenticated()) { ...
function fireBotShell(BotTankN) { if(BotTankN.isMoving=="Right" && BotTankN.ShellLock==null) { BotTankN.ShellLock="Right"; BotTankN.isShellAlive=true; BotTankN.Shell_x_coord= BotTankN.x_coord; BotTankN.Shell_y_coord= BotTankN.y_coord; } if(BotTankN.isMoving=="Left" && BotTankN.ShellLock==null) ...
//~ name a663 alert(a663); //~ component a664.js
import styled from 'styled-components'; import colors from 'themes/colors'; const PreviewInfoRow = styled.div` font-size: 11px; font-weight: 600; color: ${colors.base2}; margin-bottom: 10px; `; export default PreviewInfoRow;
/*jslint unparam: true*/ /* * pingpong.js * * Copyright (c) 2012-2015 Maximilian Antoni <mail@maxantoni.de> * * @license MIT */ 'use strict'; var pingpong = require('../lib/pingpong'); pingpong.server(8000, function (err, server) { function broadcast(event, sender, message) { server.clients.forEach(funct...
var Plumage = require('plumage'); module.exports = Plumage.Router.extend({ controllerRoutes: [ ['', {controller: 'kitchenSinkController', method: 'home'}], [':section', {controller: 'kitchenSinkController', method: 'showSection'}], [':section/:example', {controller: 'kitchenSinkController', method: 'show...
(function() { "use strict"; angular .module('app.createEvent', [ 'app.core' ]); })();
/** @module ember @submodule ember-routing */ var Router = requireModule("router"); var get = Ember.get, set = Ember.set; var DefaultView = Ember._MetamorphView; require("ember-routing/system/dsl"); function setupLocation(router) { var location = get(router, 'location'), rootURL = get(router, 'rootURL'); ...
Ext.define('Entre.model.WeatherPoint', { extend: 'Ext.data.Model', fields: ['temperature', 'date'] });
/* eslint-disable key-spacing, no-multi-spaces */ module.exports = function (DB, { INTEGER, STRING, BOOLEAN }) { const Model = DB.define('city', { id: { type: INTEGER, allowNull: false, primaryKey: true, autoIncrement: true }, title: { type: STRING, allowNull: false }, display: { typ...
/** * juice * Copyright(c) 2011 LearnBoost <dev@learnboost.com> * MIT Licensed */ module.exports = exports = Property; /** * Module dependencies. */ var compare = require('./utils').compare /** * CSS property constructor. * * @param {String} property * @param {String} value * @param ...
/* * Dracula Graph Layout and Drawing Framework 0.0.3alpha * (c) 2010 Philipp Strathausen <strathausen@gmail.com>, http://strathausen.eu * Contributions by Jake Stothard <stothardj@gmail.com>. * * based on the Graph JavaScript framework, version 0.0.1 * (c) 2006 Aslak Hellesoy <aslak.hellesoy@gmail.com> * ...
'use strict'; // MODULES // var isNumber = require( 'validate.io-number-primitive' ), isArrayLike = require( 'validate.io-array-like' ), isTypedArrayLike = require( 'validate.io-typed-array-like' ), isMatrixLike = require( 'validate.io-matrix-like' ), ctors = require( 'compute-array-constructors' ), matrix = req...
(function () { "use strict"; // expects calls with the signature f(clb), // where clb has no argumnets. // executes all calls immediately and waits // for all of them to execute their callback. // once all calls executed their callback, // clb is executed. var parallel = function (calls...
/** * Wheel, copyright (c) 2020 - present by Arno van der Vegt * Distributed under an MIT license: https://arnovandervegt.github.io/wheel/license.txt **/ const testLogs = require('../../utils').testLogs; describe( 'Test with', () => { describe( 'Test simple record with', () =>...
var name = "A"; var obj = { name: "B", getName: function() { var that = this; //this是指obj這個物件(形成閉包) return function() { return that.name; }; } }; var result = obj.getName(); console.log(result()); //B
// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See https://js.arcgis.com/4.16/esri/copyright.txt for details. //>>built define({goToPreviousMonth:"\u0132_Go to previous month_____________________\u00e4",goToNextMonth:"\u0132_Go to next month_________________\u00e4",goToPreviousYear:...