code
stringlengths
2
1.05M
/** * Created by ralphy on 24/01/17? * @const MANSION * @property MANSION.NOTES.octavo * The In-Octavo * Effect : Heal */ O2.createObject('MANSION.NOTES.octavo', [ { type: 'title', content: 'The Octavo' }, { type: 'text', content: 'The Octavo contains the great eight sp...
'use strict'; import {PassportService} from '../passport/passport.service'; import {Directive, ElementRef} from '@angular/core'; /* jshint ignore:start */ @Directive({ selector: '[canView]', directives: [], pipes: [], inputs: ['canView', 'and', 'or'], outputs: [], host: {} }) /* jshint ignore:e...
// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See https://js.arcgis.com/4.8/esri/copyright.txt for details. //>>built define({widgetLabel:"Basemap \u0917\u0948\u0932\u0930\u0940",noBasemaps:"\u0915\u094b\u0908 \u092c\u0947\u0938\u092e\u0948\u092a \u0909\u092a\u0932\u092c\u094d\u092...
// ESLint declarations: /* global describe, it */ /* eslint one-var: 0, semi-style: 0, no-underscore-dangle: 0, no-continue: 0 */ // -- Vendor Modules const { expect } = require('chai') ; // -- Local Modules // -- Local Constants // -- Local Variables // -- Private Functions ------------------------------...
import React, { Component } from 'react'; import { DatePickerIOS, StyleSheet, Switch, Text, View } from 'react-native'; import { Divider } from 'react-native-elements'; import constants from '../../../../config/appConstants'; import colors from '../../../../../design/index'; export default class extends Component { ...
/** * Defines the security for all the process that are NMI dependent */ function NMISecurity () { var me = this; /* * Define the key (CI) to be used */ me.key = 774352; /* * List of used ATs */ me.usedATs = []; return me; } /* * Authorize the app user request and action */ NMISecurity.prototype.a...
//**************************************************************************************************** // MODULE: http //**************************************************************************************************** //---------------------------------------------------------------------------------------------...
/** * Network APIs abstraction */ var AbstractNet = function(main_nutella) { this.subscriptions = []; this.callbacks = []; this.nutella = main_nutella; }; /** * This callback is fired whenever a message is received by the subscribe * * @callback subscribeCallback * @param {string} message - the re...
import React from 'react'; function HelloFunction() { return <h1>Hello Function</h1>; } export default HelloFunction;
module("edit"); test("load", function() { ok(system && system.bin, "System exists and has a bin"); ok(system.bin.edit, "Command 'edit' exists"); });
// 所有模块都通过 define 来定义 define(function(require, exports, module) { var a = {}; // 通过 require 引入依赖 require('jquery'); a.setnav = function() { // console.log("my ok"); $(".setnav").mouseover(function() { $(".bdpfmenu").css("display", "block"); }); $(".bdpfmenu").mouseleave(functio...
var path = require('path'); var fse = require('fs-extra'); const files = [ 'README.md', 'LICENSE' ]; Promise.all( files.map((file) => copyFile(file)) ) .then(() => createPackageFile()); function copyFile(file) { const libPath = resolveBuildPath(file); return new Promise((resolve) => { fse.copy( f...
import AvailabilityEditModule from './availabilityEdit' import AvailabilityEditController from './availabilityEdit.controller'; import AvailabilityEditComponent from './availabilityEdit.component'; import AvailabilityEditTemplate from './availabilityEdit.html'; describe('AvailabilityEdit', () => { let $rootScope, $c...
export setX, {boundSetX} from './setX' export setY, {boundSetY} from './setY' export setXY, {boundSetXY} from './setXY' export moveX, {boundMoveX} from './moveX' export moveY, {boundMoveY} from './moveY' export moveXY, {boundMoveXY} from './moveXY' export default from './Point'
export function isGet(request) { return request.method === 'GET'; } export function isPost(request) { return request.method === 'POST'; } export function isPath(request) { return request.path === '/graphql'; } export function required() { throw new Error('Required option is missing'); } const GRAPHIQL_VERSI...
class RacerPhysics { constructor(x, y, racer, trackinfo) { this.x = x; this.y = y; this.lap_count = 0; this.racer = racer this.trackinfo = trackinfo; this.velocity = new Phaser.Point(0, 0); this.acceleration = new Phaser.Point(0, 0); this.max_acceler...
var aThroneOfBlades = { name: 'A Throne of Blades', text: 'The holder of the Iron Throne token chooses whether a) everyone updates their Supply, ' + 'then reconcile armies b) everyone musters units, or c) this card has no effect.', advanceWildlings: true }; var clashOfKings = { name: 'Clash of K...
import $ from 'jquery'; import { TweenMax, Power2 } from 'gsap'; export default { init(namespace) { this.index = 0; this.length = 0; this.namespace = namespace; this.cacheDom(); this.bindEvents(); this.goTo(0); }, cacheDom() { this.next = $(`.${this.namespace}__next`); this.pre...
'use strict'; /** * @ngdoc overview * @name richlewismlApp * @description * # richlewismlApp * * Main module of the application. */ angular .module('richlewismlApp', [ 'angulartics', 'angulartics.google.analytics', 'ngAnimate', 'ngCookies', 'ngResource', 'ngRoute', 'ngSanitize', ...
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import keyMirror from 'fbjs/lib/keyMirror'; export default keyMirror({ SHOW_ALL: 'SHOW_ALL', SHOW_COMPLETED: 'SHOW_COMPLETED', SHOW_ACTIVE: 'SHOW_ACTIVE', });
/** * jspsych-video-keyboard-response * Josh de Leeuw * * plugin for playing a video file and getting a keyboard response * * documentation: docs.jspsych.org * **/ jsPsych.plugins["video-keyboard-response"] = (function() { var plugin = {}; jsPsych.pluginAPI.registerPreload('video-keyboard-response', 'sti...
// @flow import Icon from '@conveyal/woonerf/components/icon' import React, {Component} from 'react' import { Tabs, Tab, Grid, Row, Col, Button, ListGroup, ListGroupItem, Glyphicon, ButtonToolbar, Panel } from 'react-bootstrap' import {browserHistory, Link} from 'react-router' import {shallowEqua...
"use strict"; const mongodb = require('mongodb'); const data_1 = require('../../interface/data'); const PostsCollectionName = 'Posts'; class MongoPostAccess { constructor() { this.saveData = (data, collection) => { if (data.$loki) { data = collection.update(data); } ...
/* * jQuery OwlCarousel v1.3.2 * * Copyright (c) 2013 Bartosz Wojciechowski * http://www.owlgraphic.com/owlcarousel/ * * Licensed under MIT * */ /*JS Lint helpers: */ /*global dragMove: false, dragEnd: false, $, jQuery, alert, window, document */ /*jslint nomen: true, continue:true */ if (typeof Object.cr...
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl...
'use strict'; var express = require('express'), app = express(), path = require('path'), config = require('./config'); // 0. Misc configuration //////////////////////////////////////////////////////////////////////////////// app.use('/public', express.static(path.resolve(__dirname, './public'))); ap...
jQuery(function($){ });
import path from 'path'; /** * reset process.env */ function resetEnv() { delete process.env.HOME; delete process.env.USER; delete process.env.LOGNAME; delete process.env.AWS_REGION; delete process.env.AMAZON_REGION; delete process.env.AWS_CONFIG_FILE; delete process.env.AWS_PROFILE; } /** * Return...
Tempo.Model.Timesheet = Backbone.Model.extend({ initialize: function(options) { }, save: function(key, val, options) { options = options || {}; options.type = 'POST'; var attributes = this.attributes; this.url = Routing.generate('timesheet_create', { 'project': attributes...
import React from 'react'; import SelectField from 'material-ui/SelectField'; import MenuItem from 'material-ui/MenuItem'; class PlatformSelect extends React.Component{ constructor(props) { /* Note props is passed into the constructor in order to be used */ super(props); this.state = { platforms: ...
(function() { 'use strict'; angular.module('challenges') .controller('FillInController', FillInController); FillInController.$inject = ['verbs', 'VerbListRandomizer', '$state']; function FillInController(verbs, VerbListRandomizer, $state) { var fillInCtrl = this; var settings = { formToFillIn: 'Präteritum', ...
import bold from "./bold"; export default { ...bold, linkColor: "#3344dd", linkVisitedColor: "#8859b6", brandPrimary: "#007FAA", brandSecondary: "#5d445d", brandSuccess: "#008945", brandDanger: "#E8200D", brandMuted: "#687889", brandDisabled: "#ced4da" };
import { bcCalendarConfig } from './calendar.provider'; import { bcCalendarService } from './calendar.service'; import { bcCalendarDirective } from './calendar.directive'; import { bcMonthDirective } from './month.directive'; import { bcWeekDirective } from './week.directive'; import { bcDayDirective } from './day.dire...
'use strict'; module.exports = { root: true, env: { node: true, es6: true }, rules: { 'no-var': 1, "prefer-const": ["warn", { "destructuring": "all" }], 'no-const-assign': 2, 'prefer-spread': 1, 'prefer-template': 0, 'no-confusing-arrow': 2, 'no-dupe-class-members': 2, 'no-this-before-supe...
/*jslint node: true */ "use strict"; var uglifyJS = require("uglifyjs"), defaultOptions = { constants: true, sequences: true, conditionals: true }; function asStatement(node) { if (node instanceof uglifyJS.AST_Statement) { return node; } return new uglifyJS.AST_Simp...
import Button from './Button' import ListHandler from './ListHandler' import List4 from './List4' import ItemTransform2 from './ItemTransform2' import ListTransform2 from './ListTransform2' import AnimFLIP from './AnimFLIP' import WrapLayout from './WrapLayout' export { Button, ListHandler, List4, ItemTransfor...
/*! * jquery.event.drag - v 2.2 * Copyright (c) 2010 Three Dub Media - http://threedubmedia.com * Open Source MIT License - http://threedubmedia.com/code/license */ // Created: 2008-06-04 // Updated: 2012-05-21 // REQUIRES: jquery 1.7.x ;(function( $ ){ // add the jquery instance method $.fn.drag = function( str,...
/** * @param {number} k * @param {number[]} prices * @return {number} */ var maxProfit = function (k, prices) { if (k === 0) return 0; if (k >= ~~(prices.length / 2)) { // equivalent to Inf transactions let ansInf = 0; for (let i = 1; i < prices.length; ++i) { if (prices[i] > prices[i - 1]) { ...
'use strict'; angular.module('mean').config(['$locationProvider', function($locationProvider) { $locationProvider.html5Mode({ enabled: true, requireBase: false }); } ]); angular.element(document).ready(function() { //Then init the app ...
// Disc #1 has 13 positions; at time=0, it is at position 1. // Disc #2 has 19 positions; at time=0, it is at position 10. // Disc #3 has 3 positions; at time=0, it is at position 2. // Disc #4 has 7 positions; at time=0, it is at position 1. // Disc #5 has 5 positions; at time=0, it is at position 3. // Disc #6 has 17...
import React from 'react'; import {mount} from 'enzyme'; import Commands, {Command} from '../../lib/atom/commands'; import RefHolder from '../../lib/models/ref-holder'; describe('Commands', function() { let atomEnv, commands; beforeEach(function() { atomEnv = global.buildAtomEnvironment(); commands = ato...
import DataType from 'sequelize'; import Model from '../sequelize'; const Place = Model.define('Place', { id: { type: DataType.INTEGER, autoIncrement: true, primaryKey: true }, uuid: { type: DataType.UUID, defaultValue: DataType.UUIDV1, unique: true, }, name: { type: Data...
!function(a,b){"use strict";var c=b.module("gs.rails-form-for",[]);c.directive("formFor",["$cookies","$compile","toSnakeCase",function(a,c,d){function e(a){var b=a[a.length-1];return"s"===b}return{restrict:"A",require:"?form",link:function(b,d,e,f){var g,h,i,j=a["XSRF-TOKEN"];f&&j&&(g=c('<div style="display:none"></div...
'use strict'; var util = require('util'); var Item = require('./item'); var EMPTY = new Buffer(0); var constants = require('constants'); /** * A directory. * @constructor */ function File() { Item.call(this); /** * File content. * @type {Buffer} */ this._content = EMPTY; } util.inherits(File, Ite...
var structa4l__channels__desc = [ [ "chans", "structa4l__channels__desc.html#ab151a433e82972f96e474a1c782e6d1e", null ], [ "length", "structa4l__channels__desc.html#a243b1f336bb8963b6bd55b7b6d202700", null ], [ "mode", "structa4l__channels__desc.html#a8e19986b80e020e6c419ff0ddd87aa31", null ] ];
import 'babel-polyfill' import {expect} from 'chai' import Vue from 'vue' import Vuex from 'vuex' import {createAction} from '../src/index' Vue.use(Vuex) const fetchUserFailApi = function (id) { return Promise.reject(new Error(id + ' not found')) } const fetchUserApi = function (id) { return Promise.resolve({id...
'use strict'; const path = require('path'); const sep = path.sep; const assert = require('assert'); const isWindows = () => process.platform === 'win32' || path.sep === '\\'; const mm = require('..'); describe('negation', () => { describe('posix paths', () => { it('should support negating with single *', () => ...
if (Meteor.isClient) { // counter starts at 0 Session.setDefault('counter', 0); Template.hello.helpers({ counter: function () { return Session.get('counter'); } }); Template.hello.events({ 'click button': function () { // increment the counter when button is clicked Session.set...
// Don't edit this file: it's used for testing. var util = require('util'); var tasks = require('./tasks.js'); var PORT = 8080; var RESULTS_FOLDER = 'results'; var hooks = { // Your hooks go here. // Check out testing_config.js for hook suggestions. // Don't edit testing_config.js; it's used for running tests!...
function Functor() { var funcs = []; var f = function Functor$fn() { for (var i = 0; i < funcs.length; ++i) { var item = funcs[i]; // Don't re-run one-time subscriptions that have already been applied. if (item.applied === true) { continue; } // Ensure that there is either no filter or the fil...
;(function($) { /* global QUnit: false */ QUnit.module("jQuery.image"); QUnit.asyncTest("load image with default size", 2, function(assert) { $.image("test-1x1.png").done(function(img) { assert.equal(img.width, 1); assert.equal(img.height, 1); QUnit.start(); ...
/** * Created by peter on 9/9/16. */ // ==UserScript== // @name Elbow Grease // @namespace http://v.numag.net/grease/ // @description grab torrents for direct download // @include http://bt.aisex.com/bt/htm_data/* // ==/UserScript== var elmTopic = document.getElementById('read_tpc');...
'use strict'; System.register(['./repeat-utilities', 'aurelia-binding'], function (_export, _context) { "use strict"; var createFullOverrideContext, updateOverrideContexts, updateOverrideContext, indexOf, mergeSplice, ArrayRepeatStrategy; return { setters: [function (_repeatUtilities) { createFul...
exports.definition = { hasMany: function(name, options) { options = options || {} if (!options.from) options.from = 'dn' const definition = this const utils = definition.store.utils options.setter = options.setter || function(records) { if (records === this.relations[name]) r...
/** * Created by Matt on 8/21/2016. */ module.exports = require('./env/' + process.env.NODE_ENV + '.js');
'use strict'; var defaults = require('./defaults'); module.exports = require('yargs') .usage('Usage: $0 [options]') .option('release-as', { alias: 'r', describe: 'Specify the release type manually (like npm version <major|minor|patch>)', requiresArg: true, string: true, global: true }) .op...
define(function(require) { 'use strict'; var Util = require('../Util'); var Events = require('../event/Events').TOUCH; var TouchAreaAdapter = require('adapter/toucharea'); var Tracker = require('../event/Tracker'); var trigger = require('../Controller').trigger; /** * Touch event nam...
var main_8cpp = [ [ "setup", "main_8cpp.html#a4fc01d736fe50cf5b977f755b675f11d", null ], [ "loop", "main_8cpp.html#afe461d27b9c48d5921c00d521181f12f", null ], [ "main", "main_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4", null ], [ "servicePortMap", "main_8cpp.html#a188d80a303c3337d48f1b0577ae57dc0", nul...
/** * Lo-Dash 2.3.0 (Custom Build) <http://lodash.com/> * Build: `lodash modularize modern exports="node" -o ./modern/` * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/> * Based on Underscore.js 1.5.2 <http://underscorejs.org/LICENSE> * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and In...
/*! * froala_editor v1.2.2 (http://editor.froala.com) * Copyright 2014-2014 Froala */ /** * Montenegrin. */ $.Editable.LANGS['me'] = { translation: { "Bold": "Bold", "Italic": "Italic", "Underline": "Podvu\u010deno", "Strikethrough": "Prekri\u017eano", "Font Size": "Veli\u010...
/* * Dependencias */ var gulp = require('gulp'), concat = require('gulp-concat'), uglify = require('gulp-uglify'); /* * Configuración de la tarea 'demo' */ gulp.task('concat-files', function(){ gulp.src('source/*.js') .pipe(concat('lab31.min.js')) .pipe(uglify()) .pipe(gulp.dest('build/')) });
'use strict'; angular.module('angular-point-seed') .run(function (userSettingsModel) { console.log('Injector done loading all modules.'); });
var ChatAppDispatcher = require('../dispatcher/ChatAppDispatcher'), ChatConstants = require('../constants/ChatConstants'), ChatMessageUtils = require('../utils/ChatMessageUtils'), EventEmitter = require('events').EventEmitter, assign = require('object-assign'); var ActionTypes = ChatConstants.ActionTyp...
'use strict'; describe('HydrantWiki.version module', function() { beforeEach(module('HydrantWiki.version')); describe('interpolate filter', function() { beforeEach(module(function($provide) { $provide.value('version', 'TEST_VER'); })); it('should replace VERSION', inject(function(interpolateFil...
var window = self; importScripts('htdocs/q.js'); importScripts('htdocs/db.js'); importScripts('storage.js'); onmessage = function(e){ // postMessage(data); (new Storage()).connect().then(function(db){ var task = new Rule(e.data, {'global': self, 'db': db}); task.prepare().then(function(){ task.run(); }); }...
/*! * node-minify * Copyright(c) 2011-2022 Rodolphe Stoclin * MIT Licensed */ /** * Module dependencies. */ import chalk from 'chalk'; import { compress } from './compress'; import { spinnerStart, spinnerStop, spinnerError } from './spinner'; /** * Module variables. */ let silence = false; /** * Run one com...
'use strict'; var ViewModel = function () { var self = this; self.token = ko.observable(window.token); self.newPassword = ko.observable(); self.confirmPassword = ko.observable(); self.secondsToRedirectText = ko.observable('10 seconds'); self.submit = function () { app.ui.loading(); ...
// DON'T TOUCH THIS UNLESS YOU REALLY KNOW WHAT YOU'RE TRULY DOING var DoubleX_RMMV = DoubleX_RMMV || {}; DoubleX_RMMV["Superlative ATB Unit Tests"] = "v0.10a"; // /*: * @plugindesc The unit test plugin of DoubleX RMMV Superlative ATB * @author DoubleX * @help * You can use the following script call to ru...
module.exports = { nodeGypPost: './demo' };
import { SimpleSchema } from 'meteor/aldeed:simple-schema'; import { ValidatedMethod } from 'meteor/mdg:validated-method'; import Runs from './run.model.js'; import rateLimit from '../../modules/rate-limit.js'; export const upsertRun = new ValidatedMethod({ name: 'runs.upsert', validate: new SimpleSchema({ _id...
"use strict"; var transitionHook_1 = require("./transitionHook"); /** * This class defines a type of hook, such as `onBefore` or `onEnter`. * Plugins can define custom hook types, such as sticky states does for `onInactive`. * * @interalapi */ var TransitionEventType = (function () { function TransitionEventTy...
/* @requires shp-record */ // Read data from a .shp file // @src is an ArrayBuffer, Node.js Buffer or filename // // // Example: iterating using #nextShape() // var reader = new ShpReader(buf), s; // while (s = reader.nextShape()) { // // process the raw coordinate data yourself... // var coords = s...
"use strict"; var commander = require('../config/commander'); var profile = require("../config/profile"); var fs = require("fs"); var node_path = require("path"); var semver = require('semver'); // {"request/0.1.0":[func,func,func]} var installing_mods = {}; var REGEX_START_TILDE = /^~/; function validate_format(p...
var test = require('tape') var closest = require('./') var ndclosest = require('./nd') test('it works', function (assert) { var array = [2, 10, 11, 12.3, 23, 33, 50, 1204, 1e9] assert.equal(closest(40, array), 33) assert.equal(closest(40, array, true), 5) assert.end() }) test('it works with negatives and floa...
'use strict'; describe('myApp.login module', function() { beforeEach(module('myApp.login')); describe('login controller', function() { it('should ....', inject(function($controller, $rootScope) { // spec body var loginCtrl = $controller('LoginCtrl', {$scope: $rootScope.$new(), $rootScope: $rootScope}); ...
const path = require('path'); const requireg = require('requireg'); const Helper = require('../helper'); const GraphQL = require('./GraphQL'); /** * Helper for managing remote data using GraphQL queries. * Uses data generators like [rosie](https://github.com/rosiejs/rosie) or factory girl to create new record. * ...
module.exports = function(locals) { switch (locals.path) { case '/': { return locals.template({ path: locals.path }); } default: { return '404'; } } };
'use strict'; // Setting up route angular.module('patrons').config(['$stateProvider', function($stateProvider) { // Articles state routing $stateProvider. state('listPatrons', { url: '/patrons', templateUrl: 'modules/patrons/views/list-patrons.client.view.html' }). state('createPatron', { url: '/pa...
'use strict'; /** * Allows all Modules to use the same EventEmitter, but automatically * namespace their events with the module name. */ var delimiter = '.'; var EventEmitter2 = require('eventemitter2').EventEmitter2; var emitter = new EventEmitter2({ wildcard: true, delimiter: delimiter, // set this to `tr...
"use strict"; /* https://github.com/ScottLogic/d3fc/blob/master/src/indicator/algorithm/calculator/relativeStrengthIndex.js The MIT License (MIT) Copyright (c) 2014-2015 Scott Logic Ltd. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files ...
class msxml2_xmlhttp { constructor() { // IDispatch onreadystatechange () {set} this.onreadystatechange = undefined; // int readyState () {get} this.readyState = undefined; // Variant responseBody () {get} this.responseBody = undefined; // Variant responseS...
var preflop = require('./preflop'); var isPremiumHand = function(hole_cards){ var r = hole_cards[0].rank; var r2 = hole_cards[1].rank; var first = (hole_cards[0].rank==="10" || r==="J" || r==="Q" || r==="K" || r==="A"); var second = (r2==="10" || r2==="J" || r2==="Q" || r2==="K" || r2==="A"); if(...
define({ 'getUserLocation' : 'Get the users current location' });
import _ from 'lodash' import './static/css/common.css' import './style.css' import logo from './static/loops_logo_256.png' //import banner from 'static/banner.png' // 直接写static,跳过了images文件夹,是因为在配置文件中设置了alias.static: path.resolve(__dirname, './src/static/images'), //import banner from './static/images/banner.png' impor...
'use strict'; describe('Controller: PetindexctrlCtrl', function () { // load the controller's module beforeEach(module('yoAngularIonicApp')); var PetindexctrlCtrl, scope; // Initialize the controller and a mock scope beforeEach(inject(function ($controller, $rootScope) { scope = $rootScope.$new();...
/* */ 'use strict' module.exports = affineHull var orient = require('robust-orientation') function linearlyIndependent(points, d) { var nhull = new Array(d+1) for(var i=0; i<points.length; ++i) { nhull[i] = points[i] } for(var i=0; i<=points.length; ++i) { for(var j=points.length; j<=d; ++j) { ...
const webpack = require('webpack'), path = require('path'), buildPath = path.resolve(__dirname, '.static'), nodeModulesPath = path.resolve(__dirname, 'node_modules'), TransferWebpackPlugin = require('transfer-webpack-plugin'); const config = { entry: './client/index.jsx', resolve: { extensions: ['.jsx', '', '...
/***Generated Resource **/ var resource = require('resource'); var Table = resource.define('Table'); Table.schema.description = "A table on the page."; Table.persist('fs'); Table.property('additionalType', { "name" : "additionalType", "displayName" : "Additional Type", "description" : "An additional type...
/* gltf.js - a simple glTF loader The MIT License (MIT) Copyright (c) 2013 Rémi Arnaud - Advanced Micro Devices, Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, inc...
// This example overrides built-in !!int type to return BigInt instead of a Number // 'use strict'; /*global BigInt*/ /*eslint-disable no-console*/ const util = require('util'); const yaml = require('../'); // keep most of the original `int` options as is let options = Object.assign({}, yaml.types.int.options); o...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; class DefaultPager extends Component { constructor(props){ super(props); this.changePage = this.changePage.bind(this); this.changePageSize = this.changePageSize.bind(this); } changePage(e){ this...
var socket = io.connect(), player = document.getElementById("player"); var title; socket.on('handshake', function (data) { console.log("connected"); title = data.title; document.title = data.title; document.getElementsByTagName("h1")[0].innerHTML = data.title; finishLoading(); socket.emit('handshake', { }); })...
"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { t...
var rewire = require("rewire"); var MongoDBStrategy = rewire('../lib/mongo-strategy'); var config = { dbUrl: 'https://api.mongolab.com/api/1/databases', dbName: 'ascrum', dbCollection: 'users', apiKey: '4fb51e55e4b02e56a67b0b66', testId : '5054bb33e4b024584b8f3419', testUser: { _id: { '$oid': '5054bb33e4b0...
var rateCurve = (function (){ var rateCurve = function (referenceDate, quotedInstruments){ this.referenceDate = referenceDate; this.adjustfor(instruments); } rateCurve.prototype.adjustfor = function (quotedInstruments){ for (var i = 0; i<quotedInstruments.length;i++){ var instrument = quotedInstruments[...
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M21 11H6.83l3.58-3.59L9 6l-6 6 6 6 1.41-1.41L6.83 13H21z" /> , 'KeyboardBackspace');
/* eslint-disable no-unused-expressions */ import chaiAsPromised from 'chai-as-promised'; import chai, { expect } from 'chai'; import sinon from 'sinon'; import forEach from 'lodash/forEach'; import System from '../../src/system'; import EntityManager from '../../src/entity-manager'; import Entity from '../../src/entit...
/** * services calls for login * */ //angular.module('cockpit.service').factory('LoginService', LoginService); //LoginService.$inject = [ '$q', '$rootScope', '$http', '$filter']; angular.module('cockpit.services', []) .factory('LoginService', function($http) { return { login : function(authToken) { var...
import Deckster from 'deckster'; /** * Represents a set of cards which holds all the available card types of the standard 32-card deck. */ export default class Standard32CardDeck extends Deckster.Deck { /** * Creates a new card deck with the cards of the standard 32-card deck. */ constructor() { super(...
/* globals FileUpload, WebApp, Cookies */ var protectedFiles; RocketChat.settings.get('FileUpload_ProtectFiles', function(key, value) { protectedFiles = value; }); WebApp.connectHandlers.use('/file-upload/', function(req, res, next) { var file; var match = /^\/([^\/]+)\/(.*)/.exec(req.url); if (matc...