code stringlengths 2 1.05M |
|---|
var Context = require('./context').Context;
var DiffContext = function DiffContext(left, right){
this.left = left;
this.right = right;
this.pipe = 'diff';
};
DiffContext.prototype = new Context();
exports.DiffContext = DiffContext; |
// System Modules
import { expect } from 'chai';
import simple, { mock } from 'simple-mock';
// Angie Modules
const TEST_ENV = global.TEST_ENV || 'src',
$ScopeProvider = require(`../../../${TEST_ENV}/controllers/$ScopeProvider`).default,
$scope = requir... |
// Stupid jQuery table plugin.
// Call on a table
// sortFns: Sort functions for your datatypes.
(function($) {
$.fn.stupidtable = function(sortFns) {
return this.each(function() {
var $table = $(this);
sortFns = sortFns || {};
// ==================================================== //
... |
/**
* Copyright 2012-2017, Plotly, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
var ScatterGeo = {};
ScatterGeo.attributes = require('./attributes');
ScatterGeo.supplyDefaults = require('./d... |
// former NodeUI.makeUIAdjustableValue
// makes an element adjustable by dragging in two directions
// onChange callback is (value, screenDelta)
// note, does not support css/dom rotation of surface element
// can be bound twice for XY controls
var uiMakeDragToAdjust = function(domNode, onStart, onChange, onEnd, optio... |
import 'ember';
import Ember from 'ember-metal/core';
import ComponentLookup from 'ember-views/component_lookup';
import isEnabled from 'ember-metal/features';
import { objectControllerDeprecation } from 'ember-runtime/controllers/object_controller';
import EmberHandlebars from 'ember-htmlbars/compat';
import EmberVie... |
var db = require('./document'),
fixtures = require('../fixtures');
module.exports = function() {
var connection;
var modelsToLoad = Array.prototype.slice.call(arguments);
before(function(done) {
this.timeout(8000);
db.ensureConnected().then(function(conn) {
connection = conn;
done();
}, function(err)... |
/* */
var all = require("./helpers").all;
function store(token, context) {
context.output.push(typeof token == 'string' ? token : token[0]);
}
function stringify(tokens, options, restoreCallback) {
var context = {
keepBreaks: options.keepBreaks,
output: [],
spaceAfterClosingBrace: options.compatibility... |
/**!
* cnpmjs.org - services/download_total.js
*
* Copyright(c) fengmk2 and other contributors.
* MIT Licensed
*
* Authors:
* fengmk2 <fengmk2@gmail.com> (http://fengmk2.github.com)
*/
'use strict';
/**
* Module dependencies.
*/
var utility = require('utility');
var DownloadTotal = require('../models').D... |
require("./server")({
prerender: false,
separateStylesheet: true,
defaultPort: 8080
});
|
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v20.0.0
* @link http://www.ag-grid.com/
* @license MIT
*/
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.leng... |
import safeMerge from './safeMerge';
import createDefaultDuration from '../defaults/createDefaultDuration';
import createDefaultBarriers from '../defaults/createDefaultBarriers';
import createDefaultBarrierType from '../defaults/createDefaultBarrierType';
import areAllTimeFieldsValid from '../validation/areAllTimeField... |
"use strict";
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj ... |
pageflow.OtherEntriesCollectionView = Backbone.Marionette.View.extend({
initialize: function() {
this.otherEntries = new pageflow.OtherEntriesCollection();
this.listenTo(this.otherEntries, 'sync', function() {
if (this.otherEntries.length === 1) {
this.options.selection.set('entry', this.otherE... |
'use strict';
describe('Loading 0103-basic-center-url-hash-example.html', function() {
beforeEach(function() {
browser.get('0103-basic-center-url-hash-example.html');
browser.wait(function() {
return element(by.css('img.leaflet-tile-loaded')).isPresent();
}, 5000);
}, 30000);
it('should updat... |
var net = require('net');
var host = process.argv[2];
var port = Number(process.argv[3]);
var socket = net.connect(port, host);
socket.on('connect', function () {
process.stdin.pipe(socket);
socket.pipe(process.stdout);
process.stdin.resume();
});
socket.on('end', function () {
process.stdin.pause();
});
|
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("specialchar","ru",{euro:"Знак евро",lsquo:"Левая одинарная кавычка",rsquo:"Правая одинарная кавычка",ldquo:"Левая двойная кавычка",rdquo:"Левая двойн... |
#!/usr/bin/env node
(function() {
'use strict';
require('terminal-colors');
var fs = require('fs'),
path = require('path'),
ssh = require('ssh-client'),
host = process.argv[2],
source = process.argv[3],
destination = process.argv[4],
dirList = [];
function help() {
va... |
module.exports = {
rules: {
'strict': 0,
},
};
|
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageHealing = (props) => (
<SvgIcon {...props}>
<path d="M17.73 12.02l3.98-3.98c.39-.39.39-1.02 0-1.41l-4.34-4.34c-.39-.39-1.02-.39-1.41 0l-3.98 3.98L8 2.29C7.8 2.1 7.55 2 7.29 2c-.25 0-.51.1-.7.29L2.25 6.63c-... |
var searchData=
[
['u16',['u16',['../a00721.html#gaa2d7acc0adb536fab71fe261232a40ff',1,'glm']]],
['u16vec1',['u16vec1',['../a00721.html#ga08c05ba8ffb19f5d14ab584e1e9e9ee5',1,'glm::u16vec1()'],['../a00763.html#ga52cc069a92e126c3a8dcde93424d2ef0',1,'glm::gtx::u16vec1()']]],
['u16vec2',['u16vec2',['../a00721.htm... |
function stringifyOptions(options) {
const string = JSON.stringify(options || {}, (key, value) =>
key === 'plugins' || key === 'errors'
? undefined
: value === Number.POSITIVE_INFINITY
? 'Infinity'
: value
);
return string === '{}' ? '' : string;
}
module.exports = stringifyOptions;
|
define({
//Body
loadingInfo: "טעינה מתבצעת...",
emptyInfo: "אין פריטים להצגה ",
loadFailInfo: "כשל בטעינת הנתונים!",
loadMore: "טעינת עוד",
loadMoreLoading: "טעינה מתבצעת...",
loadPrevious: "טעינת הקודם ",
loadPreviousLoading: "טעינה מתבצעת...",
//FilterBar
"clearFilterDialogTitle": "ניקוי מסנן",
"filter... |
"use strict";
module.exports = function () {
return function () {};
};
|
// @flow
import type { BoxProps } from './Box';
import type { Color, Theme } from '../themes/types';
import Box from './Box';
import React from 'react';
import colorLib from 'color';
import isReactNative from '../../common/app/isReactNative';
// Universal styled Text component. The same API for browsers and React Nati... |
import Stylis from 'stylis/stylis.min';
import _insertRulePlugin from 'stylis-rule-sheet';
import React, { cloneElement, createContext, Component, createElement, PureComponent } from 'react';
import { isValidElementType, ForwardRef } from 'react-is';
import memoize from 'memoize-one';
import stream from 'stream';
impor... |
let a = "outside";
function r(z, g = (a, b = a) => a) {
g(z);
}
|
'use strict';
import keyMirror from 'keymirror';
export default keyMirror({
SET_AUTHENTICATION: null
});
|
define({
//Body
loadingInfo: "تحميل...",
emptyInfo: "لا توجد بنود ليتم عرضها ",
loadFailInfo: "فشل في تحميل البيانات! ",
loadMore: "تحميل المزيد ",
loadMoreLoading: "تحميل... ",
loadPrevious: "تحميل السابق ",
loadPreviousLoading: "تحميل... ",
//FilterBar
"clearFilterDialogTitle": "محو مرشح البيانات",
"fi... |
/*!
* Media helper for fancyBox
* version: 1.0.6 (Fri, 14 Jun 2013)
* @requires fancyBox v2.0 or later
*
* Usage:
* $(".fancybox").fancybox({
* helpers : {
* media: true
* }
* });
*
* Set custom URL parameters:
* $(".fancybox").fancybox({
* helpers : {
* ... |
// System Objects
var cp = require('child_process');
var path = require('path');
var util = require('util');
// Third Party Dependencies
var fs = require('fs-extra');
// Internal
var log = require('../log');
var options;
var resources = path.resolve(__dirname, './../../', 'resources/rust');
var exportables = {};
ex... |
'use strict';
exports.__esModule = true;
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; };
exports.generateId = generateId;
e... |
/*! UIkit 3.0.2 | http://www.getuikit.com | (c) 2014 - 2018 YOOtheme | MIT License */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('uikit-util')) :
typeof define === 'function' && define.amd ? define('uikittooltip', ['uikit-util']... |
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(factory((global.Inferno = global.Inferno || {})));
}(this, (function (exports) { 'use strict';
var ERROR_MSG = 'a ... |
/*!
* froala_editor v3.0.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 === 'function... |
/**
* Copyright (c) 2015-present, 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.
*/
// This al... |
/*!
* Chart.js v2.8.0-rc.1
* https://www.chartjs.org
* (c) 2019 Chart.js Contributors
* Released under the MIT License
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(function() { try { return require('moment'); } catch(e) { } }()) :
typeof d... |
/**
* Copyright (c) Tiny Technologies, Inc. All rights reserved.
* Licensed under the LGPL or a commercial license.
* For LGPL see License.txt in the project root for license information.
* For commercial licenses see https://www.tiny.cloud/
*
* Version: 5.0.7 (2019-06-05)
*/
(function () {
var tabfocus = (funct... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = exports.styles = void 0;
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
var _objectWithoutPropert... |
"use strict";
var trim = function (str, length) {
if (!length) {
return str;
}
return str.substr(0, Math.min(str.length, length));
};
var _fully_qualified_domain_name_cache = null;
function get_fully_qualified_domain_name(optional_max_length) {
if (_fully_qualified_domain_name_cache) {
... |
version https://git-lfs.github.com/spec/v1
oid sha256:7067971821132596df68cfe412056bd45e6cbbe541538c2d3c7da643e1892760
size 2333
|
assert(typeof PhiloGL.Program === 'function');
assert(typeof PhiloGL.WebGL === 'object');
assert(typeof PhiloGL.WebGL.getContext === 'function');
|
/**
* EditorObservable.js
*
* Copyright, Moxiecode Systems AB
* Released under LGPL License.
*
* License: http://www.tinymce.com/license
* Contributing: http://www.tinymce.com/contributing
*/
/**
* This mixin contains the event logic for the tinymce.Editor class.
*
* @mixin tinymce.EditorObservable
* @exte... |
module.exports=[70016,70017,70018,70019,70020,70021,70022,70023,70024,70025,70026,70027,70028,70029,70030,70031,70032,70033,70034,70035,70036,70037,70038,70039,70040,70041,70042,70043,70044,70045,70046,70047,70048,70049,70050,70051,70052,70053,70054,70055,70056,70057,70058,70059,70060,70061,70062,70063,70064,70065,7006... |
'use strict';
var React = require('react');
var Fork = require('react-ghfork');
var Demo = require('./demo.jsx');
var readme = require('../README.md');
module.exports = React.createClass({
render() {
return <div className='pure-g'>
<Fork className='right' project='AppliedMathematicsANU/plex... |
"use strict";
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 __());
};
var Lint = require("tslint");
var utils_1 = requ... |
/*
* The MIT License (MIT)
*
* Copyright (c) 2014 Lukasz Piepiora <lpiepiora@gmail.com>
*
* 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 limitat... |
const blockC = require('./region-matchers/block-c');
const html = require('./region-matchers/html');
const inlineC = require('./region-matchers/inline-c');
const inlineCOnly = require('./region-matchers/inline-c-only');
const inlineHash = require('./region-matchers/inline-hash');
const NO_NAME_REGION = '';
const DEFAUL... |
var tests = require('./tests.js');
var assert = require('assert');
var RandExp = require('..');
var randexp = require('..').randexp;
var match = function(regexp, str, bad) {
var err = 'Generated string \'' + str + '\' ' +
(bad ? 'matches' : 'does not match') + ' ' +
'regexp \'' + regexp.s... |
require("should");
var SpinningSalesContract = require("../../data-util/sales/spinning-sales-contract-data-util");
var helper = require("../../helper");
var validate = require("dl-models").validator.sales.spinningSalesContract;
var moment = require('moment');
var SpinningSalesContractManager = require("../../../src/ma... |
'use strict';
var sinon = require('sinon'),
expect = require('chai').expect,
rewire = require('rewire'),
transporter = require('../../lib/cache-transporters/in-memory-transporter');
describe('InMemoryTransporter', function() {
var transporterInstance = null,
mockUrl = 'http://github.com/ranm8/requestify'... |
YUI.add('event-key-tests', function(Y) {
Y.Node.prototype.key = function (keyCode, charCode, mods, type) {
var simulate = Y.Event.simulate,
el = this._node,
config = Y.merge(mods || {});
if (type) {
if (type === 'keypress') {
config.charCode = config.keyCode = confi... |
import objectAssign from 'object-assign';
import GregorianCalendarLocale from 'gregorian-calendar/lib/locale/zh_CN';
import CalendarLocale from 'rc-calendar/lib/locale/zh_CN';
// 统一合并为完整的 Locale
let locale = objectAssign({}, GregorianCalendarLocale);
locale.lang = objectAssign({
placeholder: '请选择日期',
timePlacehold... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _pure = require('recompose/pure');
var _pure2 = _interopRequireDefault(_pure);
var _SvgIcon = require('../../SvgIcon');
var _SvgIcon2 = _interopRequireDe... |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var utils=require("../util/utils"),SPLIT_REG_EXP=/[[\]]/g;function get(e,t,r){for(var l=tokenize(t),i=e,n=0;n<l.length;n++){if(void 0===i)return;if("object"!=typeof i)throw new Error("invalid data or path");i=i[l[n]]}return!1!==r?utils.deepCopy(i):i}fu... |
/*
* should.js - assertion library
* Copyright(c) 2010-2013 TJ Holowaychuk <tj@vision-media.ca>
* Copyright(c) 2013-2016 Denis Bardadym <bardadymchik@gmail.com>
* MIT Licensed
*/
var util = require('../util');
var eql = require('should-equal');
module.exports = function(should, Assertion) {
var i = should.form... |
d3.chart("Chord").extend("ImprovedChord", {
initialize: function(options) {
var chart = this;
this.colors = ["#000000", "#FFDD89", "#957244", "#F26224"];
this.layer("ticks").on("enter", function() {
this.each(function(data, idx, group) {
d3.select(this)
.style("font-weight", "bo... |
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(factory((global.Inferno = global.Inferno || {})));
}(this, (function (exports) { 'use strict';
var NO_OP = '$NO_OP... |
'use strict';
app.factory('authInterceptorService', ['$q', '$location', 'localStorageService', function ($q, $location, localStorageService) {
var authInterceptorServiceFactory = {};
var _request = function (config) {
config.headers = config.headers || {};
var authData = localStorageService... |
import MethodCallTracker from './method-call-tracker';
class DebugAssert {
constructor(methodName, env) {
this.methodName = methodName;
this.env = env;
}
inject() {}
restore() {
this.reset();
}
reset() {
if (this.tracker) {
this.tracker.restoreMethod();
}
this.tracker = nu... |
var PageView = require('./base');
var templates = require('../templates');
module.exports = PageView.extend({
pageTitle: 'more info',
template: templates.pages.info
});
|
class AppRootController {
constructor($mdToast, ToastService, $window) {
'ngInject';
this.$window = $window;
this.$mdToast = $mdToast;
this.ToastService = ToastService;
}
$onInit() {
this.registerServiceWorker();
this.checkForNewerVersions();
}
regi... |
/*
* /MathJax/jax/output/PreviewHTML/config.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 the License.
* You may obtain a copy of the License at
*
* http://www.ap... |
/*!
* mustache.js - Logic-less {{mustache}} templates with JavaScript
* http://github.com/janl/mustache.js
*/
/*global define: false Mustache: true*/
(function defineMustache (global, factory) {
if (typeof exports === 'object' && exports && typeof exports.nodeName !== 'string') {
factory(exports); // CommonJ... |
require("./../lib/env-js/envjs/node");
require("./../d3");
require("./../d3.time");
var formats = [
"a", "A", "b", "B", "c", "d", "e", "H", "I", "j", "m", "M",
"p", "S", "U", "w", "W", "x", "X", "y", "Y", "Z", "%"
];
var now = new Date(1990, 0, 1);
console.log("format 01/01/1990 00:00:00:");
fo... |
/* */
"format cjs";
"use strict";
exports.__esModule = true;
exports.Identifier = Identifier;
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]... |
/*!
* angular-datatables - v0.6.3
* https://github.com/l-lin/angular-datatables
* License: MIT
*/
"undefined"!=typeof module&&"undefined"!=typeof exports&&module.exports===exports&&(module.exports="datatables.columnfilter"),function(a,b,c,d){"use strict";function e(a){function b(a){function b(a,b){function c(a){ret... |
version https://git-lfs.github.com/spec/v1
oid sha256:ddecf8bb9f36c770b408363c13a4bd22643dcf91c3077e677d7ba3ad9a64d030
size 555
|
export { default as queries } from './queries';
export { default as mutations } from './mutations';
|
angular.module('netanimations.sequencenumber', [])
.controller('SequenceNumberCtrl', function($state, $scope, $ionicPopup, $translate, $compile) {
$scope.end = false;
var tl = new TimelineLite();
$scope.restart = function () {
tl.seek(0);
$scope.end = false;
};
$scope.tl = tl;
$scope.accessibili... |
/**
* --------------------------------------------------------------------------
* Bootstrap (v4.2.1): dropdown.js
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* --------------------------------------------------------------------------
*/
import $ from 'jquery'
import Popper from ... |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* @name: S11.13.2_A4.4_T2.9;
* @section: 11.13.2, 11.6.1;
* @assertion: The production x += y is the same as x = x + y;
* @description: Type(x) is different from Type(y) and both ... |
////////////////////////////////////
// Publications and Subscriptions //
////////////////////////////////////
/**
* Users pub/sub configs and methods
* @namespace Users.pubsub
*/
Users.pubsub = {};
/**
* Default user object fields in publication
* @type {Object}
*/
Users.pubsub.publicProperties = { // true mea... |
describe("geoFireUtils Tests:", function() {
describe("Parameter validation:", function() {
it("validateKey() does not throw errors given valid keys", function() {
validKeys.forEach(function(validKey) {
expect(function() { validateKey(validKey); }).not.toThrow();
});
});
it("validateK... |
var request = require('request')
var drop = require('drag-and-drop-files')
var mdns = require('multicast-dns')()
var concat = require('concat-stream')
var vtt = require('srt-to-vtt')
var ipc = require('ipc')
var remote = require('remote')
var Menu = remote.require('menu')
var MenuItem = remote.require('menu-item')
var ... |
/*
* jQuery File Upload Video Preview Plugin 1.0.3
* https://github.com/blueimp/jQuery-File-Upload
*
* Copyright 2013, Sebastian Tschan
* https://blueimp.net
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/MIT
*/
/*jslint nomen: true, unparam: true, regexp: true */
/*global define, wi... |
import React from 'react'
import { Breadcrumb } from 'semantic-ui-react'
const BreadcrumbExampleStandard = () => (
<Breadcrumb>
<Breadcrumb.Section link>Home</Breadcrumb.Section>
<Breadcrumb.Divider />
<Breadcrumb.Section link>Store</Breadcrumb.Section>
<Breadcrumb.Divider />
<Breadcrumb.Section ... |
var and_s = function( p ) {
p.setup = function() {
p.createCanvas(100, 100);
p.noStroke();
p.fill(0);
}
p.draw = function() {
p.background(204);
if ((p.mouseX > 40) && (p.mouseX < 80) &&
(p.mouseY > 20) && (p.mouseY < 80)) {
p.fill(255);
} else {
p.fill(0)... |
/**
* @author daoshengmu / http://dsmu.me/
*
* ------------------------------------------------------------------------------------------
* Subsurface Scattering shader
* Base on GDC 2011 – Approximating Translucency for a Fast, Cheap and Convincing Subsurface Scattering Look
* https://colinbarrebrisebois.com/201... |
import Application from '../app';
import config from '../config/environment';
import { setApplication } from '@ember/test-helpers';
setApplication(Application.create(config.APP));
|
version https://git-lfs.github.com/spec/v1
oid sha256:f4ff796cb86a81dbd89cd884d159cfaf1bdfb29089d294fa48043137b0125f9e
size 3077
|
// adopted from http://stackoverflow.com/a/28203456/307333
export default function countDigits(n) {
var x = parseInt(n, 10);
if (isNaN(x)) {
throw new TypeError(n + ' is not a decimal number.');
}
return Math.max(Math.floor(Math.log(Math.abs(x)) * Math.LOG10E), 0) + 1;
}
|
var FLT_EPSILON = 1.19209290E-07;
function b2Max(a ,b) {
return new b2Vec2(Math.max(a.x, b.x), Math.max(a.y, b.y));
}
function b2Min(a, b) {
return new b2Vec2(Math.min(a.x, b.x), Math.min(a.y, b.y));
}
function b2Clamp(a, low, high) {
return b2Max(low, b2Min(a, high));
}
/** @constructor */
function b2Vec2(x... |
pc.extend(pc, function () {
/**
* @name pc.TouchEvent
* @class A Event corresponding to touchstart, touchend, touchmove or touchcancel. TouchEvent wraps the standard
* browser event and provides lists of {@link pc.Touch} objects.
* @constructor Create a new TouchEvent from an existing browser event
... |
'use strict';
var crypto = require('crypto');
var should = require('chai').should(); // eslint-disable-line
describe('gravatar', function() {
var gravatar = require('../../../lib/plugins/helper/gravatar');
function md5(str) {
return crypto.createHash('md5').update(str).digest('hex');
}
var email = 'abc@... |
/*
YUI 3.5.0 (build 5089)
Copyright 2012 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('node-screen', function(Y) {
/**
* Extended Node interface for managing regions and screen positioning.
* Adds support for positioning elements and normalizes window siz... |
import ListView from "ember-inspector/views/list";
import ListItemView from "ember-inspector/views/list-item";
export default ListView.extend({
itemViewClass: ListItemView.extend({
templateName: "promise_item"
})
});
|
import Page from './Page';
class SideNav extends Page {
get directMessageTarget() { return browser.element('.flex-nav input#who'); }
get saveDirectMessageBtn() { return browser.element('.save-direct-message'); }
get channelType() { return browser.element('#channel-type'); }
get channelReadOnly() { return browser.... |
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(factory((global.Rx = global.Rx || {})));
}(this, (function (exports) { 'use strict';
/*! *****************************... |
/*
* @license magnet:?xt=urn:btih:c80d50af7d3db9be66a4d0a86db0286e4fd33292&dn=bsd-3-clause.txt BSD 3-Clause
* Copyright (c) 2011, Terrence Lee <kill889@gmail.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the followin... |
'use strict';
const {existsSync, readdirSync, unlinkSync} = require('fs');
const Bundles = require('./bundles');
const {
asyncCopyTo,
asyncExecuteCommand,
asyncExtractTar,
asyncRimRaf,
} = require('./utils');
const {
UMD_DEV,
UMD_PROD,
UMD_PROFILING,
NODE_DEV,
NODE_PROD,
NODE_PROFILING,
FB_WWW_D... |
/**
* Hash Plugin
* @version 2.0.0
* @author Artus Kolanowski
* @license The MIT License (MIT)
*/
;(function($, window, document, undefined) {
'use strict';
/**
* Creates the hash plugin.
* @class The Hash Plugin
* @param {Owl} carousel - The Owl Carousel
*/
var Hash = function(carousel) {
/**
* R... |
var log = require('npmlog')
var ping = require('../ping.js')
function checkPing (cb) {
var tracker = log.newItem('checkPing', 1)
tracker.info('checkPing', 'Pinging registry')
ping({}, true, (err, pong) => {
if (err && err.code && err.code.match(/^E\d{3}$/)) {
return cb(null, [err.code.substr(1)])
}... |
/*
* /MathJax/localization/bg/FontWarnings.js
*
* Copyright (c) 2009-2018 The MathJax Consortium
*
* 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/l... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.isFunction = isFunction;
exports.noop = noop;
exports.isPlainObject = isPlainObject;
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof... |
import a from "a";
import("b").then(function(b) {
console.log("b loaded", b);
})
function loadC(name) {
return import("c/" + name);
}
Promise.all([loadC("1"), loadC("2")]).then(function(arr) {
console.log("c/1 and c/2 loaded", arr);
});
|
/**
* 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.
*
* @flow
*/
import type {DispatchConfig} from './ReactSyntheticEventType';
import type {
AnyNativeEvent,
PluginName,
LegacyP... |
/*globals TestNamespace:true*/
/*
NOTE: This test is adapted from the 1.x series of unit tests. The tests
are the same except for places where we intend to break the API we instead
validate that we warn the developer appropriately.
CHANGES FROM 1.6:
* Changed get(obj, ) and set(obj, ) to Ember.get() and E... |
/*!
* jQuery Typeahead
* Copyright (C) 2015 RunningCoder.org
* Licensed under the MIT license
*
* @author Tom Bertrand
* @version 2.1.2 (2015-09-28)
* @link http://www.runningcoder.org/jquerytypeahead/
*/
;
(function (window, document, $, undefined) {
window.Typeahead = {
version: '2.1.2'
... |
/*
This file is part of Ext JS 4.2
Copyright (c) 2011-2013 Sencha Inc
Contact: http://www.sencha.com/contact
Commercial Usage
Licensees holding valid commercial licenses may use this file in accordance with the Commercial
Software License Agreement provided with the Software or, alternatively, in accordance with th... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.