code stringlengths 2 1.05M | repo_name stringlengths 5 114 | path stringlengths 4 991 | language stringclasses 1
value | license stringclasses 15
values | size int32 2 1.05M |
|---|---|---|---|---|---|
(function( $, app, i18n ) {
var ui = app.ns("ui");
ui.SidebarSection = ui.AbstractWidget.extend({
defaults: {
title: "",
help: null,
body: null,
open: false
},
init: function() {
this._super();
this.el = $( this._main_template() );
this.body = this.el.children(".uiSidebarSection-body");
... | containium/containium | systems/elasticsearch/dev-resources/plugins/head/_site/src/app/ui/sidebarSection/sidebarSection.js | JavaScript | mpl-2.0 | 1,393 |
;(function() {
window.jsPlumbDemo = {
init : function() {
jsPlumb.Defaults.DragOptions = { cursor: 'pointer', zIndex:2000 };
jsPlumb.Defaults.PaintStyle = { strokeStyle:'#666' };
jsPlumb.Defaults.EndpointStyle = { width:20, height:16, strokeStyle:'#666' };
jsPlumb.Defaults.Endpoint = "Rectangle";
... | doubleblacktech/learn-plumb | archive/1.3.9/demo/js/archive/1.3.3/draggableConnectorsDemo.js | JavaScript | mit | 5,981 |
define(
({
insertImageTitle: "แทรกรูปภาพ",
url: "Image",
browse: "เรียกดู...",
text: "รายละเอียด",
set: "แทรก",
invalidMessage: "ชนิดของไฟล์รูปภาพไม่ถูกต้อง",
prePopuTextUrl: "ป้อน URL ของรูปภาพ",
prePopuTextBrowse: " หรือเรียกดูโลคัลไฟล์"
})
);
| avz-cmf/zaboy-middleware | www/js/dojox/editor/plugins/nls/th/LocalImage.js | JavaScript | gpl-3.0 | 436 |
/** @preserve
*
* slippry v1.2.5 - Responsive content slider for jQuery
* http://slippry.com
*
* Authors: Lukas Jakob Hafner - @saftsaak
* Thomas Hurd - @SeenNotHurd
*
* Copyright 2014, booncon oy - http://booncon.com
*
*
* Released under the MIT license - http://opensource.org/licenses/MIT
*/
(fu... | joeyparrish/cdnjs | ajax/libs/slippry/1.2.5/slippry.js | JavaScript | mit | 25,577 |
import { get } from 'ember-metal';
import { SuiteModuleBuilder } from '../suite';
const suite = SuiteModuleBuilder.create();
suite.module('addObject');
suite.test('should return receiver', function() {
let before = this.newFixture(3);
let obj = this.newObject(before);
equal(obj.addObject(before[1]), obj, 's... | jherdman/ember.js | packages/ember-runtime/tests/suites/mutable_array/addObject.js | JavaScript | mit | 2,346 |
/*globals describe, it, before, beforeEach, afterEach, after */
/*jshint expr:true*/
var should = require('should'),
sinon = require('sinon'),
Promise = require('bluebird'),
path = require('path'),
fs = require('fs'),
_ = require('lodash'),
... | ivanoats/ivanstorck.com | core/test/unit/config_spec.js | JavaScript | mit | 35,598 |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Counter used to give webkit animations unique names.
var animationCounter = 0;
function addAnimation(code) {
var name = 'anim' + animationCounte... | qtekfun/htcDesire820Kernel | external/chromium_org/chrome/browser/resources/print_preview/print_preview_animations.js | JavaScript | gpl-2.0 | 5,563 |
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
ext... | vivadaniele/spid-ionic-sdk | node_modules/ionic-angular/components/picker/picker-transitions.js | JavaScript | bsd-3-clause | 2,332 |
// cross-browser asynchronous script loading for zxcvbn.
// adapted from http://friendlybit.com/js/lazy-loading-asyncronous-javascript/
// Suggestion: instead of manually configuring this script,
// follow the bower setup instructions (see README) for easier installation and
// updating.
// If you do want to manually... | BobbieBel/cdnjs | ajax/libs/zxcvbn/1.0.7/zxcvbn-async.js | JavaScript | mit | 1,018 |
// I think this should go in jquery.couch.js
(function($) {
$.fn.couchForm = function(opts) {
opts = opts || {};
if (!opts.db) {
opts.db = $.couch.db(document.location.pathname.split('/')[1]);
}
var form = $(this);
form.submit(function(e) {
e.preventD... | sp4ce/remetior | vendor/couchapp/_attachments/jquery.couchForm.js | JavaScript | mit | 1,261 |
// Generated by CoffeeScript 1.12.7
(function() {
var XMLStringifier,
bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; },
hasProp = {}.hasOwnProperty;
module.exports = XMLStringifier = (function() {
function XMLStringifier(options) {
this.assertLegalChar = bind(this.... | GenesysGame/lw-rage | server/packages/main/node_modules/xmlbuilder/lib/XMLStringifier.js | JavaScript | gpl-3.0 | 4,596 |
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// JavaScript for invoking methods on APIs used by Hangouts via the
// Hangout Services extension, and a JavaScript-based end-to-end test
// of the exte... | 7kbird/chrome | chrome/test/data/extensions/hangout_services_test.js | JavaScript | bsd-3-clause | 11,250 |
/**
* @author mrdoob / http://mrdoob.com/
*/
var context;
var AudioContext = {
getContext: function () {
if ( context === undefined ) {
context = new ( window.AudioContext || window.webkitAudioContext )();
}
return context;
},
setContext: function ( value ) {
context = value;
}
};
export {... | daoshengmu/three.js | src/audio/AudioContext.js | JavaScript | mit | 337 |
/**@license
* __ _____ ________ __
* / // _ /__ __ _____ ___ __ _/__ ___/__ ___ ______ __ __ __ ___ / /
* __ / // // // // // _ // _// // / / // _ // _// // // \/ // _ \/ /
* / / // // // // // ___// / / // / / // ___// / / / / // // /\ // //... | PeterDaveHello/jsdelivr | files/jquery.terminal/1.0.0/jquery.terminal.js | JavaScript | mit | 249,358 |
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the Lic... | RLovelett/qt | tests/auto/qscriptjstestsuite/tests/ecma/LexicalConventions/7.4.2-13-n.js | JavaScript | lgpl-2.1 | 2,832 |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvSlowMotionVideo = (props) => (
<SvgIcon {...props}>
<path d="M13.05 9.79L10 7.5v9l3.05-2.29L16 12zm0 0L10 7.5v9l3.05-2.29L16 12zm0 0L10 7.5v9l3.05-2.29L16 12zM11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69c1.... | lawrence-yu/material-ui | src/svg-icons/av/slow-motion-video.js | JavaScript | mit | 897 |
/*
* router.js: Base functionality for the router.
*
* (C) 2011, Charlie Robbins, Paolo Fragomeni, & the Contributors.
* MIT LICENSE
*
*/
var QUERY_SEPARATOR = /\?.*/;
//
// Helper function to turn flatten an array.
//
function _flatten (arr) {
var flat = [];
for (var i = 0, n = arr.length; i < n; i++) {
... | demns/todomvc-perf-comparison | todomvc/om/bower_components/director/lib/director/router.js | JavaScript | mit | 21,794 |
(function (factory) {
if (typeof define === 'function' && define.amd) {
define(['jquery'], factory);
} else if (typeof module === 'object' && typeof module.exports === 'object') {
factory(require('jquery'));
} else {
factory(jQuery);
}
}(function (jQuery) {
// Spanish shortened
jQuery.timeago.se... | xin2015/DataCenter | src/DataCenter.Web/wwwroot/libs/timeago/locales/jquery.timeago.es-short.js | JavaScript | mit | 673 |
module.exports =
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ ret... | ahocevar/cdnjs | ajax/libs/mint-ui/2.2.1/datetime-picker/index.js | JavaScript | mit | 17,147 |
/*
* grunt
* http://gruntjs.com/
*
* Copyright (c) 2012 "Cowboy" Ben Alman
* Licensed under the MIT license.
* https://github.com/gruntjs/grunt/blob/master/LICENSE-MIT
*/
'use strict';
var grunt = require('../grunt');
// Nodejs libs.
var util = require('util');
// The module to be exported.
var log = module.... | reesretuta/rmrholdings | wp-content/themes/starkers/vegas/node_modules/grunt/lib/grunt/log.js | JavaScript | gpl-2.0 | 9,263 |
frappe.listview_settings['Production Order'] = {
add_fields: ["bom_no", "status", "sales_order", "qty",
"produced_qty", "expected_delivery_date"],
filters: [["status", "!=", "Completed"], ["status", "!=", "Stopped"]]
};
| indictranstech/focal-erpnext | manufacturing/doctype/production_order/production_order_list.js | JavaScript | agpl-3.0 | 224 |
/*
YUI 3.4.1 (build 4118)
Copyright 2011 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('event-delegate', function(Y) {
/**
* Adds event delegation support to the library.
*
* @module event
* @submodule event-delegate
*/
var toArray = Y.Array,... | zuverza/se | sites/all/libraries/yui/build/event-delegate/event-delegate-debug.js | JavaScript | gpl-2.0 | 11,629 |
var React = require('react'),
Field = require('../Field');
module.exports = Field.create({
displayName: 'GeopointField',
focusTargetRef: 'lat',
valueChanged: function(which, event) {
this.props.value[which] = event.target.value;
this.props.onChange({
path: this.props.path,
value: this.props.value
... | Misterdjack/ask-the-principal | node_modules/keystone/fields/types/geopoint/GeoPointField.js | JavaScript | mit | 1,189 |
// Copyright 2014 the V8 project authors. All rights reserved.
// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
// Flags: --allow-natives-syntax --harmony --harmony-proxies
var _home_object = new Object();
var _receiver = new Object();
var _name = "name";
%LoadFromSuper(_home_object, _receiver, _name... | mcanthony/rethinkdb | external/v8_3.30.33.16/test/mjsunit/runtime-gen/loadfromsuper.js | JavaScript | agpl-3.0 | 323 |
var crypto = require('crypto');
var fs = require('fs');
var path = require('path');
var async = require('async');
/**
* Filter a list of files by mtime.
* @param {Array.<string>} paths List of file paths.
* @param {Date} time The comparison time.
* @param {function(string, Date, function(boolean))} override Over... | suryamuppalla/angular-eve-bootstrap | static/node_modules/grunt-newer/lib/util.js | JavaScript | bsd-3-clause | 8,262 |
(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["ReactDataGrid"] = f... | jdh8/cdnjs | ajax/libs/react-data-grid/0.12.12/react-data-grid-with-addons.js | JavaScript | mit | 162,411 |
(function (global) {
"use strict";
var util = (function () {
const MIME = {
'woff': 'application/x-font-woff',
'woff2': 'application/x-font-woff2',
'truetype': 'application/x-font-ttf',
'ttf': 'application/x-font-ttf',
'opentype': 'applicatio... | wout/cdnjs | ajax/libs/dom-to-image/0.4.0/dom-to-image.js | JavaScript | mit | 18,618 |
'use strict';
var _ = require('lodash');
/**
* Transform for loading helper collections
*
* - Loads template-helpers
* - Loads logging-helpers
* - Exposes markdown-utils as helpers
* - exposes path helpers on the `path.` property
*
* ```js
* {%= mdu.link(author.name, author.url) %}
* //=> [Jon Schlinker... | wenjoy/homePage | node_modules/node-captcha/node_modules/canvas/node_modules/should/node_modules/mocha-better-spec-reporter/node_modules/minimatch/node_modules/tap/node_modules/which/node_modules/is-absolute/node_modules/is-relative/node_modules/verb/lib/helpers/collections.js | JavaScript | mit | 899 |
// http://www.spellbook.io
var Spellbook = function () {
this.range = function (a, b, step) {
var A = [];
if (this.empty(a) || this.empty(b)) return A;
if (typeof a == 'number') {
A[0] = a;
step = step || 1;
while (a+step<= b) A[A.length] = a += step;
} else {
var s = 'abcdefghijklmnopqrstuvwxyz';
... | hare1039/cdnjs | ajax/libs/spellbook/0.0.82/spellbook.js | JavaScript | mit | 14,400 |
/*
YUI 3.5.1 (build 22)
Copyright 2012 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('transition-timer', function(Y) {
/*
* The Transition Utility provides an API for creating advanced transitions.
* @module transition
*/
/*
* Provides the base Transition c... | sergiomt/zesped | src/webapp/js/yui/transition-timer/transition-timer.js | JavaScript | agpl-3.0 | 9,371 |
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.vidom = f()}})... | dc-js/cdnjs | ajax/libs/vidom/0.3.3/vidom.js | JavaScript | mit | 92,620 |
/**
* @license Highcharts JS v6.0.2 (2017-10-20)
* Gantt series
*
* (c) 2016 Lars A. V. Cabrera
*
* --- WORK IN PROGRESS ---
*
* License: www.highcharts.com/license
*/
'use strict';
(function(factory) {
if (typeof module === 'object' && module.exports) {
module.exports = factory;
} else {
... | jaiswarvipin/lms-open-source-framework | skin/js/modules/gantt.src.js | JavaScript | mit | 41,314 |
/**
* ag-grid - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v4.2.4
* @link http://www.ag-grid.com/
* @license MIT
*/
var utils_1 = require('./utils');
function defaultGroupComparator(valueA, valueB, nodeA, nodeB) {
var nodeAIsGroup = utils_1.Utils.exist... | sreym/cdnjs | ajax/libs/ag-grid/4.2.4/lib/functions.js | JavaScript | mit | 871 |
description("This tests by-animations adding to previous underlying values");
embedSVGTestCase("resources/svglength-additive-by-6.svg");
// Setup animation test
function sample1() {
shouldBeCloseEnough("rect.width.animVal.value", "10");
shouldBe("rect.width.baseVal.value", "10");
}
function sample2() {
sh... | axinging/chromium-crosswalk | third_party/WebKit/LayoutTests/svg/animations/script-tests/svglength-additive-by-6.js | JavaScript | bsd-3-clause | 1,476 |
'use strict';
exports.BattleItems = {
"burndrive": {
id: "burndrive",
name: "Burn Drive",
spritenum: 103,
fling: {
basePower: 70,
},
onBasePower: function (basePower, user, target, move) {
},
onDrive: 'Fire',
desc: "Changes Genesect to Genesect-Burn.",
},
"chilldrive": {
id: "chilldrive",
n... | Flareninja/Showdown-Boilerplate | mods/gennext/items.js | JavaScript | mit | 5,543 |
/*!
* vue-validator v2.0.0-alpha.12
* (c) 2016 kazuya kawaguchi
* Released under the MIT License.
*/
'use strict';
function babelHelpers_typeof (obj) {
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
};
function babelHelpers_classCallCheck (instance, Constructo... | sashberd/cdnjs | ajax/libs/vue-validator/2.0.0-alpha.12/vue-validator.common.js | JavaScript | mit | 38,258 |
import {
moduleFor,
test
} from 'ember-qunit';
moduleFor('route:index', 'IndexRoute', {
// Specify the other units that are required for this test.
// needs: ['controller:foo']
});
test('it exists', function() {
var route = this.subject();
ok(route);
});
| MarSik/shelves | web/src/main/ember/tests/unit/routes/index-test.js | JavaScript | agpl-3.0 | 269 |
/* ***** BEGIN LICENSE BLOCK *****
* Distributed under the BSD license:
*
* Copyright (c) 2010, Ajax.org B.V.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of so... | KrishnaVamsiKV/Shark | zeppelin/zeppelin-web/vendor/scripts/ace/mode-verilog.js | JavaScript | apache-2.0 | 5,344 |
/**
* Copyright 2013-2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @providesModule ... | bbirand/relay | src/traversal/diffRelayQuery.js | JavaScript | bsd-3-clause | 22,184 |
( function ( mw, $ ) {
QUnit.module( 'mediawiki.toc', QUnit.newMwEnvironment( {
setup: function () {
// Prevent live cookies from interferring with the test
this.stub( $, 'cookie' ).returns( null );
}
} ) );
QUnit.asyncTest( 'toggleToc', 4, function ( assert ) {
var tocHtml, $toggleLink, $tocList;
as... | owen-kellie-smith/mediawiki | wiki/tests/qunit/suites/resources/mediawiki/mediawiki.toc.test.js | JavaScript | mit | 1,243 |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
require("rxjs-compat/add/operator/skipWhile");
//# sourceMappingURL=skipWhile.js.map | BigBoss424/portfolio | v8/development/node_modules/rxjs/add/operator/skipWhile.js | JavaScript | apache-2.0 | 161 |
/*!
* angular-datatables - v0.5.3
* https://github.com/l-lin/angular-datatables
* License: MIT
*/
if (typeof module !== "undefined" && typeof exports !== "undefined" && module.exports === exports) {
module.exports = 'datatables.bootstrap';
}
(function (window, document, $, angular) {
'use strict';
angular.modul... | jerico1990/jecaei | web/extension/components/angular-datatables/dist/plugins/bootstrap/angular-datatables.bootstrap.js | JavaScript | bsd-3-clause | 20,347 |
!function(n){"use strict";provide(["/demand/pledge"],function(e){var t=e.defer(),r="createElementNS"in n&&n.createElementNS("http://www.w3.org/2000/svg","svg");return r&&"createSVGRect"in r?t.resolve():t.reject(),t.pledge})}(document);
//# sourceMappingURL=svg.js.map
| joeyparrish/cdnjs | ajax/libs/qoopido.nucleus/3.1.7/support/test/element/svg.js | JavaScript | mit | 268 |
/* gator v1.0.1 craig.is/riding/gators */
(function(){function q(a,b,c){if("_root"==b)return a;if(a!==c){var r;e||(a.matches&&(e=a.matches),a.webkitMatchesSelector&&(e=a.webkitMatchesSelector),a.mozMatchesSelector&&(e=a.mozMatchesSelector),a.msMatchesSelector&&(e=a.msMatchesSelector),a.oMatchesSelector&&(e=a.oMatchesSe... | x112358/cdnjs | ajax/libs/gator/1.0.1/gator.min.js | JavaScript | mit | 1,850 |
(function (factory) {
if (typeof WSDEBUG === 'undefined') {
window.WSDEBUG = true;
}
var addAsync = function(){
if(!window.asyncWebshims){
window.asyncWebshims = {
cfg: [],
ready: []
};
}
};
var start = function(){
if(window.jQuery && window.Modernizr){
factory(jQuery);
factory = functi... | gogoleva/cdnjs | ajax/libs/webshim/1.13.2-RC1/dev/polyfiller.js | JavaScript | mit | 32,984 |
/**
* angular-strap
* @version v2.3.6 - 2015-11-14
* @link http://mgcrea.github.io/angular-strap
* @author Olivier Louvignes <olivier@mg-crea.com> (https://github.com/mgcrea)
* @license MIT License, http://www.opensource.org/licenses/MIT
*/
'use strict';
angular.module('mgcrea.ngStrap.dropdown', [ 'mgcrea.ngStra... | EmprendedoresLA/emprendevs-equipo-1 | webapp2/bower_components/angular-strap/dist/modules/dropdown.js | JavaScript | mit | 5,057 |
module.exports = pipe
function pipe () {
if (!arguments.length) throw new Error('pipe requires one or more arguments')
var args = Array.isArray(arguments[0])
? arguments[0]
: [].slice.apply(arguments)
return reduce(kestrel, args[0], rest(args))
}
function rest (array) {
return array.slice(1)
}
func... | athena-github/athena-github.github.io | xiangmuu--weizhan/node_modules/.3.0.0@promise.pipe/index.js | JavaScript | apache-2.0 | 571 |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _lodash = require('lodash');
var _lodash2 = _interopRequireDefault(_lodash);
var _calculateCellWidthIndex = require('./calculateCellWidthIndex');
var _calculateCellWidthIndex2 = _interopRequireDefault(_calculateCellWidthIndex);
fun... | hellokidder/js-studying | 微信小程序/wxtest/node_modules/table/dist/calculateMaximumColumnWidthIndex.js | JavaScript | mit | 1,098 |
// Copyright 2011 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... | Serard/cmsulysse | web/js/verifphone/goog/closure-library-master/closure/goog/testing/fs/entry_test.js | JavaScript | lgpl-3.0 | 6,857 |
import Ember from 'ember';
import {request as ajax} from 'ic-ajax';
import ValidationEngine from 'ghost/mixins/validation-engine';
export default Ember.Controller.extend(ValidationEngine, {
size: 90,
blogTitle: null,
name: null,
email: '',
validEmail: '',
password: null,
image: null,
bl... | jw-psychopomp/NewOrleansGhostworks-theme | psychopomp/Ghost-0.7.0/Ghost-0.7.0/core/client/app/controllers/setup/two.js | JavaScript | mit | 5,234 |
export function point(that, x, y) {
that._context.bezierCurveTo(
that._x1 + that._k * (that._x2 - that._x0),
that._y1 + that._k * (that._y2 - that._y0),
that._x2 + that._k * (that._x1 - x),
that._y2 + that._k * (that._y1 - y),
that._x2,
that._y2
);
}
export function Cardinal(context, tensio... | rhoon/thesis | work/analysis/node_modules/d3/node_modules/d3-shape/src/curve/cardinal.js | JavaScript | mit | 1,633 |
var spawn = require("child_process").spawn
var port = exports.port = 1337
exports.registry = "http://localhost:" + port
process.env.npm_config_loglevel = "error"
var bin = exports.bin = require.resolve("../bin/npm-cli.js")
var once = require("once")
exports.npm = function (cmd, opts, cb) {
cb = once(cb)
cmd = [bi... | markredballoon/clivemizen | wp-content/themes/redballoon/bootstrap/node_modules/npm-shrinkwrap/node_modules/npm/test/common-tap.js | JavaScript | gpl-2.0 | 751 |
// DO NOT EDIT! This test has been generated by tools/gentest.py.
// OffscreenCanvas test in a worker:2d.path.arc.zeroradius
// Description:arc() with zero radius draws a line to the start point
// Note:
importScripts("/resources/testharness.js");
importScripts("/common/canvas-tests.js");
var t = async_test("arc() wi... | ddrmanxbxfr/servo | tests/wpt/web-platform-tests/offscreen-canvas/path-objects/2d.path.arc.zeroradius.worker.js | JavaScript | mpl-2.0 | 774 |
/**
* @license AngularJS v1.0.0rc11
* (c) 2010-2012 Google, Inc. http://angularjs.org
* License: MIT
*/
(function(window, angular, undefined) {
'use strict';
var directive = {};
var service = { value: {} };
var DEPENDENCIES = {
'angular.js': 'http://code.angularjs.org/angular-' + angular.version.full + '.min.js... | tmthrgd/pagespeed-libraries-cdnjs | packages/angular.js/1.0.0rc11/angular-bootstrap-prettify.js | JavaScript | mit | 67,931 |
/*
This file is part of Ext JS 4.2
Copyright (c) 2011-2013 Sencha Inc
Contact: http://www.sencha.com/contact
GNU General Public License Usage
This file may be used under the terms of the GNU General Public License version 3.0 as
published by the Free Software Foundation and appearing in the file LICENSE included in... | filippov70/map.org | www/jslib/extjs/src/lang/Function.js | JavaScript | lgpl-3.0 | 19,407 |
/* YUI 3.9.1 (build 5852) Copyright 2013 Yahoo! Inc. http://yuilibrary.com/license/ */
YUI.add('autocomplete-filters', function (Y, NAME) {
/**
Provides pre-built result matching filters for AutoComplete.
@module autocomplete
@submodule autocomplete-filters
@class AutoCompleteFilters
@static
**/
var YArray = Y.A... | berkmancenter/spectacle | web/js/app/editor/node_modules/grunt-contrib/node_modules/grunt-contrib-yuidoc/node_modules/yuidocjs/node_modules/yui/autocomplete-filters/autocomplete-filters.js | JavaScript | gpl-2.0 | 7,478 |
/**!
* AngularJS file upload/drop directive and service with progress and abort
* FileAPI Flash shim for old browsers not supporting FormData
* @author Danial <danial.farid@gmail.com>
* @version 6.1.2
*/
(function () {
/** @namespace FileAPI.noContentTimeout */
function patchXHR(fnName, newFn) {
window... | carmen97/MagazinOnline | public/bower_components/ng-file-upload/ng-file-upload-shim.js | JavaScript | mit | 14,526 |
export{default}from"./FormControl";export{default as useFormControl}from"./useFormControl"; | cdnjs/cdnjs | ajax/libs/material-ui/5.0.0-alpha.9/esm/FormControl/index.min.js | JavaScript | mit | 91 |
(function () {
'use strict';
var ostring = Object.prototype.toString;
var slice = Array.prototype.slice;
function noop() {
}
function head(indexed) {
return (!indexed || indexed.length < 1) ? undefined : indexed[0];
}
function isArray(a) {
return !isString(a) && isNumber... | dakshshah96/cdnjs | ajax/libs/just-animate/0.4.3/just-animate-core.js | JavaScript | mit | 23,780 |
// Copyright 2009-2012 by contributors, MIT License
// vim: ts=4 sts=4 sw=4 expandtab
// Module systems magic dance
(function (definition) {
// RequireJS
if (typeof define == "function") {
define(definition);
// YUI3
} else if (typeof YUI == "function") {
YUI.add("es5-sham", definition)... | luhad/cdnjs | ajax/libs/es5-shim/2.0.2/es5-sham.js | JavaScript | mit | 12,001 |
/*!
* errorhandler
* Copyright(c) 2010 Sencha Inc.
* Copyright(c) 2011 TJ Holowaychuk
* Copyright(c) 2014 Jonathan Ong
* MIT Licensed
*/
/**
* Module dependencies.
*/
var accepts = require('accepts')
var escapeHtml = require('escape-html');
var fs = require('fs');
var util = require('util')
/**
* Module var... | markredballoon/clivemizen | wp-content/themes/redballoon/bootstrap/node_modules/grunt-contrib-connect/node_modules/connect/node_modules/errorhandler/index.js | JavaScript | gpl-2.0 | 3,366 |
// Copyright 2007 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... | AppScale/appinventor | war/closure-library-20120710-r2029/closure/goog/dom/browserrange/browserrange.js | JavaScript | mit | 5,764 |
/*
* device-test.js: Tests for Loggly device requests
*
* (C) 2010 Nodejitsu Inc.
* MIT LICENSE
*
*/
var path = require('path'),
vows = require('vows'),
assert = require('assert'),
helpers = require('./helpers');
var options = {},
config = helpers.loadConfig(),
loggly = require('../lib/logg... | Dilts/GruntworkflowWordpress | wp-content/themes/testGRUNT/src/node_modules/grunt-css/node_modules/grunt/node_modules/prompt/node_modules/winston/node_modules/loggly/test/device-test.js | JavaScript | gpl-2.0 | 1,093 |
/**
* 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... | khasinski/cdnjs | ajax/libs/yui/3.5.0pr4/yui-core/yui-core-debug.js | JavaScript | mit | 112,939 |
/*!
* Qoopido.js library v3.3.7, 2014-5-26
* https://github.com/dlueth/qoopido.js
* (c) 2014 Dirk Lueth
* Dual licensed under MIT and GPL
*/
!function(o){window.qoopido.register("support/css/rgba",o,["../../support"])}(function(o,r,t,s,e,a){"use strict";var c=o.support;return c.addTest("/css/rgba",function(o){var r=c.... | dlueth/cdnjs | ajax/libs/qoopido.js/3.3.7/support/css/rgba.js | JavaScript | mit | 511 |
'use strict';
var fs = require('fs');
var path = require('path');
var $ = require('cheerio');
var util = require('./util');
var root = path.resolve(__dirname, '..');
var fixtures = path.resolve(root, 'fixtures');
var projectRoot = path.resolve(__dirname, '../../..');
var build = path.resolve(projectRoot, 'build');
... | jmatar-sd/power-glass | theme/styles/TODO/angular.js-master/test/e2e/tools/fixture.js | JavaScript | apache-2.0 | 2,146 |
/*
Copyright (c) 2012, Yahoo! Inc. All rights reserved.
Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
*/
var async = require('async'),
glob = require('glob'),
fs = require('fs'),
path = require('path'),
seq = 0;
function filesFor(options, callback) {
... | ChromeDevTools/devtools-node-modules | third_party/node_modules/istanbul/lib/util/file-matcher.js | JavaScript | apache-2.0 | 2,314 |
"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 ts = require("typescript");
var ruleWalker_1... | tspycher/python-raspberry-bugcontrol | static-web/node_modules/tslint/lib/language/walker/scopeAwareRuleWalker.js | JavaScript | mit | 2,585 |
"use strict";
/**
* This is the plugin for syncing clicks between browsers
* @type {string}
*/
var EVENT_NAME = "input:toggles";
var OPT_PATH = "ghostMode.forms.toggles";
exports.canEmitEvents = true;
/**
* @param {BrowserSync} bs
* @param eventManager
*/
exports.init = function (bs, eventManager) {
var... | barkdesignchicago/vidar | wp-content/themes/vidar/node_modules/browser-sync/node_modules/browser-sync-client/lib/ghostmode.forms.toggles.js | JavaScript | gpl-2.0 | 2,306 |
'use strict';
module.exports = function isValidGlob(glob) {
if (typeof glob === 'string' && glob.length > 0) {
return true;
}
if (Array.isArray(glob)) {
return glob.length !== 0 && every(glob);
}
return false;
};
function every(arr) {
var len = arr.length;
while (len--) {
if (typeof arr[len]... | yuyang545262477/Resume | 项目二电商首页/node_modules/is-valid-glob/index.js | JavaScript | mit | 408 |
"use strict";
module.exports = function (nameForErrorMessage, window) {
if (!window) {
// Do nothing for window-less documents.
return;
}
const error = new Error(`Not implemented: ${nameForErrorMessage}`);
error.type = "not implemented";
window._virtualConsole.emit("jsdomError", error);
};
| ElvisLouis/code | work/js/node_modules/jsdom/lib/jsdom/browser/not-implemented.js | JavaScript | gpl-2.0 | 312 |
define({
name: 'plug!c2'
});
| SesamTV/ChromecastCordovaExample | www/sesamcast/bower_components/requirejs/tests/mapConfig/plug/c2.js | JavaScript | mit | 33 |
/**
* Georgian translation for foundation-datepicker, language file from bootstrap-datepicker
* Levan Melikishvili <levani0101@yahoo.com>
*/
;(function($){
$.fn.fdatepicker.dates['ka'] = {
days: ["კვირა", "ორშაბათი", "სამშაბათი", "ოთხშაბათი", "ხუთშაბათი", "პარასკევი", "შაბათი"],
daysShort: ["კვი"... | bmartey/final_eduapp | www/js/locales/foundation-datepicker.ka.js | JavaScript | apache-2.0 | 1,262 |
'use strict';
const fs = require('fs');
const url = require('url');
const path = require('path');
const qs = require('qs');
const express = require('express');
const mongoose = require('mongoose');
const bodyParser = require('body-parser');
const cookieParser = require('cookie-parser');
const helmet = requir... | kevinxu/xiaobudian | server.js | JavaScript | isc | 2,745 |
iD.Connection = function(useHttps) {
if (typeof useHttps !== 'boolean') {
useHttps = window.location.protocol === 'https:';
}
var event = d3.dispatch('authenticating', 'authenticated', 'auth', 'loading', 'loaded'),
protocol = useHttps ? 'https:' : 'http:',
url = '/osm',
connec... | energiekollektiv/openmod.sh-id | js/id/core/connection.js | JavaScript | isc | 15,269 |
var path = require('path');
var config = require('../config');
var utils = require('./utils');
var webpack = require('webpack');
var merge = require('webpack-merge');
var baseWebpackConfig = require('./webpack.base.conf');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
var OptimizeCSSPlugin = require('... | Alex-CS/stitch | build/webpack.prod.conf.js | JavaScript | isc | 3,898 |
var obj = require('javascript-object-paraphernalia'),
Config = require('./config');
function InvoiceItem(options) {
this.description = '';
this.units = 1;
this.unitPrice = 0;
this.taxable = true;
this.taxRate = Config.taxRate;
// this.evaluate() update the following values
this.amount ... | any-code/invoice-api | invoiceItem.js | JavaScript | isc | 948 |
/* eslint-disable func-style */
const BN = require('bn.js');
const assert = require('assert-diff');
const lib = require('../src/coretypes');
const encode = require('../src').encode;
const {binary: {makeParser, BytesList, BinarySerializer}} = lib;
const {UInt8, UInt16, UInt32, UInt64, STObject} = lib;
const {loadFixtur... | shekenahglory/ripple-binary-codec | test/binary-serializer-test.js | JavaScript | isc | 6,249 |
var Vault = require('../index'),
faker = require('faker'),
util = require('util');
describe('Signed Object', function() {
it('Signs & Verifies objects', function() {
var vault = new Vault(),
user = faker.helpers.userCard(),
signed = vault.sign(user),
verified = vault.verify(signed);
as... | Bajix/signed-object | test/signer.js | JavaScript | isc | 1,315 |
module.exports = function (grunt) {
grunt.registerTask('syncAssets', [
'sync:dev'
]);
};
| huafu/ember-sails | tasks/register/syncAssets.js | JavaScript | isc | 97 |
"use strict"
const path = require("path")
const debug = require("debug")("route4me-node:examples")
const chai = require("chai")
require("../init-examples-suite")
const helper = require("./../../test/helper")
helper.describeIntegration(helper.toSuiteName(__filename), function T() {
this.timeout(5000)
this.slow(3000... | route4me/route4me-nodejs-sdk | examples/Geocoding/forward-geocode-address.js | JavaScript | isc | 928 |
"use strict";
const test = require("ava");
const domain = "example.com";
global.fetch = (url) => {
if (url !== `https://${domain}/.well-known/host-meta`) {
throw new Error("Fetch URL incorrect");
}
return Promise.resolve({
text() {
return `<?xml version='1.0' encoding='UTF-8'?>
<XRD... | xmppjs/xmpp.js | packages/resolve/test/httpParse.js | JavaScript | isc | 1,315 |
"use strict";
const {join, resolve} = require("path");
const fs = require("fs");
describe("Syntax highlighting", function(){
this.timeout(30000);
let roff, ditroff, pic;
before(async () => {
await atom.packages.activatePackage("language-hyperlink");
const pkg = await atom.packages.activatePackage(resolve(__d... | Alhadis/language-roff | spec/grammar-spec.js | JavaScript | isc | 1,221 |
'use strict';
angular.module('users').controller('AuthenticationController', ['$scope', '$state', '$http', '$location', '$window', 'Authentication','LogsService','LogsRestServices', '$rootScope', 'PartnersService', 'CacheFactory',
function ($scope, $state, $http, $location, $window, Authentication, LogsService, Logs... | ronnyp07/pdv | modules/users/client/controllers/authentication.client.controller.js | JavaScript | mit | 3,094 |
import Express from 'express'
import AttachmentsController from './controllers/AttachmentsController'
import PostsController from './controllers/PostsController'
const router = Express.Router()
// -- PLACE YOUR ROUTES HERE --
router.get('/v1/attachments/:id', AttachmentsController.getOne)
router.get('/v1/posts', Po... | nomkhonwaan/nomkhonwaan.github.io | src/api/routes.js | JavaScript | mit | 788 |
import { combineReducers } from 'redux';
import invoices from './invoice_reducer'
import incidents from './incident_reducer'
import users from './user_reducer'
import machines from './machine_reducer'
import components from './component_reducer'
import category from './category_reducer'
const rootReducer = combineRedu... | akumbhani66/cantaloupe | front-end/app/reducers/rootReducer.js | JavaScript | mit | 426 |
(function() {
var svg;
//save off default references
var d3 = window.d3, topojson = window.topojson;
var defaultOptions = {
scope: 'world',
responsive: false,
aspectRatio: 0.5625,
setProjection: setProjection,
projection: 'equirectangular',
dataType: 'json',
data: {},
done: fun... | ds-proto/ds-proto.github.io | lib/datamaps.js | JavaScript | mit | 38,639 |
FillingsController = ApplicationController.extend({
// A place to put your subscriptions
// this.subscribe('items');
// // add the subscription to the waitlist
// this.subscribe('item', this.params._id).wait();
subscriptions: function() {
},
// Subscriptions or other things we want to "wait" on. ... | taxbase/tb-core | main/app/lib/controllers/fillings_controller.js | JavaScript | mit | 1,710 |
'use strict';
/**
* Interface to AWS ELB wrappers (Elastic Load Balancing)
*
* @module aws/elb
*/
const util = require('../../util');
const constants = require('../../constants');
const awsUtil = require('../aws-util');
const awsConstants = require('../aws-constants');
const tag = require('./elb-tag.js');
const pL... | alanthai/the-clusternator | src/aws/elb/elb.js | JavaScript | mit | 11,149 |
require.config({
paths:{
'jquery':'https://cdn.bootcss.com/jquery/1.12.4/jquery.min'
, 'bootstrap':'https://cdn.bootcss.com/bootstrap/2.3.2/js/bootstrap.min'
, 'underscore':'https://cdn.bootcss.com/underscore.js/1.8.3/underscore-min'
, 'backbone':'https://cdn.bootcss.com/backbone.js/... | zxgaoray/olmapc9 | public/test/transform/main.js | JavaScript | mit | 1,030 |
Boards = new Mongo.Collection('boards');
BoardMembers = new Mongo.Collection('board_members');
// ALLOWS
Boards.allow({
insert: function(userId, doc) { return doc.userId === userId; },
update: function(userId, doc) { return allowMemberTypeAdmin(userId, doc._id); },
remove: function(userId, doc) { return al... | Wen777/metrello | collections/boards.js | JavaScript | mit | 3,019 |
(function(){var h=0,m=0,b=[],c,n=!1,d=function(a){n&&console.log("Calls:"+h+", Queue:"+b.length+", "+a)},p=function(a,d){setTimeout(function(){a()},d)},k=function(a){b.push(a);c=a},q=function(a){c&&(c.content+=a,d(" <- Appended to queue for "+c.hookNode.id+": "+a))},s=function(a,c){var f=!1,i=function(a,d){var c=docume... | FlorentinZorca/async-document.write | Releases/async-document.write-1.0.29.min.js | JavaScript | mit | 3,070 |
/*!
* nodejs-express-mongoose-demo
* Copyright(c) 2013 Madhusudhan Srinivasa <madhums8@gmail.com>
* MIT Licensed
*/
/**
* Module dependencies
*/
var express = require('express');
var app = express();
process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0"; //self-signed SSL fix YOLO.. TODO: look more into/fix
// Add h... | Liampronan/pooler | server.js | JavaScript | mit | 2,086 |
import fs from 'fs';
import path from 'path';
import { assert } from 'chai';
import jscodeshift from 'jscodeshift';
import transform from './optimal-imports';
function trim(str) {
return str ? str.replace(/^\s+|\s+$/, '') : '';
}
function read(fileName) {
return fs.readFileSync(path.join(__dirname, fileName), 'ut... | kybarg/material-ui | packages/material-ui-codemod/src/v4.0.0/optimal-imports.test.js | JavaScript | mit | 1,451 |
module.exports.responder = function(res) {
var module = {};
module.success = function(data) {
//console.log('responding success...');
if (data)
res.send(data);
else {
res.writeHead(200);
res.end();
}
}
module.error = function(err) {
... | osslidou/ldb | responder.js | JavaScript | mit | 552 |
import React from 'react';
import { requireNativeComponent } from 'react-native';
import extractProps, { propsAndStyles } from '../lib/extract/extractProps';
import extractTransform from '../lib/extract/extractTransform';
import extractText, { setTSpan } from '../lib/extract/extractText';
import { pickNotNil } from '..... | msand/react-native-svg | elements/TSpan.js | JavaScript | mit | 1,147 |
import adminReward from '../../src/c/admin-reward';
describe('adminReward', () => {
let ctrl, $output;
describe('view', () => {
let reward, ctrl;
describe("when contribution has no reward", function() {
beforeAll(() => {
$output = mq(adminReward.view(undefined, {
... | mikesmayer/citizensupported_english.js | spec/components/admin-reward.spec.js | JavaScript | mit | 1,071 |
angular.module('months', [
'ui.router',
'MonthController'
]);
| vechnoe/calendar.drevle.com | src/app/dates/months/months.js | JavaScript | mit | 67 |
'use strict';
// app.js 서버 어플리케이션에서 ES6 문법을 사용하기위한 호출파일
require('babel-register')({
presets: ['es2015']
});
require('./app'); | boolean99/my-app | app-runner.js | JavaScript | mit | 173 |
// Enphase Enlighten API helpers for widget/gadget use.
//
// Copyright (c) 2011, Eric Sandeen
//
// 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 ... | sandeen/enlighten-api-javascript | enlighten-widget.js | JavaScript | mit | 11,871 |