code stringlengths 2 1.05M |
|---|
"use strict";
/**
* Copyright 2015 Google Inc. 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 req... |
'use strict';
/**
* Module dependencies
*/
var racesPolicy = require('../policies/races.server.policy'),
races = require('../controllers/races.server.controller');
module.exports = function(app) {
// Races Routes
app.route('/api/races').all(racesPolicy.isAllowed)
.get(races.list)
.post(races.create);
... |
/*
* Copyright (c) 2015 Adobe Systems Incorporated. All rights reserved.
*
* 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... |
import Footer from './Footer';
import Nav from './Nav';
import Layout from './Layout';
export default {
Nav,
Layout,
Footer
};
|
var getArticleInfo = new XMLHttpRequest();
getArticleInfo.open("GET", "articleName.html");
getArticleInfo.send();
getArticleInfo.onreadystatechange = function() {
var text = document.getElementById("textTarget");
if ((getArticleInfo.readyState === 4) && (getArticleInfo.status === 200)) {
text.innerHTML = ge... |
/* ========================================================================
* Bootstrap: affix.js v3.1.0
* http://getbootstrap.com/javascript/#affix
* ========================================================================
* Copyright 2011-2014 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap... |
CAAT.Module({
defines : "CAAT.Module.Preloader.XHR",
extendsWith : {
/**
*
* @param callback function({string},{object}) a callback function. string will be "ok" or "error"
* @param url {string} a url
* @param asynch {bool} load synchronous or asynchronously
... |
var postgres = require('../config.js').postgres;
module.exports = function(ws, data) {
if (data.action === 'list') {
var patches = [];
postgres.query('SELECT time, patch, user_email, id, parent FROM changes WHERE file_id=$1 AND time>$2 ORDER BY time ASC', [ws.docId, new Date(data.after || 0)]).on('row', func... |
'use strict';
describe('$routeProvider', function() {
var $routeProvider;
beforeEach(module('ngRoute'));
beforeEach(module(function(_$routeProvider_) {
$routeProvider = _$routeProvider_;
$routeProvider.when('/foo', {template: 'Hello, world!'});
}));
it('should support enabling/disabling automatic ... |
import { usingEvalSync, usingEval } from '../lib/utils'
export async function getServerSideProps() {
return {
props: await usingEval(),
}
}
export default function Page(props) {
return (
<div>
{props.value} and {usingEvalSync().value}
</div>
)
}
|
var assert = require('assert');
var common = require('../../common');
var cluster = common.createPoolCluster({canRetry: false});
var server = common.createFakeServer();
var connCount = 0;
var poolConfig = common.getTestConfig({port: common.fakeServerPort});
cluster.add('MASTER', poolConfig);
server.listen(common.... |
// @flow
export { default as CircularProgress } from './CircularProgress';
export { default as LinearProgress } from './LinearProgress';
|
JSMpeg.Decoder.Base = (function(){ "use strict";
var BaseDecoder = function(options) {
this.destination = null;
this.canPlay = false;
this.collectTimestamps = !options.streaming;
this.timestamps = [];
this.timestampIndex = 0;
this.startTime = 0;
this.decodedTime = 0;
Object.defineProperty(this, 'currentTime... |
'use strict';
/**
* @ngdoc function
* @name inflightHubApp.controller:MainCtrl
* @description
* # MainCtrl
* Controller of the inflightHubApp
*/
angular.module('inflightHubApp')
.controller('MainCtrl', function () {
this.awesomeThings = [
'HTML5 Boilerplate',
'AngularJS',
'Karma'
];
... |
version https://git-lfs.github.com/spec/v1
oid sha256:c4fdd080b70bb03e8f649ff90f86d76a3604a3589ce2f201730c4441edb66ec1
size 8234
|
'use strict';
/**
* Mounts a folder in a connect server
*/
module.exports = function mountFolder(connect, dir) {
return connect.static(require('path').resolve(dir));
};
|
$(function () {
var form = $('#search');
var input = form.find('input');
var list = form.find('.results');
var items = list.find('a');
var selected = null;
// Don't submit on return.
form.on('submit', function () {
return false;
});
// Open search
input.on('focus', fun... |
var global = require('../internals/global');
var getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;
var createNonEnumerableProperty = require('../internals/create-non-enumerable-property');
var redefine = require('../internals/redefine');
var setGlobal = require('../internals/set-g... |
// word frequencies of first two chapters of Oliver Twist
var words = [
{text: 'have', size: 102},
{text: 'Oliver', size: 47},
{text: 'say', size: 46},
{text: 'said', size: 36},
{text: 'bumble', size: 29, href: 'https://en.wikipedia.org/wiki/Beadle'},
{text: 'will', size: 29},
{text: 'Mrs', size: 56, href... |
'use strict';
const cleanup = require('rollup-plugin-cleanup');
const common = require('rollup-plugin-commonjs');
const node = require('rollup-plugin-node-resolve');
const path = require('path');
const pkg = require('../package.json');
const rollup = require('rollup').rollup;
/**
* Wrap a bundled dependency for cons... |
var gulp = require('gulp');
var paths = require('../paths');
var tslint = require('gulp-tslint');
gulp.task('lint', function () {
return gulp.src(paths.source)
.pipe(tslint({
formatter: "verbose"
}))
.pipe(tslint.report())
}); |
import * as Cookies from 'js-cookie';
import axios from 'axios';
import { route } from 'preact-router';
function storeUserCredentials({ user, accessToken, expires }) {
Cookies.set('crendentials', { user, accessToken }, { expires: new Date(expires) });
}
export function getUserCredentials() {
return Cookies.getJSO... |
import _curry2 from './_curry2.js';
import _xfBase from './_xfBase.js';
function XDropLast(n, xf) {
this.xf = xf;
this.pos = 0;
this.full = false;
this.acc = new Array(n);
}
XDropLast.prototype['@@transducer/init'] = _xfBase.init;
XDropLast.prototype['@@transducer/result'] = function(result) {
this.acc = n... |
(function() {
var $, Builder, Events, SelfClosingTags, Tags, View, callAttachHook, docEl, exports, idCounter, jQuery, matches, matchesSelector, methodName, originalCleanData, _, _fn, _fn1, _i, _j, _len, _len1, _ref, _ref1,
__hasProp = {}.hasOwnProperty,
__extends = function(child, parent) { for (var key in pa... |
module.exports = require('regenerate')().addRange(0x10350, 0x1037A);
|
/*
CryptoJS v3.1.2
enc-base64.js
code.google.com/p/crypto-js
(c) 2009-2013 by Jeff Mott. All rights reserved.
code.google.com/p/crypto-js/wiki/License
*/
(function () {
// Shortcuts
var C = CryptoJS;
var C_lib = C.lib;
var WordArray = C_lib.WordArray;
var C_enc = C.enc;
/**
* Base64 encoding strat... |
(function ($) {
/* -------- *
* DOM LOAD *
* -------- */
$(document).ready(function() {
// Slider
$('.slider').slider({full_width: true});
// Carousel
$('.carousel.carousel-slider').carousel({full_width: true});
$('.carousel').carousel();
});
}(jQuery)); |
app.config(function($stateProvider, $urlRouterProvider) {
$stateProvider
//sidebar
.state('news', {
url: "/news",
abstract: true,
templateUrl: "templates/sidebar-menu.html"
})
// Blog page
.state('news.home', {
url: "/home",
cache : false,
views: {
'menuWorPress'... |
import { expect } from 'chai';
import votesReducer from './';
describe('votesReducer', () => {
describe('#votesReducer()', () => {
it('should increment party votes by 1', () => {
const newState = votesReducer({ PARTY_CODE: 25 }, { type: 'VOTE', partyCode: 'PARTY_CODE' });
expect(newState).to.deep.e... |
var S_ITER$0 = typeof Symbol!=='undefined'&&Symbol&&Symbol.iterator||'@@iterator';var S_MARK$0 = typeof Symbol!=='undefined'&&Symbol&&Symbol["__setObjectSetter__"];function ITER$0(v,f){if(v){if(Array.isArray(v))return f?v.slice():v;var i,r;if(S_MARK$0)S_MARK$0(v);if(typeof v==='object'&&typeof (f=v[S_ITER$0])==='functi... |
$(document).ready(function() {
$(".issue-list").on("click", "div", function() {
$(".issue-list .selected").removeClass("selected");
$(this).addClass("selected");
});
$('[data-behaviour="issue-view"]').on("click", "button", function() {
var view = "issue-" + $(this).data("view");
$(".issue-list"... |
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.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.leng... |
// Next-generation ES6 module bundler
var gulp = require('gulp'),
paths = require('./config/paths'),
plumber = require('gulp-plumber'),
rollup = require('gulp-rollup'),
babel = require('rollup-plugin-babel'),
rename = require('gulp-rename');
// Bundle ES6 modules.
gulp.task('rollup:main', function... |
/*
* 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.
*/
... |
(function(){$(function(){return console.log("hello")})}).call(this); |
/*!
* Bootstrap-select v1.13.9 (https://developer.snapappointments.com/bootstrap-select)
*
* Copyright 2012-2019 SnapAppointments, LLC
* Licensed under MIT (https://github.com/snapappointments/bootstrap-select/blob/master/LICENSE)
*/
(function (root, factory) {
if (root === undefined && window !== undef... |
/**
* Created by patricepaquette on 12/17/2013.
*/
angular.module("common")
.directive('lazyLoad', ['$window', '$q', function ($window, $q) {
function load_script(src) {
var s = document.createElement('script'); // use global document since Angular's $document is weak
s.src = src;... |
/**
* $Id: editor_plugin_src.js,v 1.1 2012/11/16 23:22:25 delara Exp $
*
* @author Moxiecode
* @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved.
*/
(function() {
tinymce.create('tinymce.plugins.Preview', {
init : function(ed, url) {
var t = this;
t.editor = ed;
ed.addComma... |
// jsonCall: a jQuery plugin that makes it easy to make an API
// request to a URL with JSON in BOTH directions.
//
// Copyright 2013 P'unk Avenue LLC
//
// Please see:
//
// https://github.com/punkave/jquery-json-call
//
// For complete documentation.
(function( $ ) {
// This is correct - we're adding a function ca... |
// # ngReact
// ### Use React Components inside of your Angular applications
//
// Composed of
// - reactComponent (generic directive for delegating off to React Components)
// - reactDirective (factory for creating specific directives that correspond to reactComponent directives)
(function(React, angular) {
'use st... |
registerTest ('Has a UTF-8 meta tag', function () {
this
.test('Do we have a UTF8 meta tag?', function($) {
var sourceCode = this.page.source.toLowerCase();
// do we have an utf8 metatag ?
notEqual(sourceCode.indexOf('<meta charset="utf-8">'),-1,'Has UTF-8 meta tag');
});
});
|
angular.module('ngCordova.plugins.deviceOrientation', [])
.factory('$cordovaDeviceOrientation', ['$q', function($q) {
return {
getCurrentHeading: function() {
var q = $q.defer();
navigator.compass.getCurrentHeading(function(heading) {
q.resolve(heading);
}, function(err) {
q.r... |
/*
* modified version of https://github.com/valor-software/prismjs-loader
*
* The MIT License (MIT)
*
* Copyright (c) 2015-2016 Valor Software
* Copyright (c) 2015-2016 Dmitriy Shekhovtsov<valorkin@gmail.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software an... |
/* global suite, test */
'use strict';
var assert = require('assert');
var Table = require(__dirname + '/../lib/table');
var Column = require(__dirname + '/../lib/column');
suite('table', function() {
var table = new Table({
name: 'bang'
});
test('has name', function() {
assert.equal(table.getName(), '... |
(function($) {
/**
* Example module implementation.
*
* @author
* @namespace Tc.Module
* @class Default
* @extends Tc.Module
*/
Tc.Module.Example = Tc.Module.extend({
/**
* Initializes the Example module.
*
* @method init
* @constructor
* @param {jQuery|Zepto} $ctx the jquery context
... |
// Copyright 2014 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.
/**
* @constructor
* @extends {WebInspector.TimelineUIUtils}
*/
WebInspector.TimelineUIUtilsImpl = function()
{
WebInspector.TimelineUIUtils.call(t... |
'use strict';
// copied from http://www.broofa.com/Tools/Math.uuid.js
var CHARS = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'
.split('');
exports.uuid = function () {
var chars = CHARS, uuid = new Array(36), rnd=0, r;
for (var i = 0; i < 36; i++) {
if (i===8 || i===13 || i===1... |
"use strict";
/*!
* Copyright 2016 The ANTLR Project. All rights reserved.
* Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information.
*/
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3... |
/*! jQuery UI - v1.10.3 - 2013-09-04
* http://jqueryui.com
* Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */
jQuery(function(e){e.datepicker.regional.sk={closeText:"Zavrieť",prevText:"<Predchádzajúci",nextText:"Nasledujúci>",currentText:"Dnes",monthNames:["január","február","marec","... |
// 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,... |
/**
* $Id: learning_path_item.js 216 2009-11-13 14:08:06Z kariboe $
* @package application.lib.weblcms.tool.learning_path.javascript
*/
/**
* @author Sven Vanpoucke
*/
(function($) {
$(window).bind('beforeunload', function(e) {
var ajaxUri = getPath('WEB_PATH') + 'index.php';
var parameters = {
... |
// Flags: --expose-internals
'use strict';
const common = require('../common');
if (!common.hasCrypto) common.skip('missing crypto');
const fixtures = require('../common/fixtures');
// Test --trace-tls CLI flag.
const assert = require('assert');
const { fork } = require('child_process');
if (process.argv[2] === 'tes... |
'use strict';
var fs = require('fs');
var Promise = require('../ext/promise');
var readFile = Promise.denodeify(fs.readFile);
var lstat = Promise.denodeify(fs.stat);
var chalk = require('chalk');
var EditFileDiff = require('./edit-file-diff');
var EOL = require('os').EOL;
var ... |
/** @license React v16.8.2
* react-dom-unstable-fizz.node.production.min.js
*
* 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.
*/
'use strict';function d(a,b){var c="<"+a+">";"string"=... |
!function(){function t(t){return function(e,i){e=d3.hsl(e),i=d3.hsl(i);var r=(e.h+120)*a,h=(i.h+120)*a-r,s=e.s,l=i.s-s,o=e.l,u=i.l-o;return isNaN(l)&&(l=0,s=isNaN(s)?i.s:s),isNaN(h)&&(h=0,r=isNaN(r)?i.h:r),function(a){var e=r+h*a,i=Math.pow(o+u*a,t),c=(s+l*a)*i*(1-i);return"#"+n(i+c*(-.14861*Math.cos(e)+1.78277*Math.si... |
export * as ns from 'mod';
export v from 'mod';
export a, * as b from 'mod';
export c, { foo } from 'mod';
export * as d, { bar } from 'mod';
export { fooooooooooooooooooooooooooooooooooooooooooooooooo } from "fooooooooooooooooooooooooooooo";
export Bar, { barrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr } from "barrrrrrr... |
import * as THREE from 'three';
import { UIRow, UIText, UIInteger, UINumber } from './libs/ui.js';
import { SetGeometryCommand } from './commands/SetGeometryCommand.js';
function GeometryParametersPanel( editor, object ) {
const strings = editor.strings;
const signals = editor.signals;
const container = new UI... |
var Utils = require("../../utils")
, sqlite3 = require('sqlite3').verbose()
, Query = require("./query")
module.exports = (function() {
var ConnectorManager = function(sequelize) {
this.sequelize = sequelize
this.database = db = new sqlite3.Database(sequelize.options.storage || ':memory:', function(... |
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//---------------------------------------------------------... |
/*!
* jQuery JavaScript Library v2.0.1 -sizzle,-css,-event-alias,-ajax,-ajax/script,-ajax/jsonp,-ajax/xhr,-effects,-offset,-dimensions
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* ht... |
'use strict';
describe('Loading 0202-layers-overlays-simple-example.html', function() {
beforeEach(function() {
browser.get('0202-layers-overlays-simple-example.html');
browser.wait(function() {
return element(by.css('img.leaflet-tile-loaded')).isPresent();
}, 5000);
});
it('should change the... |
/*
Ractive.js v1.3.0-edge
Build: 3c34b67ed6ee7e3072fccc80bb50bfb9ef90f3bd
Date: Fri Jan 04 2019 18:04:51 GMT+0000 (UTC)
Website: https://ractive.js.org
License: MIT
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'func... |
import HasManyHelper from './has-many-helper';
import {module, test} from 'qunit';
module('Integration | ORM | hasMany #accessor');
/*
#association behavior works regardless of the state of the parent
*/
HasManyHelper.forEachScenario((scenario) => {
test(`the references of a ${scenario.title} are correct`, funct... |
/**
* (c) 2010-2019 Torstein Honsi
*
* License: www.highcharts.com/license
*/
/**
* Gets fired when the legend item belonging to a point is clicked. The default
* action is to toggle the visibility of the point. This can be prevented by
* returning `false` or calling `event.preventDefault()`.
*
* @callback Hi... |
/*!
* # Semantic UI 2.7.1 - Checkbox
* http://github.com/semantic-org/semantic-ui/
*
*
* Released under the MIT license
* http://opensource.org/licenses/MIT
*
*/
;(function ($, window, document, undefined) {
'use strict';
$.isFunction = $.isFunction || function(obj) {
return typeof obj === "function" && ty... |
/* Tabulator v4.2.3 (c) Oliver Folkerd */
/*
* This file is part of the Tabulator package.
*
* (c) Oliver Folkerd <oliver.folkerd@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* Full Documentation & Demos can be found... |
'use strict';
module.exports = {
name: 'ember-cli-legacy-blueprints'
};
|
GLOBAL.DEBUG = true;
sys = require("sys");
test = require("assert");
var Db = require('../lib/mongodb').Db,
Connection = require('../lib/mongodb').Connection,
Server = require('../lib/mongodb').Server;
var host = process.env['MONGO_NODE_DRIVER_HOST'] != null ? process.env['MONGO_NODE_DRIVER_HOST'] : 'localhost';... |
'use strict';
module.exports = {
up: function (queryInterface, Sequelize) {
return queryInterface.bulkInsert('UserMeetings', [
{
user_id: 1,
meeting_id: 2
},
{
user_id: 2,
meeting_id: 2
},
{
user_id: 3,
meeting_id: 2
},
{
... |
/*
hashids
http://www.hashids.org/node-js/
(c) 2013 Ivan Akimov
https://github.com/ivanakimov/hashids.node.js
hashids may be freely distributed under the MIT license.
*/
/*jslint node: true, white: true, plusplus: true */
"use strict";
function Hashids(salt, minHashLength, alphabet) {
var uniqueAlphabet, i... |
/* TimerManager.js
KC3改 Sortie Manager
Container object for timers for expedition, construction, and repair
*/
(function(){
"use strict";
window.KC3TimerManager = {
_exped: [],
_repair: [],
_build: [],
init :function(eMap, rMap, bMap){
this._exped = [
new KC3Timer(eMap[0], 0, 0),
... |
import React from 'react';
import TestUtils from 'react-addons-test-utils';
import { expect } from 'chai';
import { Hello } from 'client/components/Hello';
const setup = () => {
const props = {
message: 'hello'
};
const renderer = TestUtils.createRenderer();
renderer.render(<Hello {...props} />);
const o... |
import { rebind } from '@d3fc/d3fc-rebind';
import _slidingWindow from './slidingWindow';
import exponentialMovingAverage from './exponentialMovingAverage';
import { convertNaN } from './fn';
export default function() {
let volumeValue = (d, i) => d.volume;
let closeValue = (d, i) => d.close;
const emaCo... |
var format = require('util').format;
var hl = require('highlight.js');
var escape = function(html) {
return html.
replace(/</g, '<').
replace(/>/g, '>').
replace(/"/g, '"').
replace(/'/g, ''');
};
try {
var rs = require('robotskirt');
escape = rs.houdini.escapeHTML;
} catch (e) {
}... |
/*
* Copyright (c) 2013 Adobe Systems Incorporated. All rights reserved.
*
* 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 ri... |
import BasePlugin from './../_base';
import {arrayEach} from './../../helpers/array';
import {CommandExecutor} from './commandExecutor';
import {EventManager} from './../../eventManager';
import {hasClass} from './../../helpers/dom/element';
import {ItemsFactory} from './itemsFactory';
import {Menu} from './menu';
imp... |
/*
* The MIT License
*
* Copyright (c) 2015, Sebastian Sdorra
*
* 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, ... |
'use strict';
// Check that main thread handles an unknown message type from a worker thread
// as expected.
require('../common');
const assert = require('assert');
const { spawnSync } = require('child_process');
const { Worker } = require('worker_threads');
if (process.argv[2] !== 'spawned') {
const result = spa... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _reactAddonsPureRenderMixin = require('react-addons-pure-render-mixin');
var _reactAddonsPureRenderMixin2 = _interopRequireDefault(_reactAddonsPureRenderMi... |
'use strict';
var angular = require('angular');
angular
.module('mwl.calendar')
.controller('MwlDragSelectCtrl', function($scope, $element, $parse, $attrs) {
function handleMouseEvent(callbackName) {
return function(event) {
if (callbackName) {
$parse(callbackName)($scope);
... |
export default class BatchDeleteController {
constructor($scope, $state, WriteQueries, notification, view) {
this.$scope = $scope;
this.$state = $state;
this.WriteQueries = WriteQueries;
this.notification = notification;
this.view = view;
this.entity = view.getEntity(... |
const helpers = require("./global-setup");
const path = require("path");
const request = require("request");
const expect = require("chai").expect;
const describe = global.describe;
const it = global.it;
const beforeEach = global.beforeEach;
const afterEach = global.afterEach;
describe("Position of modules", functio... |
'use strict';
const assert = require('./../../assert');
const common = require('./../../common');
let battle;
describe(`Pursuit`, function () {
afterEach(() => battle.destroy());
it(`should execute before the target switches out and after the user mega evolves`, function () {
battle = common.createBattle();
b... |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* @name: S15.10.1_A1_T4;
* @section: 15.10.1;
* @assertion: RegExp syntax errors must be caught when matcher(s) compiles;
* @description: Tested RegExp is "a+++";
*/
//CHECK#1
try {
... |
version https://git-lfs.github.com/spec/v1
oid sha256:7bb2ff95b5b5b8b9381c3164c00724bbcf60a5e3a249bffc29cd3c7030ebda2a
size 5862
|
import Stream from "./stream";
/*
Check whether an object is a stream or not
@public
@for Ember.stream
@function isStream
@param {Object|Stream} object object to check whether it is a stream
@return {Boolean} `true` if the object is a stream, `false` otherwise
*/
export function isStream(object) {
return obje... |
/*************************************************************
*
* MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/Arrows.js
*
* Copyright (c) 2009-2016 The MathJax Consortium
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with th... |
/*
* Copyright 2010 The Closure Compiler Authors.
*
* 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... |
var assert = require('assert');
var Globals = require('../../lib/globals/expect.js');
var common = require('../../common.js');
var CommandQueue = common.require('core/queue.js');
module.exports = {
'test Queue' : {
beforeEach: function (done) {
CommandQueue.reset();
Globals.beforeEach.call(this, done... |
$(function() {
$widget = $('#calendar-widget')
if ($widget.length) {
$.get('/events/calendar.json', function(data){
$widget.fullCalendar({
editable: false,
header: {
left: 'title',
firstDay: 1,
center: '',
aspectRatio: 1,
right: 'today pr... |
import map from './map';
export default map; |
/**
* @author Richard Davey <rich@photonstorm.com>
* @author Mat Groves (@Doormat23)
* @copyright 2016 Photon Storm Ltd.
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
/**
* New version of PIXI.ComplexPrimitiveShader
*
* @class Phaser.Renderer.Canvas... |
/**
* A promise-based Q-JSGI server and client API.
* @module
*/
/*whatsupdoc*/
var HTTP = require("http"); // node
var HTTPS = require("https"); // node
var URL = require("url2"); // node
var Q = require("q");
var Reader = require("./reader");
/**
* @param {respond(request Request)} respond a JSGI responder fun... |
/**
* Determines whether any element of an observable sequence satisfies a condition if present, else if any items are in the sequence.
* @param {Function} [predicate] A function to test each element for a condition.
* @returns {Observable} An observable sequence containing a single element determining wh... |
/**
* The position and size of the Bitmap Text in global space, taking into account the Game Object's scale and world position.
*
* @typedef {object} Phaser.Types.GameObjects.BitmapText.GlobalBitmapTextSize
* @since 3.0.0
*
* @property {number} x - The x position of the BitmapText, taking into account the x posit... |
version https://git-lfs.github.com/spec/v1
oid sha256:0e7889c818b4129a08bc3843ba39b2e1118e6cfd3f186b1abf15037cd5599dd6
size 547
|
var traceur = require('traceur');
var traceurGet = require('../lib/utils').traceurGet;
var ParseTreeTransformer = traceurGet('codegeneration/ParseTreeTransformer.js').ParseTreeTransformer;
var ModuleSpecifier = traceurGet('syntax/trees/ParseTrees.js').ModuleSpecifier;
var createStringLiteralToken = traceurGet('codegen... |
import { defineProperty, deprecateProperty } from '..';
import { moduleFor, AbstractTestCase } from 'internal-test-helpers';
moduleFor(
'defineProperty',
class extends AbstractTestCase {
['@test toString'](assert) {
let obj = {};
defineProperty(obj, 'toString', undefined, function () {
retu... |
/*
* 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.
*/
'... |
// Copyright 2014 the V8 project authors. All rights reserved.
// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
// Flags: --allow-natives-syntax --harmony --harmony-proxies
var _source = "foo";
var arg1 = false;
%CompileString(_source, arg1);
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.