code stringlengths 2 1.05M |
|---|
/**
* Interaction for the pages module
*/
jsBackend.pages =
{
// init, something like a constructor
init: function()
{
// load the tree
jsBackend.pages.tree.init();
// are we adding or editing?
if(typeof templates != 'undefined')
{
// load stuff for the... |
import * as React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M12 17c3.31 0 6-2.69 6-6V3h-2.5v8c0 1.93-1.57 3.5-3.5 3.5S8.5 12.93 8.5 11V3H6v8c0 3.31 2.69 6 6 6zm-7 2v2h14v-2H5z" />
, 'FormatUnderlined');
|
// tests/mocha/client/testState.js
if (!(typeof MochaWeb === 'undefined')) {
MochaWeb.testOnly(function () {
describe ('State', function () {
it ('initState should exist', function () {
Meteor.flush();
chai.assert(initState);
});
it ('s... |
function init_listjs() {
// Setup - add a text input to each footer cell
$('#instrument_logs_table tfoot th').each( function () {
var title = $('#instrument_logs_table thead th').eq( $(this).index() ).text();
$(this).html( '<input size=10 type="text" placeholder="Search '+title+'" />' );
} );
... |
import Vue from 'vue'
import mixin from './spinner-mixin.js'
export default Vue.extend({
name: 'QSpinnerPuff',
mixins: [mixin],
render (h) {
return h('svg', {
staticClass: 'q-spinner',
class: this.classes,
on: { ...this.qListeners },
attrs: {
focusable: 'false' /* needed fo... |
import Response from 'ember-cli-mirage/response';
import {module, test} from 'qunit';
module('Unit | Response', function() {
test('it can be instantiated and return a rack response', function(assert) {
let response = new Response(404, {}, {});
assert.ok(response);
assert.ok(response.toRackResponse());
... |
var test = require('tape');
var robot = require('..');
var os = require('os');
//TODO: Need tests for keyToggle, typeString, typeStringDelayed, and setKeyboardDelay.
test('Tap a key.', function(t)
{
t.plan(4);
t.ok(robot.keyTap("a") === 1, 'successfully tapped "a".');
t.ok(robot.keyTap("a", "control") === 1, 'succ... |
var debug = require('debug')('mdns:lib:dns');
var BufferWriter = require('./bufferwriter');
var DataConsumer = require('./bufferconsumer');
var DNSRecord = require('./dnsrecord');
/**
* DNSPacket holds the state of a DNS packet. It can be modified or serialized
* in-place.
*
* @constructor
*/
var DNSPa... |
/*! iCheck v1.0.1 by Damir Sultanov, http://git.io/arlzeA, MIT Licensed */
(function(h){function F(a,b,d){var c=a[0],e=/er/.test(d)?m:/bl/.test(d)?s:l,f=d==H?{checked:c[l],disabled:c[s],indeterminate:"true"==a.attr(m)||"false"==a.attr(w)}:c[e];if(/^(ch|di|in)/.test(d)&&!f)D(a,e);else if(/^(un|en|de)/.test(d)&&f)t(a,e);... |
/*
YUI 3.7.2 (build 5639)
Copyright 2012 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add("yui-log",function(e,t){var n=e,r="yui:log",i="undefined",s={debug:1,info:1,warn:1,error:1};n.log=function(e,t,o,u){var a,f,l,c,h,p=n,d=p.config,v=p.fire?p:YUI.Env.globalEv... |
/** @jsx h */
/* eslint-disable react/jsx-key */
import Html from '../..'
import React from 'react'
import h from '../../test/helpers/h'
import parse5 from 'parse5' // eslint-disable-line import/no-extraneous-dependencies
const html = new Html({
parseHtml: parse5.parseFragment,
rules: [
{
serialize(obj,... |
"use strict"
var ViewController = moobile.ViewController;
/**
* @see http://moobilejs.com/doc/latest/Window/WindowController
* @author Jean-Philippe Dery (jeanphilippe.dery@gmail.com)
* @since 0.1.0
*/
var WindowController = moobile.WindowController = new Class({
Extends: ViewController,
/**
* @hidden
... |
'use strict';
var numberIsFinite = require('is-finite');
module.exports = Number.isInteger || function (x) {
return numberIsFinite(x) && Math.floor(x) === x;
};
|
/*global define*/
define([
'./defaultValue',
'./defined',
'./DeveloperError',
'./freezeObject',
'./Math'
], function(
defaultValue,
defined,
DeveloperError,
freezeObject,
CesiumMath) {
"use strict";
/**
* A 3D Cartesian po... |
var sinon = require('sinon');
var expect = require('chai').expect;
var buildMarty = require('../../../test/lib/buildMarty');
var UnknownStoreError = require('../../errors/unknownStoreError');
describe('Application#rehydrate()', function () {
var serverApp, browserApp;
var store1ExpectedState, store2ExpectedState, ... |
/* A "coordinate map" converts pixel coordinates into an associated cell, which has an associated date
------------------------------------------------------------------------------------------------------------------------
Common interface:
CoordMap.prototype = {
build: function() {},
getCell: function(x, y) {}... |
{
"name": "proactive.js",
"url": "https://github.com/kenmerthe/proactive.js.git"
}
|
'use strict';
var callBound = require('call-bind/callBound');
var $arrayPush = callBound('Array.prototype.push');
var GetIterator = require('./GetIterator');
var IteratorStep = require('./IteratorStep');
var IteratorValue = require('./IteratorValue');
// https://ecma-international.org/ecma-262/9.0/#sec-iterabletolis... |
module.exports =
/**
* This is a container for helper functions that can be mixed into other objects
*/
{
EARTH_RADIUS: 6378137,
DEG_TO_RAD_FACTOR: Math.PI / 180,
/**
* Returns the distance between two LatLng objects in meters.
*
* Slightly modified version of the harversine formula used in Leaflet... |
/* global before, describe */
const { join } = require('path')
const chai = require('chai')
chai.should()
const file = 'binary-provider-hockeyapp.js'
const target = require(join(__dirname, '../../../lib/modules/binary-provider', file))
describe(file, function () {
before(function () {
target({ })
})
})
|
var vs = require("./vertex.c");
var fs = require("./fragment.c");
var gl = document.getElementById("webgl").getContext("webgl");
gl.clearColor(0.3, 0.4, 0.5, 1);
gl.clear(gl.COLOR_BUFFER_BIT);
var prog = gl.createProgram();
if (typeof vs === "function"){
vs = vs();
}
if (typeof fs === "function"){
fs = fs();
}... |
/*
* log-exceptions.js: A test fixture for logging exceptions in winston.
*
* (C) 2011 Charlie Robbins
* MIT LICENCE
*
*/
var path = require('path'),
winston = require('../../../lib/winston');
var logger = new (winston.Logger)({
transports: [
new (winston.transports.File)({
filen... |
var React = require('React');
var a = <div a={true} />;
var a = <div a={4} />;
|
var fs = require('fs');
var exec = require('child_process').exec;
var path = require('path');
var write = require('./util').write;
var glob = require('glob');
glob(`dist/css/!(*.min).css`, (err, files) =>
files.forEach(file =>
fs.readFile(file, 'utf8', (err, data) =>
fs.writeFile(file,... |
/*
* Copyright (c) 2012 Adobe Systems Incorporated. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the ri... |
var respMod = require("resp-modifier");
var httpProxy = require("http-proxy");
var http = require("http");
var utils = require("./lib/utils");
/**
* @param opts
* @param [additionalRules]
* @param [additionalMiddleware]
* @returns {*}
* @param errHandler
*/
function init(opts, additionalRules, additio... |
'use strict';
var debug = require('debug')('secc:'+process.pid+':environment')
var os = require('os');
var fs = require('fs');
var crypto = require('crypto');
var path = require('path');
var async = require('async');
var compile = require('./compile.js');
var generatorArchiveId = function(archive) {
var key = (fu... |
/**
* @module lints files and applies fixes.
*/
const { run } = require('../libs');
/**
* manages tasks of: regenerating docs.
*/
run('npm', ['run', 'doc:once'])
.then(() =>
run('open', ['docs/api/index.html'])
);
|
/**
* Created by Liza on 18.08.2015.
*/
var pixi = require("pixi.js")
var Point = pixi.Point;
var Rectangle = pixi.Rectangle;
var Game = require('../../core');
var Obstacle = require('./Obstacle');
function Car() {
Obstacle.call(this);
}
Car.prototype = Object.create(Obstacle.prototype);
Car.prototype.construc... |
import React, { PropTypes } from 'react';
import classNames from 'classnames';
import constants from './constants';
import { isVertical } from './utils';
/**
* Tells whether a particular step comes in between two controls or not
* @param stepValue value of the position where this step is located
* @param value Arra... |
//=========================NEW API=========================//
Meteor.publish('imon_data_v2', function(countries, indicators, recentOnly){
/**
Countries: either String (one code, or 'all') or array. Type: country code(s).
Indicators: either String (one code, or 'all') or array. Type: admin name(s).
recentOnly: b... |
import { Promise } from 'es6-promise';
import { partialRight } from 'ramda';
import { createClient } from 'redis';
function queryFabric(connection) {
const queue = [];
const query = {};
const resultSet = [];
function getSet() {
return resultSet;
}
function pushToSet(item) {
getSet... |
import React from 'react';
import Navbar from './components/navbar';
import PageTabs from './components/page-tabs';
import Breadcrumb from './components/breadcrumb';
import Footer from './components/footer';
import '../node_modules/bootstrap/dist/css/bootstrap.min.css';
import '../node_modules/bootstrap/dist/css/boot... |
// @flow
import * as React from 'react';
import { it, describe } from 'flow-typed-test';
import {
ApolloProvider,
ApolloConsumer,
graphql,
withApollo,
type OperationComponent,
type GraphqlQueryControls,
type ChildProps,
type GraphqlData,
} from '@apollo/react-hoc';
const gql = (strings, ...args) => {};... |
$.widget( "metro.widget" , {
version: "3.0.0",
options: {
someValue: null
},
_create: function () {
var that = this, element = this.element, o = this.options;
$.each(element.data(), function(key, value){
if (key in o) {
try {
o[... |
/**
* Copyright (c) 2013-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.
*
* @flow
* @format
*/
'use strict';
const RelayQuery = require('../query/RelayQuery');
const RelayQueryVisitor = require('../query/Rel... |
var gulp = require('gulp');
var stylus = require('gulp-stylus');
gulp.task('default', function() {
gulp.src('stylesheets/app.styl')
.pipe(stylus({ compress: true }))
.pipe(gulp.dest('web/'))
});
gulp.task('watch', ['default'], function() {
gulp.watch('stylesheets/**/*.styl', ['default']);
}); |
import React from 'react'
import Icon from 'react-icon-base'
const TiStopwatch = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m32.4 14.8c0.1 0 0.3-0.1 0.4-0.3l0.9-0.8c0.6-0.7 0.6-1.7 0-2.4s-1.7-0.6-2.4 0l-0.8 0.9c-0.1 0-0.1 0.1-0.2 0.2-2.3-2.1-5.3-3.6-8.7-4 0.1 0 0.1 0 0.1-0.1v-1.6h1.6c1 0... |
Queue = {};
if (typeof Queue.loglevel === "undefined") {
Queue.loglevel = 3; /* 3 only includes lock conflicts. 2,3 includes successes */
}
if (typeof Queue.logLife === "undefined") {
Queue.logLife = 30; /* days to keep logfiles */
}
if (typeof Queue.ephemeralLogLife === "undefined") {
Queue.ephemeralLogLi... |
//Reglas de validacion de proveedores
var reglas = {
rules: {
"autocomplete": {
checkautocomplete: 'categoria'
},
"nombreProveedor": {
required: true,
},
"nit": {
required: true,
},
},
messages: {
"nombreProveedor": {
required: "El nombre es obligatorio.",
... |
/*global require, exports*/
var Game = require('./game'),
Leaderboard = require('./leaderboard');
exports.gameModel = Game.gameModel;
exports.leaderboardModel = Leaderboard.leaderboardModel; |
version https://git-lfs.github.com/spec/v1
oid sha256:289d4475dcefc92b7a0d9f73d5078782476699f289cd561b6a92e3a980c97c4f
size 450
|
import { Constants } from "../constants";
import { Composer } from "../views/composer";
import { isNonPrintableKey } from "../helpers/is_non_printable_key";
Composer.RegisterKeyboardHandler(function(e) {
return (
e.type === "keydown" &&
!e.ctrlKey &&
!e.metaKey &&
!e.altKey &&
!isNonPrintableKey(... |
var express = require('express');
var path = require('path');
var app = express();
app.use(express.static(path.join(__dirname, 'public')));
require('./local.js')(app);
app.listen(3000);
console.log('Listen on 3000. Visit it by: http://localhost:3000')
|
/**
* Tests sit right alongside the file they are testing, which is more intuitive
* and portable than separating `src` and `test` directories. Additionally, the
* build process will exclude all `.spec.js` files from the build
* automatically.
*/
//describe( 'about section', function() {
// beforeEach( module( 'n... |
var a = function () { return }, b = '', c = 0
a + b
//++c
a + b
+ c
a
(b + c)
for (;;) {
if (true) break
} |
// @flow
import { describe, it } from 'flow-typed-test';
import codeFrame, { codeFrameColumns } from '@babel/code-frame';
const code = `
const number = 1;
var string = 'foo';
function print(name: string) {
console.log(string + name);
}
`;
it('codeFrame', () => {
codeFrame(code, 5, 22);
codeFrame(code... |
/**
* Base class for things that have names, lifecycles, and exist in a GameSet or
* GameGroup.
*
* To use a GameObject:
*
* 1. Instantiate one. (var foo = new GameGroup();)
* 2. Set the owning group. (foo.owningGroup = rootGroup;)
* 3. Call initialize(). (foo.initialize();)
* 4. Use the object!
* 5. When you're done, ... |
// @tag full-page
// @require /Applications/XAMPP/xamppfiles/htdocs/SenchaPlugins/app.js
|
jQuery(function(){
jQuery.fn.slideCtrl = function(options, configs) {
opt = jQuery.extend({
photo_list : jQuery(this).find('.area li'),
photo_list_left : jQuery(this).find('.news-visual_pre'),
photo_list_right : jQuery(this).find('.news-visual_next'),
photo_list_play : jQuery(this).find(".news-visual_pla... |
'use strict';
var utils = require('../utils');
var merge = require('../merge');
var errors = require('../deps/errors');
var cachedDBs = {};
var taskQueue = {
running: false,
queue: []
};
function tryCode(fun, that, args) {
try {
fun.apply(that, args);
} catch (err) { // shouldn't happen
if (window.Po... |
Ext.define('CF.view.EventsTabPanel', {
extend: 'Ext.TabPanel',
alias: 'widget.eventstabpanel',
requires: ['CF.view.EventSearchByFile', 'CF.view.EventSearch'],
region: 'center',
border: false,
layout: {
type: 'vbox',
align: 'stretch'
},
items: [{
xtype: 'panel',
title: 'FDSN',
border:... |
/**
* Copyright (c) 2013-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.
*
* @flow
* @format
*/
'use strict';
const React = require('React');
const {graphql, createFragmentContainer} = require('../ReactRelay... |
/**
* Created by sercand on 09/06/15.
*/
"use strict";
var express = require('express');
var router = express.Router();
var validator = require('validator');
var Game = require('../../models/game').Game;
var Build = require('../../models/game').Build;
router.get('/:id', function (req, res, next) {
let game_id... |
'use strict';
const Generator = require('yeoman-generator');
const chalk = require('chalk');
const yosay = require('yosay');
const yaml = require('js-yaml');
module.exports = class extends Generator {
prompting() {
// Have Yeoman greet the user.
this.log(yosay(
`Welcome to the transcendent ${chalk.red... |
// This is just an ugly shim since Grunt doesn't support CoffeeScript
// Gruntfiles anymore apparently... Jerks.
require('coffee-script/register');
module.exports = require('./Gruntfile.coffee');
|
/******/ (function(modules) { // webpackBootstrap
/******/ // install a JSONP callback for chunk loading
/******/ var parentJsonpFunction = window["webpackJsonp"];
/******/ window["webpackJsonp"] = function webpackJsonpCallback(chunkIds, moreModules, executeModules) {
/******/ // add "moreModules" to the modules o... |
function posYeti(yeti) {
yeti.position += 1;
if (yeti.position > 16) {
return yeti.position = 0;
}
}
function eatingYeti(yeti) {
yeti.eating += 1;
if (yeti.eating > 50) {
return yeti.eating = 0;
}
}
function drawYeti(yeti, direction, skierImg) {
if (direction > 0) {
moveRight(yeti, skierImg)... |
import React from 'react';
import { storiesOf, action } from '@kadira/storybook';
import { setComposerStub } from 'react-komposer';
import SignIn from '../sign_in.jsx';
storiesOf('users.SignIn', module)
.add('default view', () => {
return (
<SignIn />
);
})
|
/* 1 */"use strict"/* 2 */;/* 3 */
|
import { Modifier, EditorState } from 'draft-js';
import getSearchText from '../utils/getSearchText';
import emojiList from '../utils/emojiList';
import convertShortNameToUnicode from '../utils/convertShortNameToUnicode';
// This modifier can inserted emoji to current cursor position (with replace selected fragment),
... |
var server;
module('Backbone.Rpc', {
setup: function () {
this.url = '/fake/server/mock';
this.contentType = { "Content-Type": "application/json" };
this.method = 'POST';
this.errors = [];
this.errorCallback =null;
var oldLogError = sinon.logError;
sinon.logError = _.bind(function () {
... |
stats = function(a) {
var r = {mean: 0, variance: 0, deviation: 0}, t = a.length;
for(var m, s = 0, l = t; l--; s += a[l]);
for(m = r.mean = s / t, l = t, s = 0; l--; s += Math.pow(a[l] - m, 2));
return r.deviation = Math.sqrt(r.variance = s / t), r;
}
// Matrices look like this:
... |
require('../../js/transition.js')
require('../../js/alert.js')
require('../../js/button.js')
require('../../js/carousel.js')
require('../../js/collapse.js')
require('../../js/dropdown.js')
require('../../js/modal.js')
require('../../js/tooltip.js')
require('../../js/popover.js')
require('../../js/scrollspy.js')
require... |
var vehicle : Vehicle;
var bellyup = false;
function FixedUpdate () {
if(vehicle.myRigidbody.isKinematic == true) return; //We are materializing, don't try to manipulate physics
if(vehicle.brakes && vehicle.myRigidbody.velocity.magnitude < 3) {
vehicle.myRigidbody.velocity = Vector3.zero;
vehicle.myRigidbody.... |
var _ = require("underscore");
var Backbone = require("backbone");
var markdown = require("markdown").markdown;
var tmpl = require("../templates/note-view.hbs");
// Note View Pane
// --------------
// Render a single note pane for viewing.
var NoteViewView = Backbone.View.extend({
template: tmpl,
initialize: fu... |
//>>built
define("dojox/widget/nls/Wizard",{root:{next:"Next",previous:"Previous",done:"Done"},bs:!0,mk:!0,sr:!0,zh:!0,"zh-tw":!0,uk:!0,tr:!0,th:!0,sv:!0,sl:!0,sk:!0,ru:!0,ro:!0,pt:!0,"pt-pt":!0,pl:!0,nl:!0,nb:!0,ko:!0,kk:!0,ja:!0,it:!0,id:!0,hu:!0,hr:!0,he:!0,fr:!0,fi:!0,eu:!0,es:!0,el:!0,de:!0,da:!0,cs:!0,ca:!0,bg:!0... |
//>>built
define("dojox/lang/async",["dojo","dijit","dojox"],function(m,t,q){m.provide("dojox.lang.async");(function(){var d=m.Deferred,g=m.forEach,p=m.some,l=q.lang.async,r=Array.prototype.slice,n=Object.prototype.toString;l.seq=function(a){var c="[object Array]"==n.call(a)?a:arguments;return function(a){var b=new d;g... |
// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative ... |
function join(arg, extra = null) {
const components = Array.isArray(arg) ? arg : [arg, extra];
let names = [];
for (let i = components.length - 1; i >= 0; i--) {
const name = components[i];
const normalized_name = name.replace(/\/+/g, '/').replace(/^\/|\/$/g, '');
names.push(normalized_name);
if (... |
import Ringa from '../../src/index';
export default class CommandThrow extends Ringa.Command {
execute(error) {
throw Error(error);
}
}
|
"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 ... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var React = require('react');
var core = require('primereact/core');
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
var React__default = /*#__PURE__*/_interopDefaultLegacy... |
// PLAYER NAMES //////////////////////////////////////////////////////
// Player names are cached in local storage forever. There is no GUI
// element from within the total conversion to clean them, but you
// can run localStorage.clean() to reset it.
// retrieves player name by GUID. If the name is not yet available... |
'use strict';
require('./es6.iterators');
var $ = require('./$')
, ctx = require('./$.ctx')
, cof = require('./$.cof')
, $def = require('./$.def')
, safe = require('./$.uid').safe
, $iter = require('./$.iter')
, assert = require('./$.assert')
, assertInstanse = assert.inst
... |
exports = module.exports = {
"email": "errorrik@gmail.com",
"name": "errorrik"
};
|
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//------------------------------------------------------... |
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'... |
/**
* Convert an `arguments` object into an Array.
*
* @returns The arguments as an Array
* @private
*/
var _args = function(argumentsObj) {
return _slice.call(argumentsObj, 0);
};
/**
* Get the index of an item in an Array.
*
* @returns The index of an item in the Array, or `-1` if not found.
* @private
... |
var oldFnData = jQuery.fn.data;
jQuery.fn.data = function( name ) {
var ret, evt,
elem = this[0];
// Handles 1.7 which has this behavior and 1.8 which doesn't
if ( elem && name === "events" && arguments.length === 1 ) {
ret = jQuery.data( elem, name );
evt = jQuery._data( elem, name );
if ( ( ret === unde... |
var emotionModel = {
"angry" : {
"bias" : -2.3768163629,
"coefficients" : [-0.026270300474413848, 0.037963304603547195, 0.25318394482150264, -0.36801694354709802, -0.059638621925431838, 6.3145056900010567e-17, 0.094520059272651849, 0.21347244366388901, 0.42885313652690621, -1.5592214434343613e-14, 0.13850079872874... |
import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';
import { openDatepicker } from 'ember-pikaday/helpers/pikaday';
import $ from 'jquery';
moduleForComponent('pikaday-inputless', 'Integration | Component | pikaday inputless', {
integration: true
});
test('it has no... |
describe('check other inputs when one input fires a blur event', function() {
var container;
beforeEach(function() {
container = testutils.$('<div></div>');
document.body.appendChild(container[0]);
container.on('change', function(event) {
event.target.changeEventCount = event.target.changeEventCo... |
/* */
(function(process) {
var B = require("..\index.js").Buffer;
var test = require("tape");
if (process.env.OBJECT_IMPL)
B.TYPED_ARRAY_SUPPORT = false;
test('buffer.compare', function(t) {
var b = new B(1).fill('a');
var c = new B(1).fill('c');
var d = new B(2).fill('aa');
t.equal(b.compa... |
if(!dojo._hasResource["dojox.highlight.languages.python"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
dojo._hasResource["dojox.highlight.languages.python"] = true;
dojo.provide("dojox.highlight.languages.python");
dojo.require("dojox.highlight._base");
(function(){
var dh ... |
/**
* angular-elastic-builder
*
* /src/directives/BuilderDirective.js
*
* Angular Directive for injecting a query builder form.
*/
(function(angular) {
'use strict';
angular.module('angular-elastic-builder')
.directive('elasticBuilder', [
'elasticQueryService',
function EB(elasticQuerySe... |
var baseIteratee = require('./_baseIteratee'),
baseSortedIndexBy = require('./_baseSortedIndexBy');
/**
* This method is like `_.sortedLastIndex` except that it accepts `iteratee`
* which is invoked for `value` and each element of `array` to compute their
* sort ranking. The iteratee is invoked with one a... |
MM.TouchHandler = function() {
var handler = {},
map,
maxTapTime = 250,
maxTapDistance = 30,
maxDoubleTapDelay = 350,
locations = {},
taps = [],
snapToZoom = true,
wasPinching = false,
lastPinchCenter... |
const React = require('react');
const Root = require('../components/Root');
const Button = require('../components/Button')
const { component } = require('../commons/Layouts');
const Navigation = require('../services/Navigation');
const {
SHOW_OVERLAY_BTN,
SHOW_TOUCH_THROUGH_OVERLAY_BTN,
ALERT_BUTTON,
SET_ROOT_B... |
/**
* VexFlow - StaveConnector Tests
* Copyright Mohit Muthanna 2010 <mohit@muthanna.com>
*/
VF.Test.StaveConnector = (function() {
var StaveConnector = {
Start: function() {
var runTests = VF.Test.runTests;
QUnit.module("StaveConnector");
runTests("Single Draw Test", StaveConnector.drawSing... |
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
"use strict";
const ConditionalInitFragment = require("../ConditionalInitFragment");
const Dependency = require("../Dependency");
const HarmonyLinkingError = require("../HarmonyLinkingError");
const InitFragment = requ... |
/* globals describe, beforeEach, it, expect, module, inject */
/**
* @license angular-bootstrap-datetimepicker
* Copyright 2016 Knight Rider Consulting, Inc. http://www.knightrider.com
* License: MIT
*
* @author Dale "Ducky" Lotts
* @since 7/21/13
*/
describe('minView', function () {
'use stric... |
module.exports={A:{A:{"1":"E A B","2":"H D G FB"},B:{"1":"C p z J L N I"},C:{"1":"0 2 3 5 6 8 9 J L N I O P Q R S T U V W X Y Z a c d e f g h i j k l m n o M q r s t u v w x y CB AB","2":"4 aB F K H D G E A B C p z YB SB"},D:{"1":"0 2 3 5 6 8 9 Z a c d e f g h i j k l m n o M q r s t u v w x y CB AB MB cB GB b HB IB JB... |
/**!
*
* Copyright (c) 2015-2017 Cisco Systems, Inc. See LICENSE file.
* @private
*/
/* eslint global-require: [0] */
/* eslint quotes: [0] */
/* eslint import/no-commonjs: [0] */
/* istanbul ignore else */
if (!global._babelPolyfill) {
require('babel-polyfill');
}
module.exports = require('./dist');
|
/**
* @file Define the themeRiver view's series model
* @author Deqing Li(annong035@gmail.com)
*/
define(function (require) {
'use strict';
var completeDimensions = require('../../data/helper/completeDimensions');
var SeriesModel = require('../../model/Series');
var List = require('../../data/List... |
var express = require('express')
, passport = require('passport')
, util = require('util')
, GitHubStrategy = require('passport-github2').Strategy;
var GITHUB_CLIENT_ID = "--insert-github-client-id-here--"
var GITHUB_CLIENT_SECRET = "--insert-github-client-secret-here--";
// Passport session setup.
// To sup... |
var JsonFormatter = function(options) {
var Cucumber = require('../../cucumber');
var GherkinJsonFormatter = require('gherkin/lib/gherkin/formatter/json_formatter');
var currentFeatureId = 'undefined';
var self = Cucumber.Listener.Formatter(options);
var formatterIo = {
w... |
module.exports={A:{A:{"2":"H D G E A B FB"},B:{"1":"L N I","2":"C p z J"},C:{"1":"0 3 5 6 8 9 t u v w x y CB AB","2":"2 4 aB F K H D G E A B C p z J L N I O P Q R S T U V W X Y Z a c d e f g h i j k l m n o M q r s YB SB"},D:{"1":"0 3 5 6 8 9 y CB AB MB cB GB b HB IB JB KB","2":"2 F K H D G E A B C p z J L N I O P Q R ... |
/**
* Module dependencies.
*/
var async = require('async');
var _ = require('lodash');
/**
* Sails.prototype.lower()
*
* The inverse of `lift()`, this method
* shuts down all attached servers.
*
* It also unbinds listeners and terminates child processes.
*
* @api public
*/
module.exports = function lower... |
/**
* Created by stephanegarnier on 12/08/14.
*/
(function() {
'use strict';
angular.module('WakHotelSDK', ['wakanda']).
factory('WakHotelBooking', ['$wakanda', '$q', function($wakanda, $q) {
var Booking = {};
Booking.getBookingFromUserId = function(userId) {
var deferred = ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.