code stringlengths 2 1.05M |
|---|
///////////////////////////////////////////////////////////////////////////
// Copyright © Esri. 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.ap... |
'use strict';
/* jasmine specs for services go here */
var s2g_users={"lastLive":0,"regState":"Authenticated","userList":["tim"],"tim":{"name":"tim","email":"mckenna.tim@gmail.com","lists":[],"role":"","timestamp":1,"apikey":"Natacitipavuwunexelisaci"}};
describe('UserLS', function(){
var store= {};
beforeEa... |
var express = require('express');
var app = express();
var emails = require('./emails');
var routes = require('./routes');
app.use(express.json());
app.post('/users', routes.users.create); //<co id="callout-events-structure-1-1" />
app.on('user:created', emails.welcome); //<co id="callout-events-structure-1-2" />
m... |
(function () {
var tabfocus = (function () {
'use strict';
var global = tinymce.util.Tools.resolve('tinymce.PluginManager');
var global$1 = tinymce.util.Tools.resolve('tinymce.dom.DOMUtils');
var global$2 = tinymce.util.Tools.resolve('tinymce.EditorManager');
var global$3 = tinymce.util.Tools.resolve('tin... |
define({
"_widgetLabel": "Vejledninger",
"_featureAction_DirectionFrom": "Rute herfra",
"_featureAction_DirectionTo": "Vejledninger her til",
"_featureAction_OpenInDirections": "Åbn i retninger",
"_featureAction_OpenRoute": "Åbn rute",
"_featureAction_EditRoute": "Redigér rute",
"searchPlaceholder": "Find... |
#!/usr/bin/env node
var pathLib = require('path');
var fs = require('fs-extra');
var AddChannel = require('./libs/addchannel')
function loadEnv() {
var env = {};
env.resourceFolder = pathLib.join(__dirname, 'resource');
env.baseFolder = pathLib.join(__dirname, '..', '..');
var versionTxt = pathLib.jo... |
/**
* Tabs Component
* @author yan
*/
import { PureComponent } from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
export default class FunctionTab extends PureComponent {
static displayName = 'FunctionTab'
static defaultProps = {
title: '',
handleTabClick() {},
}
... |
System.register(["angular2/src/facade/collection", "angular2/src/facade/lang"], function($__export) {
"use strict";
var List,
ListWrapper,
SetWrapper,
int,
FIELD,
NumberWrapper,
StringJoiner,
StringWrapper,
TOKEN_TYPE_CHARACTER,
TOKEN_TYPE_IDENTIFIER,
TOKE... |
/*
Template Name: Color Admin - Responsive Admin Dashboard Template build with Twitter Bootstrap 3.2.0
Version: 1.4.0
Author: Sean Ngu
Website: http://www.seantheme.com/color-admin-v1.4/
*/var handleSuperboxGallery=function(){"use strict";$(window).load(function(){$(".superbox").SuperBox()})};var Gallery=function(){... |
const assert = require('assert');
module.exports = {
description: 'exports a default value as module.exports',
exports(exports) {
assert.equal(exports, 42);
}
};
|
require("./common.css");
require("./style.css");
require("./dep");
|
"use strict";
// a single connection
var path = require('path');
var config = require('./config');
var logger = require('./logger');
var trans = require('./transaction');
var dns = require('dns');
var plugins = require('./plugins');
var constants = require('./constants');
var rfc186... |
/* Get Programming with JavaScript
* Listing 17.11
* A web-based message view
*/
(function () {
"use strict";
function renderMessage (message) {
return "*** " + message + " ***";
}
function render (message) {
var messageDiv = document.getElementById("messages");
messageDiv.innerHTML = render... |
/*****************
* Reports Plugin *
* Credits: jd *
*****************/
'use strict';
const fs = require('fs');
const moment = require('moment');
let Reports = {};
function loadReports() {
try {
Reports = JSON.parse(fs.readFileSync('config/reports.json'));
} catch (e) {
Reports = {};
}
}
loadReports();
fu... |
/* jshint unused: false */
var vows = require('vows');
var assert = require('assert');
var http = require('http');
var enableDestroy = require('server-destroy');
var nock = require('nock');
var CleanCSS = require('../index');
var port = 24682;
if (process.platform == 'win32')
return;
vows.describe('protocol impor... |
module('lively.tests.HelperTests').requires('lively.TestFramework', 'lively.Helper').toRun(function() {
TestCase.subclass('lively.tests.HelperTests.XMLConverterTest',
'helper', {
toXML: function(string) {
return new DOMParser().parseFromString(string, "text/xml").documentElement;
}
},
'running', {
setUp: funct... |
/* global jQuery, ajaxurl */
var UsedKeywordsPlugin = require( "yoastseo" ).bundledPlugins.usedKeywords;
var _has = require( "lodash/has" );
var _debounce = require( "lodash/debounce" );
var _isArray = require( "lodash/isArray" );
var $ = jQuery;
/**
* Object that handles keeping track if the current keyword has bee... |
'use strict';
angular.module('copayApp.services').factory('openURLService', function($rootScope, $ionicHistory, $document, $log, $state, platformInfo, lodash, profileService, incomingData, appConfigService) {
var root = {};
var handleOpenURL = function(args) {
$log.info('Handling Open URL: ' + JSON.stringify... |
/**
* @ngdoc Directives
* @name text-field
* @description
* Displays an HTML <input> or <textarea> element along with an optional label.
* The HTML <input> type can be configured to allow for passwords, numbers, etc.
* This directive can also be configured to display an informational tooltip.
*... |
(function(){
var AudioGainModulator = E2.plugins.audio_gain_modulator = function(core, node) {
var that = this
this.desc = '(De)amplify or mix audio data.';
this.input_slots = [
{ name: 'gain', dt: core.datatypes.FLOAT, desc: 'Amplification scalar.', def: null }
];
this.output_slots = [
{ name: 'source'... |
var mug = {
"x": { "min":-0.000859986, "max":0.0808143 },
"y": { "min":-0.00025656, "max":2.26591e-05 },
"points": [
{ "x":0.0474561, "y":0.00671402, "z":0.00774976 },
{ "x":0.0476492, "y":0.00711655, "z":0.00771341 },
{ "x":0.0468128, "y":0.00536737, "z":0.00784432 },
{ "x":0.046762, "y":0.00525942, "z":0.0... |
"use strict";
const Benchmark = require("benchmark");
const jsdomBenchmark = require("./jsdom-benchmark");
// jsdom might be an empty object if omitted by browserify
const jsdom = require("..");
const nativeDoc = global.document;
const jsdomDoc = jsdom.jsdom && jsdom.jsdom();
function noop() {}
function addBenchmar... |
'use strict';
angular.module('retrospectApp')
.factory('retrospectives', [
'$resource',
'SERVICE_URL',
function ($resource, SERVICE_URL) {
return $resource(SERVICE_URL + '/retrospectives/:retroId', {
'page': '@page',
'limit': '@limit'
... |
import React from 'react';
import { render } from 'react-dom';
import { Tab, Tabs, TabList, TabPanel } from '../../src/index';
import '../../style/react-tabs.css';
const App = () => {
return (
<div>
<p><em>Hint:</em></p>
<ul>
<li>use keyboard tab to focus tabs</li>
<li>use arrow keys ... |
var P = require('../p');
exports.resolved = P;
exports.rejected = P.reject;
exports.deferred = P.defer;
|
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
define(["require", "exports", '../Subscriber', '../Notificatio... |
var Checker = require('../../../lib/checker');
var assert = require('assert');
describe('rules/require-spaces-inside-object-brackets', function() {
var checker;
beforeEach(function() {
checker = new Checker();
checker.registerDefaultRules();
});
describe('invalid options', function() {... |
"use strict";
var EventEmitter = require('events').EventEmitter
, inherits = require('util').inherits
, f = require('util').format
, Server = require('./server')
, Mongos = require('./mongos')
, Cursor = require('./cursor')
, AggregationCursor = require('./aggregation_cursor')
, CommandCursor = require('... |
/**
* Command parser
* Pokemon Showdown - http://pokemonshowdown.com/
*
* This is the command parser. Call it with CommandParser.parse
* (scroll down to its definition for details)
*
* Individual commands are put in:
* commands.js - "core" commands that shouldn't be modified
* config/commands.js - other co... |
export default class DeleteController {
constructor($scope, $window, $state, $q, WriteQueries, notification, params, view, entry) {
this.$scope = $scope;
this.$window = $window;
this.$state = $state;
this.WriteQueries = WriteQueries;
this.entityLabel = params.entity;
... |
YUI.add("lang/gallery-itsamodelsyncpromise",function(e){e.Intl.add("gallery-itsamodelsyncpromise","",{load:"Loading data ...",reload:"Loading data ...",update:"Updating data ...",submit:"Submitting data ...",save:"Updating data ...",destroy:"Updating data ..."})},"gallery-2014.01.28-00-45");
|
"use strict";
console.log("Hello World!"); |
/*istanbul ignore next*/"use strict";
exports.__esModule = true;
exports.default = function () {
return {
visitor: { /*istanbul ignore next*/
DebuggerStatement: function DebuggerStatement(path) {
path.remove();
}
}
};
};
/*istanbul ignore next*/module.exports = exports["default"]; |
'use strict';
process.env.CHROME_BIN = require('puppeteer').executablePath();
module.exports = {
unit: {
autoWatch: false,
singleRun: true,
frameworks: ['mocha', 'chai'],
files: [
{ pattern: '<%= paths.npm %>/jquery/dist/jquery.js' },
{ pattern: '<%= paths.npm %>/bootstrap/js/modal.js' ... |
const Router = require('@koa/router');
const render = require('koa-views-render');
const policies = require('../../helpers/policies');
const web = require('../../app/controllers/web');
const router = new Router({ prefix: '/my-account' });
router.use(policies.ensureLoggedIn);
router.use(policies.ensureOtp);
router.us... |
module( "ajax", {
teardown: function() {
jQuery( document ).off( "ajaxStart ajaxStop ajaxSend ajaxComplete ajaxError ajaxSuccess" );
moduleTeardown.apply( this, arguments );
}
});
(function() {
test("Unit Testing Environment", 2, function () {
ok( hasPHP, "Running in an environment with PHP support. The AJAX ... |
import { Meteor } from 'meteor/meteor';
import { TAPi18n } from 'meteor/rocketchat:tap-i18n';
import { Random } from 'meteor/random';
import { handleError, slashCommands } from '../../utils';
import { Notifications } from '../../notifications';
function Status(command, params, item) {
if (command === 'status') {
c... |
define({
"_widgetLabel": "Navigace",
"_featureAction_DirectionFrom": "Začátek trasy",
"_featureAction_DirectionTo": "Konec trasy",
"_featureAction_OpenInDirections": "Otevřít v Navigačních pokynech",
"_featureAction_OpenRoute": "Otevřít trasu",
"_featureAction_EditRoute": "Upravit trasu",
"searchPlacehold... |
var foobar = 'baz';
;
|
'use strict'
const path = require('path')
const fs = require('fs')
const chaiAsPromised = require('chai-as-promised')
const getUserDataPath = function () {
const productName = require('../package').productName
switch (process.platform) {
case 'darwin':
return path.join(process.env.HOME, 'Library', 'Appl... |
/****************************************************************************
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 files (the "Software"), to deal
in th... |
'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": [
"AM",
"PM"
],
"DAY": [
"dimanche",
"lu... |
/// <reference path="../../observable.ts" />
/// <reference path="../../concurrency/scheduler.ts" />
(function () {
var o;
var so = o.bufferWithTimeOrCount(100, 200);
var so = o.bufferWithTimeOrCount(100, 200, Rx.Scheduler.default);
});
//# sourceMappingURL=bufferwithtimeorcount.js.map |
/**
* Getter and setter functions for interacting with the server event API endpoints
*/
var ObservationAPI = {
/**
* Get all observations for an event
* @param {number} eventId The primary key of the event in the database
*/
getAllObservationsByEvent: function(eventId) {
// Return a promise so the ... |
/* Tabulator v4.2.4 (c) Oliver Folkerd */
var ReactiveData = function ReactiveData(table) {
this.table = table; //hold Tabulator object
this.data = false;
this.blocked = false; //block reactivity while performing update
this.origFuncs = {}; // hold original data array functions to allow replacement after data is d... |
/*!
* Joshfire Framework 0.9.1
* http://framework.joshfire.com/
*
* Copyright 2011, Joshfire
* Dual licensed under the GPL Version 2 and a Commercial license.
* http://framework.joshfire.com/license
*
* Date: Wed Jul 20 20:23:43 2011
*/
Joshfire.define(['joshfire/uielements/video', 'joshfire/class', 'joshfire... |
/*
Highcharts JS v7.0.2 (2019-01-17)
(c) 2009-2019 Torstein Honsi
License: www.highcharts.com/license
*/
(function(a){"object"===typeof module&&module.exports?(a["default"]=a,module.exports=a):"function"===typeof define&&define.amd?define(function(){return a}):a("undefined"!==typeof Highcharts?Highcharts:void 0)})... |
var allTestFiles = [];
var TEST_REGEXP = /(spec|test)\.js$/i;
var pathToModule = function(path) {
return path.replace(/^\/base\//, '').replace(/\.js$/, '');
};
Object.keys(window.__karma__.files).forEach(function(file) {
if (TEST_REGEXP.test(file)) {
allTestFiles.push(pathToModule(file));
}
});
require.con... |
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @generated SignedSource<<84785603b753e3051bad857279147169>>
* @flow
* @lightSyntaxTransform
* @nogrep
*/
/* eslint-disabl... |
/*
YUI 3.8.0pr2 (build 154)
Copyright 2012 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add("lang/datatype-date-format_da",function(e){e.Intl.add("datatype-date-format","da",{a:["s\u00f8n","man","tir","ons","tor","fre","l\u00f8r"],A:["s\u00f8ndag","mandag","tirs... |
export default function addClass(el, classNames) {
if (el.classList) {
return classNames.forEach(cl => {
el.classList.add(cl);
});
}
el.className += ' ' + classNames.join(' ');
}
|
'use strict';
const chai = require('chai'),
expect = chai.expect,
Support = require(__dirname + '/../support'),
current = Support.sequelize,
Sequelize = Support.Sequelize,
sinon = require('sinon');
describe(Support.getTestDialectTeaser('Instance'), () => {
describe('decrement', () => {
describ... |
{
for (var i = start; i < end; i++) {
var c = oldCh[i];
if (isDef(c) && sameVnode(node, c)) {
return i;
}
}
}
|
require('babel-register');
const webpack = require('webpack');
const webpackConfigBase = require('./webpack/base.config').default;
module.exports = config => {
const { env } = process;
config.set({
frameworks: ['mocha', 'sinon-chai'],
files: ['test/index.js'],
preprocessors: {
'test/index.js... |
var get = Ember.get, set = Ember.set;
var unsortedArray, sortedArrayController;
module("Ember.Sortable");
module("Ember.Sortable with content", {
setup: function() {
Ember.run(function() {
var array = [{ id: 1, name: "Scumbag Dale" }, { id: 2, name: "Scumbag Katz" }, { id: 3, name: "Scumbag Bryn" }];
... |
//
// Main script of DevOOPS v1.0 Bootstrap Theme
//
"use strict";
/*-------------------------------------------
Dynamically load plugin scripts
---------------------------------------------*/
//
// Dynamically load Fullcalendar Plugin Script
// homepage: http://arshaw.com/fullcalendar
// require moment.js
//
funct... |
// Generated by CoffeeScript 1.3.1
var globals, name;
globals = ((function() {
var _results;
_results = [];
for (name in window) {
_results.push(name);
}
return _results;
})()).slice(0, 10);
|
// Generated by CoffeeScript 1.6.2
var ConsoleTransport, Logger, Transport, _ref,
__hasProp = {}.hasOwnProperty,
__slice = [].slice;
_ref = require(__dirname + '/transport'), Transport = _ref.Transport, ConsoleTransport = _ref.ConsoleTransport;
Logger = (function() {
Logger.prototype.config = {
autoFlush: t... |
/*global define*/
/*global describe, it, expect*/
/*global jasmine*/
/*global beforeEach, afterEach*/
/*jslint white: true*/
define([
'kbaseExpressionGenesetBaseWidget'
], function(Widget) {
describe('Test the kbaseExpressionGenesetBaseWidget widget', function() {
it('Should do things', function() {
... |
function fn() {
class A {
foo = class B { bar() { arguments } };
}
}
|
// Github: https://github.com/shdwjk/Roll20API/blob/master/FateDots/FateDots.js
// By: The Aaron, Arcane Scriptomancer
// Contact: https://app.roll20.net/users/104025/the-aaron
var API_Meta = API_Meta||{};
API_Meta.FateDots={offset:Number.MAX_SAFE_INTEGER,lineCount:-1};
{try{throw new Error('');}catch(e){API_M... |
define(
//begin v1.x content
{
"days-standAlone-short": [
"не",
"по",
"ут",
"ср",
"че",
"пе",
"су"
],
"months-format-narrow": [
"ј",
"ф",
"м",
"а",
"м",
"ј",
"ј",
"а",
"с",
"о",
"н",
"д"
],
"field-second-relative+0": "сада",
"quarters-standAlone-narrow": [
"1.",
"2.",
"... |
/** @const */
var doubleNested = {};
/** @interface */
doubleNested.Foo = function() {};
/** @interface */
doubleNested.Foo.Bar = function() {};
/** @interface */
doubleNested.Foo.Bar.Baz = function() {}; |
var SpotifyWebApi = (function() {
'use strict';
var _baseUri = 'https://api.spotify.com/v1';
var _accessToken = null;
var _promiseImplementation = null;
var _promiseProvider = function(promiseFunction) {
if (_promiseImplementation !== null) {
var deferred = _promiseImplementation.defer();
pr... |
/*
* Chained - jQuery non AJAX(J) chained selects plugin
*
* Copyright (c) 2010-2011 Mika Tuupola
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/mit-license.php
*
*/
(function($) {
$.fn.chained = function(parent_selector, options) {
return this.each(function()... |
import localStorageAvailable from './localStorageAvailable';
let _saved = null;
function set(thingId, reply) {
reply = reply && reply.trim();
if (!reply) {
return;
}
const saved = {
thingId,
reply,
};
if (localStorageAvailable()) {
global.localStorage.setItem('savedReply', JSON.stringif... |
//>>built
define({buttonOk:"\u78ba\u5b9a",buttonCancel:"\u53d6\u6d88",buttonSave:"\u5132\u5b58",itemClose:"\u95dc\u9589"}); |
'use strict'
const constants = require('../constants')
const formatUtils = require('../formatUtils')
const lineBuilder = require('../lineBuilder')
const DEEP_EQUAL = constants.DEEP_EQUAL
const UNEQUAL = constants.UNEQUAL
function describe () {
return new NullValue()
}
exports.describe = describe
exports.deseriali... |
'use strict'
var Buffer = require('safe-buffer').Buffer
var test = require('tape').test
var msgpack = require('../')
var bl = require('bl')
function build (size) {
var array = []
var i
for (i = 0; i < size; i++) {
array.push(42)
}
return array
}
test('encode/decode arrays up to 0xffff elements', func... |
// Test the polar area controller
describe('Polar area controller tests', function() {
it('should be constructed', function() {
var chart = window.acquireChart({
type: 'polarArea',
data: {
datasets: [
{data: []},
{data: []}
],
labels: []
}
});
var meta = chart.getDatas... |
/*!
* froala_editor v3.0.0-rc.2 (https://www.froala.com/wysiwyg-editor)
* License https://froala.com/wysiwyg-editor/terms/
* Copyright 2014-2019 Froala Labs
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('froala-editor')) :
typeof define === 'fun... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var Stylis = _interopDefault(require('stylis/stylis.min'));
var _insertRulePlugin = _interopDefault(require('stylis-rule-shee... |
/*
@license
dhtmlxScheduler v.4.3.1
This software is covered by GPL license. You also can obtain Commercial or Enterprise license to use it in non-GPL project - please contact sales@dhtmlx.com. Usage without proper license is prohibited.
(c) Dinamenta, UAB.
*/
scheduler.templates.calendar_month=scheduler.date... |
Clazz.declarePackage ("J.adapter.readers.quantum");
Clazz.load (["J.adapter.readers.quantum.MOReader", "java.util.Hashtable"], "J.adapter.readers.quantum.NWChemReader", ["java.lang.Character", "$.Float", "JU.AU", "$.List", "J.adapter.readers.quantum.BasisFunctionReader", "J.adapter.smarter.SmarterJmolAdapter", "J.api.... |
version https://git-lfs.github.com/spec/v1
oid sha256:b39b8a1faf1ad98b4967e7af0ad2332b1f33eb4a0108e98a25c118c6125ed3bf
size 16593
|
function houses_login(){
this.house_auth = {};
this.house_auth_req = {};
}
function houses_logout(){
delete this.house_auth;
delete this.house_auth_req;
//
// In a POL that's not yours? You go to the entrance.
// In a POL that is yours? Everyone else goes to the entrance
//
if (this.location.pols_is_pol() ... |
var uuid = require('node-uuid');
module.exports.messageRoom = function (room, message) {
var roomId = room._id ? room._id : room;
Room.message(roomId, {
id: uuid.v4(),
type: 'room',
text: message,
room: roomId,
createdAt: new Date().toISOString()
});
};
module.exports.animateInRoom = function (roomMember... |
/*! Tablesaw - v3.0.1-beta.12 - 2017-03-17
* https://github.com/filamentgroup/tablesaw
* Copyright (c) 2017 Filament Group; Licensed MIT */
// UMD module definition
// From: https://github.com/umdjs/umd/blob/master/templates/jqueryPlugin.js
(function (factory) {
if (typeof define === 'function' && define.amd) {
//... |
"use strict";
/**
* @license
* Copyright 2013 Palantir Technologies, 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
*
* Unle... |
var lib = require("../");
var helper = require("./helper");
var nock = require("nock");
var Bridge = lib.Bridge;
describe("Bridge", function () {
before(function () {
nock.disableNetConnect();
helper.setupGlobalOptions();
});
after(function () {
nock.cleanAll();
nock.enableNetConnect();
});
describe("#l... |
var beerData = JSON.parse(document.getElementById("beerData").textContent);
var beerTemplate = document.getElementById("tmpl-beer").textContent;
var beerList = document.getElementById("beerList");
var filters = document.getElementById("filters");
var filterLinks = filters.querySelectorAll("a");
beerList.innerHTML = _.... |
/*! jQuery UI - v1.10.4 - 2014-02-02
* http://jqueryui.com
* Copyright 2014 jQuery Foundation and other contributors; Licensed MIT */
jQuery(function(e){e.datepicker.regional.th={closeText:"ปิด",prevText:"« ย้อน",nextText:"ถัดไป »",currentText:"วันนี้",monthNames:["มกราคม","กุมภาพันธ์","มีนาคม","เม... |
// toggle visibility of R source blocks in R Markdown output
function toggle_R() {
var x = document.getElementsByClassName('r');
if (x.length == 0) return;
function toggle_vis(o) {
var d = o.style.display;
o.style.display = (d == 'block' || d == '') ? 'none':'block';
}
for (i = 0; i < x.length; i++) ... |
var test = require('tape')
var budo = require('../')
var browserify = require('browserify')
var path = require('path')
var brfs = require('brfs')
var entry = 'test/fixtures/app-brfs.js'
test('CLI supports browserify args after full stop', function (t) {
t.plan(1)
t.timeoutAfter(10000)
doBundle(function (err, e... |
import { get } from 'ember-metal/property_get';
import { guidFor } from 'ember-metal/utils';
import run from 'ember-metal/run_loop';
import HashLocation from 'ember-routing/location/hash_location';
import jQuery from 'ember-views/system/jquery';
let HashTestLocation, location;
function createLocation(options) {
if ... |
/*!@license
* Infragistics.Web.ClientUI Tile Manager localization resources 15.1.20151.1005
*
* Copyright (c) 2011-2015 Infragistics Inc.
*
* http://www.infragistics.com/
*
*/
/*global jQuery */
(function ($) {
$.ig = $.ig || {};
if (!$.ig.TileManager) {
$.ig.TileManager = {};
$.extend($.ig.TileManager, {
local... |
'use strict'
const utils = require('./utils')
const config = require('../config')
const isProduction = process.env.NODE_ENV === 'production'
module.exports = {
loaders: utils.cssLoaders({
sourceMap: isProduction
? config.build.productionSourceMap
: config.dev.cssSourceMap,
extract: isProduction
... |
'use strict';
var gulp = require('gulp');
var gutil = require('gulp-util');
var jshint = require('gulp-jshint');
var stylish = require('jshint-stylish');
var config = require('./config');
module.exports = function lintTask(cb, files) {
gutil.log('linting is starting...');
return gulp.src(files || config.sr... |
/* global Promise:true */
import run from "ember-metal/run_loop";
import RSVP from "ember-runtime/ext/rsvp";
QUnit.module('Ember.RSVP');
test('Ensure that errors thrown from within a promise are sent to the console', function(){
var error = new Error('Error thrown in a promise for testing purposes.');
try {
... |
let Declaration = require('../declaration')
let utils = require('./grid-utils')
class GridRowColumn extends Declaration {
/**
* Translate grid-row / grid-column to separate -ms- prefixed properties
*/
insert(decl, prefix, prefixes) {
if (prefix !== '-ms-') return super.insert(decl, prefix, prefixes)
... |
var Client = require('../')
var common = require('./common')
var fs = require('fs')
var parseTorrent = require('parse-torrent')
var test = require('tape')
var torrent = fs.readFileSync(__dirname + '/torrents/bitlove-intro.torrent')
var parsedTorrent = parseTorrent(torrent)
var peerId1 = new Buffer('0123456789012345678... |
var deepExtend = require('deep-extend');
var path = require("path");
var ExtractTextPlugin = require("extract-text-webpack-plugin");
var webpack = require("webpack");
var assetsPath = path.join(__dirname, "..", "public");
var publicPath = "/";
/* Note:
* Entry points for multi page app could be more complex
*... |
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//------------------------------------------------------... |
'use strict';
const common = require('../common');
// This test ensures that the value "auto" on ecdhCurve option is
// supported to enable automatic curve selection in TLS server.
if (!common.hasCrypto)
common.skip('missing crypto');
if (!common.opensslCli)
common.skip('missing openssl-cli');
const assert = re... |
/*
* @flow
* @lint-ignore-every LINEWRAP1
*/
import {suite, test} from 'flow-dev-tools/src/test/Tester';
export default suite(({addFile, addFiles, addCode}) => [
test('Named import of default-only module', [
addFile('exporter.js'),
addFile('importer.js')
.newErrors(
`
importer.js... |
// Tab management.
'use strict';
var _get = require('babel-runtime/helpers/get')['default'];
var _inherits = require('babel-runtime/helpers/inherits')['default'];
var _createClass = require('babel-runtime/helpers/create-class')['default'];
var _classCallCheck = require('babel-runtime/helpers/class-call-check')['de... |
/* *
*
* (c) 2010-2021 Torstein Honsi
*
* License: www.highcharts.com/license
*
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
*
* */
'use strict';
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.s... |
import vars from '../variables'
import color from 'Color'
var styles = {}
export default styles
|
var express = require('../')
, assert = require('assert')
, request = require('./support/http');
describe('app.routes', function(){
it('should be initialized', function(){
var app = express();
app.routes.should.eql({});
})
it('should be populated with routes', function(){
var app = express();
... |
//
// Send money from a wallet on BitGo
// This is the advanced example using createTransaction / sendTransaction,
// which allows you to specify fees and the keychain used for signing the transaction.
// Defaults to work on BitGo test environment at https://test.bitgo.com
//
// Copyright 2014, BitGo, Inc. All Rights ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.