code
stringlengths
2
1.05M
/*eslint-disable no-console */ 'use strict'; var ng = require('../helpers/ng'); var tmp = require('../helpers/tmp'); var Promise = require('angular-cli/ember-cli/lib/ext/promise'); var fs = require('fs'); var path = require('path'); var chai = require('chai'); var sinon = require('sinon'); var ExecStub = require('../h...
define([ 'underscore', 'backbone', 'snapjs', 'text!template_path/HomeTemplate.html' ], function(_, Backbone, Snap, HomeTemplate) { var HomeView = Backbone.View.extend({ initialize: function(options) { this.render = _.bind(this.render, this); }, render: function()...
/*global define*/ define([ './AxisAlignedBoundingBox', './Cartesian2', './Cartesian3', './defaultValue', './defined', './defineProperties', './DeveloperError', './Ellipsoid', './IntersectionTests', './Matrix4', './Plane', '....
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon")); var _jsxRuntime = require("react/jsx-runtime")...
/** captcha.js */ onready(function(){ var e = document.getElementById("captcha_img"); if(!e) return; // no captcha var original_url = e.src; e.onclick = function() { e.src = original_url + "?t="+new Date().getTime(); } });
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ // Renderers that don't support persistence // can re-export everything from this module. function shim(...args: any)...
// This version reads and converts PDF page by page const path = require('path') const util = require('util') const async = require('async') const fs = require('fs') // const replace = require('replace') const logger = require(path.resolve(__dirname, 'logging.js'))('out.log') const BOOK = 'r_6' const SECTIONS = [ {...
'use strict'; var runMochaJSON = require('./helpers').runMochaJSON; var invokeMocha = require('./helpers').invokeMocha; var MULTIPLE_DONE = require('../../lib/errors').constants.MULTIPLE_DONE; describe('multiple calls to done()', function() { var res; describe('from a spec', function() { before(function(done)...
var Geometry = require('../c2d/Geometry'); /** * Mutable storage for sets of 3d points * * Can be used for calculation of bounds * Doesn't have anything related to particular DisplayObject * Renderers can use it to upload data to vertex buffer or to copy data to other buffers * * @class * @extends PIXI.Geometr...
/* global hexo */ 'use strict' const { resolve, basename } = require('path') const { readFileSync } = require('fs') const cheerio = require('cheerio') const fullUrlFor = hexo.extend.helper.get('full_url_for').bind(hexo) const localizedPath = ['tutorials', 'filters', 'tags', 'playground', 'api'] hexo.extend.helper.r...
define(["bundles/framework/bundle/mapwmts/service/WmtsLayerModelBuilder"], function() { Oskari.cls('Oskari.mapframework.wmts.service.WmtsLayerModelBuilder').category({ /** * parses any additional fields to model */ parseLayerData: function(layer, mapLayerJson, maplayerService) { ...
var util = require('util'); var webrtc = require('./adapter'); //var Datastore = require('nedb'); function Arty(options) { if (!options) { options = {}; } this.options = options; this.seeds = options.seeds || ['ws://localhost:20500']; this.peers = {}; this._pendingDataChannels = {}; this._dataChanne...
import Adapter from 'restle-memory'; import Router from '../router'; import express from 'express'; export default (instance, options = {}) => { Object.assign(instance, { models: {}, adapter: options.adapter || new Adapter(), router: new Router(options), app: express(), namespace: options.namespa...
function pesan_err(pesan) { var temp = '<div class="alert alert-warning alert-dismissable"><button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button><h4><i class="icon fa fa-ban"></i> Error</h4> ' + pesan + ' </div>'; return temp; } function pesan_succ(pesan) { var temp =...
if (typeof Promise === 'undefined') { require('promise/lib/rejection-tracking').enable(); window.Promise = require('promise/lib/es6-extensions.js'); } Object.assign = require('object-assign');
import * as t from 'constants/ActionTypes'; import { comicManagers } from 'services'; import { addRecentComic, updateReadingRecord } from 'actions/ConfigActions'; import { replaceChapterCache } from 'actions'; export const initComicManager = ({site, chapterID, readingChapterID}) => { return (dispatch, getState) => { ...
/* eslint-disable no-console */ /** * Wraps a function. When the wrapped function is called * an error is emitted *once*. * @function * @param {function} func the deprecated function * @param {string} [msg="{func.name} is deprecated"] * @return {function} wrapped *func* * @example * import {deprecate} from 'js...
'use strict'; const egg = require('egg'); const Application = egg.Application; const Agent = egg.Agent; const EGG_PATH = Symbol.for('egg#eggPath'); class DemoAgent extends Agent { get [EGG_PATH]() { return __dirname; } } class DemoApplication extends Application { get [EGG_PATH]() { return __dirname; ...
function findMinAndMax(arr) { arr.sort(function (a,b) { return a>b; }); console.log("Min: "+arr[0]+", Max: "+arr[arr.length-1]); } //findMinAndMax([1, 2, 1, 15, 20, 5, 7, 31]); //findMinAndMax([2, 2, 2, 2, 2]); findMinAndMax([500, 1, -23, 0, -300, 28, 35, 12]);
(function() { 'use strict'; // TODO: replace app with your module name angular.module('app.shell') .directive('skBusyIndicator', ['baseUrl', skBusyIndicator]); function skBusyIndicator(baseUrl) { var directive = { controller: ['$rootScope', '$scope', controller], ...
import _ from 'lodash' import cx from 'classnames' import React, { PropTypes } from 'react' import { customPropTypes, getUnhandledProps, getElementType, META, SUI, } from '../../lib' import BreadcrumbDivider from './BreadcrumbDivider' import BreadcrumbSection from './BreadcrumbSection' /** * A breadcrumb i...
define(['react'], function(React) { var reactComponent = React.createClass({displayName: "reactComponent", getInitialState: function() { return ({ title : "mindQ", username: "rajesh" }); }, render: function() { return ( ...
var net = require('net'); var cmds = [ "NOOP" , "HELO Enlogic" , "MAIL FROM:<kris.zhang@enlogic.com>" , "RCPT TO:<kris.zhang@enlogic.com>" , "RCPT TO:<justin.luo@enlogic.com>" , "DATA" , "DATE:2006-6-1 22:11:01" , "FROM:kris.zhang@enlogic.com" , "TO:kris.zhang@enlogic.com, justin.luo@enl...
'use strict' const figgyPudding = require('figgy-pudding') const index = require('./lib/entry-index') const memo = require('./lib/memoization') const write = require('./lib/content/write') const to = require('mississippi').to const PutOpts = figgyPudding({ algorithms: { default: ['sha512'] }, integrity: {},...
define(['altair/facades/declare', '../_Base' ], function (declare, _Base) { return declare([_Base], { }); });
/** * @license * Copyright 2014 David Wolverton * Available under MIT license <https://raw.githubusercontent.com/dwolverton/my/master/LICENSE.txt> */ define([ "mytime/model/modelRegistry", "mytime/model/TimeEntry", "mytime/model/Task", "mytime/controller/TimeEntryController", "mytime/controller/TaskCont...
/* * decaffeinate suggestions: * DS102: Remove unnecessary code created because of implicit returns * Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md */ const benv = require("benv") const Backbone = require("backbone") const sinon = require("sinon") const CurrentUser = requir...
/** * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @jest-environment jsdom */ /* eslint-env browser */ import {isError} from '../utils'; // Copied from htt...
 var tableToCSV = { export: function(elm /*, delimiter */) { var table = elm; var rows = this.getRows(table); var lines = []; var delimiter = delimiter || ','; for (var i = 0, numOfRow...
// Flags: --expose-internals --no-warnings 'use strict'; const common = require('../common'); const { Event, EventTarget, defineEventHandler } = require('internal/event_target'); const { ok, deepStrictEqual, strictEqual, throws, } = require('assert'); const { once } = require('events'); const { promis...
import isArchive from 'is-archive'; isArchive('any-string'); (isArchive('any-string'): boolean); // $FlowExpectedError isArchive(4); // $FlowExpectedError isArchive({}); // $FlowExpectedError isArchive(); // $FlowExpectedError isArchive(null); // $FlowExpectedError (isArchive('any-string'): number);
// # Custom Middleware // The following custom middleware functions cannot yet be unit tested, and as such are kept separate from // the testable custom middleware functions in middleware.js var api = require('../api'), bodyParser = require('body-parser'), config = require('../config'), ...
/** * angular-strap * @version v2.1.6 - 2015-02-03 * @link http://mgcrea.github.io/angular-strap * @author Olivier Louvignes (olivier@mg-crea.com) * @license MIT License, http://www.opensource.org/licenses/MIT */ 'use strict'; angular.module('mgcrea.ngStrap.helpers.dimensions', []) .factory('dimensions', ["$d...
/**! * Sortable * @author RubaXa <trash@rubaxa.org> * @license MIT */ (function (factory) { "use strict"; if (typeof define === "function" && define.amd) { define(factory); } else if (typeof module != "undefined" && typeof module.exports != "undefined") { module.exports = factory(); } else if (typeof...
var yo = require('yo-yo'); module.exports = function landing(box) { return yo`<div class="container landing"> <div class="row"> <div class="col s10 push-s1"> <div class="row"> <div class="col m5 hide-on-small-only"> <img class="iphone" src="iphone.png" /> </div> ...
"use strict"; const get = require("./get"); const add = require("./add"); /** * @typedef OperationResult * @type Object * @property {Any} doc - The patched document * @property {Array} previous - The previous/replaced value if any */ /** * Copy the value at the specified JSON Pointer location to an ot...
"use strict"; angular.module('envConfig', []) .constant('ENV', {name:'development',apiEndPoint:'http://localhost:3000'}) ;
'use strict'; module.exports = angular.module('plugins.onedrive.service', []).factory('onedriveService', function($http, diNotify) { var defaults, service; defaults = { files: [] }; service = { fetched: { fileName: "", file: null }, saveFile: function(title, body) { var di; ...
"use strict"; var exec = require("cordova/exec"); var GcmPushPlugin = { register: function (successCB, errorCB, options) { cordova.exec( successCB, errorCB, "GCMPushPlugin", "register", [options] ); }, ...
import React from 'react'; import LinearGradient from 'react-native-linear-gradient'; import styled from 'styled-components'; import { colors, fonts } from 'config'; import { InlineLabel } from 'components'; import { FlatList, View } from 'react-native'; type Props = { title: string, topics: Array, }; const style...
// System Objects var path = require('path'); var cp = require('child_process'); var stream = require('stream'); var zlib = require('zlib'); var Transform = stream.Transform; // Third Party Dependencies var blocks = require('block-stream2'); var bz2 = require('unbzip2-stream'); var createHash = require('sha.js'); var...
//>>built define({singleSort:"Jednokratno sortiranje",nestedSort:"Ugne\u017e\u0111eno sortiranje",ascending:"Kliknite da biste sortirali po rastu\u0107em redosledu",descending:"Kliknite da biste sortirali po opadaju\u0107em redosledu",sortingState:"${0} - ${1}",unsorted:"Ne sortiraj ovu kolonu",indirectSelectionRadio:"...
import angular from 'angular'; class Controller { isSelected(index) { return this.wizardCtrl.currentStep === index + 1; } } const component = { bindings: {}, transclude: true, require: { wizardCtrl: '^imhereWizard', }, controller: Controller, controllerAs: 'vm', template: require('./imhere-...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
"use strict"; _kangoLoader.add("kango/core", function(require, exports, module) { var utils=require("kango/utils"),object=utils.object,array=utils.array,func=utils.func,EventTarget=utils.EventTarget,extensionInfo=require("kango/extension_info");function Core(){EventTarget.call(this);this._asyncModules=[];this._apiFact...
import { Meteor } from 'meteor/meteor'; import { openRoom } from '../../../ui-utils'; import { ChatRoom, ChatSubscription } from '../../../models'; import { settings } from '../../../settings'; import { hasAtLeastOnePermission } from '../../../authorization'; import { getUserPreference, RoomTypeConfig, RoomTypeRouteCo...
import React, { Component } from 'react'; import './ImportEpwing.css'; import SecondaryScreen from './SecondaryScreen.js'; import SystemBrowserLink from './SystemBrowserLink.js'; import Button from './Button.js'; import { importEpwing } from '../dictionary'; const { ipcRenderer } = window.require('electron'); // use...
import * as React from 'react'; import { expect } from 'chai'; function assertDOMNode(node) { // duck typing a DOM node expect(typeof node.nodeName).to.equal('string'); } /** * Utility method to make assertions about the ref on an element * @param {React.ReactElement} element - The element should have a componen...
var TurnServiceTests = (function () { function TurnServiceTests(turnService) { describe('TurnService', function () { var game; var turnResult; beforeEach(function () { game = new Game(); turnResult = TurnResult.NotSet; }); ...
"use strict"; /** * Module dependencies */ var _ = require('lodash'), utils = require('./utils'), hop = utils.object.hop, RID = require('orientjs').RID; /** * Query Constructor * * Normalizes Waterline queries to work with Oriento. * * @param {Object} options * @api private */ var Query = module....
app.controller('UserController', ['$scope', function($scope) { console.log('This is user controller'); }]);
/** * TinyMCE version 6.0.0 (2020-03-03) */ (function () { 'use strict'; var global$3 = tinymce.util.Tools.resolve('tinymce.PluginManager'); const hasProto = (v, constructor, predicate) => { var _a; if (predicate(v, constructor.prototype)) { return true; } else { retur...
(function(){ jQuery.support = {}; var root = document.documentElement, script = document.createElement("script"), div = document.createElement("div"), id = "script" + (new Date).getTime(); div.style.display = "none"; div.innerHTML = ' <link/><table></table><a href="/a" style="color:red;float:left;opacity...
const PARTS = [{ name: 'milliseconds', div: 1000, }, { name: 'seconds', div: 60, }, { name: 'minutes', div: 60, }, { name: 'hours', div: 24, }, { name: 'days', div: 365, }] export default class TimeDelta { constructor(data) { if (isNaN(data)) { this.setB...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default; var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default; Object.defineProperty(exports, "__esModule", { value: true }); exports.ModalRootDesktop = void 0; var _jsxRunt...
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor ==...
"use strict"; var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = exports.styles = void 0; var _extends2 = _int...
'use strict' var duplex = require('duplexer') var through = require('through') module.exports = function (counter) { var counts = {} return duplex(through(record_count, set_count), counter) // Shifting the declaration of |counts| after the |return| // statement triggers a "huh what |counts|?" error in record...
( function( $ ) { "use strict"; $.fn.hoverfold = function( args ) { this.each( function() { $( this ).children( '.view' ).each( function() { var $item = $( this ), img = $item.children( 'img' ).attr( 'src' ), struct = '<div class="slice s1">'; struct +='<div class="slice s2">'; ...
// Pos.js function Pos (x,y) { this.x = x; this.y = y; } Pos.prototype.getIndex = function () { return this.x+"x"+this.y; } Pos.prototype.toString = function () { return this.getIndex(); } Pos.prototype.clone = function () { return new Pos (this.x,this.y); }
"use strict"; const { LUA_MINSTACK, LUA_RIDX_GLOBALS, LUA_RIDX_MAINTHREAD, constant_types: { LUA_NUMTAGS, LUA_TNIL, LUA_TTABLE, LUA_TTHREAD }, thread_status: { LUA_OK } } = require('./defs.js'); const lobject = require('./lobject.js'); co...
const precision = require('./precision') const AGG_NAME = 'geo_geohash' const AGG_NAME_NESTED = 'geo_geohash_nested' const ES_FIELD = 'contact.geoCoords' async function aggGeohash(search, { top, left, bottom, right }) { const searchParams = { index: undefined, // this is set when queries combined in parent class...
/*! @license Firebase v4.3.0 Build: rev-bd8265e Terms: https://firebase.google.com/terms/ */ 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); /** * Copyright 2017 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compl...
(function() { var modelsByExtension = { '.ogg': 'audio', '.ogv': 'video', '.jpg': 'image', '.png': 'image', '.js': 'scene', '.json': 'scene', '.obj': 'scene', '.gltf': 'scene', '.fbx': 'scene', '.dae': 'scene', '.zip': 'scene' } function uploadFile(file) { var dfd = when.defer() var fnl = file.name.toLo...
// This is a thin wrapper around node-teamspeak which automatically reconnects // when there is a socket event, and handles closing and dispatching // appropriately as a result. var console = require('better-console'); var ts3 = require('node-teamspeak'); var async = require('async'); function connect(ctx, config) { ...
export {default} from 'ember-frost-bunsen/components/inputs/datetime'
const {UseServiceWorker, AppSubUrl, AppVer} = window.config; const cachePrefix = 'static-cache-v'; // actual version is set in the service worker script async function unregister() { const registrations = await navigator.serviceWorker.getRegistrations(); await Promise.all(registrations.map((registration) => { ...
Type.registerNamespace("Sys.Extended.UI.HtmlEditor"); Sys.Extended.UI.HtmlEditor.Trim = function(value) { return value.replace(/[\x00-\x1F]+/g, ""); }; Sys.Extended.UI.HtmlEditor.TrimAll = function(value) { return value.replace(/[\x00-\x1F]/g, "").replace(/^[\x20]+/g, "").replace(/[\x20]+$/g, ""); }; Sys.Ext...
'use strict'; const common = require('../common'); const assert = require('assert'); const fs = require('fs'); const path = require('path'); const doesNotExist = path.join(common.tmpDir, '__this_should_not_exist'); const readOnlyFile = path.join(common.tmpDir, 'read_only_file'); const readWriteFile = path.join(common.t...
var CombinedStream = require('combined-stream'); var util = require('util'); var path = require('path'); var http = require('http'); var https = require('https'); var parseUrl = require('url').parse; var fs = require('fs'); var mime = require('mime-types'); var async = require('async'); var populate = require(...
import { get } from "ember-metal/property_get"; import { set } from "ember-metal/property_set"; import run from "ember-metal/run_loop"; import EmberView from "ember-views/views/view"; import ContainerView from "ember-views/views/container_view"; var parentView, view; QUnit.module("Ember.View#element", { teardown: ...
/** * Sorter for an object on a property * * @param {string} property - The property to sort on. * * @returns {number} - The sort value for that property. */ export default function onProperty(property) { return (a, b) => { if (a[property] > b[property]) { return 1; } if (a...
app.registerAbstractClass("Abstract/AppAbstract", { $_extends: "Abstract/AppAbstractBase", $_traits: ["Trait/AppTraitForAbstract"], $_abstract: { reset: function() {}, destruct: function() {} }, execute: function() { this.callParent('execute'); return true;...
YUI.add('gallery-progress-bar', function(Y) { var LANG = Y.Lang; Y.ProgressBar = Y.Base.create('progressBar', Y.Widget, [], { _anim: null, /** set up **/ renderUI: function() { Y.log('renderUI', 'info', 'Y.ProgressBar'); this.get('contentBox').append(LANG.sub...
goog.addDependency("base.js", ['goog'], []); goog.addDependency("../cljs/core.js", ['cljs.core'], ['goog.string', 'goog.object', 'goog.string.StringBuffer', 'goog.array']);
/* * MelonJS Game Engine * Copyright (C) 2011 - 2013, Olivier BIOT * http://www.melonjs.org * */ (function($) { /** * me.ObjectSettings contains the object attributes defined in Tiled<br> * and is created by the engine and passed as parameter to the corresponding object when loading a level<br> * the fiel...
(function() { var a, b, c, d, e, col, otherCol; module("Backbone.Collection", { setup: function() { a = new Backbone.Model({id: 3, label: 'a'}); b = new Backbone.Model({id: 2, label: 'b'}); c = new Backbone.Model({id: 1, label: 'c'}); d = new Backbone.M...
/* Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'div', 'cs', { IdInputLabel: 'Id', advisoryTitleInputLabel: 'Nápovědní titulek', cssClassInputLabel: 'Třídy stylů', edit: 'Změnit Div', inlineStyl...
// Copyright 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. UI.Fragment = class { /** * @param {!Element} element */ constructor(element) { this._element = element; /** @type {!Map<string, !Eleme...
/* * 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. */ '...
var fs = require('fs'); var tasks = fs.readdirSync('./gulp/'); tasks.forEach(function(task) { if(task.slice(-3) != '.js') return; require('./gulp/' + task); });
/** * @fileoverview Tests for block-scoped-var rule * @author Matt DuVall <http://www.mattduvall.com> */ "use strict"; //------------------------------------------------------------------------------ // Requirements //------------------------------------------------------------------------------ var eslint = requ...
/*! * jQuery.scrollFix.js * @ desc: 滚动固定在某个位置的jQuery插件 * @ version: v2.0.2 * @ link: https://github.com/mengqing723/jQuery-scrollFix.git * @ date: 2016/10/26 */ ;(function (factory) { if (typeof define === 'function' && define.amd) { define(['jquery'], factory); } else if (typeof exports === 'obje...
import moment from 'moment'; function durationHelper(params, hash) { if (params.length > 2) { throw new TypeError('ember-moment: Invalid Number of arguments, at most 2'); } let time = moment.duration(...params); if (hash.locale) { time = time.locale(hash.locale); } return time.humanize(); } exp...
/** * @author Richard Davey <rich@photonstorm.com> * @copyright 2013 Photon Storm Ltd. * @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} */ /** * Create a new `Tile` object. Tiles live inside of Tilesets and are rendered via TilemapLayers. * * @class Phaser.Tile...
// @flow import express from "express"; import getProcessForPort from "react-dev-utils/getProcessForPort"; import chalk from "chalk"; import createDB from "../db"; import createAPIServer from "../api"; import log from "../utils/log"; const debug = require("debug")("phenomic:core:commands:start"); async function cre...
var should = require('should'), // Stuff we are testing helpers = require('../../../server/helpers'); describe('{{twitter_url}} helper', function () { var options = {data: {blog: {}}}; beforeEach(function () { options.data.blog = {twitter: ''}; }); it('should output the twitter url for @...
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.hola_jwplayer_...
/*! * Module dependencies. */ var _ = require('underscore'), moment = require('moment'), keystone = require('../../'), async = require('async'), util = require('util'), azure = require('azure'), utils = require('keystone-utils'), super_ = require('../field'); /** * AzureFile FieldType Constructor * @exten...
var loadState = { preload: function () { game.stage.disableVisibilityChange = true /* Load all game assets Place your load bar, some messages. In this case of loading, only text is placed... */ var loadingLabel = game.add.text(80, 150, 'loading...', {font: '20px press_start_2pregular', ...
/** * # manager/file * * Methods for loading files to the canvas and giving updates on their * progress * * > http://draeton.github.io/stitches<br/> * > Copyright 2013 Matthew Cobbs<br/> * > Licensed under the MIT license. */ define([ "wrap/jquery", "util/util" ], function ($, util) { "use strict...
/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js (function(global) { glo...
class SpreadTestClass { constructor(x, y) { this.SpreadTestClass = SpreadTestClass; this.self = this; this.x = x; this.y = y; } } var object = new SpreadTestClass(...[0, 1]); // ---------------------------------------------------------------------------- expect(object.x).toBe(0); expect(object.y)...
import React from 'react'; import styles from './policyBanner.css'; const policyPageLink = '/policy'; // replace commented out bannertext below with new text if this component is needed for reuse in the future const PolicyBanner = () => ( <div className={styles.banner}> <h4 className={styles.bannerText}> ...
/* Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang("widget","hr",{move:"Klikni i povuci da pomakneš",label:"%1 widget"});
import dns from 'dns'; import { Meteor } from 'meteor/meteor'; import { emailDomainDefaultBlackList } from './defaultBlockedDomainsList'; import { settings } from '../../../settings'; let emailDomainBlackList = []; let emailDomainWhiteList = []; let useDefaultBlackList = false; let useDNSDomainCheck = false; settin...
/** * Heir v3.0.0 - http://git.io/F87mKg * Oliver Caldwell - http://oli.me.uk/ * Unlicense - http://unlicense.org/ */ (function (name, root, factory) { if (typeof define === 'function' && define.amd) { define(factory); } else if (typeof exports === 'object') { module.exports = factory()...
/** @module ember @submodule ember-templates */ import Object from 'ember-runtime/system/object'; /** Ember Helpers are functions that can compute values, and are used in templates. For example, this code calls a helper named `format-currency`: ```handlebars <div>{{format-currency cents currency="$"}}</div> ...
/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import { Observable } from 'rxjs/Observable'; import { fromPromise } from 'rxjs/observable/fromPromise'; import { of ...
(function(b){var g="(ଡିସେମ୍ବର",f="ସେପ୍ଟେମ୍ବର",e="ଏପ୍ରିଲ୍‌",d="ଫ୍ରେବୃୟାରୀ",c="ଜାନୁୟାରୀ",a=b.cultures,i=a.en,j=i.calendars.standard,h=a.or=b.extend(true,{},i,{name:"or",englishName:"Oriya",nativeName:"ଓଡ଼ିଆ",language:"or",numberFormat:{groupSizes:[3,2],percent:{groupSizes:[3,2]},currency:{pattern:["$ -n","$ n"],groupSizes...