code stringlengths 2 1.05M |
|---|
var cluster = require('cluster');
var sysUtils = require('./utils');
var numCPUs = require('os').cpus().length;
if (cluster.isMaster) {
// Fork workers.
for (var i = 0; i < numCPUs; i++) {
cluster.fork();
}
cluster.on('fork', function(worker) {
sysUtils.log('Cluster: worker ' + worker... |
/* *
*
* (c) 2010-2020 Torstein Honsi
*
* License: www.highcharts.com/license
*
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
*
* */
'use strict';
import Chart from '../parts/Chart.js';
import H from '../parts/Globals.js';
var doc = H.doc;
import U from '../parts/Utilities.js';
v... |
/* *
*
* 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.setPrototypeOf ||
({ __pr... |
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
import _extends from "@babel/runtime/helpers/esm/extends";
let _ = t => t,
_t,
_t2,
_t3,
_t4,
_t5,
_t6;
import * as React from 'react';
import PropTypes from 'prop-types';
import clsx from 'cls... |
/* *
*
* (c) 2010-2019 Torstein Honsi
*
* License: www.highcharts.com/license
*
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
*
* */
'use strict';
import H from './Globals.js';
/**
* Optional parameters for the tick.
* @private
* @interface Highcharts.TickParametersObject
*/ ... |
var comb = require("comb"),
define = comb.define;
define({
/**@ignore*/
instance: {
__providesAccurateRowsMatched: true,
__requiresSqlStandardDateTimes: false,
__supportsCte: true,
__supportsDistinctOn: false,
__supportsIntersectExcept: true,
__supportsInters... |
const path = require('path')
const projectPath = require('./projectPath')
const fs = require('fs')
module.exports = function(jsDest, dest, filename) {
filename = filename || 'rev-manifest.json'
return function() {
this.plugin("done", function(statsObject) {
const stats = statsObject.t... |
version https://git-lfs.github.com/spec/v1
oid sha256:e16a05bfaddd80f902a2718913a5fb03a5944d02dab40f9ad573f4ac51110827
size 6681
|
'use strict';
var grunt = require('grunt');
/*
======== A Handy Little Nodeunit Reference ========
https://github.com/caolan/nodeunit
Test methods:
test.expect(numAssertions)
test.done()
Test assertions:
test.ok(value, [message])
test.equal(actual, expected, [message])
test.notEqual(actua... |
/**
* Copyright 2013-2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @providesModule ... |
var EventEmitter = require('events').EventEmitter;
var fs = require('fs');
var url = require('url');
var util = require('util');
var _ = require('underscore');
var env = require('./env');
var paramChecker = require('./param-checker');
module.exports.createPluginMgr = function (pluginInfos, logger) {
return new Pl... |
myPager.addTask('config', {
init: function (pageId, pageContent, event, dom, scope) {
return function () {
var form = new cForm('configForm');
var xmlDoc = helper.configParse(true);
helper.configFieldsUi('editor.config.ui', xmlDoc, false,
{
change: function () {
f... |
/*globals Markdown */
define([
"jquery",
"underscore",
"utils",
"logger",
"classes/Extension",
"text!html/markdownExtraSettingsBlock.html",
'google-code-prettify',
'highlightjs',
'crel',
'pagedownExtra'
], function($, _, utils, logger, Extension, markdownExtraSettingsBlockHTML, prettify, hljs) {
var markdow... |
'use strict';
module.exports = {
app: {
title: 'MEAN.JS',
description: 'Full-Stack JavaScript with MongoDB, Express, AngularJS, and Node.js',
keywords: 'mongodb, express, angularjs, node.js, mongoose, passport',
googleAnalyticsTrackingID: process.env.GOOGLE_ANALYTICS_TRACKING_ID || 'GOOGLE_ANALYTICS_... |
/*
Adapted for Node.js by Matt Robenolt
Reference: http://www.tumuski.com/2010/04/nibbler/
*/
/**
* Node.js example:
*
* var nibbler = require('nibbler');
*
* nibbler.b32encode('Hello, World!'); // returns JBSWY3DPFQQFO33SNRSCC====='
* nibbler.b32decode('JBSWY3DPFQQFO33SNRSCC====='); // returns 'Hello, World!'
... |
(function () {
'use strict';
angular
.module('doleticApp')
.component('uaDisabledTableComponent', uaDisabledTableComponent());
function uaDisabledTableComponent() {
return {
bindings: {},
controller: "uaDisabledTableController",
templateUrl: "app... |
/**
* Class that manages making request, called by all of the API methods.
* @type {[type]}
*/
module.exports = Transport;
var _ = require('./utils');
var errors = require('./errors');
var Host = require('./host');
var Promise = require('promise-js');
var patchSniffOnConnectionFault = require('./transport/sniff_on_... |
E2.p = E2.plugins["atan2_modulator"] = function(core, node)
{
this.desc = 'Atan2(x, y).';
this.input_slots = [
{ name: 'x value', dt: core.datatypes.FLOAT, desc: 'X value.', def: 0.0 },
{ name: 'y value', dt: core.datatypes.FLOAT, desc: 'Y value.', def: 0.0 }
];
this.output_slots = [
{ name: 'result', dt... |
var h = require('virtual-dom/h')
, inherits = require('util').inherits
, BaseElement = require('./base-element')
module.exports = Overview
function Overview(target) {
BaseElement.call(this, target)
var self = this
this.lefts = [
h('i.fa.fa-chevron-up', {
onclick: function(e) {
self.previou... |
/*
This file is part of cpp-ethereum.
cpp-ethereum is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
cpp-ethereum is distributed in the... |
version https://git-lfs.github.com/spec/v1
oid sha256:5ef127d8cbe045d74b207fd89b56254b67bbdc7d4e989de89c2d9f1e9ad8a0d9
size 3278
|
CAAT.Module( {
/**
* @name Skeleton
* @memberof CAAT.Module.Skeleton
* @constructor
*/
defines : "CAAT.Module.Skeleton.Skeleton",
depends : [
"CAAT.Module.Skeleton.Bone"
],
extendsWith : {
/**
* @lends CAAT.Module.Skeleton.Skeleton.prototype
*... |
/*
* env-spawn-test.js: Tests for supporting environment variables in the forever module
*
* (C) 2010 Nodejitsu Inc.
* MIT LICENCE
*
*/
var assert = require('assert'),
path = require('path'),
vows = require('vows'),
forever = require('../lib/forever'),
helpers = require('./helpers');
vows.descri... |
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//---------------------------------------------------------... |
const os = require('os');
const path = require('path');
const view = require('think-view');
const model = require('think-model');
const cache = require('think-cache');
const session = require('think-session');
const ROOT_PATH = think.env === 'now' ? os.tmpdir() : think.ROOT_PATH;
module.exports = [
view, // make app... |
var BootLogo = {
show: function(cb) {
Sfx.play('burningtomato.wav');
$('#burningtomato').delay(500).fadeIn(500, function() {
window.setTimeout(function() {
$('#burningtomato').fadeOut(500, cb);
}, 1500)
});
}
}; |
;(function(Form, Editor) {
module('Checkboxes', {
setup: function() {
this.sinon = sinon.sandbox.create();
},
teardown: function() {
this.sinon.restore();
}
});
same = deepEqual;
var schema = {
options: ['Sterling', 'Lana', 'Cyril', 'Cheryl', 'Pam', 'Doctor Krieger']
};... |
var Readable = require('stream').Readable;
var through = require('through');
var read = require('./');
var test = require('tape');
test('push read', function(t){
var stream = through();
read(stream, function(err, val){
t.error(err);
t.equal(val, 'foo');
read(stream, function(err, val){
t.error(e... |
/*!
* @license deepcopy.js Copyright(c) 2013 sasa+1
* https://github.com/sasaplus1/deepcopy.js
* Released under the MIT license.
*/
/**
* export to AMD/CommonJS/global.
*
* @param {Object} global global object.
* @param {Function} factory factory method.
*/
(function(global, factory) {
'use strict';
if ... |
THREE.LineGeometry = function () {
THREE.LineSegmentsGeometry.call( this );
this.type = 'LineGeometry';
};
THREE.LineGeometry.prototype = Object.assign( Object.create( THREE.LineSegmentsGeometry.prototype ), {
constructor: THREE.LineGeometry,
isLineGeometry: true,
setPositions: function ( array ) {
// co... |
angular.module('bosApp', ['ja.qr']).
controller('saleCtrl', function ($scope) {
$scope.merchantAddress = '1Akq3sCaNZLoE2RmrBCvN8paDGq1HiKow5';
$scope.saleAmount = '';
$scope.saleQr = function() {
return 'bitcoin:' + $scope.merchantAddress + '?amount=' + $scope.saleAmount;
};
$scope.size = 200;... |
/*
* Copyright (c) 2015 by Rafael Angel Aznar Aparici (rafaaznar at gmail dot com)
*
* sisane: The stunning micro-library that helps you to develop easily
* AJAX web applications by using Angular.js 1.x & sisane-server
* sisane is distributed under the MIT License (MIT)
* Sources at https://github.... |
import { TAPi18n } from 'meteor/rocketchat:tap-i18n';
import { settings } from '../../settings';
import { callbacks } from '../../callbacks';
/*
* MapView is a named function that will replace geolocation in messages with a Google Static Map
* @param {Object} message - The message object
*/
function MapView(messag... |
//From http://stackoverflow.com/questions/13046401/how-to-set-selected-select-option-in-handlebars-template
//Update to work with Rhino which could not take a regex, or use jquery unlike many of the examples
Handlebars.registerHelper('toString', function(context) {
if(context === undefined || context === null){
retu... |
/**
* @fileoverview RaphaelLineTypeBase is base class for line type renderer.
* @author NHN.
* FE Development Lab <dl_javascript@nhn.com>
*/
import raphaelRenderUtil from './raphaelRenderUtil';
import renderUtil from '../helpers/renderUtil';
import predicate from '../helpers/predicate';
import arrayUtil fro... |
var x = "4";
export var result = `56 = ${x}`; |
module.exports = function (platform) {
var writable = require('./writable.js');
var sharedDiscover = require('./discover.js');
var sharedFetch = require('./fetch.js');
var pushToPull = require('push-to-pull');
var pktLine = require('./pkt-line.js')(platform);
var framer = pushToPull(pktLine.framer);
var d... |
var express = require('express');
var app = express();
app.set('port', process.env.PORT || 3000); //<co id="callout-config-1-1" />
app.configure('development', function() { //<co id="callout-config-1-2" />
app.set('db', 'localhost/development');
});
app.configure('production', function() { //<co id="callout-config... |
var glob = require('glob');
var path = require('path');
function loadTasks(gulp, plugins, paths) {
var taskNames = [];
// Load all tasks from tasks folder
glob.sync(path.resolve(__dirname, '../tasks/*.js')).forEach(function(filePath) {
var taskName = path.basename(filePath, '.js');
taskNames.push(taskName);
... |
/* Get Programming with JavaScript
* Listing 10.01
* Bracket notation for object properties
*/
var ages = {};
ages["Kandra"] = 56;
ages["Dax"] = 21;
console.log(ages.Kandra);
console.log(ages.Dax);
/* Further Adventures
*
* 1) Add a couple more properties to
* the ages object.
*
* 2) Change the calls t... |
// Generated by CoffeeScript 1.6.2
(function() {
var workspace, workspaceViewModel,
__hasProp = {}.hasOwnProperty,
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.... |
import {Spinner} from "../spin.js";
var inputs = document.querySelectorAll('input[min], select');
var cbInputs = document.querySelectorAll('input[type="checkbox"]');
var spinnerEl = document.getElementById('preview');
var spinner;
for (var i = 0; i < inputs.length; i++) {
inputs[i].addEventListener('change', upda... |
import {Transform} from "../transform"
// ;; A selection-aware extension of `Transform`. Use
// `ProseMirror.tr` to create an instance.
export class EditorTransform extends Transform {
constructor(pm) {
super(pm.doc)
this.pm = pm
}
// :: (?Object) → ?EditorTransform
// Apply the transformation. Return... |
module.exports = function(app){
var index = require('../controllers/index.server.controller');
app.get('/', index.render);
};
|
var DistancePower = function (x1, y1, x2, y2, pow)
{
if (pow === undefined) { pow = 2; }
return Math.sqrt(Math.pow(x2 - x1, pow) + Math.pow(y2 - y1, pow));
};
module.exports = DistancePower;
|
define({
"showLayerLabels": "عرض أسماء الطبقة",
"autoPlay": "تشغيل شريط التمرير تلقائيًا",
"loopPlay": "تكرار الوقت باستمرار",
"dateAndTimeFormat": "تنسيق التاريخ والوقت",
"mapDefault": "الوضع الافتراضي للخريطة",
"custom": "تخصيص",
"formatInstruction": "تعليمات التنسيق",
"playback": "تشغيل الموضع الذي ت... |
import test from 'tape';
import proc from '../../src/internal/proc'
import { is, deferred, arrayOfDeffered } from '../../src/utils'
import * as io from '../../src/effects'
test('proc fork handling: generators', assert => {
assert.plan(4);
let task, task2;
function* subGen(arg) {
yield Promise.resolve(1)
... |
import React from 'react';
import { FormPanel, PasswordField } from '@extjs/ext-react';
export default function PasswordFieldExample() {
return (
<FormPanel shadow>
<PasswordField
width={200}
label="Password"
required
revealable... |
var R = require('../..');
var objs = [
{x: [1, 2], y: true},
{x: [1, 3], y: true},
{x: [], y: false},
{x: [2], y: false},
{x: [3], y: true},
{x: [1], y: true},
{x: [1, 2, 3], y: true},
{x: [], y: true},
{x: [1, 2], y: false},
{x: [1, 3], y: true}
];
var findEmptyX = R.find(R.where({x: R.isEmpty}));... |
define(
function (require) {
var lang = require('common/lang');
describe('测试overwrite', function () {
it('test normal object', function () {
var result = lang.overwrite(
{
x: 1
},
{
... |
/*! jQuery UI - v1.10.4 - 2014-06-07
* http://jqueryui.com
* Copyright 2014 jQuery Foundation and other contributors; Licensed MIT */
jQuery(function(t){t.datepicker.regional.ka={closeText:"დახურვა",prevText:"< წინა",nextText:"შემდეგი >",currentText:"დღეს",monthNames:["იანვარი","თებერვალი","მარტი","აპრილი","... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.GrabLineLinked = void 0;
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
var GrabLineLinked = ... |
/**
* 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.
*
* @emails react-core
*/
'use strict';
const ReactDOMServerIntegrationUtils = require('./utils/ReactDOMServerIntegrationTestUtils... |
(function () {
var x = 10;
if( x == 10){
console.log(`Welcome`);
}
})(); |
import {
assert,
InjectedProperty
} from 'ember-metal';
/**
Namespace for injection helper methods.
@class inject
@namespace Ember
@static
@public
*/
export default function inject() {
assert(`Injected properties must be created through helpers, see '${Object.keys(inject).join('"', '"')}'`);
}
// Dic... |
const path = require('path')
const fs = require('fs-plus')
const _ = require('underscore-plus')
const {Emitter, Disposable, CompositeDisposable} = require('event-kit')
const GitUtils = require('git-utils')
let nextId = 0
// Extended: Represents the underlying git operations performed by Atom.
//
// This class shouldn... |
.1n; |
define(['angular', 'modules/invoices/indexController', 'modules/invoices/newController', 'modules/invoices/editController'],
function(angular, IndexController, NewController, EditController) {
'use strict';
var configFn = [];
var invoices = angular.module('invoices', configFn);
invoi... |
suite('PacketLinkFactory', function() {
setup(function() {
wdi.Debug.debug = false; //disable debugging, it slows tests
});
suite('#extract()', function() {
test('Should extract generation from a RedSetAck', function() {
var arr = [0x01, 0x00, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00];
var myHeader = new wdi.S... |
Ember.TEMPLATES["test/fixtures/grandparent/parent/child"] = Ember.Handlebars.template(function anonymous(Handlebars,depth0,helpers,partials,data) {
this.compilerInfo = [4,'>= 1.0.0'];
helpers = this.merge(helpers, Ember.Handlebars.helpers); data = data || {};
data.buffer.push("Should be nested.");
});
Ember.... |
/**
* Plugin.js
*
* Released under LGPL License.
* Copyright (c) 1999-2017 Ephox Corp. All rights reserved
*
* License: http://www.tinymce.com/license
* Contributing: http://www.tinymce.com/contributing
*/
/**
* This class contains all core logic for the nonbreaking plugin.
*
* @class tinymce.nonbreaking.Pl... |
'use strict';
// Declare app level module which depends on views, and components
angular.module('myApp', [
'ngRoute',
'myApp.view1',
'myApp.view2',
'myApp.version'
]).
config(['$routeProvider', function($routeProvider) {
$routeProvider.otherwise({redirectTo: '/view1'});
}]);
|
function ResourceManager(options) {
var t = this;
// exports
t.fetchResources = fetchResources;
t.setResources = setResources;
t.mutateResourceEvent = mutateResourceEvent;
// locals
var resourceSources = [];
var cache;
// initialize the resources.
setResources(options.resources);
// add the resour... |
import Base from './base';
// decode websafe_json encoding
function unsafeJson(text) {
return text.replace(/>/g, '>')
.replace(/</g, '<')
.replace(/&/g, '&');
}
class Stylesheet extends Base {
_type = 'Stylesheet';
get stylesheet () {
return unsafeJson(this.get('stylesheet'));
}
}
... |
/*
* jQuery File Upload Plugin 3.8
*
* Copyright 2010, Sebastian Tschan, AQUANTUM
* Licensed under the MIT license:
* http://creativecommons.org/licenses/MIT/
*
* https://blueimp.net
* http://www.aquantum.de
* GitHub: https://github.com/blueimp/jQuery-File-Upload/wiki
*/
/*jslint browser: true */
/*global Fi... |
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2015 Photon Storm Ltd.
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
/**
* The Phaser.Color class is a set of static methods that assist in color manipulation and conversion.
*
* @cl... |
/*jshint node: true*/
/**
* @module Bin:StartServer
* @author kecso / https://github.com/kecso
*/
'use strict';
var path = require('path'),
gmeConfig = require(path.join(process.cwd(), 'config')),
webgme = require('../../webgme'),
myServer;
webgme.addToRequireJsPaths(gmeConfig);
myServer = new webgme... |
'use strict';
// Use Applicaion configuration module to register a new module
ApplicationConfiguration.registerModule('tags');
|
Clazz.declarePackage ("javajs.swing");
Clazz.load (null, "javajs.swing.GridBagConstraints", ["javajs.swing.Insets"], function () {
c$ = Clazz.decorateAsClass (function () {
this.gridx = 0;
this.gridy = 0;
this.gridwidth = 0;
this.gridheight = 0;
this.weightx = 0;
this.weighty = 0;
this.anchor = 0;
this.fill =... |
const webpack = require("webpack"),
WebpackDevServer = require("webpack-dev-server"),
webpackConfig = require("./webpack.config")
new WebpackDevServer(webpack(webpackConfig), { publicPath: "/static/", hot: true, historyApiFallback: true })
.listen(3000, "localhost", (err) => {
if (err) ... |
ace.define("ace/mode/json_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(acequire, exports, module) {
"use strict";
var oop = acequire("../lib/oop");
var TextHighlightRules = acequire("./text_highlight_rules").TextHighlightRules;
var JsonHighlightRules = functi... |
version https://git-lfs.github.com/spec/v1
oid sha256:edac9d30d529354e0f621640216b592c7d3917651071c818dd0292aa2760d7df
size 9624
|
var __slice = Array.prototype.slice,
Q = require('q'),
_ = require('./lodash'),
EventEmitter = require('events').EventEmitter,
slice = Array.prototype.slice.call.bind(Array.prototype.slice),
utils = require('./utils');
// The method below returns no result, so we are able hijack the result to
// pr... |
var browse = require('./getBrowseData'),
log = require('bole')('registry-browse-all-packages');
module.exports = function browseAll (skip, limit, next) {
log.info('browse lookup: all ', skip, limit);
return browse('all', false, skip, limit, next);
}; |
define({
"_widgetLabel": "Análisis de incidentes",
"_featureAction_SetAsIncident": "Establecer como incidente",
"incident": "Incidente",
"weather": "Tiempo",
"locate_incident": "Localizar incidente",
"clear_incidents": "Borrar incidentes",
"reverse_geocoded_address": "Dirección más próxima",
"reverse_ge... |
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.dialog.add("cellProperties",function(g){function d(a){return function(b){for(var c=a(b[0]),d=1;d<b.length;d++)if(a(b[d])!==c){c=null;break}"undefined"!=typeof c&&(thi... |
'use strict';
var deepDefaults = require('../lib/index'),
assert = require('assert');
describe('deepDefaults()', function() {
function expect(dest, src, expected) {
it('deepDefaults(' + JSON.stringify(dest) + ', ' + JSON.stringify(src) + ') == ' + JSON.stringify(expected), function() {
var... |
import Ember from 'ember';
import config from './config/environment';
var Router = Ember.Router.extend({
location: config.locationType
});
Router.map(function() {
this.route('single');
this.route('multiple');
this.route('zany-embedded-html');
});
export default Router;
|
// Last time updated: 2017-04-29 7:05:22 AM UTC
// Latest file can be found here: https://cdn.webrtc-experiment.com/DetectRTC.js
// Muaz Khan - www.MuazKhan.com
// MIT License - www.WebRTC-Experiment.com/licence
// Documentation - github.com/muaz-khan/DetectRTC
// ____________
// DetectRTC.js
// DetectRTC.hasW... |
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2016 Photon Storm Ltd.
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
Phaser.Component = function () {};
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2016 Photon S... |
/* global QUnit */
// import { ShapePath } from '../../../../../src/extras/core/ShapePath.js';
export default QUnit.module( 'Extras', () => {
QUnit.module( 'Core', () => {
QUnit.module( 'ShapePath', () => {
// INSTANCING
QUnit.todo( 'Instancing', ( assert ) => {
assert.ok( false, 'everything\'s gonna... |
module.exports = str
/**
* Returns a string representation of a mat3
*
* @alias mat3.str
* @param {mat3} mat matrix to represent as a string
* @returns {String} string representation of the matrix
*/
function str(a) {
return 'mat3(' + a[0] + ', ' + a[1] + ', ' + a[2] + ', ' +
a[3] + ', ' + a... |
'use strict';
const common = require('../common');
const assert = require('assert');
assert.throws(
() => process.setUncaughtExceptionCaptureCallback(42),
{
code: 'ERR_INVALID_ARG_TYPE',
name: 'TypeError',
message: 'The "fn" argument must be of type function or null. ' +
'Received type num... |
/*
This file is part of cpp-ethereum.
cpp-ethereum is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
cpp-ethereum is distributed in the h... |
import { extend } from 'flarum/extend';
import Page from 'flarum/components/Page';
import ItemList from 'flarum/utils/ItemList';
import listItems from 'flarum/helpers/listItems';
import icon from 'flarum/helpers/icon';
import DiscussionList from 'flarum/components/DiscussionList';
import WelcomeHero from 'flarum/compon... |
// flow-typed signature: f7bf040869842c4af9aa8e5e72c252fa
// flow-typed version: e1ccfebf85/bluebird_v3.x.x/flow_>=v0.32.x
type Bluebird$RangeError = Error;
type Bluebird$CancellationErrors = Error;
type Bluebird$TimeoutError = Error;
type Bluebird$RejectionError = Error;
type Bluebird$OperationalError = Error;
type ... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _timesLimit = require('./timesLimit');
var _timesLimit2 = _interopRequireDefault(_timesLimit);
var _doLimit = require('./internal/doLimit');
var _doLimit2 = _interopRequireDefault(_doLimit);
function _interopRequireDe... |
import { test } from 'qunit';
[ true, false ].forEach( modifyArrays => {
test( `ractive.reverse() (modifyArrays: ${modifyArrays})`, t => {
let items = [ 'alice', 'bob', 'charles' ];
const ractive = new Ractive({
el: fixture,
template: `
<ul>
{{#items}}
<li>{{.}}</li>
{{/items}}
</ul... |
/**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import fs from 'fs';
import path from 'path';
import gl... |
// Copyright 2008 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... |
var packpath = require('../../../../../')
, path = require('path');
module.exports.selfFromPackPath = function() {
return packpath.self();
}
module.exports.self = function() {
return path.resolve(__dirname);
}
module.exports.parentFromPackPath = function() {
return packpath.parent();
}
module.exports.... |
(function () {
'use strict';
function MediaNodeInfoDirective($timeout, $location, $q, eventsService, userService, dateHelper, editorService, mediaHelper, mediaResource) {
function link(scope, element, attrs, ctrl) {
var evts = [];
scope.allowChangeMediaType = false;
... |
/* eslint no-unused-vars: "off" */
export default function (speed = this.params.speed, runCallbacks = true, internal) {
const swiper = this;
const { params, animating } = swiper;
if (params.loop) {
if (animating) return false;
swiper.loopFix();
// eslint-disable-next-line
swiper._clientLeft = swi... |
'use strict';
module.exports = function (gulp, $) {
gulp.task('connect', [
'clean:examples',
'scripts:setup',
'styles'
], function () {
var livereloadPort = 35729;
$.connect.server({
port: 9000,
livereload: {
port: livereloadPort
},
root: 'examples',
midd... |
export default {
DATE_ROW_COUNT: 6,
DATE_COL_COUNT: 7
}; |
const {createAddColumnMigration} = require('../../utils');
module.exports = createAddColumnMigration('posts', 'send_email_when_published', {
type: 'bool',
nullable: true,
defaultTo: false
});
|
// Generated by CoffeeScript 1.3.3
(function() {
var Access, Arr, Assign, Base, Block, Call, Class, Closure, Code, Comment, Existence, Extends, For, IDENTIFIER, IDENTIFIER_STR, IS_STRING, If, In, Index, LEVEL_ACCESS, LEVEL_COND, LEVEL_LIST, LEVEL_OP, LEVEL_PAREN, LEVEL_TOP, Literal, METHOD_DEF, NEGATE, NO, Obj, Op, P... |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* @name: S15.4.4.2_A4.7;
* @section: 15.4.4.2, 11.2.2;
* @assertion: The toString property of Array can't be used as constructor;
* @description: If property does not implement the in... |
/*
* Planck.js v0.2.6
*
* Copyright (c) 2016-2018 Ali Shakiba http://shakiba.me/planck.js
* Copyright (c) 2006-2013 Erin Catto http://www.gphysics.com
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from ... |
version https://git-lfs.github.com/spec/v1
oid sha256:3362b51608fe53e6e9b0e697537ca16605ffe0f21b06c2d7937a1d6d3ca24ec0
size 96320
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.