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 |
|---|---|---|---|---|---|
/// Copyright (c) 2012 Ecma International. All rights reserved.
/**
* @path ch15/15.3/15.3.4/15.3.4.5/15.3.4.5-16-1.js
* @description Function.prototype.bind, [[Extensible]] of the bound fn is true
*/
function testcase() {
function foo() { }
var o = {};
var bf = foo.bind(o);
var ex = Object.isExtensib... | Oceanswave/NiL.JS | Tests/tests/sputnik/ch15/15.3/15.3.4/15.3.4.5/15.3.4.5-16-1.js | JavaScript | bsd-3-clause | 396 |
/// Copyright (c) 2012 Ecma International. All rights reserved.
/**
* @path ch15/15.4/15.4.4/15.4.4.21/15.4.4.21-10-6.js
* @description Array.prototype.reduce - subclassed array when initialvalue provided
*/
function testcase() {
foo.prototype = [1,2,3,4];
function foo() {}
var f = new foo();
function... | Oceanswave/NiL.JS | Tests/tests/sputnik/ch15/15.4/15.4.4/15.4.4.21/15.4.4.21-10-6.js | JavaScript | bsd-3-clause | 448 |
// META: title=NativeIO API: Interface is not exposed in untrustworthy origin.
// META: global=window,dedicatedworker
'use strict';
test(testCase => {
var present = (typeof storageFoundation !== 'undefined');
assert_false(present);
}, 'NativeIO should not be accessible from an untrustworthy origin');
| nwjs/chromium.src | third_party/blink/web_tests/external/wpt/native-io/trustworthy_origin_failure.tentative.http.any.js | JavaScript | bsd-3-clause | 308 |
import jsonpatch from 'jsonpatch';
import {localHooks} from '../../mixins/localHooks';
import {mixin} from '../../helpers/object';
import {cleanPatches} from './utils';
/**
* @class DataObserver
* @plugin ObserveChanges
* @dependencies jsonpatch
*/
class DataObserver {
constructor(observedData) {
/**
* ... | stevemoore113/ch_web_- | 資源/CCEI/handsontable/src/plugins/observeChanges/dataObserver.js | JavaScript | mit | 1,878 |
// YUI3 File Picker module for moodle
// Author: Dongsheng Cai <dongsheng@moodle.com>
/**
*
* File Picker UI
* =====
* this.fpnode, contains reference to filepicker Node, non-empty if and only if rendered
* this.api, stores the URL to make ajax request
* this.mainui, YUI Panel
* this.selectnode, contains refere... | bostelm/moodle | repository/filepicker.js | JavaScript | gpl-3.0 | 102,370 |
define(
({
redLabel: "r",
greenLabel: "g",
blueLabel: "b",
hueLabel: "n",
saturationLabel: "m",
valueLabel: "k", /* aka intensity or brightness */
degLabel: "\u00B0",
hexLabel: "hex",
huePickerTitle: "Nyans",
saturationPickerTitle: "Mättnad"
})
);
| avz-cmf/zaboy-middleware | www/js/dojox/widget/nls/sv/ColorPicker.js | JavaScript | gpl-3.0 | 249 |
// NOTE: This method only strips the fragment and is not in accordance to the
// recommended draft specification:
// https://w3c.github.io/webappsec/specs/referrer-policy/#null
// TODO(kristijanburnik): Implement this helper as defined by spec once added
// scenarios for URLs containing username/password/etc.
function ... | raviflipsyde/servo | tests/wpt/web-platform-tests/referrer-policy/generic/common.js | JavaScript | mpl-2.0 | 5,881 |
//// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
//// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
//// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
//// PARTICULAR PURPOSE.
////
//// Copyright (c) Microsoft Corporation. All rights reserved
(function () {... | peterpy8/Windows-universal-samples | homegroup/js/js/advancedsearch.js | JavaScript | mit | 4,865 |
// Simplified Chinese lang variables contributed by tom_cat (thomaswangyang@gmail.com)
tinyMCE.addToLang('advimage',{
tab_general : 'Ò»°ã',
tab_appearance : 'ÏÔʾ',
tab_advanced : '¸ß¼¶',
general : 'Ò»°ã',
title : '±êÌâ',
preview : 'Ô¤ÀÀ',
constrain_proportions : 'Ô¼ÊøÊôÐÔ',
langdir : 'Êéд·½Ïò',
langcode : 'ÓïÑÔ±àÂë'... | xavilal/moodle | lib/editor/tinymce/jscripts/tiny_mce/plugins/advimage/langs/zh_cn.js | JavaScript | gpl-3.0 | 736 |
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
(function(){CKEDITOR.plugins.add("iframe",{requires:"dialog,fakeobjects",lang:"af,ar,az,bg,bn,bs,ca,cs,cy,da,de,de-ch,el,en,en-au,en-ca,en-gb,eo,es,es-mx,... | gitee2008/glaf | webapps/glaf/static/AdminLTE/bower_components/ckeditor/plugins/iframe/plugin.js | JavaScript | apache-2.0 | 1,796 |
//// [paramPropertiesInSignatures.ts]
class C1 {
constructor(public p1:string); // ERROR
constructor(private p2:number); // ERROR
constructor(public p3:any) {} // OK
}
declare class C2 {
constructor(public p1:string); // ERROR
constructor(private p2:number); // ERROR
constructor(public p3:any); // ERROR
}
//... | AbubakerB/TypeScript | tests/baselines/reference/paramPropertiesInSignatures.js | JavaScript | apache-2.0 | 464 |
'use strict';
/* jshint -W110 */
var Utils = require('../../utils')
, DataTypes = require('../../data-types')
, AbstractQueryGenerator = require('../abstract/query-generator')
, randomBytes = require('crypto').randomBytes
, semver = require('semver');
/* istanbul ignore next */
var throwMethodUndefined = func... | Nasen/feedbackServer | start/node_modules/sequelize/lib/dialects/mssql/query-generator.js | JavaScript | apache-2.0 | 28,634 |
Package.describe({
summary: "Weibo OAuth flow",
version: '1.1.3'
});
Package.onUse(function(api) {
api.use('oauth2', ['client', 'server']);
api.use('oauth', ['client', 'server']);
api.use('http', ['server']);
api.use('templating', 'client');
api.use('random', 'client');
api.use('service-configuration',... | TribeMedia/meteor | packages/weibo/package.js | JavaScript | mit | 547 |
/**
* @license
* Copyright 2014 Palantir Technologies, Inc.
*
* 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 required by... | mo-norant/FinHeartBel | website/node_modules/tslint/lib/rules/noUnusedExpressionRule.js | JavaScript | gpl-3.0 | 10,775 |
/*! Summernote v0.8.4 | (c) 2013- Alan Hong and other contributors | MIT license */
!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=a(require("jquery")):a(window.jQuery)}(function(a){a.extend(a.summernote.plugins,{hello:function(b){var c=th... | vicnroll/GTI | vistas/js/summernote/plugin/hello/summernote-ext-hello.min.js | JavaScript | mit | 974 |
YUI.add('series-bar', function (Y, NAME) {
/**
* Provides functionality for creating a bar series.
*
* @module charts
* @submodule series-bar
*/
/**
* The BarSeries class renders bars positioned vertically along a category or time axis. The bars'
* lengths are proportional to the values they represent along a h... | Badacadabra/Harmoneezer | node_modules/yuidocjs/node_modules/yui/series-bar/series-bar.js | JavaScript | mit | 6,757 |
"use strict";
/**
* This is the plugin for syncing location
* @type {string}
*/
var EVENT_NAME = "location";
exports.canEmitEvents = true;
/**
* @param {BrowserSync} bs
*/
exports.init = function (bs) {
bs.socket.on(EVENT_NAME, exports.socketEvent());
};
/**
* Respond to socket event
*/
exports.socketEven... | fernandoguirao/evita-un-error | wp-content/themes/node_modules/browser-sync/node_modules/browser-sync-client/lib/ghostmode.location.js | JavaScript | gpl-2.0 | 412 |
'use strict';
describe('$$cookieWriter', function() {
var $$cookieWriter, document;
function deleteAllCookies() {
var cookies = document.cookie.split(';');
var path = window.location.pathname;
for (var i = 0; i < cookies.length; i++) {
var cookie = cookies[i];
var eqPos = cookie.indexOf('... | Teremok/angular.js | test/ngCookies/cookieWriterSpec.js | JavaScript | mit | 6,640 |
import warning from 'warning';
const CALLED_ONCE = 'muiPrepared';
export default function callOnce() {
if (process.env.NODE_ENV !== 'production') {
return (style) => {
if (style[CALLED_ONCE]) {
warning(false, 'You cannot call prepareStyles() on the same style object more than once.');
}
... | matthewoates/material-ui | src/utils/callOnce.js | JavaScript | mit | 382 |
/*************************************************************
*
* MathJax/jax/output/HTML-CSS/fonts/STIX-Web/Main/Bold/Main.js
*
* Copyright (c) 2013-2017 The MathJax Consortium
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Li... | benjaminvialle/Markus | vendor/assets/javascripts/MathJax_lib/jax/output/HTML-CSS/fonts/STIX-Web/Main/Bold/Main.js | JavaScript | mit | 16,017 |
(function($) {
$(function() {
try {
if (typeof _wpcf7 == 'undefined' || _wpcf7 === null)
_wpcf7 = {};
_wpcf7 = $.extend({ cached: 0 }, _wpcf7);
$('div.wpcf7 > form').ajaxForm({
beforeSubmit: function(formData, jqForm, options) {
jqForm.wpcf7ClearResponseOutput();
jqForm.find('img.ajax-l... | MichaelFBA/mercerbell | wp-content/themes/mercerbell/js/scripts.js | JavaScript | gpl-2.0 | 6,208 |
loadjs = (function () {
/**
* Global dependencies.
* @global {Object} document - DOM
*/
var devnull = function() {},
bundleIdCache = {},
bundleResultCache = {},
bundleCallbackQueue = {};
/**
* Subscribe to bundle load event.
* @param {string[]} bundleIds - Bundle ids
* @param {Function} callbackFn ... | Piicksarn/cdnjs | ajax/libs/loadjs/3.0.1/loadjs.js | JavaScript | mit | 5,601 |
/**
* (c) 2013 Jexcel Plugin v1.2.1 | Bossanova UI
* http://www.github.com/paulhodel/jexcel
*
* @author: Paul Hodel <paul.hodel@gmail.com>
* @description: Create light embedded spreadsheets on your webpages
*
* ROADMAP:
* Online collaboration
* Merged cells
* Custom renderer
* Big data (partial table loadin... | joeyparrish/cdnjs | ajax/libs/jexcel/1.2.2/js/jquery.jexcel.js | JavaScript | mit | 113,171 |
// 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.
chrome.app.runtime.onLaunched.addListener(function() {
chrome.app.window.create('main.html', {
'width': 800,
'height': 600
});
});
| plxaye/chromium | src/remoting/webapp/background.js | JavaScript | apache-2.0 | 313 |
;(function(undefined) {
'use strict';
/**
* BottleJS v0.1.0 - 2014-09-24
* A powerful, extensible dependency injection micro container
*
* Copyright (c) 2014 Stephen Young
* Licensed MIT
*/
/**
* Unique id counter;
*
* @type Number
*/
var id = 0;
... | jonobr1/cdnjs | ajax/libs/bottlejs/0.1.0/bottle.js | JavaScript | mit | 7,819 |
"use strict";
exports.DOMException = require("../web-idl/DOMException");
exports.NamedNodeMap = require("./attributes").NamedNodeMap;
exports.Attr = require("./generated/Attr").interface;
exports.Node = require("./generated/Node").interface;
exports.Element = require("./generated/Element").interface;
exports.DocumentF... | ElvisLouis/code | work/js/node_modules/jsdom/lib/jsdom/living/index.js | JavaScript | gpl-2.0 | 2,747 |
/**
* ag-grid - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v5.0.1
* @link http://www.ag-grid.com/
* @license MIT
*/
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() {... | redmunds/cdnjs | ajax/libs/ag-grid/5.0.1/lib/rendering/checkboxSelectionComponent.js | JavaScript | mit | 4,732 |
import {cartesian, cartesianAddInPlace, cartesianCross, cartesianDot, cartesianScale, spherical} from "../cartesian";
import {circleStream} from "../circle";
import {abs, cos, epsilon, pi, sqrt} from "../math";
import pointEqual from "../pointEqual";
import clip from "./index";
export default function(radius, delta) {... | rhoon/thesis | work/analysis/node_modules/d3/node_modules/d3-geo/src/clip/circle.js | JavaScript | mit | 5,956 |
!function(e){if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),(f.ic||(f.ic={})).tabs=e()}}(function(){var define,module,exports;return (function e(t... | ajpi222/canvas-lms-hdi | public/javascripts/bower/ic-tabs/dist/globals/main.js | JavaScript | agpl-3.0 | 14,526 |
/**
* @fileoverview HTML reporter
* @author Julian Laval
*/
"use strict";
const lodash = require("lodash");
const fs = require("fs");
const path = require("path");
//------------------------------------------------------------------------------
// Helpers
//---------------------------------------------------------... | EdwardStudy/myghostblog | versions/1.25.7/node_modules/eslint/lib/formatters/html.js | JavaScript | mit | 4,182 |
module.exports = { prefix: 'fas', iconName: 'neuter', icon: [288, 512, [], "f22c", "M288 176c0-79.5-64.5-144-144-144S0 96.5 0 176c0 68.5 47.9 125.9 112 140.4V468c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12V316.4c64.1-14.5 112-71.9 112-140.4zm-144 80c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"] }; | evepraisal/go-evepraisal | web/resources/static/thirdparty/fontawesome-free-5.0.8/advanced-options/use-with-node-js/fontawesome-free-solid/faNeuter.js | JavaScript | mit | 316 |
define(function () { return {"zones":{"Etc/GMT+2":["z",{"wallclock":-1.7976931348623157e+308,"format":"GMT+2","abbrev":"GMT+2","offset":-7200000,"posix":-1.7976931348623157e+308,"save":0}]},"rules":{}} }); | Rvor/canvas-lms | public/javascripts/vendor/timezone/Etc/GMT+2.js | JavaScript | agpl-3.0 | 205 |
(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... | sreym/cdnjs | ajax/libs/forerunnerdb/1.3.755/fdb-legacy.js | JavaScript | mit | 996,596 |
(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);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports... | BenjaminVanRyseghem/cdnjs | ajax/libs/jblocks/0.3.2/jblocks.js | JavaScript | mit | 5,010 |
/**
* @fileoverview Interface for database connector.
*/
goog.provide('ydn.db.con.IDatabase');
goog.require('goog.async.Deferred');
/**
* @interface
*/
ydn.db.con.IDatabase = function() {};
/**
* Close the connection.
*/
ydn.db.con.IDatabase.prototype.close = function() {};
/**
* Return readable represe... | jayteemi/educatoursja | www2/lib/ydn.db/src/ydn/db/conn/i_database.js | JavaScript | apache-2.0 | 2,558 |
describe("Select Plugin", function () {
beforeEach(function() {
loadFixtures('select/selectFixture.html');
$('select').not('.disabled').material_select();
});
describe("Select", function () {
var browserSelect, normalInput, normalDropdown;
beforeEach(function() {
browserSelect = $('select.... | Taraszion/AngularSymfonyGl | web/bower_components/Materialize/tests/spec/select/selectSpec.js | JavaScript | mit | 8,477 |
/**
* @file
* A simple jQuery ThumbnailHover Div Slideshow Rotator.
*/
(function ($) {
/**
* This will set our initial behavior, by starting up each individual slideshow.
*/
Drupal.behaviors.viewsSlideshowThumbnailHover = function (context) {
$('.views_slideshow_thumbnailhover_main:not(.viewsSlidesho... | Wylbur/kula | sites/kulacenter.com/modules/views_slideshow/contrib/views_slideshow_thumbnailhover/views_slideshow.js | JavaScript | gpl-2.0 | 14,726 |
'use strict';
var got = require('got');
var objectAssign = require('object-assign');
var Promise = require('pinkie-promise');
function ghGot(path, opts) {
if (typeof path !== 'string') {
return Promise.reject(new TypeError('Path should be a string'));
}
opts = objectAssign({json: true, endpoint: 'https://api.git... | tsiry95/openshift-strongloop-cartridge | strongloop/node_modules/gh-got/index.js | JavaScript | mit | 1,561 |
/*! HTML - v0.12.1 - 2014-10-22
* http://nbubna.github.io/HTML/
* Copyright (c) 2014 ESHA Research; Licensed MIT, GPL */
(function(window, document, HTML) {
"use strict";
var fn = HTML._.fn.stringify = function(markup, indent) {
var s = '';
this.each(function(el) {
s += _.print(el, ... | nbubna/HTML | dist/HTML.stringify.js | JavaScript | mit | 3,843 |
onerror = function(message, url, lineno)
{
if (url != location.href)
postMessage("FAIL: Bad location. Actual: " + url + " Expected: " + location.href);
splitUrl = url.split('/');
postMessage("PASS: onerror in worker context invoked for a script that has script error '" + message + "' at line " + lin... | scheib/chromium | third_party/blink/web_tests/fast/workers/resources/worker-script-error-bubbled.js | JavaScript | bsd-3-clause | 401 |
/* jshint expr:true */
import {expect} from 'chai';
import {
describeComponent,
it
} from 'ember-mocha';
describeComponent(
'gh-user-active',
'Unit: Component: gh-user-active',
{
unit: true
// specify the other units that are required for this test
// needs: ['component:foo'... | airycanon/Ghost-Admin | tests/unit/components/gh-user-active-test.js | JavaScript | mit | 702 |
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is dis... | merrill-oakland/moodle | admin/tool/dataprivacy/amd/src/request_filter.js | JavaScript | gpl-3.0 | 2,742 |
'use strict';
exports.__esModule = true;
var _postcssValueParser = require('postcss-value-parser');
var _postcssValueParser2 = _interopRequireDefault(_postcssValueParser);
var _postcss = require('postcss');
var _postcss2 = _interopRequireDefault(_postcss);
var _encode = require('./lib/encode');
var _encode2 = _i... | hfutlyz/react-exp-demos | webpack/node_modules/postcss-reduce-idents/dist/index.js | JavaScript | mit | 6,466 |
/*!
* dependencyLib.min.js
* http://github.com/RobinHerbots/jquery.inputmask
* Copyright (c) 2010 - 2015 Robin Herbots
* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
* Version: 3.2.0
*/
!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof export... | hackultura/meta-id-client | src/public/vendors/jquery.inputmask/dist/min/inputmask/dependencyLib.min.js | JavaScript | gpl-2.0 | 423 |
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang("a11yhelp","th",{title:"Accessibility Instructions",contents:"Help Contents. To close this dialog press ESC.",legend:[{name:"ทั่ว... | OpenLGK/ProcessWire | wire/modules/Inputfield/InputfieldCKEditor/ckeditor-4.8.0/plugins/a11yhelp/dialogs/lang/th.js | JavaScript | mpl-2.0 | 4,369 |
// Karma configuration
// Generated on Thu Dec 10 2015 03:01:27 GMT+0100 (CET)
module.exports = function(config) {
config.set({
// base path that will be used to resolve all patterns (eg. files, exclude)
basePath: '',
// frameworks to use
// available frameworks: https://npmjs.org/browse/keyword/k... | MacroLin/practice | webpack+react(练习)/node_modules/.1.1.7@object-hash/karma.conf.js | JavaScript | mit | 1,683 |
!function(root, factory) {
if (typeof define === 'function' && define.amd) {
define(['jquery'], factory);
} else {
factory(root.jQuery);
} }(this, function($) {
/*!
@package noty - jQuery Notification Plugin
@version version: 2.3.3
@contributors https://github.com/needim/noty/graphs/contributors
@docum... | dibstigz/myrecipechannel | wp-content/plugins/slider-by-supsystic/src/SupsysticSlider/Slider/assets/js/noty/js/noty/packaged/jquery.noty.packaged.js | JavaScript | gpl-2.0 | 46,485 |
// ** I18N
// Calendar RU language
// Translation: Sly Golovanov, http://golovanov.net, <sly@golovanov.net>
// Encoding: any
// Distributed under the same terms as the calendar itself.
// For translators: please use UTF-8 if possible. We strongly believe that
// Unicode is the answer to a real internationalized worl... | conder/sakai | reference/library/src/webapp/jscalendar/lang/calendar-ru.js | JavaScript | apache-2.0 | 4,332 |
const environment = require('./environment')
module.exports = environment.toWebpackConfig()
| sic2/isamuni | webapp/config/webpack/test.js | JavaScript | mit | 93 |
var camelCase = require("lodash.camelcase");
function dashesCamelCase(str) {
return str.replace(/-(\w)/g, function(match, firstLetter) {
return firstLetter.toUpperCase();
});
}
module.exports = function compileExports(result, importItemMatcher, camelCaseKeys) {
if (!Object.keys(result.exports).length) {
... | puyanLiu/LPYFramework | 前端练习/autoFramework/webpack-demo3/node_modules/css-loader/lib/compile-exports.js | JavaScript | apache-2.0 | 1,329 |
/*
* flickrBomb v1
* www.ZURB.com/playground
* Copyright 2011, ZURB
* Free to use under the MIT license.
* http://www.opensource.org/licenses/mit-license.php
*/
// @param [key] Optionally pass a Flickr API key on instantiation, or just hardcode it below.
var flickrBomb = function flickrBomb(key) {
if (!(this ... | cliftonc0613/My-Responsive-Style-Tile | js/libs/flickrbomb.js | JavaScript | gpl-2.0 | 15,304 |
/**
* @license AngularJS v1.0.0
* (c) 2010-2012 Google, Inc. http://angularjs.org
* License: MIT
*/
(function(window, angular, undefined) {
'use strict';
/**
* @ngdoc overview
* @name ngCookies
*/
angular.module('ngCookies', ['ng']).
/**
* @ngdoc object
* @name ngCookies.$cookies
* @requires $brows... | clemsos/mitras | ui/public/libs/angular/angular-cookies.js | JavaScript | mit | 4,842 |
var Writable = require('readable-stream').Writable
var inherits = require('inherits')
var TA = require('typedarray')
var U8 = typeof Uint8Array !== 'undefined' ? Uint8Array : TA.Uint8Array
function ConcatStream(opts, cb) {
if (!(this instanceof ConcatStream)) return new ConcatStream(opts, cb)
if (typeof opts === ... | pepoviola/cartero | test/example2/node_modules/browserify/node_modules/concat-stream/index.js | JavaScript | mit | 3,342 |
module.exports = require('./test.css!'); | webcoding/systemjs | test/tests/cjs-loading-plugin.js | JavaScript | mit | 40 |
/*!
* # Semantic UI 2.0.4 - State
* http://github.com/semantic-org/semantic-ui/
*
*
* Copyright 2015 Contributors
* Released under the MIT license
* http://opensource.org/licenses/MIT
*
*/
;(function ( $, window, document, undefined ) {
"use strict";
$.fn.state = function(parameters) {
var
$allModules... | tisderek/cleansweep | public/semantic/components/state.js | JavaScript | mit | 20,409 |
MessageFormat.locale.sv=function(n){return n===1?"one":"other"}
| josedab/spring-boot-angularjs-examples | videostore/src/main/webapp/bower_components/messageformat/locale/sv.js | JavaScript | mit | 64 |
!function(t){"use strict";function e(e){function n(t,e){t&&e&&i[t]&&(i[t]=e)}function o(t){if(t&&i[t])return i[t]}function u(t,r,n,u){var i;if(n=e(n,r))return((i=o(n[1]))&&i[t]||o("general")[t])(r,n,u)}var i={general:{get:function(e,r){return t(e,null).getPropertyValue(r[0])},set:function(t,e,n){n.replace?t.style.setPr... | Asaf-S/jsdelivr | files/qoopido.nucleus/3.0.5/hooks/css.js | JavaScript | mit | 540 |
;(function(exports) {
// export the class if we are in a Node-like system.
if (typeof module === 'object' && module.exports === exports)
exports = module.exports = SemVer;
// The debug function is excluded entirely from the minified version.
// Note: this is the semver.org version of the spec that it implements
//... | markredballoon/clivemizen | wp-content/themes/redballoon/bootstrap/node_modules/npm-shrinkwrap/node_modules/npm/node_modules/semver/semver.browser.js | JavaScript | gpl-2.0 | 27,641 |
YUI.add('moodle-atto_bold-button', function (Y, NAME) {
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
/... | sameertechworks/wpmoodle | moodle/lib/editor/atto/plugins/bold/yui/build/moodle-atto_bold-button/moodle-atto_bold-button.js | JavaScript | gpl-2.0 | 1,557 |
var passport = require('passport'),
errors = require('../errors'),
events = require('../events'),
labs = require('../utils/labs'),
i18n = require('../i18n'),
auth;
function isBearerAutorizationHeader(req) {
var parts,
scheme,
credentials;
if (req... | norsasono/openshift-ghost-starter | node_modules/ghost/core/server/middleware/auth.js | JavaScript | mit | 5,047 |
/*
YUI 3.16.0 (build 76f0e08)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('arraylist', function (Y, NAME) {
/**
* Collection utilities beyond what is provided in the YUI core
* @module collection
* @submodule arraylist
*/
var YArray ... | ramda/jsdelivr | files/yui/3.16.0/arraylist/arraylist.js | JavaScript | mit | 7,124 |
/**!
* AngularJS file upload/drop directive and service with progress and abort
* @author Danial <danial.farid@gmail.com>
* @version 3.3.0
*/
(function () {
var key, i;
function patchXHR(fnName, newFn) {
window.XMLHttpRequest.prototype[fnName] = newFn(window.XMLHttpRequest.prototype[fnName]);
}
if (window.X... | tmthrgd/pagespeed-libraries-cdnjs | packages/danialfarid-angular-file-upload/3.3.0/angular-file-upload-all.js | JavaScript | mit | 33,702 |
YUI.add('dd-drop', function(Y) {
/**
* Provides the ability to create a Drop Target.
* @module dd
* @submodule dd-drop
*/
/**
* Provides the ability to create a Drop Target.
* @class Drop
* @extends Base
* @constructor
* @namespace DD
*/
var NODE = '... | danut007ro/cdnjs | ajax/libs/yui/3.2.0/dd/dd-drop.js | JavaScript | mit | 18,181 |
/*!
* Backbone.Marionette, v1.0.0-beta3
* Copyright (c)2012 Derick Bailey, Muted Solutions, LLC.
* Distributed under MIT license
* http://github.com/marionettejs/backbone.marionette
*/
/*!
* Includes Wreqr
* https://github.com/marionettejs/backbone.wreqr/
* Includes EventBinder
* https://github.com/marionettejs... | eladmoshe/storm-example | vendor/marionette/backbone.marionette.js | JavaScript | mit | 51,192 |
"use strict";
exports.__esModule = true;
exports.matchesPattern = matchesPattern;
exports.has = has;
exports.isnt = isnt;
exports.equals = equals;
exports.isNodeType = isNodeType;
exports.canHaveVariableDeclarationOrExpression = canHaveVariableDeclarationOrExpression;
exports.canSwapBetweenExpressionAndStatement = can... | yuyang545262477/Resume | 项目三jQueryMobile/node_modules/babel-core/lib/traversal/path/introspection.js | JavaScript | mit | 11,416 |
'use strict'
const val = require('./val')
const valUpdate = val.update
const valCreate = val.create
const simpleUpdate = val.simpleUpdate
const remove = require('./remove')
const composite = require('./composite')
module.exports = function struct (key, target, subs, update, tree, treeKey, stamp, self, force) {
var c... | vigour-io/state | lib/subscribe/struct.js | JavaScript | isc | 1,384 |
import { t, localizer } from '../../core/localizer';
import { localize } from './helper';
import { presetManager } from '../../presets';
import { prefs } from '../../core/preferences';
import { fileFetcher } from '../../core/file_fetcher';
import { coreGraph } from '../../core/graph';
import { modeBrowse } from '../..... | morray/iD | modules/ui/intro/intro.js | JavaScript | isc | 6,823 |
import mod123 from './mod123';
var value=mod123+1;
export default value;
| MirekSz/webpack-es6-ts | app/mods/mod124.js | JavaScript | isc | 73 |
var login = {
pokemon = "PutYourTokenHere";
}
module.exports = login;
| EspritOrgue/PokeBot | login.template.js | JavaScript | isc | 73 |
// Copyright (c) 2016, David M. Lee, II
require('babel-polyfill');
require('babel-register')({
retainLines: typeof v8debug !== 'undefined',
});
require('./src/cli');
| building5/utf8mb4-converter | server.js | JavaScript | isc | 168 |
const Either = require('data.either')
const parseCommentRenderer = require('./parse-comment-renderer')
const traverse = require('./utils/traverse-array')
const { cheerioFindAll } = require('./utils/cheerio-utils')
const parseReplies = $replies =>
cheerioFindAll($replies, '.comment-renderer').chain($commentRenderer... | philbot9/youtube-comments-task | src/lib/parse-replies.js | JavaScript | isc | 425 |
import * as mat3 from '../../../gl-matrix/esm/mat3.js'
export default class Matrix3 extends Float32Array {
constructor(array = [1, 0, 0, 0, 1, 0, 0, 0, 1]) {
super(array)
return this
}
set x(value) {
this[6] = value
}
get x() {
return this[6]
}
set y(value) {
this[7] = value
}
... | damienmortini/dlib | packages/core/math/Matrix3.js | JavaScript | isc | 1,712 |
import Vue from 'vue'
import FacebookButton from '~/components/FacebookButton'
import TwitterButton from '~/components/TwitterButton'
import Modal from '~/components/Modal'
import Disclaimer from '~/components/Disclaimer'
import PageFooter from '~/components/PageFooter'
import DonateButton from '~/components/DonateButt... | fightforthefuture/battleforthenet | plugins/components.js | JavaScript | isc | 518 |
import a from './a';
import other from './other';
export default [a, other];
| mzgoddard/hard-source-webpack-plugin | tests/fixtures/base-change-es2015-export-order-module/index.js | JavaScript | isc | 77 |
describe('iD.behaviorLasso', function () {
var context, lasso;
beforeEach(function () {
context = iD.coreContext().assetPath('../dist/').init();
d3.select(document.createElement('div'))
.attr('class', 'main-map')
.call(context.map());
lasso = iD.behaviorLasso(con... | openstreetmap/iD | test/spec/behavior/lasso.js | JavaScript | isc | 522 |
/** @license ISC License (c) copyright 2016 original and current authors */
/** @author Ian Hofmann-Hicks (evil) */
const compose = require('../core/compose')
const curry = require('../core/curry')
const isFunction = require('../core/isFunction')
// contramap : Functor f => (b -> a) -> f b -> f a
function contramap(f... | rstegg/crocks | src/pointfree/contramap.js | JavaScript | isc | 725 |
import template from './me.html';
import styles from './me.scss';
export default {
template,
bindings: {
myname: '<',
userData: '<'
},
controller
};
function controller() {
this.styles = styles;
this.activityLevels = [
{desc: 'None', value: 1},
{desc: 'Ave... | FoodDudes/WikiDiet | app/src/components/me/me.js | JavaScript | isc | 3,073 |
var previous_method = _.isApi();
_.isApi = function isApi() {
return true;
};
var api_server = new Test_ApiServer(function handler(request, callback) {
Logger.errorAndExit(`
API should not recursively perform API calls
`);
});
function handler(error, results) {
if (error) {
return void Logger.errorAndExit(e... | burninggarden/burninggarden | test/integration/validator/account/username.js | JavaScript | isc | 821 |
const config = require('./config');
const sqlite3 = require('sqlite3').verbose();
const sqliteDB = new sqlite3.Database(config.database);
module.exports = {
dbGetAll : function(sql, parameters){
return new Promise((resolve, reject) => {
sqliteDB.all(sql, parameters, (err, rows) => {
... | lewiswalsh/lwLog | _db_sqlite.js | JavaScript | isc | 1,989 |
version https://git-lfs.github.com/spec/v1
oid sha256:afb0d16c5aa4e99452be348057be14cf182ba53251d9cd0bd096274f99b442f0
size 29432
| yogeshsaroya/new-cdnjs | ajax/libs/shepherd/0.6.14/shepherd.min.js | JavaScript | mit | 130 |
// i truly apologize for this:
// the dirtiest multipart parser ever
// (c) Copyright 2011, Christopher Jeffrey (//github.com/chjj) (MIT Licensed)
module.exports = function evilpart(type, body) {
var parts = {}, key, part;
type = (type || '').match(/boundary=([^;]+)/);
if (!type || !body) return parts;
key... | chjj/evilpart | evilpart.js | JavaScript | mit | 1,390 |
const EventEmitter = require('events');
const emitterProxy = require('../lib/ee-proxy');
const user = new EventEmitter();
user.once('disconnect', () => console.log('User disconnected'));
class Game extends EventEmitter {
constructor(user) {
super();
this._user = emitterProxy(user);
this._u... | Jokero/events-cleanup | examples/index.js | JavaScript | mit | 1,025 |
/**
* Sort Stack
*
* Write a program to sort a stack such that the smallest items are on the top.
* You can use an additional temporary stack, but you may not copy the elements into any other data structure
* (such as an array). The stack supports the following operations: push(), pop(), peek() and isEmpty()
*
*... | pbodalia/algorithms-js | src/exercises/cracking_the_coding_interview/stacks_queues/SortStack.js | JavaScript | mit | 1,681 |
// check that the userId specified owns the documents
ownsDocument = function(userId, doc) {
return doc && doc.userId === userId;
}
memberInProject = function(userId, pm, projectUsers) {
return (_.contains(projectUsers, userId) || userId == pm);
} | kchen17/pm-tool-tmp | lib/permissions.js | JavaScript | mit | 251 |
// Boiler plate code for adding stage
// Declare state vars only used in this state
var state_var_1;
var state_var_2;
// Change boilerplate to whatever name
demo.boilerplate = function(){};
demo.boilerplate.prototype = {
preload: function(){
// Always include this line
loadImages();
... | MasahiroWard/MVPgamedev | Game/state_boilerplate.js | JavaScript | mit | 5,570 |
define([
'dojo/_base/declare',
'dijit/_WidgetBase',
'dijit/_TemplatedMixin',
'dijit/_WidgetsInTemplateMixin',
'esri/toolbars/draw',
'esri/tasks/query',
'esri/tasks/GeometryService',
'dojo/_base/lang',
'dojo/on',
'dojo/dom-style',
'dojo/aspect',
'dojo/topic',
'dojo/ke... | fileunderjeff/cmv-app | viewer/js/widgets/Search.js | JavaScript | mit | 22,470 |
var isInit = false, log, sanitize;
/* Merge Objects
* Combine two object's attributes giving priority
* to the first object's (obj1) attribute values.
*/
function mergeObjects(obj1, obj2) {
for(var key in obj2) {
if(obj1[key] === undefined)
obj1[key] = obj2[key];
}
return obj1;
}
var lib = {
... | ssmereka/quickie-js | server/libs/model.js | JavaScript | mit | 5,184 |
var month_names = ['January', 'Febuary', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
/***
* Base animal class. All animals are descended from this.
***/
Animal = function(type) {
this.type = type;
this._dob = new Date();
this.dob = function(){
return th... | benopotamus/vegeworld | js/world.js | JavaScript | mit | 3,871 |
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79-4-4V5c0-1.38 1.12-2.5 2.5-2.5s2.5 1.12 2.5 2.5v10.5c0 .55-.45 1-1 1s-1-.45-1-1V6H10v9.5c0 1.38 1.12 2.5 2.5 2.5s2.5-1.12 2.5-2.5V5c0-2.21-1.79-4-4-4S7 2.79 7 ... | cherniavskii/material-ui | packages/material-ui-icons/src/AttachFile.js | JavaScript | mit | 401 |
/**
* koa服务入口文件
*/
const Koa=require('koa')
const router=require('koa-router')()
const bodyParser=require('koa-bodyparser')
const path=require('path')
const static=require('koa-static')
//创建Koa对象
const app=new Koa()
router.get('/', async (ctx, next)=>{
let url=ctx.url
let request_query=ctx.request.query
let req... | leeyu0329/koabon | koastatic/app.js | JavaScript | mit | 1,449 |
/**
* Just like `relp_basic.js` but this one is for the docker example
*/
addInputPlugin('relp', { host: '0.0.0.0', port: 5514 })
addOutputPlugin('stdout')
| nbrownus/streamstash | examples/relp_container.js | JavaScript | mit | 159 |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon([/*#__PURE__*/_jsx("path", {
d: "M6.41 6 5 7.41 9.58 12 5 16.59 6.41 18l6-6z"
}, "0"), /*#__PURE__*/_jsx("path", {
d: "m13 6-1.41 1.41L16.17 12l-4.58 4.59L13 18l6-6z"
}, "1")], 'KeyboardD... | oliviertassinari/material-ui | packages/mui-icons-material/lib/esm/KeyboardDoubleArrowRight.js | JavaScript | mit | 338 |
"use strict";
var language = require("eberon/eberon_grammar.js").language;
var nodejs = require("nodejs.js");
var options = {
"--include": "includeDirs",
"--out-dir": "outDir",
"--import-dir": "importDir",
"--timing": "timing"
};
function parseOption(a, result){
for(var o in options){
var... | vladfolts/oberonjs | src/oc_nodejs.js | JavaScript | mit | 2,048 |
// LICENSE : MIT
"use strict";
const React = require("react");
const PropTypes = require("prop-types");
import SVGIcon from "../../uikit/SVGIcon/SVGIcon";
import Color from "../../../js/domain/value/Color";
export default class IconPalette extends React.Component {
render() {
/**
* @type {Color}
... | almin/almin | examples/svg-feeling/src/component/project/IconPalette/IconPalette.js | JavaScript | mit | 905 |
'use strict';
var chai = require('chai');
var expect = chai.expect;
var assert = chai.assert;
var chaihttp = require('chai-http');
let port = process.env.PORT || 3000;
chai.use(chaihttp);
require('../server.js');
// Tests that make sure server can load basic HTML pages
describe('Test that server can load... | mb4ms/event-site | tests/basic_routes_test.js | JavaScript | mit | 2,723 |
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { PropTypes, Component } from 'react';
import styles from './ShopPage.css';
import withStyles from '../../decorators/withStyles';
import BooksList from '../BooksList';
import http from '../../core/HttpClient';
@withStyles(styles)
c... | charesbast/react | src/components/PageShop/ShopPage.js | JavaScript | mit | 1,327 |
'use strict'
function checkStatus(response) {
if (response.status >= 200 && response.status < 300) {
return response
}
else {
let error = new Error(response.statusText)
error.response = response
throw error
}
}
module.exports = checkStatus
| capejs/capejs | lib/cape/mixins/check_status.js | JavaScript | mit | 266 |
import React from 'react'
import LessonNavigator from './LessonNavigator'
import PrepositiondPanel from '../dictionary/prepositiond/PrepositiondPanel'
function Prepositiond(props) {
const style = {
border: '1px solid black',
margin: '5px'
}
const q = props.quiz
const s:Object = prop... | bostontrader/senmaker | src/views/syllabus/Prepositiond.js | JavaScript | mit | 2,159 |
/*
======================================
Custom dashboard telemetry data filter
======================================
*/
// This filter is used to change telemetry data
// before it is displayed on the dashboard.
// For example, you may convert km/h to mph, kilograms to tons, etc.
// "data" object i... | Phil0499/ets2-mobile-route-advisor | dashboard.js | JavaScript | mit | 13,360 |
var util = require("util");
var choreography = require("temboo/core/choreography");
/*
DeleteRegionOperation
Deletes the specified operation within a region.
*/
var DeleteRegionOperation = function(session) {
/*
Create a new instance of the DeleteRegionOperation Choreo. A TembooSession object, ... | nikmeiser/omphaloskepsis | node_modules/temboo/Library/Google/ComputeEngine/RegionOperations.js | JavaScript | mit | 16,483 |