code stringlengths 2 1.05M |
|---|
exports.up = function(knex, Promise) {
return Promise.all([
knex.schema.createTable('users', function(table) {
table.increments();
table.string('name');
table.string('email').unique();
table.string('password');
table.string('passwordResetToken');
table.dateTime('passwordResetEx... |
var externalTemplate = (function() {
var properties = {
key: 'SampleTemplate',
text: 'Sample template',
mappings: 'Path,Title,Filename'
},
component = React.createClass({
displayName: 'Component',
render: function render() {
... |
/**
* --------------------------------------------------------------------
* jQuery customfileinput plugin
* Author: Scott Jehl, scott@filamentgroup.com
* Copyright (c) 2009 Filament Group
* licensed under MIT (filamentgroup.com/examples/mit-license.txt)
* --------------------------------------------------------... |
/* *
*
* License: www.highcharts.com/license
*
* */
'use strict';
import H from '../parts/Globals.js';
import '../parts/Utilities.js';
var isArray = H.isArray,
seriesType = H.seriesType;
// Utils:
function sumArray(array) {
return array.reduce(function (prev, cur) {
return prev + cur;
}, 0)... |
(function () {
var visualchars = (function () {
'use strict';
var Cell = function (initial) {
var value = initial;
var get = function () {
return value;
};
var set = function (v) {
value = v;
};
var clone = function () {
return Cell(get());
};
return {
get: g... |
import createElement from './create-element'
import shuffleModule from './deck-shuffle'
import fanModule from './deck-fan'
import sortModule from './deck-sort'
import pokerModule from './deck-poker'
import bysuitModule from './deck-bysuit'
import introModule from './deck-intro'
import observable from './observable'
... |
/**
* Bootstrap Table norwegian translation
* Author: Jim Nordbø, jim@nordb.no
*/
(function ($) {
'use strict';
$.fn.bootstrapTable.locales['nb-NO'] = {
formatLoadingMessage: function () {
return 'Oppdaterer, vennligst vent...';
},
formatRecordsPerPage: function (pageNumb... |
(function( window, undefined ) {
kendo.cultures["sk-SK"] = {
name: "sk-SK",
numberFormat: {
pattern: ["-n"],
decimals: 2,
",": " ",
".": ",",
groupSize: [3],
percent: {
pattern: ["-n%","n%"],
dec... |
// @flow
type O = {|p: number|};
declare var ro: $ReadOnly<O>;
(ro.p: number);
type O1 = {p: number};
type O2 = {p: number; q: string};
declare var diff: $Diff<O2, O1>;
(diff.q: string);
declare var spread: { ...O2 };
if (spread.q) (spread.q: string);
|
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'list', 'fr', {
bulletedlist: 'Insérer/Supprimer la liste à puces',
numberedlist: 'Insérer/Supprimer la liste numérotée'
});
|
QUnit.test('options#ready', function (assert) {
var done = assert.async();
var util = window.Util;
var image = util.createImage();
assert.expect(1);
return new Cropper(image, {
ready: function () {
assert.ok(true);
done();
}
});
});
|
const testPackage = require('../../helpers/test-package');
const processorFactory = require('./updateGlobalApiPath');
const Dgeni = require('dgeni');
describe('updateGlobalApiPath processor', () => {
it('should be available on the injector', () => {
const dgeni = new Dgeni([testPackage('angular-api-package')]);
... |
/**
* ag-grid - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v17.0.0
* @link http://www.ag-grid.com/
* @license MIT
*/
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __prot... |
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
'use strict';
var assert = require('chai').assert;
var endpoint = require('./endpoint.js');
describe('endpoint', function () {
describe('#devicePath', function (... |
/**
* @ngdoc service
* @name umbraco.resources.usersResource
* @function
*
* @description
* Used by the users section to get users and send requests to create, invite, disable, etc. users.
*/
(function () {
'use strict';
function usersResource($http, umbRequestHelper, $q, umbDataFormatter) {
/*... |
const weapons = {
cudgel: {
name: 'Cudgel',
type: 'melee',
damage: '1d4',
rank: 1,
initiative: '15th',
},
cutlass: {
name: 'Cutlass',
type: 'melee',
damage: '1d6',
rank: 1,
initiative: '14th',
},
fist: {
name: 'Fist',
type: 'melee',
damage: '1d2',
rank: ... |
module.exports={A:{A:{"2":"J C G E B A VB"},B:{"1":"D Y g H L"},C:{"1":"0 1 3 4 5 6 v Z a b c d e f K h i j k l m n o p q r s x y u t","2":"TB z F I J C G E B A D Y g H L M N O P Q R S T U V W X RB QB"},D:{"1":"0 1 3 4 5 6 U V W X v Z a b c d e f K h i j k l m n o p q r s x y u t FB AB CB UB DB","2":"F I J C G E B A D ... |
define({
"left": "Zarovnat doleva",
"right": "Zarovnat doprava",
"arrangement": "Uspořádání",
"autoUpdate": "Automatická aktualizace",
"respectCurrentMapScale": "Zohlednit současné měřítko mapy"
}); |
/**
* @license Highcharts JS v6.0.5 (2018-01-31)
* Highcharts Drilldown module
*
* Author: Torstein Honsi
* License: www.highcharts.com/license
*
*/
'use strict';
(function(factory) {
if (typeof module === 'object' && module.exports) {
module.exports = factory;
} else {
factory(Highchart... |
defaultFrequency = 7;
defaultPosts = 5;
getCampaignPosts = function (postsCount) {
// look for last scheduled campaign in the database
var lastCampaign = SyncedCron._collection.findOne({name: 'scheduleNewsletter'}, {sort: {finishedAt: -1}, limit: 1});
// if there is a last campaign use its date, else default t... |
exports.BattleScripts = {
inherit: 'gen5',
gen: 5,
init: function() {
this.modData('Pokedex', 'cherrimsunshine').types = ['Grass', 'Fire'];
// Give Hurricane to all the Bug/Flying Quiver-dancers
// Precedent: Volcarona
this.modData('Learnsets', 'masquerain').learnset.hurricane = ['5L100'];
this.modData('L... |
var common = require("./stack-layout-common");
var enums_1 = require("ui/enums");
global.moduleMerge(common, exports);
function setNativeOrientationProperty(data) {
var stackLayout = data.object;
var nativeView = stackLayout._nativeView;
nativeView.setOrientation(data.newValue === enums_1.Orientation.vertic... |
/* globals RoutePolicy, logger */
/* jshint newcap: false */
var fiber = Npm.require('fibers');
var url = Npm.require('url');
var CAS = Npm.require('cas');
var _casCredentialTokens = {};
RoutePolicy.declare('/_cas/', 'network');
var closePopup = function(res) {
res.writeHead(200, {'Content-Type': 'text/html'});
v... |
define("ace/mode/julia_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module) {
"use strict";
var oop = require("../lib/oop");
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
var JuliaHighlightRules = function() ... |
import demoTest from '../../../tests/shared/demoTest';
demoTest('form');
|
/**
* Trumbowyg v2.9.4 - A lightweight WYSIWYG editor
* Trumbowyg core file
* ------------------------
* @link http://alex-d.github.io/Trumbowyg
* @license MIT
* @author Alexandre Demode (Alex-D)
* Twitter : @AlexandreDemode
* Website : alex-d.fr
*/
jQuery.trumbowyg = {
langs: {
en... |
/**
* @license Highcharts JS v6.1.3 (2018-09-12)
*
* (c) 2009-2017 Torstein Honsi
*
* License: www.highcharts.com/license
*/
'use strict';
(function (factory) {
if (typeof module === 'object' && module.exports) {
module.exports = factory;
} else if (typeof define === 'function' && define.amd) {
define(funct... |
import { ax } from "./c";
import { add } from "./tracker";
add("b");
export var bx = ax;
|
/**
* Team Validator
* Pokemon Showdown - http://pokemonshowdown.com/
*
* Handles team validation, and specifically learnset checking.
*
* @license MIT license
*/
var Validator;
if (!process.send) {
var validationCount = 0;
var pendingValidations = {};
var ValidatorProcess = (function () {
function Valid... |
/** Source Code Adapter Class
This adapts pre-existing source code, preparing it for the SourceCodeManager.
This is a bit like an abstract class, and needs to be implemented for the particular method of adaptation.
Must return an indexable/Enumerable series of DOM nodes, where each is a source code line.
*... |
(function (window) {
'use strict';
var patternfly = {
version: "3.29.9"
};
// definition of breakpoint sizes for tablet and desktop modes
patternfly.pfBreakpoints = {
'tablet': 768,
'desktop': 1200
};
window.patternfly = patternfly;
})(window);
(function (window) {
'use strict';
// U... |
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('jquery')) :
typeof define === 'function' && define.amd ? define(['jquery'], factory) :
(global = global || self, factory(global.jQuery));
}(this, function ($) { 'use strict';
$ = $ && $.hasOwnProperty('def... |
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
"use strict";
const AMDRequireItemDependency = require("./AMDRequireItemDependency");
const AMDRequireContextDependency = require("./AMDRequireContextDependency");
const ConstDependency = require("./ConstDepende... |
define({red:"red, dude"}); |
console.warn("warn -",`Imports like "const spectrum = require('simple-icons/icons/spectrum');" have been deprecated in v6.0.0 and will no longer work from v7.0.0, use "const { siSpectrum } = require('simple-icons/icons');" instead`),module.exports={title:"Spectrum",slug:"spectrum",get svg(){return'<svg role="img" viewB... |
'use strict';
const Promise = require('bluebird'),
logging = require('../../../../logging'),
commands = require('../../../schema').commands,
table = 'posts',
column1 = 'og_image',
column2 = 'og_title',
column3 = 'og_description',
column4 = 'twitter_image',
column5 = 'twitter_title',
... |
$.widget("metro.datepicker", {
version: "3.0.0",
options: {
format: "yyyy.mm.dd",
preset: false,
minDate: false,
maxDate: false,
effect: 'fade',
position: 'bottom',
locale: window.METRO_CURRENT_LOCALE,
weekStart: window.METRO_CALENDAR_WEEK_START,... |
/* @flow */
"use strict"
const selectorParser = require("postcss-selector-parser")
module.exports = function (
selector/*: string*/,
result/*: Object*/,
node/*: Object*/,
cb/*: Function*/
) {
try {
selectorParser(cb).process(selector)
} catch (e) {
result.warn("Cannot parse selector", { node })
... |
var assert = require("assert");
var path = require("path");
var local = path.join.bind(path, __dirname);
describe("Revwalk", function() {
var NodeGit = require("../../");
var Repository = NodeGit.Repository;
var Revwalk = NodeGit.Revwalk;
var Oid = NodeGit.Oid;
var reposPath = local("../repos/workdir");
... |
//// Copyright (c) Microsoft Corporation. All rights reserved
(function () {
"use strict";
var sampleTitle = "Printing JS Sample";
var scenarios = [
{ url: "/html/scenario1basic.html", title: "Basic" },
{ url: "/html/scenario2standardoptions.html", title: "Standard Options" }
];
... |
/*!
* Inferno.Redux v3.3.0
* (c) 2017 Dominic Gannaway'
* Released under the MIT License.
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('hoist-non-inferno-statics'), require('inferno-component'), require('inferno-create-element'), require... |
'use strict';
exports.BattleStatuses = {
brn: {
effectType: 'Status',
onStart: function (target, source, sourceEffect) {
if (sourceEffect && sourceEffect.id === 'flameorb') {
this.add('-status', target, 'brn', '[from] item: Flame Orb');
} else if (sourceEffect && sourceEffect.effectType === 'Ability') {... |
var demand = require('must');
var Path = require('../../../lib/path');
describe('Path', function () {
describe('new', function () {
it('must be an instance of Path', function () {
new Path('').must.be.an.instanceof(Path);
});
});
describe('.prototype.append', function () {
it('must return the path appende... |
/**
* ag-grid - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v13.1.2
* @link http://www.ag-grid.com/
* @license MIT
*/
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __prot... |
import React from 'react';
import './PageBody.less';
export default class PageBody {
static propTypes = {
hasSidebar: React.PropTypes.bool
};
render() {
var {hasSidebar, html, ...props} = this.props;
return (
<div className={`PageBody ${hasSidebar ? 'PageBody--hasSidebar' : ''}`}>
<div... |
angular.module('buttonsDemoBasic', ['ngMaterial'])
.controller('AppCtrl', function($scope) {
$scope.title1 = 'Button';
$scope.title4 = 'Warn';
$scope.isDisabled = true;
$scope.googleUrl = 'http://google.com';
});
|
'use strict';
require('newrelic');
var cluster = require('cluster')
, http = require('http')
, os = require('os')
, logger = require('../../../lib/logger').child({component : 'http_cluster'})
;
if (cluster.isMaster) {
for (var i = 0; i < os.cpus().length; i++) {
var worker = cluster.fork();
... |
// https://d3js.org/d3-geo/ Version 1.6.2. Copyright 2017 Mike Bostock.
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('d3-array')) :
typeof define === 'function' && define.amd ? define(['exports', 'd3-array'], factory) :
(factory((global.d3 = gl... |
steal('can/util', 'can/view', function(can) {
// Simple JavaScript Templating
// John Resig - http://ejohn.org/ - MIT Licensed
var cache = {};
/**
* @function Micro
* @parent jQuery.View
* @plugin jquery/view/micro
* A very lightweight template engine.
* Magic tags look like:
*
* @codestart
... |
/*
Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview Defines the {@link CKEDITOR.lang} object, for the
* Danish language.
*/
/**#@+
@type String
@example
*/
/**
* Constains the d... |
version https://git-lfs.github.com/spec/v1
oid sha256:5f2e3366d068b19152b4a1f9dbab79ce2257edbdee02934bb3121f20a03bf456
size 7404
|
/**
* SelectionMatcher.js
*
* Released under LGPL License.
* Copyright (c) 1999-2016 Ephox Corp. All rights reserved
*
* License: http://www.tinymce.com/license
* Contributing: http://www.tinymce.com/contributing
*/
define(
'tinymce.themes.inlite.core.SelectionMatcher',
[
'tinymce.themes.inlite.core.Ma... |
'use strict';
const printString = require('../printString');
const reactElement = Symbol.for('react.element');
function traverseChildren(opaqueChildren, cb) {
if (Array.isArray(opaqueChildren)) {
opaqueChildren.forEach(child => traverseChildren(child, cb));
} else if (opaqueChildren != null && opaqueChildren... |
'use strict'
var tape = require('tape')
var orient = require('robust-orientation')
var monotone = require('../lib/monotone')
var verifyTriangulation = require('./verify-triangulation')
tape('monotone triangulation - grids', function(t) {
function grid(nx, ny) {
console.log('test grid:', nx, ny)
var points ... |
var path = require('path')
var fs = require('graceful-fs')
var mkdir = require('../mkdirs')
function createFile (file, callback) {
function makeFile () {
fs.writeFile(file, '', function (err) {
if (err) return callback(err)
callback()
})
}
fs.exists(file, function (fileExists) {
if (file... |
var baseForIn = require('../internal/baseForIn'),
isArguments = require('./isArguments'),
isObjectLike = require('../internal/isObjectLike');
/** `Object#toString` result references. */
var objectTag = '[object Object]';
/** Used for native method references. */
var objectProto = Object.prototype;
... |
"use strict";
var Observable_1 = require('../../Observable');
var exhaustMap_1 = require('../../operator/exhaustMap');
var observableProto = Observable_1.Observable.prototype;
observableProto.exhaustMap = exhaustMap_1.exhaustMap;
//# sourceMappingURL=exhaustMap.js.map |
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'fakeobjects', 'bs', {
anchor: 'Anchor',
flash: 'Flash Animation', // MISSING
hiddenfield: 'Hidden Field', // MISSING
iframe: 'IFrame', // MISSING... |
tinyMCE.addI18n('lt.template_dlg',{
title:"\u0160ablonai",
label:"\u0160ablonas",
desc_label:"Apra\u0161as",
desc:"\u012Eterpti numatyt\u0105 \u0161ablono turin\u012F",
select:"Pasirinkti \u0161ablon\u0105",
preview:"Per\u017Ei\u016Bra",
warning:"Persp\u0117jimas: \u0160ablono pakeitimas kitu gali sukelti duomen... |
module.exports = function (string) {
var length = 0;
// Store the list of longest words in an object to automatically filter
// for duplicates.
var hash = {};
// Simplistic splitting on spaces, could improve to trim punctuation as well.
string.split(' ').forEach(function (word) {
// If the word's len... |
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// get title directly
self.postMessage(["equal", document.title, "Page Worker test",
"Correct page ti... |
/**
* Map line module
*/
import { __extends, __values } from "tslib";
/**
* ============================================================================
* IMPORTS
* ============================================================================
* @hidden
*/
import { MapObject } from "./MapObject";
import... |
!function(t,e){"use strict";"object"==typeof exports?module.exports=e():"function"==typeof define&&define.amd?define(e):t.IPv6=e(t)}(this,function(t){"use strict";function e(t){var e=t.toLowerCase(),i=e.split(":"),n=i.length,r=8;""===i[0]&&""===i[1]&&""===i[2]?(i.shift(),i.shift()):""===i[0]&&""===i[1]?i.shift():""===i... |
/*!
* @overview es6-promise - a tiny implementation of Promises/A+.
* @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
* @license Licensed under MIT license
* See https://raw.githubusercontent.com/stefanpenner/es6-promise/mast... |
//>>built
define("dojox/charting/plot2d/Indicator",["dojo/_base/lang","dojo/_base/array","dojo/_base/declare","./CartesianBase","./_PlotEvents","./common","../axis2d/common","dojox/gfx","dojox/lang/utils","dojox/gfx/fx","dojo/has"],function(_1,_2,_3,_4,_5,_6,_7,_8,du,fx,_9){
var _a=function(_b){
return _c(_b,_b.getShap... |
// Copyright 2006 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... |
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex... |
(function(){function G(b){for(var d=-1,c=b.length,a=Array(c);++d<c;)a[d]=b[d];return a}function H(b,d){var c=-1,a=b.length-d;if(0>=a)return[];for(var e=Array(a);++c<a;)e[c]=b[c+d];return e}function S(b){for(var d=-1,c=b.length,a=[];++d<c;){var e=b[d];e&&(a[a.length]=e)}return a}function Wb(b){for(var d=-1,c=b.length,a=... |
module.exports={title:"Noun Project",slug:"nounproject",svg:'<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Noun Project</title><path d="M17.672 8.846H24v6.327h-6.328zM6.328 11.99a3.164 3.164 0 0 1-3.164 3.163A3.164 3.164 0 0 1 0 11.991a3.164 3.164 0 0 1 3.164-3.164 3.164 3.164 0 0 1 3.16... |
/**
* ag-grid - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v8.1.0
* @link http://www.ag-grid.com/
* @license MIT
*/
"use strict";
var utils_1 = require("../utils");
var BorderLayout = (function () {
function BorderLayout(params) {
this.centerHe... |
var baseDifference = require('./_baseDifference'),
baseFlatten = require('./_baseFlatten'),
isArrayLikeObject = require('./isArrayLikeObject'),
rest = require('./rest');
/**
* Creates an array of unique `array` values not included in the other given
* arrays using [`SameValueZero`](http://ecma-internatio... |
/*
* lodash
*
* Copyright(c) 2014 <>
* MIT Licensed
*
*/
/**
* @author <>
*
*/
'use strict';
describe('The "lodash"', function () {
it('should ...', function (done) {
done();
});
}); |
/* */
var test = require("tape"),
b64 = require("../lib/b64");
test('decode url-safe style base64 strings', function(t) {
var expected = [0xff, 0xff, 0xbe, 0xff, 0xef, 0xbf, 0xfb, 0xef, 0xff];
var actual = b64.toByteArray('//++/++/++//');
for (var i = 0; i < actual.length; i++) {
t.equal(actual[i], expec... |
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex... |
var fs = require('fs')
var path = require('path')
var mkdirp = require('mkdirp')
var mr = require('npm-registry-mock')
var osenv = require('osenv')
var rimraf = require('rimraf')
var test = require('tap').test
var common = require('../common-tap.js')
var npm = npm = require('../../')
var pkg = path.resolve(__dirname... |
/**
* EpicEditor - An Embeddable JavaScript Markdown Editor (https://github.com/OscarGodson/EpicEditor)
* Copyright (c) 2011-2012, Oscar Godson. (MIT Licensed)
*/
(function (window, undefined) {
/**
* Applies attributes to a DOM object
* @param {object} context The DOM obj you want to apply the attributes ... |
/**
* JQUERY-FORM-VALIDATOR
*
* @website by
* @license MIT
* @version 2.2.81
*/
!function(a){a.formUtils.addValidator({name:"time",validatorFunction:function(a){if(null===a.match(/^(\d{2}):(\d{2})$/))return!1;var b=parseInt(a.split(":")[0],10),c=parseInt(a.split(":")[1],10);return b>23||c>59?!1:!0},errorMess... |
/**
* @author Mat Groves http://matgroves.com/ @Doormat23
*/
/**
* The interaction manager deals with mouse and touch events. Any DisplayObject can be interactive
* This manager also supports multitouch.
*
* @class InteractionManager
* @constructor
* @param stage {Stage} The stage to handle interactions
*/
... |
/*! Kefir.js v0.5.3
* https://github.com/pozadi/kefir
*/
;(function(global){
"use strict";
var Kefir = {};
function and() {
for (var i = 0; i < arguments.length; i++) {
if (!arguments[i]) {
return arguments[i];
}
}
return arguments[i - 1];
}
function or() {
for (var i = 0; i < arguments... |
'use strict';
var Day = require('./Day');
var modulo = require('./modulo');
// https://262.ecma-international.org/5.1/#sec-15.9.1.6
module.exports = function WeekDay(t) {
return modulo(Day(t) + 4, 7);
};
|
$(function() {
// Disable
// -------
// Disables the new dropdown list
$.selectBox.selectBoxIt.prototype.disable = function(callback) {
var self = this;
if(!self.options["disabled"]) {
// Makes sure the dropdown list is closed
self.close();
... |
jasmine.HtmlReporterHelpers = {};
jasmine.HtmlReporterHelpers.createDom = function(type, attrs, childrenVarArgs) {
var el = document.createElement(type);
for (var i = 2; i < arguments.length; i++) {
var child = arguments[i];
if (typeof child === 'string') {
el.appendChild(document.createTextNode(ch... |
2 ** -1 * 2 |
/*
Highcharts JS v4.0.0 (2014-04-22)
Exporting module
(c) 2010-2014 Torstein Honsi
License: www.highcharts.com/license
*/
(function(f){var A=f.Chart,t=f.addEvent,B=f.removeEvent,l=f.createElement,o=f.discardElement,v=f.css,k=f.merge,r=f.each,p=f.extend,D=Math.max,j=document,C=window,E=f.isTouchDevice,F=f.Renderer... |
/**
* The YUI module contains the components required for building the YUI seed
* file. This includes the script loading mechanism, a simple queue, and
* the core utilities for the library.
* @module yui
* @submodule yui-base
*/
if (typeof YUI != 'undefined') {
YUI._YUI = YUI;
}
/**
The YUI global namespac... |
YUI.add('selector-css2', function (Y, NAME) {
/**
* The selector module provides helper methods allowing CSS2 Selectors to be used with DOM elements.
* @module dom
* @submodule selector-css2
* @for Selector
*/
/*
* Provides helper methods for collecting and filtering DOM elements.
*/
var PARENT_NODE = 'parent... |
import baseSortedIndex from './_baseSortedIndex.js';
import eq from './eq.js';
/**
* This method is like `_.lastIndexOf` except that it performs a binary
* search on a sorted `array`.
*
* @static
* @memberOf _
* @since 4.0.0
* @category Array
* @param {Array} array The array to inspect.
* @param {*} value The... |
window.fakeStorage = {
_data: {},
setItem: function (id, val) {
return this._data[id] = String(val);
},
getItem: function (id) {
return this._data.hasOwnProperty(id) ? this._data[id] : undefined;
},
removeItem: function (id) {
return delete this._data[id];
},
clear: function () {
ret... |
/*
* # Semantic - Sidebar
* http://github.com/semantic-org/semantic-ui/
*
*
* Copyright 2014 Contributor
* Released under the MIT license
* http://opensource.org/licenses/MIT
*
*/
;(function ( $, window, document, undefined ) {
"use strict";
$.fn.sidebar = function(parameters) {
var
$allModules = $... |
/*
LESS mode - http://www.lesscss.org/
Ported to CodeMirror by Peter Kroon <plakroon@gmail.com>
Report bugs/issues here: https://github.com/marijnh/CodeMirror/issues
GitHub: @peterkroon
*/
CodeMirror.defineMode("less", function(config) {
var indentUnit = config.indentUnit, type;
function ret(style, tp) {ty... |
/*global self*/
import Promise from './promise';
export default function polyfill() {
var local;
if (typeof global !== 'undefined') {
local = global;
} else if (typeof self !== 'undefined') {
local = self;
} else {
try {
local = Function('return this')();
} catch (e) {
... |
/**
* Created by elyde on 1/13/2016.
*/
define([
'page',
'jsx!controllers/ErrorController',
'jsx!controllers/ExamplesController',
'controllers/PostController',
'controllers/TermController',
'controllers/TermTaxonomyController',
'controllers/UserController',
'sjl'
], function (
... |
require('chai').use(require('chai-as-promised')).should()
import test from 'ava'
import td from 'testdouble'
import { connect } from '../../_bootstrap'
import { settee, Schema, Type } from '../../../.test/build'
import { StorageError } from '../../../.test/build/errors'
import Storage from '../../../.test/build/storag... |
const resolve = require('../lib/resolver')
const stubPluginPath = require.resolve('./fixtures/plugin/stub-plugin')
const basedir = process.cwd()
describe('resolver', () => {
let stubResolver
beforeEach(() => {
stubResolver = jest.fn().mockReturnValue(stubPluginPath)
})
it('loads the module at the resolv... |
'use strict';
var api = require('../api');
module.exports = {
priorityMail: function (data, callback) {
api.request(false, 'PriorityMail', 'priorityMail', data, 'priorityMailResponse', callback);
},
standardB: function (data, callback) {
api.request(false, 'StandardB', 'standardB', data, 'standardBRespo... |
var db = require("../db/db.js")
// db.create()
module.exports = {
signin : function(req, res){
var user = req.body;
db.cypherQuery("MATCH (n:User) WHERE n.username={username} and n.password={password} RETURN n", user, function (err, result) {
if (err) {
throw error;
} else {
... |
/*jslint node: true, nomen: true, plusplus: true */
'use strict';
var Q = require("q"),
Sequence = require("bp-utilities").Sequence,
jsn = require("bp-utilities").jsn,
operations = {
eq: function (b, a) {
return a === b;
},
lt: function (b, a) {
return a < b;... |
#!/usr/bin/env node
import path from 'path';
import workshopper from 'workshopper';
import updateNotifier from 'update-notifier';
import Server from './lib/Server';
import pkg from '../package.json';
updateNotifier({ pkg: pkg }).notify();
workshopper({
name: 'testdrived3',
appDir: __dirname,
languages: [... |
// Load dependencies
var Joi = require('joi');
Joi.objectId = require('joi-objectid');
// Local vars
var controller = require("../controllers/recipe-ingredients.js");
module.exports = function () {
return (
[
/**
* GET /api/v1/recipes/{recipe_id}/ingredients/{id?}
... |
import _ from 'lodash';
import { t } from '../util/locale';
import { behaviorOperation } from '../behavior/index';
import { geoExtent } from '../geo/index';
import { modeRotate } from '../modes/index';
export function operationRotate(selectedIDs, context) {
var multi = (selectedIDs.length === 1 ? 'single' : 'mult... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.