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 |
|---|---|---|---|---|---|
define([
'./addExtensionsRequired',
'./addToArray',
'./ForEach',
'./getAccessorByteStride',
'../../Core/Cartesian3',
'../../Core/Math',
'../../Core/clone',
'../../Core/defaultValue',
'../../Core/defined',
'../../Core/Quaternion',
... | EnquistLab/ffdm-frontend | public/assets/images/Workers/ThirdParty/GltfPipeline/updateVersion.js | JavaScript | apache-2.0 | 36,201 |
goog.module('javascript.protobuf.conformance');
const ConformanceRequest = goog.require('proto.conformance.ConformanceRequest');
const ConformanceResponse = goog.require('proto.conformance.ConformanceResponse');
const TestAllTypesProto2 = goog.require('proto.conformance.TestAllTypesProto2');
const TestAllTypesProto3 =... | nwjs/chromium.src | third_party/protobuf/js/experimental/runtime/kernel/conformance/conformance_testee.js | JavaScript | bsd-3-clause | 3,602 |
/** Messages for Sinhala (සිංහල)
* Exported from translatewiki.net
*
* Translators:
* - Singhalawap
*/
var I18n = {
on_leave_page: "ඔබගේ වෙනස්කිරීම් අහිමිවනු ඇත"
};
| railsfactory-sriman/knowledgeBase | public/javascripts/i18n/si.js | JavaScript | agpl-3.0 | 235 |
'use strict';
var utils = require('./utils');
var normalizeHeaderName = require('./helpers/normalizeHeaderName');
var PROTECTION_PREFIX = /^\)\]\}',?\n/;
var DEFAULT_CONTENT_TYPE = {
'Content-Type': 'application/x-www-form-urlencoded'
};
function setContentTypeIfUnset(headers, value) {
if (!utils.isUndefined(hea... | MichaelTsao/yanpei | web/js/node_modules/leancloud-realtime/node_modules/axios/lib/defaults.js | JavaScript | bsd-3-clause | 1,867 |
module.exports = require('./lib/rework'); | atomify/atomify-css | test/fixtures/css/node_modules/rework-clone/node_modules/rework/index.js | JavaScript | mit | 42 |
import { __extends } from "tslib";
/**
* ============================================================================
* IMPORTS
* ============================================================================
* @hidden
*/
import { dataLoader } from "./DataLoader";
import { JSONParser } from "./JSONParser";
... | cdnjs/cdnjs | ajax/libs/amcharts4/4.10.9/.internal/core/data/DataSource.js | JavaScript | mit | 20,447 |
/// Copyright (c) 2012 Ecma International. All rights reserved.
/**
* @path ch15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-93-1.js
* @description Object.defineProperties will update [[Value]] attribute of named data property 'P' successfully when [[Configurable]] attribute is true and [[Writable]] attribute is false but no... | Oceanswave/NiL.JS | Tests/tests/sputnik/ch15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-93-1.js | JavaScript | bsd-3-clause | 1,285 |
/// Copyright (c) 2012 Ecma International. All rights reserved.
/**
* @path ch15/15.4/15.4.4/15.4.4.17/15.4.4.17-7-c-ii-10.js
* @description Array.prototype.some - callbackfn is called with 1 formal parameter
*/
function testcase() {
function callbackfn(val) {
return val > 10;
}
... | Oceanswave/NiL.JS | Tests/tests/sputnik/ch15/15.4/15.4.4/15.4.4.17/15.4.4.17-7-c-ii-10.js | JavaScript | bsd-3-clause | 388 |
/// Copyright (c) 2012 Ecma International. All rights reserved.
/**
* @path ch10/10.4/10.4.3/10.4.3-1-49gs.js
* @description Strict - checking 'this' from a global scope (FunctionExpression with a strict directive prologue defined within a FunctionExpression)
* @noStrict
*/
var f1 = function () {
var f = fun... | Oceanswave/NiL.JS | Tests/tests/sputnik/ch10/10.4/10.4.3/10.4.3-1-49gs.js | JavaScript | bsd-3-clause | 506 |
/// Copyright (c) 2012 Ecma International. All rights reserved.
/**
* @path ch15/15.4/15.4.4/15.4.4.19/15.4.4.19-8-b-16.js
* @description Array.prototype.map - decreasing length of array does not delete non-configurable properties
*/
function testcase() {
function callbackfn(val, idx, obj) {
... | Oceanswave/NiL.JS | Tests/tests/sputnik/ch15/15.4/15.4.4/15.4.4.19/15.4.4.19-8-b-16.js | JavaScript | bsd-3-clause | 1,006 |
define([
'css!theme/liveblog',
'tmpl!theme/container',
'tmpl!theme/item/base',
'plugins/wrappup-toggle',
'plugins/scroll-pagination',
'plugins/permanent-link',
'plugins/user-comments'
], function(){
}); | vladnicoara/SDLive-Blog | plugins/livedesk-embed/gui-themes/themes/tageswoche.min.js | JavaScript | agpl-3.0 | 209 |
const url_base = "/permissions-policy/experimental-features/resources/";
window.messageResponseCallback = null;
function setFeatureState(iframe, feature, origins) {
iframe.setAttribute("allow", `${feature} ${origins};`);
}
// Returns a promise which is resolved when the <iframe> is navigated to |url|
// and "load... | chromium/chromium | third_party/blink/web_tests/external/wpt/permissions-policy/experimental-features/resources/common.js | JavaScript | bsd-3-clause | 3,063 |
var assert = require('assert');
var R = require('..');
describe('add', function() {
it('adds together two numbers', function() {
assert.strictEqual(R.add(3, 7), 10);
});
it('is curried', function() {
var incr = R.add(1);
assert.strictEqual(incr(42), 43);
});
});
| kairyan/ramda | test/add.js | JavaScript | mit | 287 |
var URL = require("../url2");
var tests = [
{
source: "",
target: "",
relative: ""
},
{
source: "foo/bar/",
target: "foo/bar/",
relative: ""
},
{
source: "foo/bar/baz",
target: "foo/bar/",
relative: "./"
},
{
... | AlexanderDolgan/sputnik | wp-content/themes/node_modules/gulp.spritesmith/node_modules/url2/test/url2-spec.js | JavaScript | gpl-2.0 | 2,582 |
import { Mongo } from "meteor/mongo";
/**
* Client side collections
*/
export const Countries = new Mongo.Collection(null);
| deetail/kimchi4u | client/collections/countries.js | JavaScript | gpl-3.0 | 128 |
/*
* Planck.js v0.1.34
*
* Copyright (c) 2016-2017 Ali Shakiba http://shakiba.me/planck.js
* Copyright (c) 2006-2013 Erin Catto http://www.gphysics.com
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from... | PeterDaveHello/jsdelivr | files/planck/0.1.34/planck-with-testbed.js | JavaScript | mit | 464,606 |
module.exports = function isString (value) {
return Object.prototype.toString.call(value) === '[object String]'
}
| chrisdavidmills/express-local-library | node_modules/helmet-csp/lib/is-string.js | JavaScript | mit | 116 |
// Generated by CoffeeScript 1.4.0
(function() {
var RoomIO;
RoomIO = require('./room').RoomIO;
exports.RequestIO = (function() {
function RequestIO(socket, request, io) {
this.socket = socket;
this.request = request;
this.manager = io;
}
RequestIO.prototype.broadcast = function(... | mekinney/transparica | webapp/node_modules/express.io/compiled/request.js | JavaScript | gpl-2.0 | 1,285 |
// Inspired from https://github.com/tsi/inlineDisqussions
(function () {
'use strict';
var website = openerp.website,
qweb = openerp.qweb;
website.blog_discussion = openerp.Class.extend({
init: function(options) {
var self = this ;
self.discus_identifier;
... | jjscarafia/odoo | addons/website_blog/static/src/js/website_blog.inline.discussion.js | JavaScript | agpl-3.0 | 9,713 |
/* @flow */
function a(x: {[key: string]: ?string}, y: string): string {
if (x[y]) {
return x[y];
}
return "";
}
function b(x: {y: {[key: string]: ?string}}, z: string): string {
if (x.y[z]) {
return x.y[z];
}
return "";
}
function c(x: {[key: string]: ?string}, y: {z: string}): string {
if (x[... | JohnyDays/flow | tests/refinements/property.js | JavaScript | bsd-3-clause | 1,303 |
//##################################################################################################################
// #TOOLBAR#
/* global CMS */
(function ($) {
'use strict';
// CMS.$ will be passed for $
$(document).ready(function () {
/*!
* Toolbar
* Handles all features relat... | josjevv/django-cms | cms/static/cms/js/modules/cms.toolbar.js | JavaScript | bsd-3-clause | 22,476 |
import foo from "foo";
import {default as foo2} from "foo";
| hawkrives/6to5 | test/fixtures/transformation/es6-modules-umd/imports-default/actual.js | JavaScript | mit | 60 |
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("react-onclickoutside"), require("moment"));
else if(typeof define === 'function' && define.amd)
define(["react", "react-onclickoutside", "mo... | tholu/cdnjs | ajax/libs/react-datepicker/0.59.0/react-datepicker.js | JavaScript | mit | 229,566 |
function getElements(className) {
return Array.from(document.getElementsByClassName(className));
}
window.onload = function() {
// Force a reflow before any changes.
document.body.clientWidth;
getElements('remove').forEach(function(e) {
e.remove();
});
getElements('remove-after').forEach(function(e) {
... | nwjs/chromium.src | third_party/blink/web_tests/external/wpt/css/css-ruby/support/ruby-dynamic-removal.js | JavaScript | bsd-3-clause | 374 |
/**
* @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
'use strict';
( function() {
var template = '<img alt="" src="" />',
templateBlock = new CKEDITOR.template(
'<figure class="{captionedClass}">' +
... | quepasso/dashboard | web/bundles/ivoryckeditor/plugins/image2/plugin.js | JavaScript | mit | 58,206 |
/**
* Modules in this bundle
* @license
*
* opentype.js:
* license: MIT (http://opensource.org/licenses/MIT)
* author: Frederik De Bleser <frederik@debleser.be>
* version: 0.6.7
*
* tiny-inflate:
* license: MIT (http://opensource.org/licenses/MIT)
* author: Devon Govett <devongovett@gmail.com>
* ... | joeyparrish/cdnjs | ajax/libs/opentype.js/0.6.7/opentype.js | JavaScript | mit | 295,992 |
import { onBlur } from "../display/focus"
import { setGuttersForLineNumbers, updateGutters } from "../display/gutters"
import { alignHorizontally } from "../display/line_numbers"
import { loadMode, resetModeState } from "../display/mode_state"
import { initScrollbars, updateScrollbars } from "../display/scrollbars"
imp... | AfrikaBurn/Main | web/libraries/codemirror/src/edit/options.js | JavaScript | gpl-2.0 | 6,874 |
/**
* @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
/**
* @fileOverview Defines the {@link CKEDITOR.lang} object, for the
* Serbian (Cyrillic) language.
*/
/**#@+
@type String
@example
*/
/**
* Cont... | noskill/Firesoft | src/main/webapp/ckeditor/lang/sr.js | JavaScript | gpl-3.0 | 3,935 |
/*
* DarkTooltip v0.4.0
* Simple customizable tooltip with confirm option and 3d effects
* (c)2014 Rubén Torres - rubentdlh@gmail.com
* Released under the MIT license
*/
(function($) {
function DarkTooltip(element, options){
this.bearer = element;
this.options = options;
this.hideEvent;
this.mouseOverMo... | gtison/kf | src/main/resources/static/js/jquery.darktooltip.js | JavaScript | apache-2.0 | 6,675 |
module.exports = function(client, test) {
test.ok(typeof client == 'object');
this.testPageAction = function() {
return this;
};
}; | miguelangel6/nightwatchbamboo | tests/extra/pageobjects/SimplePageFn.js | JavaScript | mit | 142 |
// Copyright JS Foundation and other contributors, http://js.foundation
//
// 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 r... | slaff/jerryscript | tests/jerry-test-suite/11/11.07/11.07.02/11.07.02-003.js | JavaScript | apache-2.0 | 674 |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let PlacesRvHookup = (props) => (
<SvgIcon {...props}>
<path d="M20 17v-6c0-1.1-.9-2-2-2H7V7l-3 3 3 3v-2h4v3H4v3c0 1.1.9 2 2 2h2c0 1.66 1.34 3 3 3s3-1.34 3-3h8v-2h-2zm-9 3c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1... | ichiohta/material-ui | src/svg-icons/places/rv-hookup.js | JavaScript | mit | 534 |
/**
* @abstract
* @class Ext.chart.series.Cartesian
* @extends Ext.chart.series.Series
*
* Common base class for series implementations which plot values using x/y coordinates.
*
* @constructor
*/
Ext.define('Ext.chart.series.Cartesian', {
extend: 'Ext.chart.series.Series',
config: {
/**
... | DawidMyslak/native-vs-html5_android-performance | www/TakePhoto/touch/src/chart/series/Cartesian.js | JavaScript | mit | 3,929 |
'use strict';
var grunt = require('grunt');
exports.concat_sourcemap = {
setUp: function(done) {
// setup here if necessary
done();
},
default_options: function(test) {
test.expect(2);
var actual = grunt.file.read('tmp/default_options.js');
var expected = grunt.file.read('test/expected/defa... | alexsmander/alexmattorr | wp-content/themes/portfolio/node_modules/grunt-concat-sourcemap/test/concat_sourcemap_test.js | JavaScript | gpl-2.0 | 5,041 |
// Copyright 2012 Google Inc. 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 required by applicabl... | esacosta/u-mooc | edu-courses/assets/js/activity-1.4.js | JavaScript | apache-2.0 | 3,756 |
//// [noImplicitReturnsWithoutReturnExpression.ts]
function isMissingReturnExpression(): number {
return;
}
function isMissingReturnExpression2(): any {
return;
}
function isMissingReturnExpression3(): number|void {
return;
}
function isMissingReturnExpression4(): void {
return;
}
function isMissin... | plantain-00/TypeScript | tests/baselines/reference/noImplicitReturnsWithoutReturnExpression.js | JavaScript | apache-2.0 | 820 |
/**
* @author TristanVALCKE / https://github.com/Itee
*/
/* global QUnit */
import { PointLightHelper } from '../../../../src/helpers/PointLightHelper';
export default QUnit.module( 'Helpers', () => {
QUnit.module( 'PointLightHelper', () => {
// INHERITANCE
QUnit.todo( "Extending", ( assert ) => {
assert... | Aldrien-/three.js | test/unit/src/helpers/PointLightHelper.tests.js | JavaScript | mit | 745 |
'use strict';
var fs = require('fs');
var path = require('path');
var readdirp = require('readdirp');
var handlebars = require('handlebars');
var async = require('./async');
/**
* Regex pattern for layout directive. {{!< layout }}
*/
var layoutPattern = /{{!<\s+([A-Za-z0-9\._\-\/]+)\s*}}/;
/**
* Constructor
*/
... | vietpn/ghost-nodejs | node_modules/express-hbs/lib/hbs.js | JavaScript | mit | 17,800 |
var baz = "baz";
export default baz;
| EliteScientist/webpack | test/statsCases/import-context-filter/templates/baz.noimport.js | JavaScript | mit | 38 |
define(
[
"js/views/baseview", "underscore", "js/models/metadata", "js/views/abstract_editor",
"js/models/uploads", "js/views/uploads",
"js/models/license", "js/views/license",
"js/views/video/transcripts/metadata_videolist",
"js/views/video/translations_editor"
],
functi... | MakeHer/edx-platform | cms/static/js/views/metadata.js | JavaScript | agpl-3.0 | 21,517 |
/**
* Copyright (c) 2016 hustcc
* License: MIT
* https://github.com/hustcc/timeago.js
**/
/* jshint expr: true */
!function (root, factory) {
if (typeof module === 'object' && module.exports)
module.exports = factory(root);
else
root.timeago = factory(root);
}(typeof window !== 'undefined' ? w... | froala/cdnjs | ajax/libs/timeago.js/2.0.0/timeago.js | JavaScript | mit | 8,824 |
import { Subscriber } from '../Subscriber';
import { tryCatch } from '../util/tryCatch';
import { errorObject } from '../util/errorObject';
/**
* Compares all values of two observables in sequence using an optional comparor function
* and returns an observable of a single boolean value representing whether or not the... | rospilot/rospilot | share/web_assets/nodejs_deps/node_modules/rxjs/_esm2015/operators/sequenceEqual.js | JavaScript | apache-2.0 | 4,896 |
//
// Copyright (c) Microsoft and contributors. 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 requi... | Nepomuceno/azure-xplat-cli | test/hdinsight/unit-list-command.js | JavaScript | apache-2.0 | 2,528 |
/* Copyright 2012 Mozilla Foundation
*
* 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 applicable law or agreed... | sreym/cdnjs | ajax/libs/pdf.js/1.3.177/pdf.js | JavaScript | mit | 313,996 |
var FormData = require('form-data');
function form(obj) {
var form = new FormData();
if (obj) {
Object.keys(obj).forEach(function (name) {
form.append(name, obj[name]);
});
}
return form;
}
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = form;... | carmine/northshore | ui/node_modules/popsicle/dist/form.js | JavaScript | apache-2.0 | 353 |
if (!self.GLOBAL || self.GLOBAL.isWindow()) {
test(() => {
assert_equals(document.title, "foo");
}, '<title> exists');
test(() => {
assert_equals(document.querySelectorAll("meta[name=timeout][content=long]").length, 1);
}, '<meta name=timeout> exists');
}
scripts.push('expect-title-meta.js');
| scheib/chromium | third_party/blink/web_tests/external/wpt/infrastructure/server/resources/expect-title-meta.js | JavaScript | bsd-3-clause | 312 |
/*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); y... | alejo8591/cyav | unidad-4/testappavantel3/plugins/org.apache.cordova.network-information/src/firefoxos/NetworkProxy.js | JavaScript | mit | 2,982 |
/*
* bag.js - js/css/other loader + kv storage
*
* Copyright 2013-2014 Vitaly Puzrin
* https://github.com/nodeca/bag.js
*
* License MIT
*/
/*global define*/
(function (root, factory) {
'use strict';
if (typeof define === 'function' && define.amd) {
define(factory);
} else if (typeof module === 'obje... | kiwi89/cdnjs | ajax/libs/bagjs/1.0.0/bag.js | JavaScript | mit | 24,235 |
/*!
* Cropper v0.4.0
* https://github.com/fengyuanchen/cropperjs
*
* Copyright (c) 2015 Fengyuan Chen
* Released under the MIT license
*
* Date: 2015-12-02T06:35:32.008Z
*/
(function (global, factory) {
if (typeof module === 'object' && typeof module.exports === 'object') {
module.exports = g... | redmunds/cdnjs | ajax/libs/cropperjs/0.4.0/cropper.js | JavaScript | mit | 83,381 |
var isIterateeCall = require('./isIterateeCall'),
rest = require('../rest');
/**
* Creates a function like `_.assign`.
*
* @private
* @param {Function} assigner The function to assign values.
* @returns {Function} Returns the new assigner function.
*/
function createAssigner(assigner) {
return rest(functio... | zverevalexei/bierman-topology | web/node_modules/bower/node_modules/lodash/internal/createAssigner.js | JavaScript | mit | 984 |
/// <reference path="../../typings/_custom.d.ts" />
/*
* TODO: ES5 for now until I make a webpack plugin for protractor
*/
describe('App', function() {
var subject;
var result;
beforeEach(function() {
browser.get('/');
});
afterEach(function() {
expect(subject).toEqual(result);
});
it('sh... | yanivefraim/angular2-webpack-starter | test/app/app.e2e.js | JavaScript | mit | 916 |
/**
* Copyright 2013 Facebook, 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 applicable law or agreed to ... | demns/todomvc-perf-comparison | todomvc/react/node_modules/reactify/node_modules/react-tools/node_modules/jstransform/visitors/__tests__/type-function-syntax-test.js | JavaScript | mit | 7,860 |
(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... | Piicksarn/cdnjs | ajax/libs/forerunnerdb/1.3.50/fdb-core+views.js | JavaScript | mit | 223,891 |
YUI.add("lang/datatype-date-format_zh-Hant-HK",function(a){a.Intl.add("datatype-date-format","zh-Hant-HK",{"a":["週日","週一","週二","週三","週四","週五","週六"],"A":["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],"b":["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],"B":["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月"... | Piicksarn/cdnjs | ajax/libs/yui/3.4.0pr2/datatype/lang/datatype-date_zh-Hant-HK.js | JavaScript | mit | 717 |
/**
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
/**
* Unobtrusive Form Validation library
*
* Inspired by: Chris Campbell <www.particletree.com>
*
* @package Joomla.Framework
* @subpackage ... | google-code/asianspecialroad | plugins/media/system/js/validate-jquery-uncompressed.js | JavaScript | gpl-2.0 | 5,696 |
(function (env) {
"use strict";
env.ddg_spice_bacon_ipsum = function(api_result){
if (!api_result || api_result.error) {
return Spice.failed('bacon_ipsum');
}
var pageContent = '';
for (var i in api_result) {
pageContent += "<p>" + api_result[i] + "</p>... | hshackathons/zeroclickinfo-spice | share/spice/bacon_ipsum/bacon_ipsum.js | JavaScript | apache-2.0 | 910 |
require('../lib/node_loader');
var AWS = require('../lib/core');
var Service = require('../lib/service');
var apiLoader = require('../lib/api_loader');
apiLoader.services['cloudsearchdomain'] = {};
AWS.CloudSearchDomain = Service.defineService('cloudsearchdomain', ['2013-01-01']);
require('../lib/services/cloudsearchd... | edeati/alexa-translink-skill-js | test/node_modules/aws-sdk/clients/cloudsearchdomain.js | JavaScript | apache-2.0 | 615 |
/**
* Listens for the app launching then creates the window
*
* @see http://developer.chrome.com/apps/app.runtime.html
* @see http://developer.chrome.com/apps/app.window.html
*/
chrome.app.runtime.onLaunched.addListener(function() {
chrome.app.window.create('index.html', {
id: "camCaptureID",
innerBounds:... | Jabqooo/chrome-app-samples | samples/camera-capture/background.js | JavaScript | apache-2.0 | 375 |
/**
* Copyright (C) 2011 Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distributed in the... | ajpi222/canvas-lms-hdi | public/javascripts/jquery.fancyplaceholder.js | JavaScript | agpl-3.0 | 2,861 |
if (require.register) {
var qs = require('querystring');
} else {
var qs = require('../')
, expect = require('expect.js');
}
var date = new Date(0);
var str_identities = {
'basics': [
{ str: 'foo=bar', obj: {'foo' : 'bar'}},
{ str: 'foo=%22bar%22', obj: {'foo' : '\"bar\"'}},
{ str: 'foo=', obj:... | gglinux/node.js | webChat/node_modules/qs/test/stringify.js | JavaScript | apache-2.0 | 3,198 |
// Copyright 2013 the V8 project authors. All rights reserved.
// Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions o... | victorzhao/miniblink49 | v8_4_5/test/webkit/fast/js/parser-syntax-check.js | JavaScript | gpl-3.0 | 13,137 |
/**
* bootbox.js v2.3.0
*
* The MIT License
*
* Copyright (C) 2011-2012 by Nick Payne <nick@kurai.co.uk>
*
* 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, includ... | tmthrgd/pagespeed-libraries-cdnjs | packages/bootbox.js/2.3.0/bootbox.min.js | JavaScript | mit | 6,055 |
#!/usr/bin/env node
var DocGenerator = require('../lib/utilities/doc-generator.js');
(new DocGenerator()).generate();
| waddedMeat/ember-proxy-example | test-app/node_modules/ember-cli/bin/generate-docs.js | JavaScript | mit | 119 |
/*! UIkit 2.13.1 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
(function(addon) {
var component;
if (jQuery && UIkit) {
component = addon(jQuery, UIkit);
}
if (typeof define == "function" && define.amd) {
define("uikit-notify", ["uikit"], function(){
retur... | AppConcur/islacart | sites/all/themes/marketplace/vendor/uikit/js/components/notify.js | JavaScript | gpl-2.0 | 4,965 |
/*!
* Bootstrap-select v1.7.0 (http://silviomoreto.github.io/bootstrap-select)
*
* Copyright 2013-2015 bootstrap-select
* Licensed under MIT (https://github.com/silviomoreto/bootstrap-select/blob/master/LICENSE)
*/
(function ($) {
$.fn.selectpicker.defaults = {
noneSelectedText: 'Nu a fost selectat nimic',
... | dominic/cdnjs | ajax/libs/bootstrap-select/1.7.0/js/i18n/defaults-ro_RO.js | JavaScript | mit | 597 |
// Utility functions
String.prototype.trim = function(){ return this.replace(/^\s+|\s+$/g, ''); };
function supportsHtmlStorage() {
try {
return 'localStorage' in window && window['localStorage'] !== null;
} catch (e) {
return false;
}
}
function get_text(el) {
ret = " ";
var length = el.childNodes.le... | sandbox-team/techtalk-portal | vendor/zenpen/js/utils.js | JavaScript | mit | 641 |
'use strict';
var NATIVE_ARRAY_BUFFER = require('../internals/array-buffer-native');
var DESCRIPTORS = require('../internals/descriptors');
var global = require('../internals/global');
var isObject = require('../internals/is-object');
var has = require('../internals/has');
var classof = require('../internals/classof');... | BigBoss424/portfolio | v8/development/node_modules/jimp/node_modules/core-js/internals/array-buffer-view-core.js | JavaScript | apache-2.0 | 6,017 |
/*
* Copyright (c) 2012 Adobe Systems Incorporated. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the ri... | resir014/brackets | src/project/SidebarView.js | JavaScript | mit | 10,278 |
export default function Home() {
return <div className="red-text">This text should be red.</div>
}
| flybayer/next.js | test/integration/scss-fixtures/webpack-error/pages/index.js | JavaScript | mit | 101 |
/* */
module.exports = { "default": require("core-js/library/fn/math/sign"), __esModule: true }; | pauldijou/outdated | test/basic/jspm_packages/npm/babel-runtime@5.8.9/core-js/math/sign.js | JavaScript | apache-2.0 | 97 |
function loadedScript() {
return "externalScript1";
}
| nwjs/chromium.src | third_party/blink/web_tests/external/wpt/svg/linking/scripted/testScripts/externalScript1.js | JavaScript | bsd-3-clause | 56 |
/**
* angular-strap
* @version v2.1.2 - 2014-10-19
* @link http://mgcrea.github.io/angular-strap
* @author Olivier Louvignes (olivier@mg-crea.com)
* @license MIT License, http://www.opensource.org/licenses/MIT
*/
'use strict';
angular.module('mgcrea.ngStrap.popover').run(['$templateCache', function($templateCach... | radhikabhanu/crowdsource-platform | staticfiles/bower_components/angular-strap/dist/modules/popover.tpl.js | JavaScript | mit | 553 |
module.exports = TapProducer
var Results = require("./tap-results")
, inherits = require("inherits")
, yamlish = require("yamlish")
TapProducer.encode = function (result, diag) {
var tp = new TapProducer(diag)
, out = ""
tp.on("data", function (c) { out += c })
if (Array.isArray(result)) {
result.fo... | joshdrink/app_swig | wp-content/themes/brew/node_modules/grunt-contrib-nodeunit/node_modules/nodeunit/node_modules/tap/lib/tap-producer.js | JavaScript | gpl-2.0 | 3,516 |
/**
* Resource drag and drop.
*
* @class M.course.dragdrop.resource
* @constructor
* @extends M.core.dragdrop
*/
var DRAGRESOURCE = function() {
DRAGRESOURCE.superclass.constructor.apply(this, arguments);
};
Y.extend(DRAGRESOURCE, M.core.dragdrop, {
initializer: function() {
// Set group for paren... | ernestovi/ups | moodle/mod/quiz/yui/src/dragdrop/js/resource.js | JavaScript | gpl-3.0 | 7,887 |
// Heartbeat options:
// heartbeatInterval: interval to send pings, in milliseconds.
// heartbeatTimeout: timeout to close the connection if a reply isn't
// received, in milliseconds.
// sendPing: function to call to send a ping on the connection.
// onTimeout: function to call to close the connection.
DD... | lawrenceAIO/meteor | packages/ddp-common/heartbeat.js | JavaScript | mit | 3,044 |
require('./angular-locale_nl-cw');
module.exports = 'ngLocale';
| DamascenoRafael/cos482-qualidade-de-software | www/src/main/webapp/bower_components/angular-i18n/nl-cw.js | JavaScript | mit | 64 |
require('./angular-locale_en-im');
module.exports = 'ngLocale';
| DamascenoRafael/cos482-qualidade-de-software | www/src/main/webapp/bower_components/angular-i18n/en-im.js | JavaScript | mit | 64 |
// This depends on tinytest, so it's a little weird to put it in
// test-helpers, but it'll do for now.
// Provides the testAsyncMulti helper, which creates an async test
// (using Tinytest.addAsync) that tracks parallel and sequential
// asynchronous calls. Specifically, the two features it provides
// are:
// 1) Ex... | jrudio/meteor | packages/test-helpers/async_multi.js | JavaScript | mit | 5,209 |
var assert = require('assert');
var Kareem = require('../');
describe('execPre', function() {
var hooks;
beforeEach(function() {
hooks = new Kareem();
});
it('handles errors with multiple pres', function(done) {
var execed = {};
hooks.pre('cook', function(done) {
execed.first = true;
... | ChrisChenSZ/code | 表单注册验证/node_modules/kareem/test/pre.test.js | JavaScript | apache-2.0 | 5,771 |
var s = `a
b
c`;
assert.equal(s, 'a\n b\n c');
| oleksandr-minakov/northshore | ui/node_modules/es6-templates/test/examples/multi-line.js | JavaScript | apache-2.0 | 61 |
var gulp = require('gulp');
var browserSync = require('browser-sync');
var sass = require('gulp-sass');
var reload = browserSync.reload;
var src = {
scss: 'app/scss/*.scss',
css: 'app/css',
html: 'app/*.html'
};
// Static Server + watching scss/html files
gulp.task('serve', ['sass'], f... | yuyang545262477/Resume | 项目二电商首页/node_modules/bs-recipes/recipes/gulp.sass/gulpfile.js | JavaScript | mit | 691 |
// Validate.js 0.1.1
// (c) 2013 Wrapp
// Validate.js may be freely distributed under the MIT license.
// For all details and documentation:
// http://validatejs.org/
(function(exports, module) {
"use strict";
// The main function that calls the validators specified by the constraints.
// The options are the fo... | Piicksarn/cdnjs | ajax/libs/validate.js/0.1.1/validate.js | JavaScript | mit | 12,865 |
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define([], factory);
else if(typeof exports === 'object')
exports["sourceMap"] = factory();
else
root["sou... | hellokidder/js-studying | 微信小程序/wxtest/node_modules/source-map/dist/source-map.js | JavaScript | mit | 101,940 |