code stringlengths 2 1.05M |
|---|
// @flow
import { BaseError } from 'make-error';
class ValidationError extends BaseError {
name: string;
params: Object;
static isInvalid(error: Error, prop: string) {
if (!(error instanceof ValidationError)) return false;
return error.params.prop === prop;
}
constructor(name: string, params: Objec... |
/**
* Module dependencies.
*/
var express = require('express');
var http = require('http');
var path = require('path');
var handlebars = require('express3-handlebars')
var hello = require('./routes/hello');
var app = express();
// all environments
app.set('port', process.env.PORT || 3000);
app.set('views', path.... |
var hosts;
var describe = QUnit.module;
var it = QUnit.test;
describe('Hosts', function(config) {
config.beforeEach(function() {
hosts = new Pretender.Hosts();
});
config.afterEach(function() {
hosts = undefined;
});
describe('#forURL', function() {
it('returns a registry for a URL', function(a... |
/* Magic Mirror
* Fetcher
*
* By Michael Teeuw http://michaelteeuw.nl
* MIT Licensed.
*/
var FeedMe = require("feedme");
var request = require("request");
var iconv = require("iconv-lite");
/* Fetcher
* Responsible for requesting an update on the set interval and broadcasting the data.
*
* attribute url strin... |
import expect from 'expect';
describe('Our first test', () => {
it('should pass', () => {
expect(true).toEqual(true);
});
}); |
/*
* GoJS v2.0.12 JavaScript Library for HTML Diagrams
* Northwoods Software, https://www.nwoods.com/
* GoJS and Northwoods Software are registered trademarks of Northwoods Software Corporation.
* Copyright (C) 1998-2019 by Northwoods Software Corporation. All Rights Reserved.
* THIS SOFTWARE IS LICENSED. THE LI... |
/**! Qoopido.demand 5.2.0-rc.7 | https://github.com/dlueth/qoopido.demand | (c) 2018 Dirk Lueth */
!function(){"use strict";provide(["/demand/abstract/handler"],function(t){function n(){}var e=/^text\/.+/;return n.prototype={validate:function(t){return e.test(t)},process:function(t){provide(function(){return t.source})... |
define([], function() {
var saveSelection, restoreSelection;
if (window.getSelection && document.createRange) {
saveSelection = function(el) {
var sel = window.getSelection && window.getSelection();
if (sel && sel.rangeCount > 0) {
var range = sel.getRangeAt(0);
... |
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
/* Tabulator v4.2.5 (c) Oliver Folkerd */
var Fi... |
/*
FlexSearch v0.3.6
Copyright 2019 Nextapps GmbH
Author: Thomas Wilkerling
Released under the Apache 2.0 Licence
https://github.com/nextapps-de/flexsearch
*/
'use strict';(function(u,A,h){let w;(w=h.define)&&w.amd?w([],function(){return A}):(w=h.modules)?w[u.toLowerCase()]=A:"object"===typeof exports?module.expor... |
/* eslint-disable */
undefined
|
import { configFromStringAndFormat } from './from-string-and-format';
import { createUTCDate } from './date-from-array';
import { hooks } from '../utils/hooks';
import { deprecate } from '../utils/deprecate';
import getParsingFlags from './parsing-flags';
import { defaultLocaleMonthsShort } from '../units/month';
impor... |
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("devtools","it",{title:"Informazioni elemento",dialogName:"Nome finestra di dialogo",tabName:"Nome Tab",elementId:"ID Elemento",elementType:"Tipo... |
import EmberObject from "ember-runtime/system/object";
module('system/object/detect');
test('detect detects classes correctly', function() {
var A = EmberObject.extend();
var B = A.extend();
var C = A.extend();
ok( EmberObject.detect(EmberObject), 'EmberObject is an EmberObject class' );
ok( EmberObject.d... |
'use strict';
require('../common');
// Because the net benchmarks use hardcoded ports, this should be in sequential
// rather than parallel to make sure it does not conflict with tests that choose
// random available ports.
const runBenchmark = require('../common/benchmark');
runBenchmark('net', { NODEJS_BENCHMARK_... |
var err = require('../util').err,
should = require('../../');
var AssertionError = require('assert').AssertionError;
var util = require('util');
describe('type', function() {
it('test arguments', function() {
var args = (function(){ return arguments; })(1,2,3);
args.should.be.arguments();
[].should.no... |
var searchData=
[
['readonlyprototype',['ReadOnlyPrototype',['../classv8_1_1_function_template.html#a91d2e0643e8c5a53ab1d75f7766c2422',1,'v8::FunctionTemplate']]],
['reattachglobal',['ReattachGlobal',['../classv8_1_1_context.html#a1db9a514d7bb1c055a26359727bd2f6b',1,'v8::Context']]],
['regexp',['RegExp',['../clas... |
import { mapper } from './down_panel';
describe('manager.ui.containers.down_panel', () => {
describe('mapper', () => {
test('should give correct data', () => {
const state = {
selectedDownPanel: 'sdp',
};
const selectDownPanel = () => 'selectDownPanel';
const panels = {
t... |
'use strict';
const common = require('../common');
if (!common.hasIPv6)
common.skip('no IPv6 support');
// This test ensures that dual-stack support is disabled when
// we specify the `ipv6Only` option in `net.Server.listen()`.
const assert = require('assert');
const net = require('net');
const host = '::';
const ... |
define(function defineDemoEventSequenceChrome(require) {
'use strict';
// The contents of this file have been collected by running event-sequence/test.html
return {
"platform": {
"description": "Chrome 38.0.2125.122 on OS X 10.8.5",
"layout": "Blink",
"manufacturer": null,
"name": "C... |
/**
* Created by JetBrains WebStorm.
* User: saar
* Date: 28/03/12
* Time: 11:59
* To change this template use File | Settings | File Templates.
*/
var jest = require('jest'),
util = require('util'),
og_action = require('../../og/og.js').doAction,
models = require('../../models'),
common = requir... |
'use strict';
// Для доступа ко всем константам сразу
module.exports = {
controllers: require('./controllers'),
generation: require('./generation'),
mongoose: require('./mongoose'),
models: require('./models')
};
|
//used for the media picker dialog
angular.module("umbraco").controller("Umbraco.Overlays.TreePickerController",
function ($scope, $q, entityResource, eventsService, $log, searchService, angularHelper, $timeout, localizationService, treeService, contentResource, mediaResource, memberResource) {
var tre... |
{
return d.name === "show";
}
|
var WeakMap = require("weak-map");
var Promise = require("./promise");
var Iteration = require("./iteration");
var Stream = require("./stream");
var handlers = new WeakMap();
// ## ByteStream
module.exports = ByteStream;
function ByteStream(setup, length) {
var buffer = this.constructor.buffer(length);
hand... |
describe('ngPrettyJson', function () {
var testDirective,
noop = angular.noop,
scope,
fixture = function fixture($compile, $rootScope, $timeout) {
scope = $rootScope.$new();
scope.obj = obj;
scope.badjson = noop;
scope.json = {
... |
(function () {
function handleExternalScript() {
var container = Docsify.dom.getNode('#main');
var scripts = Docsify.dom.findAll(container, 'script');
for (var i = scripts.length; i--; ) {
var script = scripts[i];
if (script && script.src) {
var newScript = document.createEle... |
/*
* Support for a "transform" loader interface
*/
(function () {
const systemJSPrototype = System.constructor.prototype;
const instantiate = systemJSPrototype.instantiate;
systemJSPrototype.instantiate = function (url, parent) {
if (url.slice(-5) === '.wasm')
return instantiate.call(this, u... |
define(["Tone/core/Tone", "Tone/event/Event", "Tone/core/Type", "Tone/core/Transport"], function (Tone) {
"use strict";
/**
* @class Tone.Part is a collection Tone.Events which can be
* started/stoped and looped as a single unit.
*
* @extends {Tone.Event}
* @param {Function} callback The callb... |
'use strict'
var reusify = require('reusify')
function fastqueue (context, worker, concurrency) {
if (typeof context === 'function') {
concurrency = worker
worker = context
context = null
}
var cache = reusify(Task)
var queueHead = null
var queueTail = null
var _running = 0
var self = {
... |
// NFE:
function logMyName(){
var name = arguments.callee.toString();
name = name.substr('function '.length);
name = name.substr(0, name.indexOf('('));
console.log("My name is " + name);
}
logMyName();
// Anonymous
var logMyName2 = function (){
var name = arguments.callee.toString();
name = name.substr('fu... |
/**
* @depends {nrs.js}
*/
var NRS = (function(NRS, $, undefined) {
NRS.defaultSettings = {
"submit_on_enter": 0,
"animate_forging": 1,
"news": -1,
"console_log": 0,
"fee_warning": "100000000000",
"amount_warning": "10000000000000",
"asset_transfer_warning": "10000",
"24_hour_format": 1,
"remember_... |
// ---
// Copyright (c) 2010 Francesco Cottone, http://www.kesiev.com/
// ---
/**
* @namespace Help module provides some Javascript-specific functions, such object copying, randomizing functions,
* string/array handlers and the akihabaraInit function.
*/
var help={
/**
* Searches an object in an array filtering... |
// -----------------------------------------------------------------------------------
// Copyright (c) Microsoft Open Technologies (Shanghai) Co. Ltd. All rights reserved.
//
// The MIT License (MIT)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associa... |
'use strict';
describe('batJsonTree', function () {
var $compile, $rootScope, element;
beforeEach(module('batarang.json-tree'));
beforeEach(inject(function (_$compile_, _$rootScope_) {
$compile = _$compile_;
$rootScope = _$rootScope_;
}));
it('should not throw on an undefined model', function () {... |
YUI.add('gallery-patch-341-charts-alwaysshowzero', function(Y) {
Y.NumericAxis.prototype._updateMinAndMax = function()
{
var data = this.get("data"),
max,
min,
len,
num,
i = 0,
key,
setMax = this.get("setMax"),
setMin = this.get("setMin");
if(!se... |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* @name: S15.1.3.2_A1.11_T2;
* @section: 15.1.3.2;
* @assertion: If B = 1110xxxx (n = 3) and (string.charAt(k + 4) and
* string.charAt(k + 5)) or (string.charAt(k + 7) and
* st... |
angular
.module('app')
.controller('newsCtrl', ['$scope', function($scope) {
$scope.title = "NEWS";
$scope.items = ['democrat','work','mission','news','contact',];
$scope.selectedValue = 'news';
}]); |
/* */
var $export = require('./_export');
$export($export.S, 'Math', {iaddh: function iaddh(x0, x1, y0, y1) {
var $x0 = x0 >>> 0,
$x1 = x1 >>> 0,
$y0 = y0 >>> 0;
return $x1 + (y1 >>> 0) + (($x0 & $y0 | ($x0 | $y0) & ~($x0 + $y0 >>> 0)) >>> 31) | 0;
}});
|
var expect = require('chai').expect;
describe('[API] t.pressKey', function () {
it('Should press keys', function () {
return runTests('./testcafe-fixtures/press-key-test.js', 'Press keys', { only: 'chrome' });
});
it('Should validate keys argument', function () {
return runTests('./testca... |
/* */
define(['exports'], function (exports) {
'use strict';
exports.__esModule = true;
exports.invokeLifecycle = invokeLifecycle;
function invokeLifecycle(instance, name, model) {
if (typeof instance[name] === 'function') {
var result = instance[name](model);
if (result instanceof Promise) ... |
'use strict';
describe('myApp.photo module', function() {
beforeEach(module('myApp.photo'));
describe('photo controller', function(){
it('should ....', inject(function($controller) {
//spec body
var photoCtrl = $controller('PhotoController');
expect(photoCtrl).toBeDefined();
}));
})... |
(function (window, ch) {
'use strict';
var document = window.document;
ch.Popover.prototype._hidingShortcuts = function () {
var that = this;
function hide(event) {
// event.button === 0: Fix issue #933 Right click closes it on Firefox.
if (event.target !== that._... |
import TomSelect from"../../tom-select.js";TomSelect.define("drag_drop",function(e){var t,o,r=this;if(!$.fn.sortable)throw new Error('The "drag_drop" plugin requires jQuery UI "sortable".');"multi"===r.settings.mode&&(t=r.lock,o=r.unlock,r.hook("instead","lock",function(){var e=r.control.dataset.sortable;return e&&e.di... |
/**
* Copyright (c) 2010, Lukáš Karas <lukas.karas@centrum.cz>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License,
* version 2, as published by the Free Software Foundation.
*
* This program is distributed in the hope it ... |
var after = require('after');
var express = require('../')
, Router = express.Router
, methods = require('methods')
, assert = require('assert');
describe('Router', function(){
it('should return a function with router methods', function() {
var router = Router();
assert(typeof router == 'function');
... |
/**
* @author mrdoob / http://mrdoob.com/
* @author mikael emtinger / http://gomo.se/
* @author alteredq / http://alteredqualia.com/
* @author WestLangley / http://github.com/WestLangley
* @author elephantatwork / www.elephantatwork.ch
*/
THREE.Object3D = function () {
Object.defineProperty( this, 'id', { valu... |
/* A Telnet Protocol Listener.
* By Wez Furlong.
* Copyright (c) 2011 Message Systems, Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright
*... |
ReactDOM.render(
<h1>Hello, world!</h1>,
document.getElementById('root')
);
|
/*!
* jquery.fancytree.edit.js
*
* Make node titles editable.
* (Extension module for jquery.fancytree.js: https://github.com/mar10/fancytree/)
*
* Copyright (c) 2008-2015, Martin Wendt (http://wwWendt.de)
*
* Released under the MIT license
* https://github.com/mar10/fancytree/wiki/LicenseInfo
*
* @version @... |
module.exports={title:"Medium",slug:"medium",get svg(){return'<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Medium</title><path d="'+this.path+'"/></svg>'},path:"M13.54 12a6.8 6.8 0 01-6.77 6.82A6.8 6.8 0 010 12a6.8 6.8 0 016.77-6.82A6.8 6.8 0 0113.54 12zM20.96 12c0 3.54-1.51 6.42-3.38 6... |
var express = require('../')
, assert = require('assert');
describe('app', function(){
it('should inherit from event emitter', function(done){
var app = express();
app.on('foo', done);
app.emit('foo');
})
})
describe('app.parent', function(){
it('should return the parent when mounted', function()... |
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'bidi', 'en-ca', {
ltr: 'Text direction from left to right', // MISSING
rtl: 'Text direction from right to left' // MISSING
});
|
'use strict';
var xtend = require('xtend');
var toggle = require('state-toggle');
module.exports = Compiler;
/* Construct a new compiler. */
function Compiler(tree, file) {
this.inLink = false;
this.inTable = false;
this.tree = tree;
this.file = file;
this.options = xtend(this.options);
this.setOptions({... |
var searchData=
[
['warning',['warning',['../class_jmcpp_1_1_logger.html#ae3fe94c241e54aaa9f37668d2bd7bc94',1,'Jmcpp::Logger']]]
];
|
// Copyright 2007 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... |
/*!
* 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('ua', {
headerCell: {
aria: {
de... |
asynctest(
'browser.tinymce.plugins.legacyoutput.LegacyOutputPluginTest',
[
'ephox.agar.api.Pipeline',
'ephox.mcagar.api.LegacyUnit',
'ephox.mcagar.api.TinyLoader',
'tinymce.plugins.legacyoutput.Plugin',
'tinymce.themes.modern.Theme'
],
function (Pipeline, LegacyUnit, TinyLoader, Plugin, The... |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* @name: S11.11.2_A2.4_T2;
* @section: 11.11.2;
* @assertion: First expression is evaluated first, and then second expression;
* @description: Checking with "throw";
*/
//CHECK#1... |
/**
* Messages component which is divided to following logical components:
*
* Controllers
*
* All of these are wrapped to 'frontend.auth.login' angular module.
*/
(function() {
'use strict';
// Define frontend.auth.login angular module
angular.module('frontend.core.auth.login', []);
// Module configur... |
"use strict";
exports.__esModule = true;
exports.getMeaningOfLife2 = void 0;
var getMeaningOfLife2 = function () { return 45; };
exports.getMeaningOfLife2 = getMeaningOfLife2;
|
import React from "react";
import { shallow } from "enzyme";
import Breadcrumbs from "../Breadcrumbs";
describe("Breadcrumbs",()=>{
let onSelectedItemReturn = -1;
//Callback on click Breadcrumbs
const onSelectedItem = (item) => {
onSelectedItemReturn = item;
};
const item = {
id:1... |
import $ from 'jquery';
import GPM, { Instance as gpm } from './utils/gpm';
import KeepAlive from './utils/keepalive';
import Updates, { Instance as updates, Notifications, Feed } from './updates';
import Dashboard from './dashboard';
import Pages from './pages';
import Forms from './forms';
import Scrollbar, { Instanc... |
/* flatpickr v4.5.0, @license MIT */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(factory((global.lv = {})));
}(this, (function (exports) { 'use strict';
var f... |
import {
INFO_LOAD,
INFO_LOAD_SUCCESS,
INFO_LOAD_FAIL
} from './actionTypes';
function loadFromServer(client) {
return client.get('/loadInfo')
.then((result) => {
return result;
});
}
export function load() {
return {
types: [INFO_LOAD, INFO_LOAD_SUCCESS, INFO_LOAD_FAIL],
promise: (cli... |
const Example = React.createClass({
getInitialState() {
return { show: true };
},
toggle() {
this.setState({ show: !this.state.show });
},
render() {
const tooltip = <Tooltip>Tooltip overload!</Tooltip>;
const sharedProps = {
show: this.state.show,
container: this,
target:... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
var _exportNames = {
imageListItemBarClasses: true
};
Object.defineProperty(exports, "default", {
enumerable: true,
get: function () {
return _... |
var _ = require('underscore');
var oneDay = 86400000;
module.exports = function hsts(options) {
options = options || {};
var maxAgeMS = (options.maxAge != null ? options.maxAge : oneDay);
var force = options.force;
var setIf = options.setIf;
if (options.maxage != null) {
throw new Error('Did you mean... |
Package.describe({
name: "telescope:kadira",
summary: "Telescope Kadira package",
version: "0.25.5",
git: "https://github.com/TelescopeJS/telescope-kadira.git"
});
Package.onUse(function (api) {
api.versionsFrom(['METEOR@1.0']);
api.use([
'telescope:core@0.25.5',
'meteorhacks:kadira@2.24.1',
... |
import { ImporterInfo } from '../../importer/lib/ImporterInfo';
export class HipChatEnterpriseImporterInfo extends ImporterInfo {
constructor() {
super('hipchatenterprise', 'HipChat (tar.gz)', 'application/gzip', [
{
text: 'Importer_HipChatEnterprise_Information',
href: 'https://rocket.chat/docs/administ... |
it("should move externals in chunks into entry chunk", function(done) {
var fs = require("fs");
var source = fs.readFileSync(__filename, "utf-8");
source.should.containEql("1+" + (1+1));
source.should.containEql("3+" + (2+2));
source.should.containEql("5+" + (3+3));
import("./chunk").then(function(chunk) {
chu... |
/*
This file is part of Ext JS 4.2
Copyright (c) 2011-2013 Sencha Inc
Contact: http://www.sencha.com/contact
Commercial Usage
Licensees holding valid commercial licenses may use this file in accordance with the Commercial
Software License Agreement provided with the Software or, alternatively, in accordance with th... |
/**
* Manages flex container layout
*/
$KW.FlexLayoutEngine = {
/**
* Performs layout for a given container.
* @param : flexLayoutType
* @param : container - Container for which layout has to perform.
* @param : subwidgets - List op subwidgets in given container.
*/
performFlexLayout : function(layoutType,... |
'use strict';
var validationConstants = require('../validationConstants');
module.exports = function (manifestContent, description, platform, level, requiredIconSizes, callback) {
var icons = manifestContent.icons;
var result = {
description: description,
platform: platform,
level: level,
member:... |
EditArea.prototype.focus = function() {
this.textarea.focus();
this.textareaFocused=true;
};
EditArea.prototype.check_line_selection= function(timer_checkup){
//if(do_highlight==false){
if(!editAreas[this.id])
return false;
//time=new Date;
//t1=t2=t3= time.getTime();
if(!thi... |
var pairs = require('../data/pairs');
/**
* Calculate executed order price
*
* @param effect
* @returns {*}
*/
var getPrice = function(effect, referenceDate) {
var g = effect.got ? effect.got : effect.gets;
var p = effect.paid ? effect.paid : effect.pays;
var price;
if (!p.is_zero() && !g.is_zero()) {
... |
// ==UserScript==
// @id iitc-plugin-missions@jonatkins
// @name IITC plugin: Missions
// @category Info
// @version 0.1.2.@@DATETIMEVERSION@@
// @namespace https://github.com/jonatkins/ingress-intel-total-conversion
// @updateURL @@UPDATEURL@@
// @downloadURL @@DOWNLOADU... |
'use strict';
define(['jquery',
'main/config'
],
function ($, cf) {
var utility;
var config = cf.init();
return {
init: function (wrapper, util, params, callback) {
utility = util;
window.dnn.initScheduler = function initializeScheduler() {
... |
var fs = require("fs"),
path = require("path"),
Stream = require("stream"),
MemoryStream = require("memorystream");
require("./lazy_spec.js");
require("./map_spec.js");
require("./filter_spec.js");
require("./reverse_spec.js");
require("./shuffle_spec.js");
require("./concat_spec.js... |
var _arity = require('./internal/_arity');
var _concat = require('./internal/_concat');
var _curry2 = require('./internal/_curry2');
/**
* `tryCatch` takes two functions, a `tryer` and a `catcher`. The returned
* function evaluates the `tryer`; if it does not throw, it simply returns the
* result. If the `tryer` *... |
/*
YUI 3.17.0 (build ce55cc9)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add("lang/datatype-date-format_pl-PL",function(e){e.Intl.add("datatype-date-format","pl-PL",{a:["niedz.","pon.","wt.","\u015br.","czw.","pt.","sob."],A:["niedziela","ponie... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const EMAIL_REGEX = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
function isValidEmail(email) {
return EMAIL_REGEX.test(email);
}
exports.isValidEmail = isValidEmail;
function strcmp(a, b) {
if (!a) {
a = '';
}
if (!b) {
b = '... |
/*!
* jQuery JavaScript Library v1.10.0 -css,-effects,-offset,-dimensions,-deprecated
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2013-05-26T21... |
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2014 Photon Storm Ltd.
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
/**
* A Frame is a single frame of an animation and is part of a FrameData collection.
*
* @class Phaser.Frame
* @construc... |
(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.VASTPlayer = f... |
// Invoke 'strict' JavaScript mode
'use strict';
// Load the module dependencies
var users = require('../../app/controllers/users.server.controller'),
articles = require('../../app/controllers/articles.server.controller');
// Define the routes module' method
module.exports = function(app) {
// Set up the '... |
//json对象变成url方式
function json2url(json){
json.t=Math.random();
var arr=[];
for(var name in json){
arr.push(name+'='+json[name]);
}
return arr.join('&');
}
function ajax(json){
//考虑默认值
json=json || {};
if(!json.url)return;
json.data=json.data || {};
json.timeout=json.timeout || 3000;
json.type=json.type ||... |
/*
Editable themes:
- default
- bootstrap 2
- bootstrap 3
Note: in postrender() `this` is instance of editableController
*/
angular.module('xeditable').factory('editableThemes', function() {
var themes = {
//default
'default': {
formTpl: '<form class="editable-wrap"></form>',
noformTpl: '... |
/*
* @name Array Objects
* @description Demonstrates the syntax for creating an array of custom objects.
*/
var unit = 40;
var count;
var mods = [];
function setup() {
createCanvas(720, 360);
noStroke();
var wideCount = width / unit;
var highCount = height / unit;
count = wideCount * highCount;
var ind... |
/**
* Latvian translation
* @author Uldis Plotiņš <uldis.plotins@gmail.com>
* @version 2010-09-22
*/
(function($) {
if (elFinder && elFinder.prototype.options && elFinder.prototype.options.i18n)
elFinder.prototype.options.i18n.lv = {
/* errors */
'Root directory does not exists' : 'Saknes direk... |
// BandwidthHandler.js
var BandwidthHandler = (function() {
function setBAS(sdp, bandwidth, isScreen) {
if (isMobileDevice || isFirefox || !bandwidth) {
return sdp;
}
if (isScreen) {
if (!bandwidth.screen) {
console.warn('It seems that you are not us... |
/**
* @license Highcharts JS v6.1.0 (2018-04-13)
*
* (c) 2009-2017 Torstein Honsi
*
* License: www.highcharts.com/license
*/
'use strict';
(function (factory) {
if (typeof module === 'object' && module.exports) {
module.exports = factory;
} else {
factory(Highcharts);
}
}(function (Highcharts) {
(function... |
var classblackbone_1_1_process_modules =
[
[ "mapModules", "classblackbone_1_1_process_modules.html#a3844fce3cdd63f248f813e30a458dde6", null ],
[ "ProcessModules", "classblackbone_1_1_process_modules.html#a3577a6abf61b028c84dc01ea8d15b46f", null ],
[ "~ProcessModules", "classblackbone_1_1_process_modules.ht... |
/**
* @summary Accounts UI
* @namespace
* @memberOf Accounts
* @importFromPackage accounts-base
*/
Accounts.ui = {};
Accounts.ui._options = {
requestPermissions: {},
requestOfflineToken: {},
forceApprovalPrompt: {}
};
// XXX refactor duplicated code in this function
/**
* @summary Configure the behavior ... |
'use strict';
module.exports = function(app) {
app.get('/*', function(req, res) {
res.render('index.html');
});
} |
// NOTICE!! DO NOT USE ANY OF THIS JAVASCRIPT
// IT'S JUST JUNK FOR OUR DOCS!
// ++++++++++++++++++++++++++++++++++++++++++
/*!
* Copyright 2014-2015 Twitter, Inc.
*
* Licensed under the Creative Commons Attribution 3.0 Unported License. For
* details, see https://creativecommons.org/licenses/by/3.0/.
*/
... |
describe("", function() {
var rootEl;
beforeEach(function() {
rootEl = browser.rootEl;
browser.get("build/docs/examples/example-example38/index.html");
});
it('should add Hello to the name', function() {
expect(element(by.binding("greeting")).getText()).toEqual('Bonjour World!');
});
}); |
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('inferno'), require('inferno-clone-vnode'), require('history'), require('path-to-regexp-es6'), require('hoist-non-inferno-statics')) :
typeof define === 'function' && define.amd ? define(['expor... |
/*!
* Angular Material Design
* https://github.com/angular/material
* @license MIT
* v1.0.7
*/
(function( window, angular, undefined ){
"use strict";
/**
* @ngdoc module
* @name material.components.input
*/
angular.module('material.components.input', [
'material.core'
])
.directive('mdInputContainer',... |
'use strict';
var config = require('./config').config;
var EventTarget = require('./events')['default'];
var instrument = require('./instrument')['default'];
var objectOrFunction = require('./utils').objectOrFunction;
var isFunction = require('./utils').isFunction;
var now = require('./utils').now;
var cast = require('... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.