code
stringlengths
2
1.05M
var gulp = require('gulp'), $ = require("gulp-load-plugins")(), express = require('express'), path = require('path'), tinylr = require('tiny-lr'), app = express(), server = tinylr(), deploy = require('gulp-gh-pages'), psi = require('psi'), fs ...
/* globals jasmine */ 'use strict'; /** * @returns {PlaybackSlotMock} */ function playbackSlotMock(props) { props = props || { entry: {}, video: {provider: 'mock', id: 'mock'} }; /** * @typedef PlaybackSlotMock * @name PlaybackSlotMock */ var PlaybackSlotMock = { /** * @return {E...
var productControl = function() {} productControl.prototype.proList = function( req,res,next ) { var ep = new EventProxy(); dataSource.getConn(ep); adminModule.proList(ep); ep.on("success",function( data ) { res.json(data).end(); }); ep.fail(function( err ){ next(err); }); } productControl.prototype.pro...
var searchData= [ ['newframe',['newFrame',['../classProcessingThread.html#a61e298bf34c03a0a1bb7b6c2785c0e27',1,'ProcessingThread']]], ['newimageprocessingflags',['newImageProcessingFlags',['../classMainWindow.html#a7b63ea5756cb708a00304c582f3d6105',1,'MainWindow']]], ['newimageprocessingsettings',['newImageProces...
declare module 'vscode' { /** * The version of the editor. */ declare export var version: string; /** * Represents a reference to a command. Provides a title which * will be used to represent a command in the UI and, optionally, * an array of arguments which will be passed to the command handler ...
@CustomEditor(EasyRoads3DTerrainID) class TerrainEditorScript extends Editor { function OnSceneGUI() { if(Event.current.shift && RoadObjectScript.ODQQCQCOQC != null) Selection.activeGameObject = RoadObjectScript.ODQQCQCOQC.gameObject; else RoadObjectScript.ODQQCQCOQC = null; } }
const webService={ post:(api='',data={})=>{ let request = new Request(`https://cex.io/api/${api}`, { method:"POST", mode: 'cors', redirect: 'follow', body:JSON.stringify({data}), headers: new Headers({ 'Content-Type': 'text/plain' }) }); return fetch(request).th...
"use strict"; exports.__esModule = true; exports.createSheet = createSheet; var _ExecutionEnvironment = _interopRequireDefault(require("fbjs/lib/ExecutionEnvironment")); var _createCSSStyleSheet = _interopRequireDefault(require("./createCSSStyleSheet")); var _createOrderedCSSStyleSheet = _interopRequireDefault(requ...
module.exports = function (assert, testuser, bcrypt) { describe("Bcrypt", function () { describe("Test user's password", function () { it("should match the encrypted password", function () { assert(bcrypt.compareSync(testuser.password, bcrypt.hashSync(testuser.password))); ...
// Copyright 2013 Voxer IP LLC. All rights reserved. var http = require("http"), https = require("https"), inherits = require("util").inherits; function KeepAliveAgent(options) { options = options || {}; http.Agent.call(this, options); this.keepAlive = true; this.max_reqs_per_socket = option...
/* * Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0 * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ 'use strict'; /** * @class * Initializes a new instance of the ApplicationHealthServiceHealthStatesItem class. * @constructor * @member {string} [servi...
module.exports={A:{A:{"2":"K D G E A B hB"},B:{"1":"J M H I","2":"2 C d"},C:{"1":"0 1 3 4 7 8 9 n o L q r s t u v w x y z HB GB BB CB FB","2":"2 6 eB DB F N K D G E A B C d J M H I O P Q R S T U V W X Y Z a b c e f g h i j k l m YB XB"},D:{"1":"0 1 3 4 7 8 9 u v w x y z HB GB BB CB FB RB MB LB kB JB NB OB PB","2":"2 6 ...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = CreateGroup; var _end = require('../lib/end'); var _end2 = _interopRequireDefault(_end); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function CreateGroup(arcgis) { ...
jQuery(document).ready(function() { // quick button var topBtn = jQuery('#quick-link'); topBtn.hide(); jQuery('.scroll-content').scroll(function () { if (jQuery(this).scrollTop() > 100) { topBtn.fadeIn(); } else { topBtn.fadeOut(); } }); jQuery(window).scroll(function () { if (...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); class Cache { constructor() { this._cache = {}; } put(key, value) { this._cache[key] = value; } get(key) { return this._cache[key]; } del(key) { delete this._cache[key]; } cle...
'use strict'; /** * Copyright 2015, Yahoo! Inc. * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms. */ var ReactIs = require('react-is'); var REACT_STATICS = { childContextTypes: true, contextType: true, contextTypes: true, defaultProps: true, displayNam...
var path = require('path'); var appRoot = 'src/'; var outputRoot = 'dist/'; module.exports = { root: appRoot, tsConfig: './tsconfig.json', source: appRoot + '**/*.js', html: appRoot + '**/*.html', style: 'styles/**/*.css', output: outputRoot, doc:'./doc', e2eSpecsSrc: 'test/e2e/src/*.js', e2eSpecsDi...
var RoomCache = require("../RoomCache"); module.exports = function(name, dispatcher, db){ return new RoomCache(dispatcher, db, { name: name }); };
var anim8 = require('../build/anim8js.js'); module.exports = { /** * Prepare for all tests in this file */ setUp: function(callback) { callback(); }, /** * Example test */ parse: function(test) { var path = anim8.path({type: 'point', point: 5}); test.ok( path instanceof anim8....
import React from 'react'; import Radio from '@material-ui/core/Radio'; import RadioGroup from '@material-ui/core/RadioGroup'; import FormControlLabel from '@material-ui/core/FormControlLabel'; import FormControl from '@material-ui/core/FormControl'; import FormLabel from '@material-ui/core/FormLabel'; function FormCo...
/** * validation for my page */ v.me = (function (v) { var Schema = v.Schema; return { update: new Schema({ _id: { required: true }, username: { required: true, minLength: 2 }, email: { ...
/* // See the README.md for info on this blueprint */ module.exports.name = 'repoBlueprint'; module.exports.singleton = true; module.exports.dependencies = ['Blueprint']; module.exports.factory = function (Blueprint) { 'use strict'; return new Blueprint({ get: { type: 'function', ...
var restify = require("restify"); var api = require("../api"); var db = require("../../db/db"); /** * Routes related to the RESTful manipulation of the Project database object. */ module.exports = function () { "use strict"; var Project = db.getProjectModel(); return [ { descriptio...
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ (function() { var ns = MOA.ns('SafeFlag.Utils'); var Ci = Components.interfaces; var Cc = Components.classes...
(function() { var strictMode = false; var checkVersion = Dagaz.Model.checkVersion; Dagaz.Model.checkVersion = function(design, name, value) { if (name == "three-crowns-invariant") { strictMode = (value == "strict"); } else { checkVersion(design, name, value); } } var CheckInvariants = Dagaz.Model....
module.exports = { style: ["src/scss/scoped.scss", "src/scss/global.scss"], bundleDir: "dist", bundleFileName: "yasr" };
import Vue from 'vue' import Promise from 'promise' import eventEmitter from './event-emitter' export default { create(model) { return new Promise((resolve, reject) => { Vue.http.post('api/index.php/cards', model).then((response) => { eventEmitter.emit('cards.created', response...
Clazz.declarePackage ("J.rendersurface"); Clazz.load (["J.render.MeshRenderer"], "J.rendersurface.IsosurfaceRenderer", ["java.lang.Boolean", "$.Float", "JU.V3", "JU.C", "$.Normix"], function () { c$ = Clazz.decorateAsClass (function () { this.iHideBackground = false; this.isBicolorMap = false; this.backgroundColix...
// flow-typed signature: d872365f23ace86d9c64d3592119507c // flow-typed version: <<STUB>>/jwt-decode_v2.2.0/flow_v0.43.0 /** * This is an autogenerated libdef stub for: * * 'jwt-decode' * * Fill this stub out by replacing all the `any` types. * * Once filled out, we encourage you to share your work with the ...
import _extends from "@babel/runtime/helpers/esm/extends"; import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties"; import * as React from 'react'; import PropTypes from 'prop-types'; import NativeSelectInput from './NativeSelectInput'; import withStyles from '../styles/withStyles'; im...
require("./_helper").assertVendor("traceur"); var fs = require("fs"); var _ = require("lodash"); require("./_transformation-helper")({ name: "traceur", loc: __dirname + "/../vendor/traceur/test/feature", ignoreSuites: [ // weird environmental issue make these hard to test "Modules", // these are ...
var kopf = angular.module('kopf', ['ngRoute', 'ntt.TreeDnD', 'ngAnimate', 'ui.bootstrap']); // manages behavior of confirmation dialog kopf.factory('ConfirmDialogService', function() { this.header = 'Default Header'; this.body = 'Default Body'; this.cancel_text = 'cancel'; this.confirm_text = 'confirm'; t...
var mkdirp = require('.').mkdirp; var path = require('path'); var fs = require('fs'); var test = require('tap').test; var ps = [ '', 'tmp' ]; for (var i = 0; i < 25; i++) { var dir = Math.floor(Math.random() * Math.pow(16,4)).toString(16); ps.push(dir); } var file = ps.join('/'); // a file in the way var it...
/** * Test dependencies */ const exec = require("child_process").exec const spawn = require("child_process").spawn const fs = require("fs") const test = require("tape") const utils = require("./utils") // I don't success to call the kill() process from node and both Travis CI and // Appveyor so we avoid this test ...
YUI.add('gallery-dialog', function(Y) { var YL = Y.Lang, LABEL_CANCEL = 'Cancel', LABEL_OK = 'OK', CALLBACK_CANCEL = 'cancel', CALLBACK_OK = 'ok', EMPTY_FN = function(){}, ATTR_CALLBACKS = 'callbacks', ATTR_DEFAULT_BUTTON = 'defaultButton', ATTR_DRAGGABLE = 'draggable', ATTR_RETURN_VAL...
import { Component, Input, ContentChildren, Directive, TemplateRef, ContentChild, Output, EventEmitter } from '@angular/core'; import { NgbTabsetConfig } from './tabset-config'; var nextId = 0; /** * This directive should be used to wrap tab titles that need to contain HTML markup or other directives. */ export var N...
import Collection from 'ember-cli-mirage/orm/collection'; import {module, test} from 'qunit'; module('Unit | Collection'); test('it can be instantiated', function(assert) { let collection = new Collection('plant'); assert.ok(collection); }); test('it cannot be instantiated without a modelName', function(assert)...
describe('typeahead tests', function () { var $scope, $compile, $document, $timeout; var changeInputValueTo; beforeEach(module('ui.bootstrap.typeahead')); beforeEach(module('template/typeahead/typeahead-popup.html')); beforeEach(module('template/typeahead/typeahead-match.html')); beforeEach(module(functio...
/*! * CanJS - 2.1.2 * http://canjs.us/ * Copyright (c) 2014 Bitovi * Mon, 16 Jun 2014 20:44:18 GMT * Licensed MIT * Includes: CanJS default build * Download from: http://canjs.us/ */ // # can/util/inserted // Used to alert interested parties of when an element is inserted into the DOM. // Given a list of elemen...
/* * An if */ module.exports = function(obj) { if(obj.type !== 'IF') { throw "This is not an if!"; } var expressionParser = require('./expression.js'), statementParser = require('./statement.js'), output, i; output = 'if (' + expressionParser(obj.condition) + ') {\n';...
/* * Copyright (c) 2019 - present Adobe. 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, co...
'use strict'; // Huts controller angular.module('huts').controller('HutsController', ['$scope', '$stateParams', '$location', 'Authentication', 'Huts', 'MyHuts', 'Servers', 'Products', 'Socket', function($scope, $stateParams, $location, Authentication, Huts, MyHuts, Servers, Products, Socket) { $scope.authenticat...
define({ "_widgetLabel": "Аналіз інцидентів", "_featureAction_SetAsIncident": "Задати як інцидент", "incident": "Інцидент", "weather": "Погода", "locate_incident": "Знайти інцидент", "clear_incidents": "Очистити інциденти", "reverse_geocoded_address": "Найближча адреса", "reverse_geocoded_error": "Не до...
version https://git-lfs.github.com/spec/v1 oid sha256:f467f9a89b6143287985a1c81cb478bf32ebe64da135be6e7c8c0ec0a1e3e4bd size 5532
module("core.Selection"); test('getRange--闭合选区的边界情况', function () { var div_new = document.createElement('div'); document.body.appendChild(div_new); var editor = new UM.Editor({'autoFloatEnabled': false}); stop(); setTimeout(function () { editor.render(div_new); editor.read...
import CreateAccount from "../create_account" import PropTypes from "prop-types" import React from "react" import UploadPhoto from "../upload_photo" import block from "bem-cn-lite" import { connect } from "react-redux" function UploadPhotoLanding({ isMobile, user }) { const b = block("consignments-submission-upload-...
var platform = window.navigator.platform; var cookieEnabled = window.navigator.cookieEnabled? "yes" : "no"; var doNotTrack = ""; if (window.navigator.doNotTrack != null && window.navigator.doNotTrack != "unspecified"){ if(window.navigator.doNotTrack == "1" || window.navigator.doNotTrack == "yes"){ doNotTrac...
'use strict'; var iteratorSymbol = require('es6-symbol').iterator , isArguments = require('../../function/is-arguments') , toPosInt = require('../../number/to-pos-integer') , callable = require('../../object/valid-callable') , validValue = require('../../object/valid-value') , isString ...
'use strict'; /** * This contains all the core commands that kalabox can run on every machine */ module.exports = function(kbox) { var _ = require('lodash'); var async = require('async'); var Promise = kbox.Promise; var util = require('../util.js')(kbox); // Display list of apps. kbox.tasks.add(functi...
/** * Copyright 2016 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 required by appli...
'use strict'; var isNumber = require('is-number'); /** * Returns the last item, or last `n` items of an array. * * ```js * last(['a', 'b', 'c', 'd', 'e'], 2) * //=> ['d', 'e'] * ``` * * @name .last * @param {Array} `array` * @param {Number} `n` Number of items to return, starting with the last item. * @ret...
'use strict' var should = require('should') var path = require('path') var generateApi = require('../../lib/commands/generateApi/generateApi') var fs = require('fs') var xml2js = require('xml2js') describe('generateApi with headers', function () { var options = { source: path.join(__dirname, '/openapi_files/hea...
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty"; import responsivePropType from './responsivePropType'; import { handleBreakpoints } from './breakpoints'; function getPath(obj, path) { if (!path || typeof path !== 'string') { return null; } return path.split('.').reduce(function (acc...
/* The MIT License (MIT) Copyright (c) 2017 Microsoft Corporation 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...
var nodemailer = require('../lib/nodemailer'); // Create a Direct transport object var transport = nodemailer.createTransport("Direct", {debug: true}); console.log('Direct transport configured'); // Message object var message = { // sender info from: 'Sender Name <sender@example.com>', // Comma separat...
'use strict'; const _ = require('lodash'); const plugin = require('../index'); /** * This module exports a function that enrich the interactive command line and return a promise * @returns {Promise} - a promise that resolve when the operation is done */ module.exports = (icli) => { // Build the lists of choices...
// Tour Image Carousel JS $.get("resources/templates/_carouselPrototype.html", function (data) { $.carouselPrototype = data; }); $.get("resources/templates/_loungeCarousel.html", function (data) { $.lounge = data; }); $.get("resources/templates/_softwareCarousel.html", functi...
module('lively.tests.NetworkTests').requires('lively.TestFramework').toRun(function() { TestCase.subclass('lively.tests.NetworkTests.URLTest', { testEnsureAbsoluteURL1: function() { var urlString = 'http://livelykernel.sunlabs.com/repository/lively-wiki/index.xhtml'; var result = URL.ensureAbsolut...
Package.describe({ name: 'gsma-3g', version: '0.0.1', }); Package.onUse(function(api) { api.versionsFrom('1.1.0.3'); api.use(['widget', 'underscore', 'country-info', 'momentjs:moment', 'gsma-data']); api.use(['templating', 'epoch'], 'client'); api.addFiles('gsma.js'); api.addFiles([ 'client/info.ht...
/*! * jQuery JavaScript Library v2.1.0 -dimensions,-effects,-effects/Tween,-effects/animatedSelector,-event-alias * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/licen...
'use strict'; var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; var React = require('react'); var StylePropabl...
var constants = require('./constants.js'); var Vector2 = require('ks-vector').Vector2; var RigidBody = require('./rigid-body.js'); var Contact = require('./contact.js'); var Geometry = require('./geometry.js'); var AABB = require('./aabb.js'); var Ball; var Matrix = require('./matrix23.js'); var Rectangle = function...
// Vex Flow // Mohit Muthanna <mohit@muthanna.com> // // A rendering context for SVG. // // Copyright Mohit Muthanna 2015 // @author Gregory Ristow (2015) /** @constructor */ Vex.Flow.SVGContext = (function() { function SVGContext(element) { if (arguments.length > 0) this.init(element); } // The measureText...
'use strict'; // Initialize App angular.module('ngDirectiveForms', []);
module.exports = { enable, disable } const electron = require('electron') const log = require('./log') let blockId = 0 /** * Block the system from entering low-power (sleep) mode or turning off the * display. */ function enable () { if (electron.powerSaveBlocker.isStarted(blockId)) { // If a power saver...
import { IfObservable } from './IfObservable'; export const /** @type {?} */ _if = IfObservable.create;
/**@license * __ _____ ________ __ * / // _ /__ __ _____ ___ __ _/__ ___/__ ___ ______ __ __ __ ___ / / * __ / // // // // // _ // _// // / / // _ // _// // // \/ // _ \/ / * / / // // // // // ___// / / // / / // ___// / / / / // // /\ // //...
/* * Globalize Culture tt * * http://github.com/jquery/globalize * * Copyright Software Freedom Conservancy, Inc. * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * This file was generated by the Globalize Culture Generator * Translation: bugs found in this file...
var fs = require('fs') var path = require('path') var mkdirp = require('mkdirp') var rimraf = require('rimraf') var mr = require('npm-registry-mock') var test = require('tap').test var common = require('../common-tap.js') var opts = { cwd: __dirname } var pkg = path.resolve(__dirname, 'adduser-legacy-auth') var outfi...
/*global define*/ /*jslint white:true,browser:true*/ define([ 'bluebird', 'kb_common/html', '../validation', 'common/events', 'common/dom', 'common/runtime', 'bootstrap', 'css!font-awesome' ], function ( Promise, html, Validation, Events, Dom, Runtime ) { ...
#!/usr/bin/env node 'use strict' const spawn = require('child_process').spawn const pkg = require('./package.json') const { dependencies, devDependencies } = pkg const installDependencies = (deps, command) => spawn( 'npm', [ 'install', command, ...Object.keys(deps) ], { stdio: 'inherit' } ) installDependencies(...
// The configuration for Require.js // that specifies where to load modules from. // // Curran Kelleher, August 2014 require.config({ paths: { model: '../../src/model', d3: '../../lib/d3/d3.min', barChart: '../d3BarChart/barChart' } });
/* * @name Rotate * @description Rotating a square around the Z axis. * To get the results you expect, send the rotate function angle * parameters that are values between 0 and PI*2 (TWO_PI which is * roughly 6.28). If you prefer to think about angles as degrees * (0-360), you can use the radians() method to conv...
var registerComponent = require('../../core/component').registerComponent; var shouldCaptureKeyEvent = require('../../utils/').shouldCaptureKeyEvent; var THREE = require('../../lib/three'); var controls = new THREE.VRControls(new THREE.Object3D()); module.exports.Component = registerComponent('keyboard-shortcuts', { ...
// Tutorial derived from http://blog.cognitect.com/blog/2016/10/5/interactive-development-with-clojureclause /* Problem We want a function that accepts a secret code and a guess, and returns a score for that guess. Codes are made of 4 to 6 colored pegs, selected from six colors: [r]ed, [y]ellow, [g]reen, [c]yan, [b]...
'use strict' module.exports = { extends: 'recommended', }
var renderer = PIXI.autoDetectRenderer(800, 600); document.body.appendChild(renderer.view); // create the root of the scene graph var stage = new PIXI.Container(); // load spine data PIXI.loader .add('dragon', '_assets/spine/dragon.json') .load(onAssetsLoaded); var dragon = null; function onAssetsLoaded(loa...
var searchData= [ ['load',['load',['../classep___object.html#a4dcaa8f72c8423d4de25a9e87fa6f3e4',1,'ep_Object']]], ['load_5ffrom_5fdb',['load_from_db',['../classep___object.html#a16e862a2b83507e636da4d2255935e78',1,'ep_Object']]], ['load_5flayer',['load_layer',['../classep___object.html#a2a98b8e18d13cdc780c0eb53a7...
'use strict'; var grunt = require('grunt'); /* ======== A Handy Little Nodeunit Reference ======== https://github.com/caolan/nodeunit Test methods: test.expect(numAssertions) test.done() Test assertions: test.ok(value, [message]) test.equal(actual, expected, [message]) test.notEqual(actua...
'use strict'; // smtp network server var net = require('./tls_socket'); var logger = require('./logger'); var config = require('./config'); var conn = require('./connection'); var out = require('./outbound'); var plugins = require('./plugins'); var constants = require('./constant...
'use strict'; module.exports = { post: jest.genMockFunction() };
/** * @fileoverview Tests for no-plusplus. * @author Ian Christian Myers */ //------------------------------------------------------------------------------ // Requirements //------------------------------------------------------------------------------ var eslint = require("../../../lib/eslint"), ESLintTester...
module.exports = function(math) { var util = require('../../util/index'), BigNumber = require('bignumber.js'), Complex = require('../../type/Complex'), Matrix = require('../../type/Matrix'), Unit = require('../../type/Unit'), collection = require('../../type/collection'), isNumbe...
var gulp = require('gulp'); var concat = require('gulp-concat'); var notify = require('gulp-notify'); var notifier = require('../../helpers/notifier'); var tarsConfig = require('../../../tars-config'); /** * conact data for modules to one file * @param {object} buildOptions */ module.exports = function(buildOption...
/*! * jQuery JavaScript Library v2.0.1 -event-alias,-effects,-offset,-deprecated * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2013-05-27T01:00Z ...
/* eslint-disable */ /* =========================================================== * bootstrap-modalmanager.js v2.2.5 * =========================================================== * Copyright 2012 Jordan Schroter. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file ex...
/** * sifter.js * Copyright (c) 2013 Brian Reavis & contributors * * 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 required by app...
/*** * Excerpted from "Mastering Dojo", * published by The Pragmatic Bookshelf. * Copyrights apply to this code. It may not be used to create training material, * courses, books, articles, and the like. Contact us if you are in doubt. * We make no guarantees that this code is fit for any purpose. * Visit http:/...
var outcome = require('../'); var onResult = outcome({ success: function() { console.log("SUCCESS") }, callback: function() { console.log("CB") } }); var onResult2 = outcome({ success: function() { console.log("SUCCESS2") }, callback: function() { console.log("CB2") } }); onResult(); onResult2();
define([ 'comindware/core', 'demoPage/views/ListCanvasView' ], function (core, ListCanvasView) { 'use strict'; return function () { // Most of this steps came from 'Basic Usage' example. // New steps required for group-by feature marked with 'NEW' // 1. Create Backbone.Mod...
'use strict'; angular .module( 'app', [ 'tc.chartjs', 'app.line', 'app.bar', 'app.radar', 'app.polararea', 'app.pie', 'app.doughnut' ] ); angular .module( 'app' ) .controller( 'HomeCtrl', HomeCtrl ); function HomeCtrl( $scope ) { $scope.data = { labels : [ '', '', '', '', '', '', '', '', ''...
$(function() { alert('Hello!'); })
(function($) { $.fn.lifestream.feeds.googleplus = function( config, callback ) { var template = $.extend({}, { posted: '<a href="${actor.url}">${actor.displayName}</a>' + ' has posted a new entry <a href="${url}" ' + 'title="${id}">${title}</a> <!--With--> ' + '${object.replies.totalItems} ...
'use strict'; var OPERATORS = { 'null':function(){return null;}, 'true':function(){return true;}, 'false':function(){return false;}, undefined:noop, '+':function(self, locals, a,b){ a=a(self, locals); b=b(self, locals); if (isDefined(a)) { if (isDefined(b)) { return a ...
/*jslint nomen: true, undef: true, sloppy: true, white: true, stupid: true, passfail: false, node: true, plusplus: true, indent: 2 */ // now with coverage suport var i18n = process.env.EXPRESS_COV ? require('../i18n-cov') : require('../i18n'), should = require("should"); describe('Object Notation', function () { ...
/*! * connect * Copyright(c) 2010 Sencha Inc. * Copyright(c) 2011 TJ Holowaychuk * Copyright(c) 2015 Douglas Christopher Wilson * MIT Licensed */ 'use strict'; /** * Module dependencies. * @private */ var debug = require('debug')('connect:dispatcher'); var EventEmitter = require('events').Ev...
require.paths.unshift("../../lib"); var sys = require('sys'), Buffer = require('buffer').Buffer, BSON = require('./bson').BSON, Buffer = require('buffer').Buffer, BSONJS = require('mongodb/bson/bson').BSON, BinaryParser = require('mongodb/bson/binary_parser').BinaryParser, Long = require('mongodb/goog/math...
__UNBOUND0__["__STRING0__"] = (function() {})();
const express = require("express") const router = express() const { createWebAPIRequest } = require("../util/util") router.get("/", (req, res) => { const cookie = req.get('Cookie') ? req.get('Cookie') : '' const data = { 'id': req.query.id, "csrf_token": "" } createWebAPIRequest( 'music.163.com', '...
export const EVENT_TARGET_SEPARATOR = ':'; export class EventConfig { constructor(fieldName, eventName, isLongForm) { this.fieldName = fieldName; this.eventName = eventName; this.isLongForm = isLongForm; } static parse(eventConfig) { var fieldName = eventConfig, eventName = e...