code stringlengths 2 1.05M |
|---|
define("ace/snippets/gobstones",["require","exports","module"], function(require, exports, module) {
"use strict";
exports.snippetText = "# Procedure\n\
snippet proc\n\
procedure ${1?:name}(${2:argument}) {\n\
${3:// body...}\n\
}\n\
\n\
# Function\n\
snippet fun\n\
function ${1?:name}(${2:argument}) {\n\
retur... |
var MemoryStore = require('../../../shared/store/memory_store'),
sinon = require('sinon'),
should = require('chai').should();
describe('MemoryStore', function() {
var store;
beforeEach(function() {
store = new MemoryStore();
});
it('should return undefined for missing keys', function() {
var ... |
import amd from './amd';
import cjs from './cjs';
import umd from './umd';
export default {
amd: amd,
cjs: cjs,
umd: umd
};
|
#!/usr/bin/env node
var Haml = require('./haml');
var readUntilEnd = function(stream, callback) {
var chunks = [];
stream.on('data', function(chunk) {
chunks.push(chunk.toString('utf-8'));
});
stream.on('end', function() {
callback(chunks.join(''));
});
}
readUntilEnd(process.open... |
import React, { Component } from 'react'
import Slider from '../src/slider'
var SampleNextArrow = React.createClass({
render: function() {
return <div {...this.props} style={{display: 'block', background: 'red'}}></div>;
}
});
var SamplePrevArrow = React.createClass({
render: function() {
return (
... |
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(factory((global.ReduxPersist = {})));
}(this, (function (exports) { 'use strict';
var KEY_PREFIX = 'persist:';
var FLUSH = 'per... |
/* global BabelFileResult, BabelFileMetadata */
import normalizeAst from "../helpers/normalize-ast";
import Plugin from "./plugin";
import File from "./file";
export default class Pipeline {
lint(code: string, opts?: Object = {}): BabelFileResult {
opts.code = false;
opts.mode = "lint";
return this.trans... |
const imageShapeInstance = (
<Grid>
<Row>
<Col xs={6} md={4}>
<Image src="/assets/thumbnail.png" rounded />
</Col>
<Col xs={6} md={4}>
<Image src="/assets/thumbnail.png" circle />
</Col>
<Col xs={6} md={4}>
<Image src="/assets/thumbnail.png" thumbnail />
... |
declare module 'indent-string' {
declare module.exports: (
input: string,
count?: number,
indent?: string
) => string;
}
|
/* */
var Reporter = require("./index").Reporter;
var EncoderBuffer = require("./index").EncoderBuffer;
var assert = require("minimalistic-assert");
var tags = ['seq', 'seqof', 'set', 'setof', 'octstr', 'bitstr', 'objid', 'bool', 'gentime', 'utctime', 'null_', 'enum', 'int', 'ia5str', 'utf8str'];
var methods = ['key',... |
/**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*
* @format
*/
'use strict';
exports.__esModule = true;
exports.default = void 0;
var _AnimatedEvent = require("./AnimatedEvent");
... |
if (cond) {
foo();
}
|
function stripslashes (str) {
// + original by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
// + improved by: Ates Goral (http://magnetiq.com)
// + fixed by: Mick@el
// + improved by: marrtins
// + bugfixed by: Onno Marsman
// + improved by: rezna
// + input by: Rick... |
/**
@module ember
@submodule ember-views
*/
import Ember from 'ember-metal/core';
import { Mixin } from 'ember-metal/mixin';
import { get } from 'ember-metal/property_get';
/**
@class LegacyViewSupport
@namespace Ember
@private
*/
var LegacyViewSupport = Mixin.create({
beforeRender(buffer) {},
afterRender(b... |
// Rate Limiter built into DDP with a default error message. See README or
// online documentation for more details.
DDPRateLimiter = {};
var errorMessage = function (rateLimitResult) {
return "Error, too many requests. Please slow down. You must wait " +
Math.ceil(rateLimitResult.timeToReset / 1000) + " seconds... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = parseMedia;
var _Container = require('./nodes/Container');
var _Container2 = _interopRequireDefault(_Container);
var _parsers = require('./parsers');
function _interopRequireDefault(obj) { return obj && obj.__esModule ... |
/*
Highcharts JS v6.1.4 (2018-09-25)
Variable Pie module for Highcharts
(c) 2010-2017 Grzegorz Blachliski
License: www.highcharts.com/license
*/
(function(f){"object"===typeof module&&module.exports?module.exports=f:"function"===typeof define&&define.amd?define(function(){return f}):f(Highcharts)})(function(f){... |
steal('funcunit/qunit','funcunit/syn','jquery/event/swipe').then(function(){
module("jquery/swipe", {setup : function(){
$("#qunit-test-area").html("")
var div = $("<div id='outer'>"+
"<div id='inner1'>one</div>"+
"<div id='inner2'>two<div id='inner3'>three</div></div>"+
"</div>");
div.appendTo($("#qunit... |
version https://git-lfs.github.com/spec/v1
oid sha256:00b880a031b83842d59e8ac9716caaf068dc34b8847cfdfe6ad8e5aead79d14f
size 2815
|
window.Physijs = (function() {
'use strict';
var SUPPORT_TRANSFERABLE,
_is_simulating = false,
_Physijs = Physijs, // used for noConflict method
Physijs = {}, // object assigned to window.Physijs
Eventable, // class to provide simple event methods
getObjectId, // returns a unique ID for a Physijs mesh obje... |
/**
* Copyright 2012-2013 Amazon.com, Inc. or its affiliates. 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. A copy of
* the License is located at
*
* http://aws.amazon.com/apache2.0/
*
* or in the ... |
// This file was automatically generated. Do not modify.
'use strict';
goog.provide('Blockly.Msg.ms');
goog.require('Blockly.Msg');
Blockly.Msg.ADD_COMMENT = "Berikan Komen";
Blockly.Msg.AUTH = "Sila benarkan aplikasi ini untuk membolehkan hasil kerja anda disimpan, malah dikongsikan oleh anda.";
Blockly.Msg.CHANG... |
/**
* @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
'use strict';
( function() {
CKEDITOR.plugins.add( 'filereader', {
requires: 'uploadwidget',
init: function( editor ) {
var fileTools = CKEDITOR.fileTo... |
'use strict';
var assert = require('assert');
var path = require('path');
var repoInfo = require('../index');
var zlib = require('zlib');
require('mocha-jshint')();
var root = process.cwd();
var testFixturesPath = path.join(__dirname, 'fixtures');
var gitDir = 'dot-git';
repoInfo._suppressErrors = false;
describe(... |
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'stylescombo', 'lv', {
label: 'Stils',
panelTitle: 'Formatēšanas stili',
panelTitle1: 'Bloka stili',
panelTitle2: 'iekļautie stili',
panelTitle3:... |
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
var ModuleDependency = require("./ModuleDependency");
var DepBlockHelpers = require("./DepBlockHelpers");
var WebpackMissingModule = require("./WebpackMissingModule");
function SystemImportDependency(request, bl... |
var Utils = require('./utils')
var TransactionManager = module.exports = function(sequelize) {
this.sequelize = sequelize
this.connectorManagers = {}
try {
this.ConnectorManager = require("./dialects/" + sequelize.getDialect() + "/connector-manager")
} catch(err) {
throw new Error("The dialect... |
/*! jQuery UI - v1.9.2 - 2014-06-04
* http://jqueryui.com
* Copyright 2014 jQuery Foundation and other contributors; Licensed MIT */
(function(e){e.effects.effect.bounce=function(t,i){var a,s,n,r=e(this),o=["position","top","bottom","left","right","height","width"],l=e.effects.setMode(r,t.mode||"effect"),h="hide"===l,... |
// Search script generated by doxygen
// Copyright (C) 2009 by Dimitri van Heesch.
// The code in this file is loosly based on main.js, part of Natural Docs,
// which is Copyright (C) 2003-2008 Greg Valure
// Natural Docs is licensed under the GPL.
var indexSectionsWithContent =
{
0: "000000000000000000000000000000... |
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'colorbutton', 'et', {
auto: 'Automaatne',
bgColorTitle: 'Tausta värv',
colors: {
'000': 'Must',
'800000': 'Kastanpruun',
'8B4513': 'Sadulapr... |
/*globals describe, before, beforeEach, afterEach, it */
var _ = require('lodash'),
testUtils = require('../../utils'),
rewire = require('rewire'),
should = require('should'),
sinon = require('sinon'),
Promise = require('bluebird'),
// Stuff we are te... |
// ForXStatement
for (var {a, ...b} of []) {}
for ({a, ...b} of []) {}
async function a() {
for await ({a, ...b} of []) {}
}
// skip
for ({a} in {}) {}
for ({a} of []) {}
async function a() {
for await ({a} of []) {}
}
for (a in {}) {}
for (a of []) {}
async function a() {
for await (a of []) {}
}
|
/* jshint node: true, esnext: true */
"use strict";
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descrip... |
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && define.amd)
define(["react"], factory);
else if(typeof exports === 'object')
exports["Cleave"] = factory(... |
/**
* angular-simple-logger
*
* @version: 0.1.6
* @author: Nicholas McCready
* @date: Tue Jan 26 2016 09:10:31 GMT-0500 (EST)
* @license: MIT
*/
(function (window, angular){
angular.module('nemLogging', []);
angular.module('nemLogging').provider('nemDebug', function (){
var ourDebug = null;
this.$get... |
function ServerEngine(){
}
ServerEngine.prototype.name = function(){
return 'null server engine';
};
ServerEngine.prototype.destroy = function(){
};
ServerEngine.prototype.beginBootstrap = function(meanioinstance, database){
};
ServerEngine.prototype.endBootstrap = function(callback){
};
ServerEngine.produceEngine = ... |
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
function MinChunkSizePlugin(options) {
if(typeof options !== "object" || Array.isArray(options)) {
throw new Error("Argument should be an options object.\nFor more info on options, see https://webpack.github.io/... |
'use strict';
const assert = require('assert');
let battle;
describe('Focus Sash', function () {
afterEach(function () {
battle.destroy();
});
it('should be consumed and allow its user to survive an attack from full HP', function () {
battle = BattleEngine.Battle.construct();
battle.join('p1', 'Guest 1', 1,... |
var assert = require('assert');
var common = require('../../common');
var connection = common.createConnection({debug: true, port: common.fakeServerPort});
var server = common.createFakeServer();
server.listen(common.fakeServerPort, function (err) {
assert.ifError(err);
var messages = [];
console.log ... |
/*
Copyright (c) 2014, Yahoo! Inc. All rights reserved.
Copyrights licensed under the New BSD License.
See the accompanying LICENSE file for terms.
*/
(function (root, factory) {
'use strict';
var Intl = root.Intl || root.IntlPolyfill,
MessageFormat = factory(Intl);
// register in -all- ... |
/*!
* JavaScript Custom Forms : File Module
*
* Copyright 2014 PSD2HTML (http://psd2html.com)
* Released under the MIT license (LICENSE.txt)
*
* Version: 1.0.2
*/
;(function($, window) {
'use strict';
jcf.addModule({
name: 'File',
selector: 'input[type="file"]',
options: {
fakeStructure: '<span clas... |
define(function (require) {
var SymbolDraw = require('../../chart/helper/SymbolDraw');
var zrUtil = require('zrender/core/util');
var formatUtil = require('../../util/format');
var modelUtil = require('../../util/model');
var numberUtil = require('../../util/number');
var addCommas = formatUti... |
var objects = require('./objects')
exports.id = function (i) {
return i
}
/*
often you want to do something like: map(array, JSON.stringify)
but map calls the iterator with (value, key, object)
which confuses JSON.stringify because it expects a replacer function as the second arg
previously one would do something lik... |
var foo = {};
var foo = { x, y };
var foo = { x: x, y: y };
var foo = {
x: x,
y: y
};
var foo = {
["bar"]: "foo",
["foo"]() {},
foo() {},
async foo() {},
*foo() {},
get foo() {},
set foo() {}
};
|
/*!
* Pusher JavaScript Library v2.2.0
* http://pusherapp.com/
*
* Copyright 2013, Pusher
* Released under the MIT licence.
*/
(function(){function d(a,c,d){Pusher.EventsDispatcher.call(this);this.hooks=a;this.method=c;this.url=d}var a=d.prototype;Pusher.Util.extend(a,Pusher.EventsDispatcher.prototype);a.start=f... |
var split = require('../utils/split');
var COMMA = ',';
var FORWARD_SLASH = '/';
var AT_RULE = 'at-rule';
function selectorName(value) {
return value[0];
}
function noop() {}
function withoutComments(string, into, heading, context) {
var matcher = heading ? /^__ESCAPED_COMMENT_/ : /__ESCAPED_COMMENT_/;
var t... |
(function()
{
var __root = typeof(window) !== "undefined" ? window : self;
__root.IceStorm = __root.IceStorm || {};
var Slice = Ice.Slice;
(function()
{
// **********************************************************************
//
// Copyright (c) 2003-2016 ZeroC, Inc. All ri... |
var binfile = (function () {
'use strict';
var closingScriptTag = /<\/script/ig;
function insertBefore(output, search) {
var parts = [];
var close = '';
if (output.indexOf(search) !== -1) {
parts.push(output.substring(0, output.lastIndexOf(search)));
parts.push(output.substring(output.las... |
//
// Grid Forms
// Copyright (c) 2013 Kumail Hunaid
//
// 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, ... |
/*!
* jQuery UI Effects 1.11.0
* http://jqueryui.com
*
* Copyright 2014 jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*
* http://api.jqueryui.com/category/effects-core/
*/
(function( factory ) {
if ( typeof define === "function" && define.amd ) {
// ... |
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
* JavaScript functionality for Routines, Triggers and Events.
*
* @package PhpMyadmin
*/
/**
* @var RTE Contains all the JavaScript functionality
* for Routines, Triggers and Events
*/
var RTE = {
/**
* Construct for the object that provides the
... |
loadIonicon('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M32 96v256h448V96H32zm160.5 224h-80.4c0-26.6-21.5-48.1-48.1-48.1V192c35.3 0 64-28.7 64-64h64.5c-19.9 23.5-32.5 57.8-32.5 96s12.6 72.5 32.5 96zM448 271.9c-26 0-48 21.5-48 48.1h-80.5c19.9-23.5 32.5-57.8 32.5-96s-12.6-72.5-32.5-96H384c0 35... |
/**
* @author alteredq / http://alteredqualia.com/
* @author zz85 / http://www.lab4games.net/zz85/blog
*
* ShaderExtras currently contains:
*
* screen
* convolution
* film
* bokeh
* sepia
* dotscreen
* vignette
* bleachbypass
* basic
* dofmipmap
* focus
* triangleBlur
* horizontalBlur + vertica... |
/**
* toString ref.
*/
var toString = Object.prototype.toString;
/**
* Return the type of `val`.
*
* @param {Mixed} val
* @return {String}
* @api public
*/
module.exports = function(val){
switch (toString.call(val)) {
case '[object Function]': return 'function';
case '[object Date]': return 'date'... |
(function(angular) {
'use strict';
angular.module('expressionExample', [])
.controller('ExampleController', ['$window', '$scope', function($window, $scope) {
$scope.name = 'World';
$scope.greet = function() {
$window.alert('Hello ' + $scope.name);
};
}]);
})(window.angular); |
var ITERATOR_COMPLETION = true;
var ITERATOR_HAD_ERROR_KEY = false;
var ITERATOR_ERROR_KEY = undefined;
try {
for (var ITERATOR_KEY = OBJECT[Symbol.iterator](), STEP_KEY; !(ITERATOR_COMPLETION = (STEP_KEY = ITERATOR_KEY.next()).done); ITERATOR_COMPLETION = true) {
}
} catch (err) {
ITERATOR_HAD_ERROR_KEY = true;... |
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'removeformat', 'no', {
toolbar: 'Fjern formatering'
});
|
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": {
"0": "пре подне",
"1": "поподне"
},
"DAY": {
"0": "недеља"... |
define([
"../core",
"../manipulation" // appendTo
], function( jQuery ) {
var iframe,
elemdisplay = {};
/**
* Retrieve the actual display of a element
* @param {String} name nodeName of the element
* @param {Object} doc Document object
*/
// Called only from within defaultDisplay
function actualDisplay( name, ... |
var assert = require('assert')
var UINT64 = require('..').UINT64
describe('xor method', function () {
describe('0^1', function () {
it('should return 1', function (done) {
var u = UINT64(0).xor( UINT64(1) )
assert.equal( u.toNumber(), 1 )
done()
})
})
describe('1^2', function () {
... |
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.1.0
* @link http://www.ag-grid.com/
* @license MIT
*/
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
|
/**
* @license jquery.panzoom.js v0.5.1
* Updated: Wed Apr 24 2013
* Add pan and zoom functionality to any element
* Copyright (c) 2013 timmy willison
* Released under the MIT license
* https://github.com/timmywil/jquery.panzoom/blob/master/MIT-License.txt
*/
(function( global, factory ) {
// Define the plugin... |
/*!
* Qoopido.js library v3.3.3, 2014-5-24
* https://github.com/dlueth/qoopido.js
* (c) 2014 Dirk Lueth
* Dual licensed under MIT and GPL
*/
!function(e){window.qoopido.register("jquery/function/prefetch",e,["jquery"])}(function(e,r,n,t,i){"use strict";var u=e.jquery||i.jQuery,f=u("head"),o=[];return u.prefetch=functi... |
/*
* /MathJax/jax/output/HTML-CSS/fonts/STIX/SizeTwoSym/Bold/Main.js
*
* Copyright (c) 2012 Design Science, Inc.
*
* Part of the MathJax library.
* See http://www.mathjax.org for details.
*
* Licensed under the Apache License, Version 2.0;
* you may not use this file except in compliance with the Lice... |
require('../../modules/es7.error.is-error');
module.exports = require('../../modules/_core').Error;
|
/**
* @author alteredq / http://alteredqualia.com/
* @author MPanknin / http://www.redplant.de/
*/
THREE.WebGLDeferredRenderer = function ( parameters ) {
var _this = this;
var pixelWidth = parameters.width !== undefined ? parameters.width : 800;
var pixelHeight = parameters.height !== undefined ? parameters.h... |
import Ember from 'ember';
export default Ember.Component.extend({
content: null,
prompt: null,
optionValuePath: 'id',
optionLabelPath: 'title',
selection: null,
action: Ember.K, // action to fire on change
// shadow the passed-in `selection` to avoid
// leaking changes to it via a 2-w... |
angular.module('azure-mobile-service.module', []).service('Azureservice', [
'$window',
'$q',
'AzureMobileServiceClient',
function Azureservice($window, $q, AzureMobileServiceClient) {
'use strict';
var VAILD_OAUTH_PROVIDERS = [
'google',
'twitter',
'facebook',
'microsofta... |
'use strict';
var Cache = module.exports = function Cache() {
this._cache = {};
};
Cache.prototype.put = function Cache_put(key, value) {
this._cache[key] = value;
};
Cache.prototype.get = function Cache_get(key) {
return this._cache[key];
};
Cache.prototype.del = function Cache_del(key) {
delete this._... |
/*! {{pkg.displayName}} {{pkg.version}} - //larsjung.de/qrcode - MIT License */
// Uses [QR Code Generator](http://www.d-project.com/qrcode/index.html) (MIT), appended to the end of this file.
// Kudos to [jquery.qrcode.js](http://github.com/jeromeetienne/jquery-qrcode) (MIT).
(function ($) {
'use strict';
// Che... |
var db = require('mime-db')
// types[extension] = type
exports.types = Object.create(null)
// extensions[type] = [extensions]
exports.extensions = Object.create(null)
Object.keys(db).forEach(function (name) {
var mime = db[name]
var exts = mime.extensions
if (!exts || !exts.length) return
exports.extensions[... |
CodeMirror.defineMode("vbscript", function() {
var regexVBScriptKeyword = /^(?:Call|Case|CDate|Clear|CInt|CLng|Const|CStr|Description|Dim|Do|Each|Else|ElseIf|End|Err|Error|Exit|False|For|Function|If|LCase|Loop|LTrim|Next|Nothing|Now|Number|On|Preserve|Quit|ReDim|Resume|RTrim|Select|Set|Sub|Then|To|Trim|True|UBound|UC... |
'use strict';
angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
function getDecimals(n) {
n = n + '';
var i = n.indexOf('.');
return (i == -1) ? 0 : n.length - i - 1;
}
function getVF(n, opt_pre... |
'use strict';
var yeoman = require('yeoman-generator'),
chalk = require('chalk'),
yosay = require('yosay'),
bakery = require('../../lib/bakery'),
feedback = require('../../lib/feedback'),
debug = require('debug')('bakery:generators:bake:index'),
_ = require('lodash');
const AWS_REGIONS = [{
name: 'us-eas... |
var assert = require('assert')
var CSV = require('../lib/csv')
describe('stringify', function () {
it('escapes double quotes', function () {
assert.equal(CSV.stringify([['Hello "World"', '"Foo" Bar']]),
'"Hello ""World""","""Foo"" Bar"')
})
it('wraps items with line break in double quotes', function (... |
/* Actions: Refresh CounterList | planetx-react-materialui-counters */
// @flow
import type { CounterItem } from '../../helpers/flowTypes'
import { Meteor } from 'meteor/meteor'
import TYPES from '../actionTypes'
export function updateCounterList(records: CounterItem, loading: boolean = false, error: boolean = fals... |
'use strict';
var babelHelpers = {};
babelHelpers.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;
};
babelHelpers;
var realDefin... |
exports.User = require('./user.json'); |
var ShifterbeltClient = require('../lib/ShifterbeltClient.js');
var shifterbeltClient = new ShifterbeltClient({
applicationId: APP_ID,
key: "KEY",
password: "PASSWORD",
});
shifterbeltClient.on('connect', function(socket) {
console.log("connected on Shifterbelt");
socket.on('connect', function(service) {
... |
// @author Hollow011
// @name Available AP statistics
// @category Info
// @version 0.4.1
// @description Displays the per-team AP gains available in the current view.
// use own namespace for plugin
window.plugin.compAPStats = function() {};
window.plugin.compAPStats.setupCallback ... |
module.exports = {
plugins: {
"postcss-import": {},
"postcss-css-variables": {},
autoprefixer: { grid: "autoplace" },
cssnano: {},
},
};
|
/**
* USB maintenance module
* @module lib/usb
* @author Adam Eivy
*/
var common = require('./common');
var usb = {
reset: function(callback) {
callback(null, 'ok');
}
};
module.exports = usb;
if (process.env.MODE === 'BBB') {
usb.reset = function(callback) {
console.log('USB Reset!!!');
common... |
var FDBOHash = (function () {
function FDBOHash(connection) {
this.connection = connection;
this.data = {};
this.byParent = {};
}
FDBOHash.prototype.add = function (obj) {
this.data[this.getPath(obj)] = obj;
var parentPath = this.getPath(FDBOUtils.getParentPath(obj.ur... |
const L = require('leaflet');
L.MapboxGL = L.Class.extend({
initialize: function (options) {
L.setOptions(this, options);
if (options.accessToken) {
mapboxgl.accessToken = options.accessToken;
} else {
throw new Error('You should provide a Mapbox GL access token as... |
"use strict";
const _ = require('underscore');
var Int64 = require('node-int64');
const serde = require('./serde');
class Get {
constructor(row, options) {
this.row = row;
this.setMaxVersions(options && options.maxVersions);
this.setTimeRange(options && options.timeRange);
this.col... |
var searchData=
[
['default',['DEFAULT',['../_command_8h.html#a2afce0a47a93eee73a314d53e4890153a88ec7d5086d2469ba843c7fcceade8a6',1,'Command.h']]],
['down',['DOWN',['../_types_8h.html#ae4b6dfb44a913b0e5ca9db5445e58049a9b0b4a95b99523966e0e34ffdadac9da',1,'Types.h']]]
];
|
import resolveP from "@unction/resolvep"
import request from "./"
test("request merges configurations", () => {
expect.assertions(1)
request({
method: "GET",
href: "http://api.example.com",
mediatype: "application/json",
http: (configuration) => resolveP(configuration),
})({
payload: {},
... |
function decorate(req){
/**
* Intiate a login session for `user`.
*
* Options:
* - `session` Save login state in session, defaults to _true_
*
* Examples:
*
* req.logIn(user, { session: false });
*
* req.logIn(user, function(err) {
* if (err)... |
/*!
* UI development toolkit for HTML5 (OpenUI5)
* (c) Copyright 2009-2016 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
sap.ui.define(['sap/m/semantic/SemanticButton'], function(SemanticButton) {
"use strict";
/**
* Constructor for a new NegativeAc... |
const { Student, Group, Roles, User, StudentsInGroups, Sessions } = require('../models')
const Joi = require('joi')
const _ = require('underscore')
const async = require('async')
const getGroups = (request, reply) => {
Group.findAll().then(data => reply(data))
}
const getGroup = {
handler: (request, reply) => {
... |
"use strict";
const test = require("ava");
const Connection = require("..");
const { EventEmitter, promise, timeout } = require("@xmpp/events");
const xml = require("@xmpp/xml");
test("resets properties on socket close event", (t) => {
const conn = new Connection();
conn._attachSocket(new EventEmitter());
conn.... |
// # Testing with qcjs
//
// To test this project ensure that [phantomjs] is installed
// and `quickcheck/qc.js` is present, then compile the
// clojurescript to a single file `out/all.js`. If advanced
// optimization is used, make sure `externs/qc.js` is also
// used. Run the tests with `phantomjs <this-file>.js`.
//
... |
/*! React Alt Firebase Starter */
import './Privacy.less';
import React from 'react';
export default class Privacy extends React.Component {
render() {
return (
<div className='privacy'>
<h1>Privacy...</h1>
</div>
);
}
}
|
"use strict";
var gm = require("gm"),
fs = require("fs-extra"),
utils = require("../utils"),
path = require("path"),
arg = require("arg-err"),
supportedImages = require("../common-data/supported-image-formats"),
async = require("async");
function getImageDimension(value, sourceDPI, targetDPI) {
return M... |
exports.info = { FormatID: '1110',
FormatName: 'SEG Y Data Exchange Format',
FormatVersion: 'Generic',
FormatAliases: '',
FormatFamilies: '',
FormatTypes: '',
FormatDisclosure: '',
FormatDescription: 'This is an outline record only, and requires further details, research or authentication to provide infor... |
'use strict';
angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
function getDecimals(n) {
n = n + '';
var i = n.indexOf('.');
return (i == -1) ? 0 : n.length - i - 1;
}
function getVF(n... |
version https://git-lfs.github.com/spec/v1
oid sha256:91ad18a1649e996feea9eae758cdf3b715023173b101282f79240ffe3dca63b2
size 6921
|
import PropTypes from 'prop-types';
import React from 'react';
import { connect } from 'react-redux';
import { Link } from 'react-router-dom';
import styled from 'styled-components';
import moment from 'moment-timezone';
const Hero = ({hero}) => (
<div className={"w-100 mb4"}>
<Img src = {hero.url} />
</div>
)... |
/**
* Created by pavlheo on 5/28/2016.
*/
describe('myApp.geometry module', function() {
beforeEach(module('myApp.geometry'));
describe('line service', function(){
it('intersect should return 3(intersecting) for (-10,-10);(10,10) and (-10,10);(10,-10)', inject(function() {
var $injector ... |
var R = require('..');
var eq = require('./shared/eq');
var albums = [
{title: 'Art of the Fugue', artist: 'Glenn Gould', genre: 'Baroque'},
{title: 'A Farewell to Kings', artist: 'Rush', genre: 'Rock'},
{title: 'Timeout', artist: 'Dave Brubeck Quartet', genre: 'Jazz'},
{title: 'Fly By Night', artist: 'Rush',... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.