code
stringlengths
2
1.05M
YUI.add('message-scroll',function(Y){ function MessageScroll (cfg){ cfg = cfg || {}; this._src = Y.one(cfg.src || '#messages'); this._cardWidth = cfg.width || 408; this._src.one('ul.active'); this._ul = this._src.one('ul.active'); this._cards = this._src.one('div.pop...
var gulp = require('gulp'), name = require('gulp-rename'), rework = require('gulp-rework'), reworkNPM = require('rework-npm'), reworkVars = require('rework-vars'), includer = require('gulp-htmlincluder'), classPrefix = require('rework-class-prefix'), media = re...
/* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ '...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj;...
/* global app */ app.factory('notifier', ['toastr', function (toastr) { 'use strict'; return { success: function (msg) { toastr.success(msg); }, error: function (msg) { toastr.error(msg); } }; }]);
/* * HTTP GET 요청을 보냅니다. */ global.GET = METHOD({ run : (urlOrParams, responseListenerOrListeners) => { //REQUIRED: urlOrParams //OPTIONAL: urlOrParams.isSecure HTTPS 프로토콜인지 여부 //OPTIONAL: urlOrParams.host //OPTIONAL: urlOrParams.port //OPTIONAL: urlOrParams.uri //OPTIONAL: urlOrParams.url 요청을 보낼 URL....
'use strict'; /** * Similar to `LevelUtil` just a concise place to pull all the different formulae * for stats */ const HealthPerStaminaTable = [ 0, 14, 14, 15, 16, 17, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 19, 19, 20, 20, 20, 20, 22, 22, 22, 22, 24, 24, 24, 24, 25, 25, 26, 26, 26, 26, 28, 28, ...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose")); ...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var react = require('react'); var core = require('primereact/core'); function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { ...
/* * * * (c) 2010-2021 Torstein Honsi * * License: www.highcharts.com/license * * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!! * * */ 'use strict'; import A from '../Animation/AnimationUtilities.js'; var animObject = A.animObject; import AxisDefaults from './AxisDefaults.js'; impo...
/* eslint-disable @typescript-eslint/naming-convention, consistent-return, jsx-a11y/no-noninteractive-tabindex */ import * as React from 'react'; import PropTypes from 'prop-types'; import { exactProp, elementAcceptingRef } from '@material-ui/utils'; import ownerDocument from '../utils/ownerDocument'; import useForkRef...
var gulp = require('gulp'); var gutil = require('gulp-util'); var notify = require('gulp-notify'); var notifier = require('../../helpers/notifier'); var changed = require('gulp-changed'); var cache = require('gulp-cached'); var tarsConfig = require('../../../tars-config'); var svg2png = require('gulp-svg2png'); /** *...
/*! * jQuery QueryBuilder 2.5.2 * Locale: Spanish (es) * Author: "pyarza", "kddlb" * Licensed under MIT (https://opensource.org/licenses/MIT) */ (function(root, factory) { if (typeof define == 'function' && define.amd) { define(['jquery', 'query-builder'], factory); } else { factory(ro...
'use strict'; angular.module('copayApp.services').factory('request', function() { return require('request'); });
'use strict'; const { MathFloor, NumberIsInteger, } = primordials; const { ERR_INVALID_OPT_VALUE } = require('internal/errors').codes; function highWaterMarkFrom(options, isDuplex, duplexKey) { return options.highWaterMark != null ? options.highWaterMark : isDuplex ? options[duplexKey] : null; } function ...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "default", { enumerable: true, get: function get() { return _ThemeProvider.default; } }); var _ThemeProvider = ...
import React from 'react' import * as common from 'test/specs/commonTests' import TableRow from 'src/collections/Table/TableRow' describe('TableRow', () => { common.isConformant(TableRow) common.rendersChildren(TableRow) common.implementsCreateMethod(TableRow) common.implementsTextAlignProp(TableRow, ['left'...
'use strict'; const _ = require('lodash'); const Utils = require('../../utils'); const debug = Utils.getLogger().debugContext('sql:sqlite'); const Promise = require('../../promise'); const AbstractQuery = require('../abstract/query'); const QueryTypes = require('../../query-types'); const sequelizeErrors = require('.....
/* * 日志记录 * @author MingLi (guomilo@gmail.com) * * window.debugMode 用于设置调试模式 debugMode=0 不记录错误信息。 debugMode=1 抛出异常,有浏览器处理。 debugMode=2 在控制台输出。 debugMode=3 弹出错误信息。 * */ /*依赖 util.js */ var IR = IR || {}; (function (IR) { var tools = IR.Util; window.debugMode = 2; function Log() { ...
"use strict"; /** * @class * Defines a http client to request mock data to use the web part with the local workbench */ var MockHttpClient = (function () { function MockHttpClient() { } /** * @function * Mock get SharePoint list request */ MockHttpClient.getLists = function (restUrl, o...
/* global chrome*/ /** * Content script injected into the app page by chrome, works in tandem with the * background-script to coordinate messaging between EmberDebug, EmberInspector and the * ClientApp. The content-script serves as a proxy between EmberDebug * and the background-script. * * Content scripts are ...
var app = require('express')(), steps = require('./steps'); app.use(require('hmpo-form-wizard')(steps, {}, { templatePath: 'priority-service' })); module.exports = app;
/* YUI 3.8.0pr2 (build 154) Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ YUI.add("event-hover",function(e,t){var n=e.Lang.isFunction,r=function(){},i={processArgs:function(e){var t=n(e[2])?2:3;return n(e[t])?e.splice(t,1)[0]:r},on:function(e,t,n,r){va...
/*! * jQuery JavaScript Library v2.0.2 -sizzle,-wrap,-offset * 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-06-03T15:27Z */ (function( windo...
(function (context) { "use strict"; var TheGraph = context.TheGraph; // Initialize configuration for the Port view. TheGraph.config.port = { container: { className: "port arrow" }, backgroundCircle: { className: "port-circle-bg" }, arc: { className: "port-arc" }, ...
// use jasmine to run this file // https://jasmine.github.io // // npm install -g jasmine // jasmine <this_file> const fibonacci = require('./mattgd_fibonacci'); describe("Fibonacci by mattgd", () => { // number1, number2, GDC fibonacciNumbers = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610]; [1,...
"use strict"; exports.intAdd = function (x) { return function (y) { /* jshint bitwise: false */ return x + y | 0; }; }; exports.intMul = function (x) { return function (y) { /* jshint bitwise: false */ return x * y | 0; }; }; exports.numAdd = function (n1) { return function (n2) { retur...
/* Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. This software is covered by CKEditor Commercial License. Usage without proper license is prohibited. */ CKEDITOR.plugins.setLang("specialchar","el",{euro:"Σύμβολο Ευρώ",lsquo:"Αριστερός χαρακτήρας μονού εισαγωγικού",rsquo:"Δεξιός χαρακτήρ...
!function(_,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],e):_.dayjs_locale_my=e(_.dayjs)}(this,function(_){"use strict";_=_&&_.hasOwnProperty("default")?_.default:_;var e={name:"my",weekdays:"တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗု...
// We use the same empty object to ref count the styles that don't need a theme object. const noopTheme = {}; export default noopTheme;
/** * ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components * @version v19.0.0 * @link http://www.ag-grid.com/ * @license MIT */ "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ...
/** * @license Highmaps JS v7.1.3 (2019-08-14) * * (c) 2009-2019 Torstein Honsi * * License: www.highcharts.com/license */ 'use strict'; (function (factory) { if (typeof module === 'object' && module.exports) { factory['default'] = factory; module.exports = factory; } else if (typeof defin...
/*global define*/ define([ './Cartesian2', './defaultValue', './defined', './defineProperties', './DeveloperError', './freezeObject' ], function( Cartesian2, defaultValue, defined, defineProperties, DeveloperError, ...
define( //begin v1.x content { "days-standAlone-short": [ "dom", "seg", "ter", "qua", "qui", "sex", "sáb" ], "field-weekday": "Dia da semana", "field-wed-relative+0": "esta quarta-feira", "field-wed-relative+1": "próxima quarta-feira", "dateFormatItem-GyMMMEd": "E, d 'de' MMM 'de' y G", "dateFormat...
/** * TouchableItem renders a touchable that looks native on both iOS and Android. * * It provides an abstraction on top of TouchableNativeFeedback and * TouchableOpacity. * * On iOS you can pass the props of TouchableOpacity, on Android pass the props * of TouchableNativeFeedback. */ import React, { Componen...
'use strict'; var should = require('should'), request = require('supertest'), app = require('../../server'), mongoose = require('mongoose'), User = mongoose.model('User'), Invoice = mongoose.model('Invoice'), agent = request.agent(app); /** * Globals */ var credentials, user, invoice; /** * Invoice routes t...
// This file has been autogenerated. exports.setEnvironment = function() { process.env['AZURE_BATCH_ACCOUNT'] = 'matthchreastus2'; process.env['AZURE_BATCH_ENDPOINT'] = 'https://matthchreastus2.eastus2.batch.azure.com'; process.env['AZURE_SUBSCRIPTION_ID'] = '2915bbd6-1252-405f-8173-6c00428146d9'; }; exports.sc...
(function () { 'use strict'; var post = document.querySelector('.post-content'); var progressBar = document.querySelector('.progress-bar'); if (post && progressBar) { var lastScrollTop = 0; var maxScrollTop = post.scrollHeight; var completed = progressBar.querySelector...
/*! jQuery UI - v1.10.4 - 2014-04-13 * http://jqueryui.com * Copyright 2014 jQuery Foundation and other contributors; Licensed MIT */ (function(t){t.effects.effect.clip=function(e,i){var s,n,a,o=t(this),r=["position","top","bottom","left","right","height","width"],l=t.effects.setMode(o,e.mode||"hide"),h="show"===l,c=e...
var mongoose = require('mongoose'), async = require('async'), config = require('./config'), mongoosastic = require('../lib/mongoosastic'), Schema = mongoose.Schema; var BookSchema = new Schema({ title: String }); BookSchema.plugin(mongoosastic); var Book = mongoose.model('Book', BookSchema); describe('Syn...
// Copyright 2013 The Closure Library Authors. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless requ...
'use strict'; /** * Module dependencies. */ var InvalidArgumentError = require('../../lib/errors/invalid-argument-error'); var Promise = require('bluebird'); var Request = require('../../lib/request'); var Response = require('../../lib/response'); var Server = require('../../lib/server'); var should = require('shou...
/** * jQuery EasyUI 1.5.2 * * Copyright (c) 2009-2017 www.jeasyui.com. All rights reserved. * * Licensed under the freeware license: http://www.jeasyui.com/license_freeware.php * To use it on other terms please contact us: info@jeasyui.com * */ (function($){ function _1(_2){ var _3=$.data(_2,"paginati...
/*global define*/ define([ 'Core/defineProperties', 'DataSources/ConstantProperty' ], function( defineProperties, ConstantProperty) { 'use strict'; return function(value) { var property = new ConstantProperty(value); defineProperties(property, { ...
// This file was automatically generated. Do not modify. 'use strict'; goog.provide('Blockly.Msg.hrx'); goog.require('Blockly.Msg'); Blockly.Msg.ADD_COMMENT = "Kommentar hinzufüche"; Blockly.Msg.CHANGE_VALUE_TITLE = "Neie Variable..."; Blockly.Msg.CLEAN_UP = "Clean up Blocks"; // untranslated Blockly.Msg.COLLAPSE...
(function() { 'use strict'; angular.module('app.data') .factory('postResource', postResource) .factory('postsUtils', postsUtils); postResource.$inject = ['$resource']; function postResource($resource) { return $resource('/api/posts/:id', {id: '@id'}, { update: { method: 'PUT' ...
/** * @fileoverview Test for no-function-overriding rule * @author Nicolas Feignon <nfeignon@gmail.com> */ "use strict"; let Solium = require("solium"); let userConfig = { rules: { "security/no-func-overriding": "error" } }; describe("[RULE] no-func-overriding: Acceptances", function() { it(...
version https://git-lfs.github.com/spec/v1 oid sha256:ae471c42434293ca02685108ce98e3c46c8686b57dd24c26f4d575dc1ddb702d size 1980
import Camera from './Camera'; export default Camera;
YUI.add('gallery-beacon-listener', function (Y, NAME) { "use strict"; /** * @example * var picListener = new Y.BeaconListener({ * beacons:'.pic-beacon' //listen for all pic-beacons in the viewport * }); * * picListener.on('found', function(e){ * e.beacon.src = e.beacon.getData('img-src'); * * new Y.Anim({ ...
'use strict'; const fs = require('fs'); const path = require('path'); const expect = require('chai').expect; const assert = require('chai').assert; const connectors = require('../../src/core/connectors'); const UrlMatch = require('../../src/core/background/util/url-match'); const PROP_TYPES = { allFrames: 'boolean...
exports.Parse = require('./lib/Parse');
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _defineProperty2 = require("babel-runtime/helpers/defineProperty"); var _defineProperty3 = _interopRequireDefault(_defineProperty2); var _extends2 = require("babel-runtime/helpers/extends"); var _extends3 = _interopRequireDefault(_e...
describe('my app', function() { 'use strict'; browser.get('index.html'); it('should automatically redirect to /homw when location hash/fragment is empty', function() { expect(browser.getLocationAbsUrl()).toMatch("/home"); }); });
(function () { var link = (function () { 'use strict'; var global = tinymce.util.Tools.resolve('tinymce.PluginManager'); var global$1 = tinymce.util.Tools.resolve('tinymce.util.VK'); var assumeExternalTargets = function (editorSettings) { return typeof editorSettings.link_assume_external_targets === 'boo...
SVG.extend(SVG.Element, { // Initialize local memory object _memory: {} // Remember arbitrary data , remember: function(k, v) { /* remember every item in an object individually */ if (typeof arguments[0] == 'object') for (var v in k) this.remember(v, k[v]) /* retrieve memory */ el...
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("vue")); else if(typeof define === 'function' && define.amd) define(["vue"], factory); else if(typeof exports === 'object') exports["Vuetify"] = factory(req...
import { get } from 'ember-metal/property_get'; import { set } from 'ember-metal/property_set'; import { addObserver } from 'ember-metal/observer'; import { observer as emberObserver } from 'ember-metal/mixin'; import { computed } from 'ember-metal/computed'; import { testBoth } from 'ember-metal/tests/props_helper'; i...
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"; import _extends from "@babel/runtime/helpers/esm/extends"; const _excluded = ["children", "className", "max", "spacing", "variant"]; import * as React from 'react'; import PropTypes from 'prop-types'; import { isFragmen...
module.exports={title:"Bamboo",slug:"bamboo",svg:'<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Bamboo icon</title><path d="M21.7142 13.6433h-4.9888a.651.651 0 00-.655.555 4.1139 4.1139 0 01-4.0619 3.5299l1.35 6.1728a10.3737 10.3737 0 009.0077-9.5447.651.651 0 00-.652-.713zm-8.6327-.158l...
var Checker = require('../../../lib/checker'); var assert = require('assert'); describe('rules/disallow-left-sticked-operators', function() { var checker; beforeEach(function() { checker = new Checker(); checker.registerDefaultRules(); checker.configure({ disallowLeftStickedOperators: [...
/** * @author mrdoob / http://mrdoob.com/ */ var Editor = function () { var SIGNALS = signals; this.signals = { // player startPlayer: new SIGNALS.Signal(), stopPlayer: new SIGNALS.Signal(), // actions playAnimation: new SIGNALS.Signal(), stopAnimation: new SIGNALS.Signal(), showDialog: new SI...
// Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- info: Operator uses GetValue es5id: 11.13.2_A2.1_T1.8 description: > Either Type is not Reference or GetBase is not null, check opeartor is "x >>>= y" ---*/ //CHECK#1 var x...
var db = require('level')('.cache') var readdirp = require('readdirp') var s3sync = require('./') // To be updated with your own configuration var syncer = s3sync(db, { key: process.env.AWS_ACCESS_KEY , secret: process.env.AWS_SECRET_KEY , bucket: process.env.AWS_BUCKET }) console.error('cache downloading...'...
/* LumX v1.7.31 (c) 2014-2018 LumApps http://ui.lumapps.com License: MIT */ (function() { 'use strict'; angular.module('lumx.utils.depth', []); angular.module('lumx.utils.event-scheduler', []); angular.module('lumx.utils.transclude-replace', []); angular.module('lumx.utils.utils', []); angul...
var supportsIteratorDestructuring = require("../../../helpers/supportsIteratorDestructuring"); var supportsObjectDestructuring = require("../../../helpers/supportsObjectDestructuring"); module.exports = function(config) { return !config.minimize && supportsIteratorDestructuring() && supportsObjectDestructuring(); };
/*! * ui-grid - v4.6.1 - 2018-07-04 * Copyright (c) 2018 ; License: MIT */ (function () { angular.module('ui.grid').config(['$provide', function($provide) { $provide.decorator('i18nService', ['$delegate', function($delegate) { $delegate.add('no', { headerCell: { aria: { de...
/** * This is a tweet list item used in the TweetList view. It has several components: * * - {@link #userName}: used to display the username of the tweet. * - {@link #text}: used to display the text of the tweet * - {@link #avatar}: used to displat the public avatarof the person who tweeted * - {@link #retwee...
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "AM", "PM" ], "DAY": [ "Sunday", ...
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'newpage', 'sl', { toolbar: 'Nova stran' });
import React from 'react' import * as common from 'test/specs/commonTests' import TableFooter from 'src/collections/Table/TableFooter' describe('TableFooter', () => { common.isConformant(TableFooter) it('renders as a tfoot by default', () => { shallow(<TableFooter />) .should.have.tagName('tfoot') })...
/** * Copyright (c) 2013-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ 'use strict'; var React; var ReactNoop; describe('ReactExpiration', () => { beforeEach(() => { jest.resetModules(); React = ...
/*! * Annotations Support for Patterns - v0.3 * * Copyright (c) 2013 Dave Olsen, http://dmolsen.com * Licensed under the MIT license * */ var annotationsPattern = { commentsOverlayActive: false, commentsOverlay: false, commentsOverlayElement: "", commentsEmbeddedActive: false, commentsEmbedded: ...
(function (factory) { if (typeof module === 'object' && typeof module.exports === 'object') { var v = factory(require, exports); if (v !== undefined) module.exports = v; } else if (typeof define === 'function' && define.amd) { define(["require", "exports", '@angular/core', '../../platform/ke...
L.Toolbar = L.Class.extend({ includes: [L.Mixin.Events], initialize: function (options) { L.setOptions(this, options); this._modes = {}; this._actionButtons = []; this._activeMode = null; }, enabled: function () { return this._activeMode !== null; }, disable: function () { if (!this.enabled()) { r...
define({scientificFormat:"#E0",infinity:"∞",superscriptingExponent:"×",list:"؛",percentSign:"‎%‎",minusSign:"‎-","decimalFormat-short":"000 ترليون",nan:"ليس رقمًا",plusSign:"‎+",currencyFormat:"¤#,##0.00;(¤#,##0.00)",perMille:"‰",group:",",percentFormat:"#,##0%","decimalFormat-long":"000 ترليون",decimalFormat:"#,##0.##...
/* Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'scayt', 'zh', { btn_about: '關於即時拼寫檢查', btn_dictionaries: '字典', btn_disable: '關閉即時拼寫檢查', btn_enable: '啟用即時拼寫檢查', btn_langs: '語言', btn_options: ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = gatherSequenceExpressions; var _getBindingIdentifiers = _interopRequireDefault(require("../retrievers/getBindingIdentifiers")); var _generated = require("../validators/generated"); var _generated2 = require("../builders...
version https://git-lfs.github.com/spec/v1 oid sha256:4a7d2b366baef54c731ed4ff3182a68eac3f16f4cf48d3d797ae7520ef9ffc4a size 6037
jQuery(function($){$.ui.dialog.wiquery.regional['fr']={okButton:'Ok',cancelButton:'Annuler',questionTitle:'Question',waitTitle:'Veuillez patienter',errorTitle:'Erreur',warningTitle:'Avertissement'};});
import React from 'react' import Content from './Content' import Types from './Types' import Variations from './Variations' const FeedExamples = () => ( <div> <Types /> <Content /> <Variations /> </div> ) export default FeedExamples
var gulp = require('gulp'); var concat = require('gulp-concat'); var uglify = require('gulp-uglifyjs'); var header = require('gulp-header'); var jshint = require('gulp-jshint'); var todo = require('gulp-todo'); var gulputil = require('gulp-util'); var moment = require('moment'); var pkg = require('./package.json'); v...
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof define === 'function' && define.amd ? define('Plyr', factory) : (global.Plyr = factory()); }(this, (function () { 'use strict'; var commonjsGlobal = typeof window !== 'undefined' ? window...
/** * @author Lee Stemkoski * * Note: Only works with recent Chrome build. * * Usage: * (1) create a global variable: * var gamepad = new GamepadState(); * (2) during main loop: * gamepad.update(); * (3a) check state of buttons: * gamepad.down("A") -- true for one update cycle after but...
/** * @author WestLangley / http://github.com/WestLangley * */ THREE.Line2 = function ( geometry, material ) { THREE.LineSegments2.call( this ); this.type = 'Line2'; this.geometry = geometry !== undefined ? geometry : new THREE.LineGeometry(); this.material = material !== undefined ? material : new THREE.Lin...
 /* * GET home page. */ exports.index = function(req, res){ res.render('index', { title: 'Express' }); };
var testCase = require('nodeunit').testCase, cron = require('../lib/cron'); module.exports = testCase({ 'test second (* * * * * *)': function(assert) { assert.expect(1); var c = new cron.CronJob('* * * * * *', function() { assert.ok(true); }, null, true); setTimeout(function() { c.sto...
import React from 'react'; import {assert} from 'chai'; import {shallow} from 'enzyme'; import List from 'src/List/List'; import ListItem from 'src/List/ListItem'; import makeSelectable from 'src/List/makeSelectable'; import injectTheme from '../fixtures/inject-theme'; import getMuiTheme from 'src/styles/getMuiTheme'; ...
'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...
/* Make sure that console is defined */ if(typeof console === "undefined") { this.console = { log: function() {}, warn: function() {}, info: function() {}, debug: function() {}, error: function() {} }; }
/* YUI 3.17.2 (build 9c3c78e) Copyright 2014 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ YUI.add("lang/datatype-date-format_ms",function(e){e.Intl.add("datatype-date-format","ms",{a:["Ahd","Isn","Sel","Rab","Kha","Jum","Sab"],A:["Ahad","Isnin","Selasa","Rabu","Kha...
// require json files var area = require('../../config/data/area'); var character = require('../../config/data/character'); var equipment = require('../../config/data/equipment'); var experience = require('../../config/data/experience'); var npc = require('../../config/data/npc'); var role = require('../../config/data/...
/*! * @atlassian/aui - Atlassian User Interface Framework * @version v7.4.0 * @link https://docs.atlassian.com/aui/latest/ * @license SEE LICENSE IN LICENSE.md * @author Atlassian Pty Ltd. */ // src/js/aui/jquery.js (typeof window === 'undefined' ? global : window).__fa4bdecddc16a5afcc6c3490bffabe5c = (function (...
import React, { PropTypes } from 'react'; import { css } from 'glamor'; import classes from './styles'; function FormNote ({ className, children, component: Component, html, ...props }) { props.className = css(classes.note, className); // Property Violation if (children && html) { console.error('Warning: Fo...
var MediaQuery = require('./MediaQuery'); var Util = require('./Util'); var each = Util.each; var isFunction = Util.isFunction; var isArray = Util.isArray; /** * Allows for registration of query handlers. * Manages the query handler's state and is responsible for wiring up browser events * * @constructor */ funct...
var should = require('should'), testUtils = require('../../utils'), // Stuff we are testing AppSettingModel = require('../../../server/models/app-setting').AppSetting, context = testUtils.context.admin; describe('App Setting Model', function () { // Keep the DB clean before(testUtils.teardown)...
"use strict"; /* eslint-disable no-new-func */ const acorn = require("acorn"); const findGlobals = require("acorn-globals"); const escodegen = require("escodegen"); // We can't use the default browserify vm shim because it doesn't work in a web worker. // From ES spec table of contents. Also, don't forget the Annex B...
/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; class ChunkRenderError extends Error { constructor(chunk, file, error) { super(); this.name = "ChunkRenderError"; this.error = error; this.message = error.message; this.details = error.stack; ...
/*! * Note: While Microsoft is not the author of this file, Microsoft is * offering you a license subject to the terms of the Microsoft Software * License Terms for Microsoft ASP.NET Model View Controller 3. * Microsoft reserves all other rights. The notices below are provided * for informational purposes only...
function settype(vr, type) { // discuss at: http://phpjs.org/functions/settype/ // original by: Waldo Malqui Silva (http://waldo.malqui.info) // improved by: Kevin van Zonneveld (http://kevin.vanzonneveld.net) // revised by: Brett Zamir (http://brett-zamir.me) // note: Credits to Crockford also // ...