code stringlengths 2 1.05M |
|---|
/*global define*/
define([
'../Core/freezeObject'
], function(
freezeObject) {
'use strict';
/**
* @private
*/
var TerrainState = {
FAILED : 0,
UNLOADED : 1,
RECEIVING : 2,
RECEIVED : 3,
TRANSFORMING : 4,
TRANSFOR... |
var SeriesPalettes={colors:["#7cb5ec","#434348","#90ed7d","#f7a35c","#8085e9","#f15c80","#e4d354","#2b908f","#f45b5b","#91e8e1"]};export default SeriesPalettes; |
'use strict';
angular.module('copayApp.services').factory('go', function($window, $ionicSideMenuDelegate, $rootScope, $location, $state, $timeout, $log, profileService, platformInfo, nodeWebkit) {
var root = {};
root.openExternalLink = function(url, target) {
if (platformInfo.isNW) {
nodeWebkit.openExte... |
var iModule= core.VW.Module
var importModule= new iModule(__dirname)
importModule.loadConfigFile("core-modules.json")
importModule.import()
|
/**
* Module dependencies.
* @ignore
*/
var QueryCommand = require('./commands/query_command').QueryCommand
, DbCommand = require('./commands/db_command').DbCommand
, MongoReply = require('./responses/mongo_reply').MongoReply
, Admin = require('./admin').Admin
, Collection = require('./collection').Collectio... |
chatStream = new Meteor.Stream('chat');
chatStream.permissions.write(function() {
return true;
});
chatStream.permissions.read(function() {
return true;
});
|
module.exports = {
prompts: {
hello: {
type: 'input',
required: true,
},
},
};
|
import { autoDetectRenderer } from './autoDetectRenderer';
import Container from './display/Container';
import { shared, Ticker } from './ticker';
import settings from './settings';
import { UPDATE_PRIORITY } from './const';
/**
* Convenience class to create a new PIXI application.
* This class automatically creates... |
module.exports = function (babel) {
var t = babel.types;
return {
visitor: {
// From https://github.com/babel-plugins/babel-plugin-jscript
// Solves http://kiro.me/blog/nfe_dilemma.html
FunctionExpression: {
exit: function (path) {
var node = path.node;
if (! node.... |
import Util from './util'
/**
* --------------------------------------------------------------------------
* Bootstrap (v4.0.0-alpha.4): collapse.js
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* --------------------------------------------------------------------------
*/
const ... |
/**
* Those tests should pass with a browser that handles well all the
* Media Events: https://developer.mozilla.org/en-US/docs/Web/Guide/Events/Media_events
*
* It relies *heavily* on those.
* Moreover an active internet connection is needed, and better be a fast one, since it
* preloads 40~ seconds of ogg files... |
import { Geometry } from '../core/Geometry';
import { Face3 } from '../core/Face3';
import { Vector2 } from '../math/Vector2';
/**
* @author zz85 / https://github.com/zz85
* Parametric Surfaces Geometry
* based on the brilliant article by @prideout http://prideout.net/blog/?p=44
*
* new THREE.ParametricGeometry( ... |
describe('walletHome', function() {
var walletService;
var fixtures = {};
beforeEach(function(done){
mocks.init(fixtures, 'walletHomeController', {}, done);
})
afterEach(function(done){
mocks.clear({}, done);
});
it('should be defined', function() {
should.exist(ctrl);
});
});
|
System.register([], function (_export, _context) {
"use strict";
var test, a, b, d;
return {
setters: [],
execute: function () {
_export("test", test = 2);
_export("test", test);
_export("test", test = 5);
_export("test", test + 1), test++;
(function () {
var tes... |
module.exports = function(hljs) {
//local labels: %?[FB]?[AT]?\d{1,2}\w+
return {
case_insensitive: true,
aliases: ['arm'],
lexemes: '\\.?' + hljs.IDENT_RE,
keywords: {
meta:
//GNU preprocs
'.2byte .4byte .align .ascii .asciz .balign .byte .code .data .else .end .end... |
import 'angular-translate';
import modProvider from './provider';
import modeConfig from './config';
import modRun from './run';
let mod = angular.module('bdit.language', [
'pascalprecht.translate',
]);
mod.provider('$WPHCLanguage', modProvider);
mod.config(modeConfig);
mod.run(modRun);
export default mod = mod.... |
/* ===========================================================
* jquery-flipping_gallery.js v1.1
* ===========================================================
* Copyright 2013 Pete Rojwongsuriya.
* http://www.thepetedesign.com
*
* Create a simple but beautiful
* 3D flipping gallery with on JS call
*
* https://... |
/**
* Copyright 2013-2014 Facebook, Inc.
*
* 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 required by applicable law or agree... |
'use strict';
exports.config = {
allScriptsTimeout: 11000,
specs: [
'build/docs/ptore2e/**/*.js',
'docs/app/e2e/*.scenario.js'
],
capabilities: {
'browserName': 'chrome'
},
baseUrl: 'http://localhost:8000/build/docs/',
framework: 'jasmine',
onPrepare: function() {
/* global angular... |
import get from 'ember-metal/property_get';
import { SuiteModuleBuilder } from 'ember-runtime/tests/suites/suite';
const suite = SuiteModuleBuilder.create();
suite.module('addObject');
suite.test('should return receiver', function() {
let before = this.newFixture(3);
let obj = this.newObject(before);
equal(... |
//
// Johan Coppieters - jan 2013 - jWorks
//
//
console.log("loading " + module.id);
var libpath = require("path"),
http = require("http"),
fs = require("fs"),
url = require("url"),
mime = require("mime");
var path = ".";
var cache = {},
nrCache = 0,
maxCache = 1, //1 is good for developeme... |
define([
'backgrid',
'orotranslation/js/translator'
], function(Backgrid, __) {
'use strict';
var BooleanCell;
/**
* Boolean column cell. Added missing behaviour.
*
* @export oro/datagrid/cell/boolean-cell
* @class oro.datagrid.cell.BooleanCell
* @extends Backgrid.Boole... |
/* @flow */
"use strict";
const _ = require("lodash");
const balancedMatch = require("balanced-match");
/**
* Replace all of the characters that are arguments to a certain
* CSS function with some innocuous character.
*
* This is useful if you need to use a RegExp to find a string
* but want to ignore matches in ... |
// Adapted from https://gist.github.com/paulirish/1579671 which derived from
// http://paulirish.com/2011/requestanimationframe-for-smart-animating/
// http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating
// requestAnimationFrame polyfill by Erik Möller.
// Fixes from Paul Irish, T... |
var fs = require('graceful-fs')
var util = require('util')
var path = require('path')
var JS_TEMPLATE_PATH = path.join(__dirname, '/../../config.tpl.js')
var COFFEE_TEMPLATE_PATH = path.join(__dirname, '/../../config.tpl.coffee')
var JS_REQUIREJS_TEMPLATE_PATH = path.join(__dirname, '/../../requirejs.config.tpl.js')
v... |
/*!
* phone-codes/phone.js
* https://github.com/RobinHerbots/Inputmask
* Copyright (c) 2010 - 2017 Robin Herbots
* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
* Version: 3.3.5
*/
!function(factory) {
"function" == typeof define && define.amd ? define([ "../inputmask" ], fact... |
import { ActionHandler, Evented, FrameworkObject } from 'ember-runtime';
import { initViewElement } from '../system/utils';
import { cloneStates, states } from './states';
/**
`Ember.CoreView` is an abstract class that exists to give view-like behavior
to both Ember's main view class `Component` and other classes ... |
define(["../../var/pnum"],function(a){return new RegExp("^("+a+")(?!px)[a-z%]+$","i")}); |
import express from 'express';
import createWebpackMiddleware from 'webpack-dev-middleware';
import createWebpackHotMiddleware from 'webpack-hot-middleware';
import ListenerManager from './listenerManager';
import config from '../../config';
import { log } from '../utils';
class HotClientServer {
constructor(compile... |
'use strict';
var React = require('react/addons'),
classSet = React.addons.classSet,
PubSub = require('../utils/PubSub'),
ClassNames = require('../utils/ClassNames');
module.exports = React.createClass({
displayName: 'SwitchItem',
mixins: [PubSub, ClassNames],
getInitialState: function() {
... |
JSIL.MakeClass("JSIL.Reference", "JSIL.BoxedVariable", true, [], function ($) {
$.RawMethod(false, ".ctor",
function BoxedVariable_ctor(value) {
this.$value = value;
}
);
$.RawMethod(false, "get",
function BoxedVariable_Get() {
return this.$value;
}
);
... |
angular.module("proton.controllers.Account", ["proton.tools"])
.controller("AccountController", function(
$scope,
$rootScope,
$state,
$stateParams,
$log,
$translate,
$q,
$timeout,
$http,
CONSTANTS,
authentication,
networkActivityTracker,
User,
Reset,
pmcw,
... |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* @name: S11.1.1_A4.1;
* @section: 11.1.1;
* @assertion: Being in anonymous code, "this" and eval("this"), called as a function, return the global object;
* @description: Creating... |
/*
* 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.
*/
... |
/*globals jQuery, document */
var WPML_Core = WPML_Core || {};
WPML_Core.taxonomy_sync_complete_reload = function () {
"use strict";
location.reload();
}
WPML_Core.taxonomy_sync_complete = function ( event, xhr, settings ) {
"use strict";
if ( settings.data && typeof settings.data === 'string' ) {
if ( setting... |
/**
* Lo-Dash 2.4.1 (Custom Build) <http://lodash.com/>
* Build: `lodash modularize underscore exports="amd" -o ./underscore/`
* Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/>
* Based on Underscore.js 1.5.2 <http://underscorejs.org/LICENSE>
* Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud... |
/**
* Global options.
*/
export var options = {
verbose: true,
commercialLicense: false,
classNamePrefix: "amcharts-",
autoSetClassName: false,
minPolylineStep: 0.5,
onlyShowOnViewport: false,
queue: false,
autoDispose: false,
licenses: [],
suppressErrors: false,
... |
beforeAll(function(){
ProjectMockery = function(attrs){
var attrs = attrs || {};
var data = {
project_id: 6051,
project_name: 'foo',
headline: 'foo',
permalink: 'foo',
state: "online",
online_date: "2015-07-13T10:19:40.193106-03:00",
recommended: 'true',
project... |
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'pagebreak', 'mk', {
alt: 'Page Break', // MISSING
toolbar: 'Insert Page Break for Printing' // MISSING
});
|
//----------------------------------------------------------------------------
// Copyright (C) 2008-2012 The IPython Development Team
//
// Distributed under the terms of the BSD License. The full license is in
// the file COPYING, distributed as part of this software.
//------------------------------------------... |
CATARSE.UsersShowView = Backbone.View.extend({
initialize: function() {
_.bindAll(this, "index", "backs", "projects", "credits", "comments", 'settings', 'unsubscribes')
CATARSE.router.route("", "index", this.index)
CATARSE.router.route("backs", "backs", this.backs)
CATARSE.router.route("projects", "p... |
/**
* @fileOverview Kickass library to create and place poppers near their reference elements.
* @version {{version}}
* @license
* Copyright (c) 2016 Federico Zivolo and contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation f... |
var test = require('tape')
var a = require('../')
var f = {
arr: [ 1, 1, 2, 3, 4 ],
recordset: [
{ b: false, n: 1 },
{ b: false, n: 2 }
]
}
test('.where(recordset, query)', function (t) {
t.deepEqual(a.where(f.recordset, { b: true }), [])
t.deepEqual(a.where(f.recordset, { b: false }), [
{ b: fa... |
describe('forwarded-for', function () {
'use strict';
var assume = require('assume')
, parser = require('./');
it('is exposed as function', function () {
assume(parser).is.a('function');
});
it('exposes the proxy array', function () {
assume(parser.proxies).to.be.a('array');
});
it('expose... |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview Defines the {@link CKEDITOR.dom.text} class, which represents
* a DOM text node.
*/
/**
* Represents a DOM text node.
* @constructor
... |
var mdeps = require('../');
var test = require('tape');
var JSONStream = require('JSONStream');
var packer = require('browser-pack');
var through = require('through');
test('transform', function (t) {
t.plan(3);
var p = mdeps(__dirname + '/files/tr_sh/main.js', {
transform: function (file) {
... |
// Supported formats of https://github.com/image-size/image-size:
// BMP, GIF, JPEG, PNG, PSD, TIFF, WebP, SVG
// ***
// Takes the url of the image and an optional timeout
// getImageSizeFromUrl returns an Object like this
// {
// height: 50,
// url: 'http://myblog.com/images/cat.jpg',
// width: 50
// };
//... |
module.exports={A:{A:{"2":"K C G E A B YB"},B:{"2":"D w Z I M H"},C:{"33":"0 1 3 5 6 7 8 F J K C G E A B D w Z I M H N O P Q R S T U V W X Y y a b c d e f L h i j k l m n o p q r s t u v z x","164":"WB AB UB OB"},D:{"2":"0 1 3 5 6 7 8 F J K C G E A B D w Z I M H N O P Q R S T U V W X Y y a b c d e f L h i j k l m n o p... |
version https://git-lfs.github.com/spec/v1
oid sha256:8678bc2becb07afb7294a3e33e8e9d7fbffc66c4e09b09be960b024bfa2300ea
size 2322
|
version https://git-lfs.github.com/spec/v1
oid sha256:d5e11de0d3fb26cf1a180015cc836662dd05a8b03c2a0f18305a0a47e21c2769
size 3411
|
var Widget, resourceful;
resourceful = require('resourceful');
module.exports = Widget = resourceful.define('widget');
Widget.create({
name: 'FooBar'
});
|
'use strict';
module.exports = function(app) {
var users = require('../../app/controllers/users.server.controller');
var surveys = require('../../app/controllers/surveys.server.controller');
// Surveys Routes
app.route('/surveys')
.get(surveys.list)
.post(users.requiresLogin, surveys.create);
app.route('/su... |
/**
* v1.0.23 generated on: Wed May 25 2016 13:31:46 GMT-0500 (CDT)
* Copyright (c) 2014-2016, Ecor Ventures LLC. All Rights Reserved. See LICENSE (BSD).
*/
"use strict";NGN?window.NGN.BUS?NGN.HTTP?(window.NGNX=window.NGNX||{},window.NGNX.Loader=function(n,s){n=n||{};var t=this;Object.defineProperties(this,{async... |
version https://git-lfs.github.com/spec/v1
oid sha256:dff15a71d1093a18bafe4e8ef8051bdc379f4d725815279243d8996e103d7c54
size 3530
|
/* */
var createAggregator = require("../internal/createAggregator");
var indexBy = createAggregator(function(result, value, key) {
result[key] = value;
});
module.exports = indexBy;
|
/*
YUI 3.17.2 (build 9c3c78e)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('querystring-stringify', function (Y, NAME) {
/**
* Provides Y.QueryString.stringify method for converting objects to Query Strings.
*
* @module querystring
* @su... |
!function(e){"function"==typeof define&&define.amd?define(["../datepicker"],e):e(jQuery.datepicker)}(function(e){return e.regional.ca={closeText:"Tanca",prevText:"Anterior",nextText:"Següent",currentText:"Avui",monthNames:["gener","febrer","març","abril","maig","juny","juliol","agost","setembre","octubre","novembre","d... |
// # Has Helper
// Usage: `{{#has tag="video, music"}}`, `{{#has author="sam, pat"}}`
//
// Checks if a post has a particular property
var _ = require('lodash'),
logging = require('../logging'),
i18n = require('../i18n'),
has;
has = function (options) {
options = optio... |
// Copyright 2013 The Polymer Authors. All rights reserved.
// Use of this source code is goverened by a BSD-style
// license that can be found in the LICENSE file.
(function(scope) {
'use strict';
var HTMLElement = scope.wrappers.HTMLElement;
var mixin = scope.mixin;
var NodeList = scope.wrappers.NodeList;
... |
import React from 'react';
import Fixture from '../../Fixture';
class InputPlaceholderFixture extends React.Component {
constructor(props, context) {
super(props, context);
this.state = {
placeholder: 'A placeholder',
changeCount: 0,
};
}
handleChange = () => {
this.setState(({chan... |
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("../../lib/codemirror"));
else if (typeof define == "function" && define.amd... |
/*
MAPSTRACTION v2.0.18 http://www.mapstraction.com
Copyright (c) 2012 Tom Carden, Steve Coast, Mikel Maron, Andrew Turner, Henri Bergius, Rob Moran, Derek Fowler, Gary Gale
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the ... |
module.exports={A:{A:{"2":"J C G E B A VB"},B:{"2":"D Y g H L"},C:{"1":"0 1 3 4 5 6 q r s x y u t","2":"TB z F I J C G E B A D Y g H L M N O P Q R S T U V W X v Z a b c d e f K h i j k l m n o p RB QB"},D:{"1":"0 1 3 4 5 6 s x y u t FB AB CB UB DB","2":"F I J C G E B A D Y g H L M N O P Q R S T U V W X v Z a b","129":"... |
(function (context) {
"use strict";
var TheGraph = context.TheGraph;
TheGraph.config.tooltip = {
container: {},
rect: {
className: "tooltip-bg",
x: 0,
y: -7,
rx: 3,
ry: 3,
height: 16
},
text: {
className: "tooltip-label",
ref: "label"
}
};
... |
define("ace/theme/solarized_dark",["require","exports","module","ace/lib/dom"], function(require, exports, module) {
exports.isDark = true;
exports.cssClass = "ace-solarized-dark";
exports.cssText = ".ace-solarized-dark .ace_gutter {\
background: #01313f;\
color: #d0edf7\
}\
.ace-solarized-dark .ace_print-margin {\
wi... |
$C('$data.Expressions.ObjectLiteralExpression', $data.Expressions.ExpressionNode, null, {
constructor: function (members) {
///<summary>Represent an object initializer literal expression Ex: { prop: value}</summary>
///<param name="member" type="Array" elementType="$data.Expressions.ObjectField... |
/****************************************************************************
Copyright (c) 2011-2012 cocos2d-x.org
Copyright (c) 2013-2014 Chukong Technologies Inc.
http://www.cocos2d-x.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation... |
/*! jQuery Validation Plugin - v1.15.1 - 7/22/2016
* http://jqueryvalidation.org/
* Copyright (c) 2016 Jörn Zaefferer; Licensed MIT */
!function(a){"function"==typeof define&&define.amd?define(["jquery","../jquery.validate.min"],a):"object"==typeof module&&module.exports?module.exports=a(require("jquery")):a(jQuery)}... |
/*eslint-env node */
module.exports = function (grunt) {
grunt.initConfig({
"bolt-init": {
"plugin": {
config_dir: "config/bolt"
}
},
"bolt-build": {
"plugin": {
config_js: "config/bolt/prod.js",
output_dir: "scratch",
main: "tinymce.plugins.visualblocks... |
"use strict";
/**
* Check if a prop or another specified prop has a valid value
* @type {function}
*/
exports.or = createChainableOrTypeChecker;
function createChainableOrTypeChecker(orPropName, validate) {
function checkType(isRequired, props, propName, componentName) {
componentName = componentName || ANON... |
(function() {
var init = function() {
if (detectMobile) {
//
console.log();
getHtmlLocation;
} else {
getFallBackLocation;
}
},
detectMobile = function() {
userAgent = (navigator.userAgent || navigator.vendor || window.opera);
if (userAgent.match(/[android|kind... |
/*
* Lexical analysis and token construction.
*/
"use strict";
var _ = require("lodash");
var events = require("events");
var reg = require("./reg.js");
var state = require("./state.js").state;
var unicodeData = require("../data/ascii-identifier-data.js");
var asciiIdentifierStartTable = unicodeData.ascii... |
/* global define, module, require */
'use strict';
(function(factory, root) {
if (typeof define === 'function' && define.amd) {
define(['jquery'], factory); // AMD
} else if (typeof exports === 'object') {
module.exports = factory(require('jquery')); // Node
} else {
factory(root.$... |
import 'ember';
import Ember from 'ember-metal/core';
import isEnabled from 'ember-metal/features';
import EmberHandlebars from 'ember-htmlbars/compat';
var compile = EmberHandlebars.compile;
var Router, App, router, registry, container;
var set = Ember.set;
var aboutDefer, otherDefer;
function basicEagerURLUpdate... |
Strophe.addConnectionPlugin('receipts', {
_conn: null,
_msgQueue: {},
_retries: {},
_resendCount: 10,
_resendTime: 9000,
init: function(conn) {
this._conn = conn;
Strophe.addNamespace('RECEIPTS', 'urn:xmpp:receipts');
},
statusChanged: function (status) {
if (statu... |
//Setting up route
angular.module('mean').config(['$routeProvider',
function($routeProvider) {
$routeProvider.
when('/articles', {
templateUrl: 'views/articles/list.html'
}).
when('/articles/create', {
templateUrl: 'views/articles/create.html'
}).
... |
require('thenify-all')(
require('zlib'),
exports, [
'deflate',
'deflateRaw',
'gzip',
'gunzip',
'inflate',
'inflateRaw',
'unzip',
]
)
|
/* flatpickr v4.1.0, @license MIT */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global.rangePlugin = factory());
}(this, (function () { 'use strict';
function rangePlugin(co... |
/** vim: et:ts=4:sw=4:sts=4
* @license RequireJS 0.26.0 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
* Available via the MIT or new BSD license.
* see: http://github.com/jrburke/requirejs for details
*/
/*jslint strict: false, plusplus: false */
/*global window: false, navigator: false, docume... |
;foo=function n(o,f){n(o+'nnn')};
|
/*
*/
var moment = require('moment');
var Parser = require('../parser').Parser;
var ParsedResult = require('../../result').ParsedResult;
var updateParsedComponent = require('../EN/ENWeekdayParser').updateParsedComponent;
var DAYS_OFFSET = { 'dimanche': 0, 'dim': 0, 'lundi': 1, 'lun': 1,'mardi': 2, 'mar':2, ... |
// ==UserScript==
// @id iitc-plugin-keys@xelio
// @name IITC plugin: Keys
// @category Keys
// @version 0.3.0.@@DATETIMEVERSION@@
// @namespace https://github.com/jonatkins/ingress-intel-total-conversion
// @updateURL @@UPDATEURL@@
// @downloadURL @@DOWNLOADURL@@
// @des... |
/**
* @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'placeholder', 'sq', {
title: 'Karakteristikat e Mbajtësit të Vendit',
toolbar: 'Krijo Mabjtës Vendi',
name: 'Placeholder Name', /... |
var env = require('../environment.js'),
q = require('q');
// Make sure that borwser-related plugin hooks work with browser sync off
exports.config = {
seleniumAddress: env.seleniumAddress,
framework: 'jasmine',
// Spec patterns are relative to this directory.
specs: [
'specs/browser_get_wait_spec.js'... |
/*global angular */
'use strict';
describe('Unit: ExampleCtrl', function() {
var ctrl;
beforeEach(function() {
// instantiate the app module
angular.mock.module('app');
// mock the controller
angular.mock.inject(function($controller) {
ctrl = $controller('ExampleCtrl');
});
});
i... |
// This tests are ported from original zlib
/*global describe, it*/
'use strict';
var assert = require('assert');
var c = require('../lib/zlib/constants');
var msg = require('../lib/zlib/messages');
//var zlib_stream = require('../lib/zlib/zstream');
var zlib_inflate = require('../lib/zlib/inflate.js');
var infla... |
steal('funcunit/qunit','./deparam', function(qunit, can) {
module('can/util/string/deparam')
/** /
test("Basic deparam",function(){
var data = can.deparam("a=b");
equals(data.a,"b")
var data = can.deparam("a=b&c=d");
equals(data.a,"b")
equals(data.c,"d")
})
/**/
test("Nested deparam",function(){
var data... |
'use strict';
var assert = require('assert');
var yaml = require('../../lib/js-yaml');
suite('Resolving explicit tags on empty nodes', function () {
test('!!binary', function () {
assert.throws(function () { yaml.load('!!binary'); }, yaml.YAMLException);
});
test('!!bool', function () {
assert.thro... |
var fs = require('fs');
var acorn = require('acorn');
var walk = require('acorn/dist/walk');
var hadErrors = false;
var lexerFunctions = {
advance: true,
append: true,
attributesBlock: true,
attrs: true,
blank: true,
block: true,
blockCode: true,
call: true,
case: true,
className: true,
code: tr... |
/* global window */
/* global angular */
/* global module */
(function (module, window, angular) {
"use strict";
function test(string, regex) {
if (typeof regex === 'string' || regex instanceof String) {
regex=new RegExp(regex);
}
if (regex instanceof RegExp) {
... |
import $ from 'jquery'
import Tooltip from './tooltip'
/**
* --------------------------------------------------------------------------
* Bootstrap (v4.0.0-beta.2): popover.js
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* -----------------------------------------------------------... |
if (!window.console && !console.firebug) {
(function()
{
window.console =
{
log: function()
{
logFormatted(arguments, "");
},
debug: function()
{
logFormatted(arguments, "debug");
},
info: function()
{
... |
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("react-dom"));
else if(typeof define === 'function' && define.amd)
define(["react", "react-dom"], factory);
else if(typeof exports === 'obje... |
/**
* @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 { Injectable } from '../di/decorators';
import { PromiseWrapper } from '../facade/async';
import { BaseExcepti... |
// Based on PaVEParser by Felix Geisendörfer
// https://github.com/felixge/node-ar-drone/blob/master/lib/video/PaVEParser.js
// The AR Drone 2.0 allows a tcp client to receive H264 (MPEG4.10 AVC) video
// from the drone. However, the frames are wrapped by Parrot Video
// Encapsulation (PaVE), which this class parses.
... |
ej.addCulture( "haw", {
name: "haw",
englishName: "Hawaiian",
nativeName: "Hawaiʻi",
language: "haw",
calendars: {
standard: {
days: {
names: ["Lāpule","Pōʻakahi","Poʻalua","Poʻakolu","Poʻahā","Poʻalima","Poʻaono"],
namesAbbr: ["Lp","P1","P2","P3","P4","P5","P6"],
namesShort: ["Lp","P1","P2","P3",... |
'use strict';
describe('Loading 020-center-example.html', function() {
beforeEach(function() {
browser.get('/examples/020-center-example.html');
}, 30000);
it('should update the zoom value in the input if clicked the zoom control', function() {
element(by.className('ol-zoom-in')).click();
... |
'use strict';
var StripeResource = require('../StripeResource');
var stripeMethod = StripeResource.method;
module.exports = StripeResource.extend({
path: 'disputes',
includeBasic: [
'list', 'retrieve', 'update', 'setMetadata', 'getMetadata',
],
close: stripeMethod({
method: 'POST',
path: '/{id}... |
/*! videojs-contrib-dash - v2.6.1 - 2017-01-05
* Copyright (c) 2017 Brightcove */
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exp... |
'use strict'
function ReInterval (callback, interval, args) {
var self = this;
this._callback = callback;
this._args = args;
this._interval = setInterval(callback, interval, this._args);
this.reschedule = function (interval) {
// if no interval entered, use the interval passed in on creation
if (!... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.