code
stringlengths
2
1.05M
/*! * froala_editor v2.7.2 (https://www.froala.com/wysiwyg-editor) * License https://froala.com/wysiwyg-editor/terms/ * Copyright 2014-2017 Froala Labs */ (function (factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. define(['jquery'], factory)...
/** * ag-grid - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components * @version v14.1.1 * @link http://www.ag-grid.com/ * @license MIT */ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var Events = (function () { function Events() { } ...
/** * ag-grid - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components * @version v14.1.1 * @link http://www.ag-grid.com/ * @license MIT */ "use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c ...
/* PowerPoint specific API library */ /* Version: 15.0.4420.1017 Build Time: 03/31/2014 */ /* Copyright (c) Microsoft Corporation. All rights reserved. */ /* Your use of this file is governed by the Microsoft Services Agreement http://go.microsoft.com/fwlink/?LinkId=266419. */ OSF.ClientMode={ ReadWrit...
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('jquery')) : typeof define === 'function' && define.amd ? define(['jquery'], factory) : (factory(global.jQuery)); }(this, (function ($) { 'use strict'; $.fn.datepicker.languages['fr-FR'] = { forma...
if (typeof define !== 'function') { var define = require('amdefine')(module); } define([ 'duino' ], function(duino) { /** * RGB Lights Plugin. This plugin is able to control a strip of RGB LEDs connected to an Arduino or GPIO Pins * * @author https://github.com/ConnorRoberts * @class RGBLights * @p...
import { react } from "babel-types"; import * as t from "babel-types"; let referenceVisitor = { ReferencedIdentifier(path, state) { if (path.isJSXIdentifier() && react.isCompatTag(path.node.name)) { return; } // direct references that we need to track to hoist this to the highest scope we can ...
var expect = require('expect.js'); var eio = require('../'); var wsSupport = require('has-cors'); var uagent = navigator.userAgent; var isOldSimulator = ~uagent.indexOf('iPhone OS 4') || ~uagent.indexOf('iPhone OS 5'); var isIE11 = !!navigator.userAgent.match(/Trident.*rv[ :]*11\./); // ws doesn't work at all in sauce...
// DATA_TEMPLATE: empty_table oTest.fnStart( "oLanguage.sInfoPostFix" ); $(document).ready( function () { /* Check the default */ var oTable = $('#example').dataTable( { "sAjaxSource": "../../../examples/ajax/sources/objects.txt", "aoColumns": [ { "mData": "engine" }, { "mData": "browser" }, {...
/* * 用于屏蔽页面上的所有flash */ var flashText = '<div style="text-shadow:0 0 2px #eee;letter-spacing:-1px;background:#eee;font-weight:bold;padding:0;font-family:arial,sans-serif;font-size:30px;color:#ccc;width:152px;height:52px;border:4px solid #ccc;border-radius:12px;position:absolute;top:50%;left:50%;margin:-30px 0 0 -8...
'no use strict'; // Remove "use strict"; from transpiled module until // https://bugs.webkit.org/show_bug.cgi?id=138038 is fixed /** @module ember @submodule ember-runtime */ // using ember-metal/lib/main here to ensure that ember-debug is setup // if present import Ember from 'ember-metal'; import { assert, runI...
describe("", function() { var rootEl; beforeEach(function() { rootEl = browser.rootEl; browser.get("build/docs/examples/example-example89/index-jquery.html"); }); var colorSpan = element(by.css('span')); it('should check ng-style', function() { expect(colorSpan.getCssValue('color')).toBe('rgba...
/* YUI 3.5.0 (build 5089) Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ YUI.add('button-group', function(Y) { /** * A Widget to create groups of buttons * * @module button-group * @since 3.5.0 */ var CONTENT_BOX = "contentBox", SELECTOR = "but...
/* eslint consistent-return: 0, no-else-return: 0*/ import * as types from 'types'; export function dismissMessage() { return { type: types.DISMISS_MESSAGE }; }
Clazz.declarePackage ("JSV.api"); Clazz.declareInterface (JSV.api, "JSVFileHelper");
/** * ag-grid - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components * @version v13.0.0 * @link http://www.ag-grid.com/ * @license MIT */ "use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c ...
/* -*- Mode: Javascript; indent-tabs-mode:nil; js-indent-level: 2 -*- */ /* vim: set ts=2 et sw=2 tw=80: */ /************************************************************* * * MathJax/jax/output/HTML-CSS/imageFonts.js * * Implements the image fallback fonts for the HTML-CSS OutputJax. * * -------------------...
'use strict'; module.exports = function (t, a, d) { var x = {}, y = {}, z = {}, p, r; t.call(function (arg1, arg2) { return [this, arg1, arg2]; }, 100).call(x, y, z)(function (arg) { p = y; r = arg; }).done(); a.not(p, y, "Not yet"); setTimeout(function () { a.not(p, y, "After a while"); setTimeout(fun...
import {createStore, compose, applyMiddleware} from 'redux'; import thunkMiddleware from 'redux-thunk'; import rootReducer from '../reducers'; export default function configureStore(initialState) { const middlewares = [ // Add other middleware on this line... // thunk middleware can also accept an extra arg...
var expansions = require("npm-expansions") var clickCount = -1 var updateExpansion = function(event) { if (event) event.preventDefault() if (++clickCount > 10) { return window.location = "https://github.com/npm/npm-expansions" } var expansion = expansions[Math.floor(Math.random() * expansions.length)]; ...
/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ function ContextDependencyTemplateAsId() {} module.exports = ContextDependencyTemplateAsId; ContextDependencyTemplateAsId.prototype.apply = function(dep, source, outputOptions, requestShortener) { var comment = ""; if...
define("dojo/store/DataStore", ["../_base/lang", "../_base/declare", "../_base/Deferred", "../_base/array", "./util/QueryResults" ], function(lang,declare,Deferred,array,QueryResults) { // module: // dojo/store/DataStore // summary: // TODOC return declare("dojo.store.DataStore", null, { target: "", construct...
/* Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'pastefromword', 'nb', { confirmCleanup: 'Teksten du limer inn ser ut til å være kopiert fra Word. Vil du renske den før du limer den inn?', error: ...
/** * 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. * * @format * */ 'use strict'; exports.__esModule = true; exports.default = void 0; var _EventSubscription3 = _interopRequireDef...
// Copyright Joyent, Inc. and other Node contributors. // // 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, modi...
/*! algoliasearch 3.3.2 | © 2014, 2015 Algolia SAS | github.com/algolia/algoliasearch-client-js */ (function(C){var c;"undefined"!==typeof window?c=window:"undefined"!==typeof self&&(c=self);c.ALGOLIA_MIGRATION_LAYER=C()})(function(){return function c(h,e,m){function g(d,k){if(!e[d]){if(!h[d]){var p="function"==typeof ...
/* http://keith-wood.name/datepick.html Norwegian localisation for jQuery Datepicker. Written by Naimdjon Takhirov (naimdjon@gmail.com). */ (function($) { $.datepick.regional['no'] = { monthNames: ['Januar','Februar','Mars','April','Mai','Juni', 'Juli','August','September','Oktober','November','Desembe...
var convert = require('./convert'); module.exports = convert(require('../object'));
/** * @license * Video.js 6.0.0-RC.2 <http://videojs.com/> * Copyright Brightcove, Inc. <https://www.brightcove.com/> * Available under Apache License Version 2.0 * <https://github.com/videojs/video.js/blob/master/LICENSE> * * Includes vtt.js <https://github.com/mozilla/vtt.js> * Available under Apache License ...
/* Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'quicktable', 'bg', { more: 'Още...' } );
/** * The examples provided by Facebook are for non-commercial testing and * evaluation purposes only. * * Facebook reserves all rights not expressly granted. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, ...
/*! Raven.js 3.9.2 (5286373) | github.com/getsentry/raven-js */ !function(a){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=a();else if("function"==typeof define&&define.amd)define([],a);else{var b;b="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?sel...
/** * @license Angulartics v0.17.2 * (c) 2013 Luis Farzati http://luisfarzati.github.io/angulartics * License: MIT */ (function(angular) { 'use strict'; /** * @ngdoc overview * @name angulartics.google.analytics * Enables analytics support for Google Analytics (http://google.com/analytics) * for Cordova with g...
/** * Sinon.JS 1.17.3, 2016/02/10 * * @author Christian Johansen (christian@cjohansen.no) * @author Contributors: https://github.com/cjohansen/Sinon.JS/blob/master/AUTHORS * * (The BSD License) * * Copyright (c) 2010-2014, Christian Johansen, christian@cjohansen.no * All rights reserved. * * Redistribution...
var dom = require("../../../../lib/jsdom/living"); exports.hc_staff = function() { var doc = new dom.Document("html"); var implementation = new dom.DOMImplementation(doc, { "XML" : ["1.0", "2.0"], "core": ["1.0", "2.0", "3.0"] }); var notations = new dom.NotationNodeMap( doc, doc.createNotati...
"use strict" /** * @class elFinder command "archive" * Archive selected files * * @author Dmitry (dio) Levashov **/ elFinder.prototype.commands.archive = function() { var self = this, fm = self.fm, mimes = []; this.variants = []; this.disableOnSearch = true; /** * Update mimes on open/reload ...
export class DynamicDialogConfig{};
// fixture/logo.png var assert = require('assert') , Stream = require('stream') , fs = require('fs') , mongo = require('mongodb') , Grid = require('../') , crypto = require('crypto') , checksum = require('checksum') , tmpDir = __dirname + '/tmp/' , fixturesDir = __dirname + '/fixtures/' , imgReadPath...
var assert = require('assert'); var battle; describe('Heavy Metal', function () { afterEach(function () { battle.destroy(); }); it('should double the weight of a Pokemon', function () { battle = BattleEngine.Battle.construct(); battle.join('p1', 'Guest 1', 1, [{species: "Simisear", ability: 'heavymetal', mov...
'use strict'; const globalHooks = require('../../../hooks'); const hooks = require('feathers-hooks'); const auth = require('feathers-authentication').hooks; exports.before = { all: [ auth.verifyToken(), auth.populateUser(), auth.restrictToAuthenticated() ], find: [], get: [], create: [], updat...
import Vue from '../../../dist/vue.runtime.common.js' export default context => { return new Promise(resolve => { context.msg = 'hello' resolve(new Vue({ render (h) { return h('div', context.url) } })) }) }
/*! * OOjs UI v0.11.0 * https://www.mediawiki.org/wiki/OOjs_UI * * Copyright 2011–2015 OOjs Team and other contributors. * Released under the MIT license * http://oojs.mit-license.org * * Date: 2015-04-30T01:42:23Z */ /** * @class * @extends OO.ui.Theme * * @constructor */ OO.ui.MediaWikiTheme = function ...
/** * @license Highcharts JS v6.0.3 (2017-11-14) * * Bullet graph series type for Highcharts * * (c) 2010-2017 Kacper Madej * * License: www.highcharts.com/license */ 'use strict'; (function(factory) { if (typeof module === 'object' && module.exports) { module.exports = factory; } else { ...
// Karma configuration // Generated on Fri Aug 09 2013 14:14:35 GMT-0500 (CDT) module.exports = function(config) { config.set({ // base path, that will be used to resolve files and exclude basePath: '', frameworks: ["jasmine"], // list of files / patterns to load in the browser files: [ ...
/*! jsviews.js v0.9.78 (Beta) single-file version: http://jsviews.com/ */ /*! includes JsRender, JsObservable and JsViews - see: http://jsviews.com/#download */ /* Interactive data-driven views using JsRender templates */ //<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< JsRender >>>>>>>>>>>>>>>>>>>>>>>>>>>>>> /* JsRender: * See htt...
'use strict'; module.exports = function(Chart) { var helpers = Chart.helpers; // Default config for a category scale var defaultConfig = { position: 'bottom' }; var DatasetScale = Chart.Scale.extend({ /** * Internal function to get the correct labels. If data.xLabels or data.yLabels are defined, use those...
/** * ag-grid - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components * @version v5.0.0-alpha.4 * @link http://www.ag-grid.com/ * @license MIT */ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? t...
'use strict'; angular.module('ngAudio', []) .directive('ngAudio', ['$compile', '$q', 'ngAudio', function($compile, $q, ngAudio) { return { restrict: 'AEC', scope: { volume: '=', start: '=', currentTime: '=', loop: '=', clickPlay: '=' ...
/* This file is part of Ext JS 3.4 Copyright (c) 2011-2013 Sencha Inc Contact: http://www.sencha.com/contact GNU General Public License Usage This file may be used under the terms of the GNU General Public License version 3.0 as published by the Free Software Foundation and appearing in the file LICENSE included in...
/** * Tabslet | tabs jQuery plugin * * @copyright Copyright 2015, Dimitris Krestos * @license Apache License, Version 2.0 (http://www.opensource.org/licenses/apache2.0.php) * @link http://vdw.staytuned.gr * @version v1.6.0 */ /* Sample html structure <div class='tabs'> <ul class='horizontal'> ...
"use strict"; exports.__esModule = true; exports.AnyTypeAnnotation = AnyTypeAnnotation; exports.ArrayTypeAnnotation = ArrayTypeAnnotation; exports.BooleanTypeAnnotation = BooleanTypeAnnotation; exports.BooleanLiteralTypeAnnotation = BooleanLiteralTypeAnnotation; exports.DeclareClass = DeclareClass; exports.DeclareFunc...
/*! * inferno-mobx v1.0.0-beta35 * (c) 2016 Ryan Megidov * Released under the MIT License. */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('./inferno-component'), require('mobx'), require('./inferno-create-class'), require('./inferno-...
import App from './src/app'; const app = new App();
var someVar = obj[ "key" ] || 0 function f() { function g() { } }
/** * Maplace.js 0.1.31 * * Copyright (c) 2013 Daniele Moraschi * Licensed under the MIT license * For all details and documentation: * http://maplacejs.com */ ;(function(g,s,f,n){var q,m,p;q={activateCurrent:function(e){this.html_element.find("select").val(e)},getHtml:function(){var e=this,a="",b;if(1<this.ln){a+='<se...
// Version: v1.0.0-pre.4 // Last commit: 855db1a (2013-01-17 23:06:53 -0800) (function() { /*global __fail__*/ /** Ember Debug @module ember @submodule ember-debug */ /** @class Ember */ if ('undefined' === typeof Ember) { Ember = {}; if ('undefined' !== typeof window) { window.Em = window.Ember = Em = Em...
// # Ghost Foot Helper // Usage: `{{ghost_foot}}` // // Outputs scripts and other assets at the bottom of a Ghost theme // // We use the name ghost_foot to match the helper for consistency: // jscs:disable requireCamelCaseOrUpperCaseIdentifiers var hbs = require('express-hbs'), _ = requir...
this is file 354
;(function() { 'use strict'; sigma.utils.pkg('sigma.canvas.edges'); /** * This edge renderer will display edges as curves with arrow heading. * * @param {object} edge The edge object. * @param {object} source node The edge source node. * @param {obj...
/* * Snap.js * * Copyright 2013, Jacob Kelley - http://jakiestfu.com/ * Released under the MIT Licence * http://opensource.org/licenses/MIT * * Github: http://github.com/jakiestfu/Snap.js/ * Version: 1.9.3 */ /*jslint browser: true*/ /*global define, module, ender*/ (function(win, doc) { 'use strict'; ...
// Copyright 2006 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...
module.exports = function(opalParam) { var Opal = opalParam || require('opal-npm-wrapper').Opal; /* Generated by Opal 0.9.0.beta2 */ Opal.modules["asciidoctor/converter/docbook5"] = function(Opal) { Opal.dynamic_require_severity = "ignore"; var OPAL_CONFIG = { method_missing: false, arity_check: false, freezing:...
(function ($) { // register namespace $.extend(true, window, { "Slick": { "CheckboxSelectColumn": CheckboxSelectColumn } }); function CheckboxSelectColumn(options) { var _grid; var _self = this; var _handler = new Slick.EventHandler(); var _selectedRowsLookup = {}; var _defau...
$(function () { 'use strict' QUnit.module('dropdowns plugin') QUnit.test('should be defined on jquery object', function (assert) { assert.expect(1) assert.ok($(document.body).dropdown, 'dropdown method is defined') }) QUnit.module('dropdowns', { beforeEach: function () { // Run all tests ...
(function($){"use strict";$.fn.select2.locales["ko"]={formatNoMatches:function(){return"결과 없음"},formatInputTooShort:function(input,min){var n=min-input.length;return"너무 짧습니다. "+n+"글자 더 입력해주세요."},formatInputTooLong:function(input,max){var n=input.length-max;return"너무 깁니다. "+n+"글자 지워주세요."},formatSelectionTooBig:function(...
/* --- MooTools: the javascript framework copyrights: - [MooTools](http://mootools.net) licenses: - [MIT License](http://mootools.net/license.txt) ... */ (function(){this.MooTools={version:"1.5.0",build:"0f7b690afee9349b15909f33016a25d2e4d9f4e3"};var e=this.typeOf=function(i){if(i==null){return"null";}if(i.$fami...
(function () { //Wrapped in an outer function to preserve global this (function (root) { var amdExports; define('bootstrap/bootstrap-transition',['jquery'], function () { (function () { /* =================================================== * bootstrap-transition.js v2.3.2 * http://twitter.github.com/bootstrap/javas...
'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": [ "\u1796\u17d2\u179a\u17b9\u1780", "\u179b\u17d2\u1784\u17b...
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'table', 'gu', { border: 'કોઠાની બાજુ(બોર્ડર) સાઇઝ', caption: 'મથાળું/કૅપ્શન ', cell: { menu: 'કોષના ખાના', insertBefore: 'પહેલાં કોષ ઉમેરવો', ...
/*! elasticsearch - v6.1.0 - 2015-08-18 * http://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/index.html * Copyright (c) 2015 Elasticsearch BV; Licensed Apache-2.0 */ ;(function () { /* prevent lodash from detecting external amd loaders */var define; ;(function e(t,n,r){function s(o,u){if(!n[...
describe('Exceptions:', function() { var env; beforeEach(function() { env = new jasmine.Env(); env.updateInterval = 0; }); it('jasmine.formatException formats Firefox exception messages as expected', function() { var sampleFirefoxException = { fileName: 'foo.js', line: '1978', me...
/* YUI 3.16.0 (build 76f0e08) Copyright 2014 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ YUI.add("panel",function(e,t){var n=e.ClassNameManager.getClassName;e.Panel=e.Base.create("panel",e.Widget,[e.WidgetPosition,e.WidgetStdMod,e.WidgetAutohide,e.WidgetButtons,e....
"format global"; export var p = 'value';
/* svg.js v0.11-7-g7b0ba31 - svg regex default color viewbox bbox element container fx event group arrange defs mask clip pattern gradient doc shape rect ellipse line poly path plotable image text nested sugar - svgjs.com/license */ ;(function() { this.SVG = function(element) { if (SVG.supported) return ne...
// oj.VimeoVideo.js ;(function(root, factory){ // Export to Node if (typeof module === 'object' && module.exports) module.exports = factory(root) // Export to RequireJS else if (typeof define === 'function' && define.amd) define(function(){return factory(root)}) // Export to OJ else factory(...
var tap = require("tap") , minimatch = require("../") tap.test("brace expansion", function (t) { // [ pattern, [expanded] ] ; [ [ "a{b,c{d,e},{f,g}h}x{y,z}" , [ "abxy" , "abxz" , "acdxy" , "acdxz" , "acexy" , "acexz" , "afhxy" , "afhxz" ...
YUI.add('model-list', function(Y) { /** The app framework provides simple MVC-like building blocks (models, model lists, views, and URL-based routing) for writing single-page JavaScript applications. @main app @module app @since 3.4.0 **/ /** Provides an API for managing an ordered list of Model instances. @submodu...
dirty document
(function() { var extend, __slice = [].slice, __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; }; extend = function() { var args, key, object, replacement, result, value, _i, _len, _ref; object = arguments[0], args = 2 <= arguments.length ? __slice.call(arguments, 1)...
/* AngularJS v1.2.0-rc.2 (c) 2010-2012 Google, Inc. http://angularjs.org License: MIT */ (function(m,g,n){'use strict';function h(a){var d={};a=a.split(",");var c;for(c=0;c<a.length;c++)d[a[c]]=!0;return d}function C(a,d){function c(a,b,c,f){b=g.lowercase(b);if(r[b])for(;e.last()&&s[e.last()];)k("",e.last());t[b]&&e...
'use strict' const pump = require('pump') const trips = require('vbb-trips') const through = require('through2') const omit = require('lodash.omit') const csv = require('csv-write-stream') const fs = require('fs') const readSchedule = require('./read-schedule') const buildCalendar = (file) => { return new Promise((...
"use strict"; var _interopRequireWildcard = function (obj) { return obj && obj.__esModule ? obj : { "default": obj }; }; var _interopRequire = function (obj) { return obj && obj.__esModule ? obj["default"] : obj; }; exports.check = check; exports.ObjectExpression = ObjectExpression; exports.__esModule = true; var m...
var namespace = require('./namespace') // set nested object property function set (obj, prop, val) { var parts = (/^(.+)\.(.+)$/).exec(prop) if (parts) namespace(obj, parts[1])[parts[2]] = val else obj[prop] = val } module.exports = set
import React from 'react'; import PropTypes from 'prop-types'; import {NativeModules, requireNativeComponent} from 'react-native'; import resolveAssetSource from 'react-native/Libraries/Image/resolveAssetSource'; import { toJSONString, cloneReactChildrenWithProps, viewPropTypes, isFunction, } from '../utils'; ...
module.exports = (function(){ "use strict" var util = require('util'); var PreProcessor = require('./preprocessor'); var parser = require('./parser'); var TypeAnalyzer = require('./type-analyzer'); var Generator = require('./generator'); var ParserUtil = require('../src/parser-util'); var O2S = function() {};...
import React from 'react'; import {Alert} from 'react-native'; import MapboxGL from '@mapbox/react-native-mapbox-gl'; import sheet from '../styles/sheet'; import BaseExamplePropTypes from './common/BaseExamplePropTypes'; import TabBarPage from './common/TabBarPage'; const layerStyles = MapboxGL.StyleSheet.create({ ...
import { fromJS } from 'immutable'; import { getEntityModule } from './entity-module'; const ENTITY_URL = 'cashFlows'; const ENTITY_LABEL = 'Cash Flows'; const TYPES = ['客訂金', '客尾數', '廠訂金', '廠尾數']; const INITIAL_STATE = fromJS({ entityConfig: { apiUrl: 'SET_IN_ACL', label: ENTITY_LABEL, url: ENTITY_URL,...
'use strict' const md5hex = require('md5-hex') const encoder = require('./encoder') const pluginRegistry = require('./pluginRegistry') const argumentsValue = require('./complexValues/arguments') const arrayBufferValue = require('./complexValues/arrayBuffer') const boxedValue = require('./complexValues/boxed') const ...
'use strict' const EventStorePromise = require('../esp') const async = require('asyncawait/async') const await = require('asyncawait/await') const _ = require('highland') // A convenient wrapper to await the result of a highland stream. Always gives an array though. const awai...
function Router (routes) { this.routes = routes window.addEventListener('popstate', function (event) { this.route() }.bind(this)) document.addEventListener('click', function (event) { if (event.target.tagName === 'A') { if (event.target.href.startsWith(window.location.origin)) { event.pr...
'use strict'; var forEach = require('es5-ext/object/for-each') , isObject = require('es5-ext/object/is-object') , encode = require('querystring/encode') , id = require('./id') , stringify = JSON.stringify; module.exports = function (deck/*, options*/) { var options = Object(arguments[1]) , path ...
const express = require('express'); const router = express.Router(); /* GET home page. */ router.get('/', (req, res) => { if (req.user) { res.render('index', { title: 'Welcome', user: req.user }); } else { res.cookie('hosted_on', `https://${req.header('Host')}`) .render('index'); }...
/** * * Initilize TinyMCE editor with all required options */ // Invisible space constants const ZERO_SPACE = '&#8203;' const RAJE_SELECTOR = 'body#tinymce' // Selector constants (to move inside a new const file) const HEADER_SELECTOR = 'header.page-header.container.cgen' const FIRST_HEADING = `${RAJE_SELECTOR}>s...
// Ionic Starter App // angular.module is a global place for creating, registering and retrieving Angular modules // 'starter' is the name of this angular module example (also set in a <body> attribute in index.html) // the 2nd parameter is an array of 'requires' // 'starter.controllers' is found in controllers.js ang...
import {expect} from 'chai'; import {List, Map} from 'immutable'; import {setEntries, next, vote} from '../src/core'; describe('immutability', () => { describe('a number', () => { function increment(currentState) { return currentState + 1; } it('is immutable', () => { let state = 42; ...
var fiveZeroOneIFFE = (function(numberOfPlayers) { var startPoints = 501, numberOfRounds = 25, playerPoints = [], playerNames = [], currentPlayerTurn = 0, currentRound = 1; function displayConfigurationScreen() { var $configurationScreen = $('#configurationScreen...
OpenLayers.Control.SelectFeature=OpenLayers.Class(OpenLayers.Control,{multipleKey:null,toggleKey:null,multiple:!1,clickout:!0,toggle:!1,hover:!1,highlightOnly:!1,box:!1,onBeforeSelect:function(){},onSelect:function(){},onUnselect:function(){},scope:null,geometryTypes:null,layer:null,layers:null,callbacks:null,selectSty...
define(['PhysicsComponent'], function (PhysicsComponent) { 'use strict'; function CirclePhysicsComponent(gameObject, center, radius, startingAngle, endingAngle, counterClockwise) { PhysicsComponent.call(this, gameObject); this.center = center; this.radius = radius; if ...
export const SET_ACTIVE_GROUP = 'SET_ACTIVE_GROUP' export function setActiveGroup(groupId) { return { type: SET_ACTIVE_GROUP, groupId } }
define(["lib/text", "lib/pegjs"], function (text, PEG) { var buildMap = {}; var buildTemplateSource = "define('{pluginName}!{moduleName}', [], function () { return {content} });\n"; return { version: '0.1.0', load: function(moduleName, parentRequire, onLoad, config) { var ext =...