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 |
|---|---|---|---|---|---|
'use strict';
/**@type {{[k: string]: ModdedFormatsData}} */
let BattleFormats = {
pokemon: {
inherit: true,
onValidateSet: function (set, format) {
if (!format || !this.getRuleTable(format).has('-illegal')) return;
let template = this.getTemplate(set.species);
let item = this.getItem(set.item);
if (i... | panpawn/Pokemon-Showdown | mods/gen4/rulesets.js | JavaScript | mit | 1,073 |
/**
* Copyright (c) 2014, 2016, Oracle and/or its affiliates.
* The Universal Permissive License (UPL), Version 1.0
*/
"use strict";
define(["ojs/ojcore","jquery","ojs/ojdatasource-common"],function(b){b.us=function(){this.id=null;this.depth=0;this.parent=null;this.children=[];this.qO=this.attr=this.title=null};b.us... | peppertech/OracleJET-Samples | DeviceInteractions/src/js/libs/oj/v2.0.1/min/ojjsontreedatasource.js | JavaScript | mit | 7,056 |
define(function(){
'use strict';
var AppConfig;
AppConfig = (function(){
var dataSources,
menuMapping;
// TODO make fluent api for resources and include menuMapping and data resource Mapping. Use _ to filter two objects each containing one of the two elements in order to provide... | idoychinov/Telerik_Academy_Homework | JS Applications/MyExamPrep/Chat/Scripts/Config/app-config.js | JavaScript | mit | 717 |
//if (MarkStart) {MarkStart('DifficultyRating');}
/*
* Difficulty Rating - 5e Encounter Calculator
* by Michael Greene (Volt Cruelerz)
*
*/
on('ready', () => {
const drname = 'Difficulty Rating';
// Initialize the state
const ConfigureState = () => {
const version = 1.03;
if (!state.Diffi... | shdwjk/roll20-api-scripts | DifficultyRating/1.03/DifficultyRating.js | JavaScript | mit | 19,093 |
var getPrototypeOf = require('../internals/object-get-prototype-of');
var setPrototypeOf = require('../internals/object-set-prototype-of');
var create = require('../internals/object-create');
var iterate = require('../internals/iterate');
var hide = require('../internals/hide');
var $AggregateError = function Aggregat... | pcclarke/civ-techs | node_modules/core-js/modules/esnext.aggregate-error.js | JavaScript | mit | 1,039 |
"use strict";
const { parse } = require("json5");
module.exports = function (filePath, content) {
try {
return parse(content);
} catch (error) {
error.message = `JSON5 Error in ${filePath}:\n${error.message}`;
throw error;
}
};
| prettier/prettier | src/utils/load-json5.js | JavaScript | mit | 248 |
module.exports={A:{A:{"2":"H D G E A B mB"},B:{"1":"C K f L N I J q"},C:{"1":"0 1 2 3 4 5 6 8 g h i j k l m n o p M r s t u v w x y z EB MB DB BB FB HB IB JB KB LB","2":"jB NB F O H D G E A B C K f L N I J P Q R S T U V W X Y Z a b c d e AB dB cB"},D:{"1":"0 1 2 3 4 5 6 8 i j k l m n o p M r s t u v w x y z EB MB DB BB... | jeffmcfadden/PiThermostat | node_modules/caniuse-lite/data/features/symbols.js | JavaScript | mit | 957 |
'use strict';
/**
* @ngdoc function
* @name flightNodeApp.Services:userProxy
* @description
* # userProxy
* Proxy service for working with user accounts
*/
angular.module('flightNodeApp')
.factory('userProxy', ['$http', '$log', 'authService', 'config', 'messenger',
function($http, $log, authService, ... | stephenfuqua/FlightNode.Demo | src/app/services/userProxy.js | JavaScript | mit | 7,663 |
/**
* @fileoverview client模式,样式处理
* @author liweitao
*/
'use strict';
module.exports = function ($, appConf, moduleConf, args) {
return function (mod, modulePath, appPath) {
return new Promise(function (resolve, reject) {
var through2 = require('through2');
var autoprefixer = require('autoprefixer'... | o2team/athena | lib/build/tasks/styles.js | JavaScript | mit | 4,494 |
module.exports = require('regenerate')().addRange(0x0, 0x1F).addRange(0x7F, 0x9F);
| Engineering-Robert/personal-website | plugins/gatsby-plugin-feed-custom/node_modules/regenerate-unicode-properties/General_Category/Control.js | JavaScript | mit | 83 |
export default function hasEmptyIntersection(objA, objB) {
if (!objA || !objB) {
return true;
}
const keysA = Object.keys(objA);
const keysB = Object.keys(objB);
if (keysA.length === 0 || keysB.length === 0) {
return true;
}
if (objA === objB) {
return false;
}
const objCombined = {...... | rt2zz/react-tunnel | src/utils/hasEmptyIntersection.js | JavaScript | mit | 486 |
// Copyright 2021 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Unicode property escapes for `Script=New_Tai_Lue`
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode ... | mathiasbynens/unicode-property-escapes-tests | output/generated/Script_-_New_Tai_Lue.js | JavaScript | mit | 1,622 |
'use strict';
const build = require('@glimmer/build');
const packageDist = require('@glimmer/build/lib/package-dist');
let buildOptions = {
external: ['@orbit/utils', '@orbit/core']
};
if (process.env.BROCCOLI_ENV === 'tests') {
buildOptions.vendorTrees = [
packageDist('@orbit/utils', { lang: 'es2017' }),
... | orbitjs/orbit-core | packages/@orbit/local-storage-bucket/Brocfile.js | JavaScript | mit | 453 |
/**
* Lo-Dash 2.4.1 (Custom Build) <http://lodash.com/>
* Build: `lodash modularize modern exports="amd" -o ./modern/`
* Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/>
* Based on Underscore.js 1.5.2 <http://underscorejs.org/LICENSE>
* Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Inv... | mikegibson/sentient | src/Cms/Resource/js/bower_components/scribe-plugin-keyboard-shortcuts/scribe-plugin-keyboard-shortcuts.js | JavaScript | mit | 47,784 |
var _ = require('lodash')
, utils = require('../../utils/general')
, log = require('../../utils/logger').logger
;
/*
* Handles an event from Github that indicates that a PR has been merged into one
* of the repositories. This could trigger a script to run locally in response,
* called a "push hook", which are... | brev/nupic.tools | webhooks/event-handlers/push.js | JavaScript | mit | 1,753 |
var async = require('async');
var describe = require('./describe');
var loopback = require('../../');
var ACL = loopback.ACL;
var Change = loopback.Change;
var PersistedModel = loopback.PersistedModel;
var RemoteObjects = require('strong-remoting');
module.exports = function defineModelTestsWithDataSource(options) {
... | aldarondo/holiwish | node_modules/loopback/test/util/model-tests.js | JavaScript | mit | 8,655 |
const DrawCard = require('../../drawcard.js');
class RaidingLongship extends DrawCard {
setupCardAbilities(ability) {
this.action({
title: 'Remove character\'s STR from challenge',
condition: () => this.controller.firstPlayer,
cost: ability.costs.kneelSelf(),
... | ystros/throneteki | server/game/cards/02.2-TRtW/RaidingLongship.js | JavaScript | mit | 1,026 |
var document = global.document;
function clamp(value, min, max) {
return Math.min(max, Math.max(value, min));
}
var Basemap = function(container, options) {
this.container = typeof container === 'string' ? document.getElementById(container) : container;
options = options || {};
this.container.classList.add(... | Elou44/Hyblab2016 | le_telegramme/html/lib/OSMBuildings/src/engines/Basemap/index.js | JavaScript | mit | 7,796 |
import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
import * as React from 'react';
import clsx from 'clsx';
import PropTypes from 'prop-types';
import { Transition } from 'react-transition-group';
import withSty... | cdnjs/cdnjs | ajax/libs/material-ui/4.9.9/es/Collapse/Collapse.js | JavaScript | mit | 7,356 |
( function () {
// https://wwwimages2.adobe.com/content/dam/acom/en/products/speedgrade/cc/pdfs/cube-lut-specification-1.0.pdf
class LUTCubeLoader extends THREE.Loader {
load( url, onLoad, onProgress, onError ) {
const loader = new THREE.FileLoader( this.manager );
loader.setPath( this.path );
loader.se... | WestLangley/three.js | examples/js/loaders/LUTCubeLoader.js | JavaScript | mit | 3,520 |
(function (window, $, undefined) {
'use strict';
var Ui = function StandardUI() {
var jsFileLocation = urlOfJsFile('standard.js');
this.name = 'standard-ui'; // for the settings
this.viewName = 'Standard UI'; // for the UI
this.polymerTemplateFile = jsFileLocation + '../standard-ui.html';
t... | chaudhryjunaid/openrov-cockpit | src/ui-plugins/standard/public/js/standard.js | JavaScript | mit | 579 |
'use strict';
angular.module('mean.default-theme').factory('DefaultTheme', [
function() {
return {
name: 'default-theme'
};
}
]);
| arawak-io/webapp | packages/custom/default-theme/public/services/defaultTheme.js | JavaScript | mit | 149 |
/**
* @module ngieIgnore.js
* @author Joe Groseclose <@benderTheCrime>
* @date 10/06/2015
*/
/**
* @desc Returns a directive, which can be exposed to any element in a routed
* template as an attribute.
*
* This directive is a utility for front end templates, which will prevent any
* template strings from acci... | angie-framework/angie | src/directives/ngie-ignore.js | JavaScript | mit | 1,212 |
"use strict";
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _objectWithoutPropertiesLoose2 = ... | cdnjs/cdnjs | ajax/libs/material-ui/5.0.0-alpha.26/node/Toolbar/Toolbar.js | JavaScript | mit | 4,531 |
( function ( $ ) {
'use strict';
var ksInScript = {
id: 'ks-inscript',
name: 'InScript',
description: 'InScript keyboard for Kashmiri language using Devanagari script',
date: '2013-02-09',
author: 'Parag Nemade',
license: 'GPLv3',
version: '1.0',
contextLength: 1,
maxKeyLength: 3,
patterns: [
... | 1ec5/jquery.ime | rules/ks/ks-inscript.js | JavaScript | gpl-2.0 | 2,312 |
/*
* Copyright (c) 2008-2014 The Open Source Geospatial Foundation
*
* Published under the BSD license.
* See https://github.com/geoext/geoext2/blob/master/license.txt for the full
* text of the license.
*/
/*
* @include OpenLayers/Util.js
* @requires GeoExt/Version.js
*/
/**
* The permalink provider.
*
*... | henriquespedro/Autarquia-Livre | vendor/geoext2/src/GeoExt/state/PermalinkProvider.js | JavaScript | gpl-2.0 | 3,856 |
//http://www.makeblock.cc/mbot/
'use strict';
goog.provide('Blockly.Arduino.mBot_1');
goog.require('Blockly.Arduino');
Blockly.Arduino.mbot_forward = function() {
var pindir1 = 7;
var pinpwm1 = 6;
var pindir2 = 4;
var pinpwm2 = 5;
var value_sens1 = true;
var value_vitesse1 = 255;
var value_sens2 = true;
var... | technologiescollege/Blockly-at-rduino_offline | wwwBlockly@rduino/generators/arduino/mbot_niv1.js | JavaScript | gpl-2.0 | 4,474 |
/**
* Module dependencies
*/
var _ = require('lodash');
var X_ISO_DATE = require('../X_ISO_DATE.constant');
/**
* Apply a(nother) `where` filter to `data`
*
* @param { Object[] } data
* @param { Object } where
* @return { Object[] }
*/
module.exports = function (data, where, schema) {
if( !data ) re... | seckinbostanci/seckinbostanci-blog | node_modules/waterline-criteria/lib/filters/where.js | JavaScript | gpl-3.0 | 9,829 |
/**
* @package omeka
* @subpackage neatline
* @copyright 2014 Rector and Board of Visitors, University of Virginia
* @license http://www.apache.org/licenses/LICENSE-2.0.html
*/
var NL = (function(NL) {
/**
* Assert the event aggregator was _not_ called with a given event.
*
* @param {Obj... | sgbalogh/peddler_clone5 | plugins/Neatline/tests/jasmine/assertions/spies.js | JavaScript | gpl-3.0 | 622 |
var view_1 = require("ui/core/view");
var dependency_observable_1 = require("ui/core/dependency-observable");
var proxy_1 = require("ui/core/proxy");
var color_1 = require("color");
var platform_1 = require("platform");
var AffectsLayout = platform_1.isAndroid ? dependency_observable_1.PropertyMetadataSettings.None : d... | ngydat/connect | platforms/android/src/main/assets/app/tns_modules/ui/search-bar/search-bar-common.js | JavaScript | gpl-3.0 | 2,809 |
erpnext.SerialNoBatchSelector = Class.extend({
init: function(opts) {
$.extend(this, opts);
// frm, item, warehouse_details, has_batch, oldest
let d = this.item;
// Don't show dialog if batch no or serial no already set
if(d && d.has_batch_no && !d.batch_no) {
this.has_batch = 1;
this.setup();
} el... | vishdha/erpnext | erpnext/public/js/utils/serial_no_batch_selector.js | JavaScript | gpl-3.0 | 8,927 |
/**
* Backbone-tastypie.js 0.2.0
* (c) 2011 Paul Uithol
*
* Backbone-tastypie may be freely distributed under the MIT license.
* Add or override Backbone.js functionality, for compatibility with django-tastypie.
* Depends on Backbone (and thus on Underscore as well): https://github.com/documentcloud/backbone.
*... | jersey99/remotepy | webserver/netlambda/static/backbone-tastypie.js | JavaScript | gpl-3.0 | 6,454 |
import { hash } from 'rsvp';
import { set } from '@ember/object';
import Route from '@ember/routing/route';
import DS from 'ember-data';
import { TABS } from 'vault/helpers/tabs-for-identity-show';
export default Route.extend({
model(params) {
let { section } = params;
let itemType = this.modelFor('vault.clu... | quixoten/vault | ui/app/routes/vault/cluster/access/identity/aliases/show.js | JavaScript | mpl-2.0 | 918 |
/**
* Disables display of console warn messages related to .native event bindings
*
* See also here https://github.com/vuejs/vue/issues/10939
* and here https://github.com/vuetifyjs/vuetify/issues/9999
*/
class IgnoreNativeBindingWarnMessagesPlugin {
install (Vue, options) {
const ignoreWarnMessage = 'The .n... | pmattmann/ecamp3 | frontend/src/plugins/ignoreNativeBindingWarnMessages.js | JavaScript | agpl-3.0 | 751 |
/*
YUI 3.11.0 (build d549e5c)
Copyright 2013 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add("lang/console_en",function(e){e.Intl.add("console","en",{title:"Log Console",pause:"Pause",clear:"Clear",collapse:"Collapse",expand:"Expand"})},"3.11.0");
| devmix/openjst | server/commons/war/src/main/webapp/ui/lib/yui/build/console/lang/console_en.js | JavaScript | agpl-3.0 | 308 |
OC.L10N.register(
"settings",
{
"Wrong password" : "Fjalëkalim i gabuar",
"No user supplied" : "S’u dha përdorues",
"Authentication error" : "Gabim mirëfilltësimi",
"Please provide an admin recovery password, otherwise all user data will be lost" : "Ju lutemi, jepni një fjalëkalim rikthimesh për... | bluelml/core | settings/l10n/sq.js | JavaScript | agpl-3.0 | 31,554 |
v.setCursorPosition(2,17);
v.type("}");
v.enter();
v.type("foo");
| hlamer/kate | tests/data/indent/ruby/hash9/input.js | JavaScript | lgpl-2.1 | 66 |
"use strict";
var _interopRequireDefault = require("babel-runtime/helpers/interop-require-default")["default"];
Object.defineProperty(exports, "__esModule", {
value: true
});
var _q = require("q");
var _q2 = _interopRequireDefault(_q);
var _negotiator = require("negotiator");
var _negotiator2 = _interopRequireD... | beni55/json-api | build/src/steps/http/content-negotiation/negotiate-content-type.js | JavaScript | lgpl-3.0 | 3,259 |
/*!
* ${copyright}
*/
sap.ui.define(['sap/f/semantic/SemanticButton'], function(SemanticButton) {
"use strict";
/**
* Constructor for a new <code>ShareInJamAction</code>.
* @param {string} [sId] ID for the new control, generated automatically if no ID is given
* @param {object} [mSettings] Custom initial setti... | SQCLabs/openui5 | src/sap.f/src/sap/f/semantic/ShareInJamAction.js | JavaScript | apache-2.0 | 1,040 |
/*
Copyright (c) 2004-2010, The Dojo Foundation All Rights Reserved.
Available via Academic Free License >= 2.1 OR the modified BSD license.
see: http://dojotoolkit.org/license for details
*/
if(!dojo._hasResource["dojox.image.FlickrBadge"]){ //_hasResource checks added by build. Do not use _hasResource dir... | ozoneplatform/owf-framework | web-app/js-lib/dojo-release-1.5.0/dojox/image/FlickrBadge.js | JavaScript | apache-2.0 | 3,084 |
import {
getCurrencyRates
} from 'test/fixtures/fixtures';
import {
setConfig,
addBidResponseHook,
currencySupportEnabled,
currencyRates
} from 'modules/currency';
import { createHook } from 'src/hook';
var assert = require('chai').assert;
var expect = require('chai').expect;
describe('currency', functio... | SpreeGorilla/Prebid.js | test/spec/modules/currency_spec.js | JavaScript | apache-2.0 | 8,221 |
/*
* Copyright (C) 2015 Stratio (http://stratio.com)
*
* 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 app... | Stratio/Sparta | web/src/scripts/factories/request-interceptor-factory.js | JavaScript | apache-2.0 | 1,539 |
// Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es5id: 15.9.5.44-0-1
description: Date.prototype.toJSON must exist as a function
---*/
var f = Date.prototype.toJSON;
assert.sameValue(typeof(f), "function", 'typeof(f)');
| m0ppers/arangodb | 3rdParty/V8/V8-5.0.71.39/test/test262/data/test/built-ins/Date/prototype/toJSON/15.9.5.44-0-1.js | JavaScript | apache-2.0 | 318 |
//// [tests/cases/compiler/exportAssignedNamespaceIsVisibleInDeclarationEmit.ts] ////
//// [thing.d.ts]
declare namespace Foo {
export interface Bar {}
export function f(): Bar;
}
export = Foo;
//// [index.ts]
import { f } from "./thing";
export const thing = f();
//// [index.js]
"use strict";
export... | kpreisser/TypeScript | tests/baselines/reference/exportAssignedNamespaceIsVisibleInDeclarationEmit.js | JavaScript | apache-2.0 | 512 |
(function() {
/**
* Arc constructor
* @constructor
* @augments Kinetic.Shape
* @param {Object} config
* @param {Number} config.angle in degrees
* @param {Number} config.innerRadius
* @param {Number} config.outerRadius
* @param {Boolean} [config.clockwise]
* @@shapeParams... | puyanLiu/LPYFramework | 前端练习/10canvas/文档/KineticJS-master/src/shapes/Arc.js | JavaScript | apache-2.0 | 3,141 |
/**
* Created with IntelliJ IDEA.
* User: Mateusz
* Date: 14.11.12
* Time: 20:21
*/
'use strict';
define(['app', 'utils/route-config'], function (app, routeConfig) {
return app.config(function ($routeProvider) {
$routeProvider.when('/view1', routeConfig.config('../partials/view1.html', 'controllers/... | lizouzt/lizouzt.github.com | gitbook/donut/angular/blog/app/js/routes.js | JavaScript | apache-2.0 | 548 |
// Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es5id: 15.4.4.18-7-c-ii-21
description: >
Array.prototype.forEach - callbackfn called with correct
parameters (kValue is correct)
---*/
var resultOne = false;
... | m0ppers/arangodb | 3rdParty/V8/V8-5.0.71.39/test/test262/data/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-21.js | JavaScript | apache-2.0 | 764 |
jQuery( document ).ready( function() {
// submit buttons start out disabled until changes are made
jQuery( 'form#post-by-email-options input[type=submit]' ).attr( 'disabled', 'disabled' );
function settingsChanged() {
jQuery( 'form#post-by-email-options input[type=submit]' ).removeAttr( 'disabled' );
// alert... | Doap/sinkjuice.com | wp-content/plugins/post-by-email/js/admin.js | JavaScript | apache-2.0 | 3,304 |
import Ember from "ember";
export default Ember.ArrayController.extend({
submitting: false,
newUser: undefined,
actions: {
initUser: function() {
return this.initNew();
},
addUser: function(m, e) {
return e.promise = this.fakePromise(this.get('newUser')).then((function(_this) {
re... | cjc343/ember-idx-modal | tests/dummy/app/controllers/emforms.js | JavaScript | apache-2.0 | 777 |
// Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es5id: 15.4.4.20-5-16
description: Array.prototype.filter - RegExp Object can be used as thisArg
---*/
var accessed = false;
var objRegExp = new RegExp();
... | m0ppers/arangodb | 3rdParty/V8/V8-5.0.71.39/test/test262/data/test/built-ins/Array/prototype/filter/15.4.4.20-5-16.js | JavaScript | apache-2.0 | 583 |
/*
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
* under one or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership. Camunda licenses this file to you under the Apache License,
* Version 2.0; y... | camunda/camunda-bpm-platform | webapps/camunda-commons-ui/vendor/angular.js | JavaScript | apache-2.0 | 892 |
/*
Copyright (c) 2004-2010, The Dojo Foundation All Rights Reserved.
Available via Academic Free License >= 2.1 OR the modified BSD license.
see: http://dojotoolkit.org/license for details
*/
/*=====
// note:
// 'djConfig' does not exist under 'dojo.*' so that it can be set before the
// 'dojo' variabl... | ozoneplatform/owf-framework | web-app/js-lib/dojo-release-1.5.0/dojo/_base/_loader/bootstrap.js | JavaScript | apache-2.0 | 19,748 |
$(document).ready(function(){
var user = function() {
this.apiKey = "";
this.ips = "";
this.cdnProduct = [];
this.selfcdn = 1;
this.cb_uid = 0;
this.close = 0;
this.cdnConfig = false;
// this.offset = 0;
this.length = 10;
this.page = 0;
this.userpage = 0;
this.ns1 = '';
this.ns... | zdchao/php_demo | wwwroot/wwwroot/user/view/new0807/user/user.js | JavaScript | apache-2.0 | 33,978 |
/*
* Licensed to the Sakai Foundation (SF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The SF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use th... | jonmhays/3akai-ux | dev/lib/myb/myb.dynlist.logic.js | JavaScript | apache-2.0 | 8,623 |
/*******************************************************************************
* Copyright 2018 Tremolo Security, 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://... | TremoloSecurity/OpenUnison | unison/unison-scalejs-token/src/main/html/js/angular-tree-control.js | JavaScript | apache-2.0 | 22,899 |
(function(){
var
pow2_16 = Math.pow( 2, 16 ),
pow2_8 = Math.pow( 2, 8 ),
pow2_23 = Math.pow( 2, 23 ),
pow2_24 = Math.pow( 2, 24 );
"use strict";
//----- 標高タイルの既定値設定 -----
// pngを利用する場合
var GSI_MAX_TERRAIN_LEVEL = 14;
var GSI_DEM_DEFAULT_URL = 'https://cyberjapandat... | frogcat/gsimaps | globe/resource/JapanGSITerrainProvider.js | JavaScript | bsd-2-clause | 18,588 |
/**
* UB-RIA-UI 1.0
* Copyright 2014 Baidu Inc. All rights reserved.
*
* @ignore
* @file 带加载更多的树选择控件
* @author chenhaoyin(chenhaoyin@baidu.com)
*/
define(
function (require) {
require('./PagingTree');
var ui = require('esui/main');
var lib = require('esui/lib');
var u = requ... | DDDBear/ub-ria-ui | src/selectors/PagingTreeRichSelector.js | JavaScript | bsd-2-clause | 37,648 |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
const path = require('path');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
module.exports = {
mode: 'produc... | facebook/css-layout | website/src/components/Playground/webpack.config.js | JavaScript | bsd-3-clause | 1,666 |
var Backbone = require('backbone');
module.exports = Backbone.View.extend({
events: {
'mousedown': 'handleClick',
},
attributes() {
return this.model.get('attributes');
},
initialize(opts) {
this.editor = opts.config.editor;
},
handleClick(event) {
var opts = {event};
var command = ... | devierol/heroku-gjs | src/dom_components/view/ToolbarButtonView.js | JavaScript | bsd-3-clause | 682 |
cdb.admin.overlays.MobileLayers = cdb.core.View.extend({
className: "layer-container",
template: cdb.core.Template.compile('<div class="scrollpane"><ul class="layers"></ul></div>'),
initialize: function() {
this.layers = [];
this.layerViews = [];
this.model = new Backbone.Model({
layer_cou... | raquel-ucl/cartodb | lib/assets/javascripts/cartodb/table/overlays/mobile.js | JavaScript | bsd-3-clause | 20,126 |
/**
* @class Simplified A* algorithm: all edges have a value of 1
* @augments ROT.Path
* @see ROT.Path
*/
ROT.Path.AStar = function(toX, toY, passableCallback, options) {
ROT.Path.call(this, toX, toY, passableCallback, options);
this._todo = [];
this._done = {};
this._fromX = null;
this._fromY = null;
}
ROT.P... | shelsonjava/rot.js | src/path/astar.js | JavaScript | bsd-3-clause | 2,006 |
module.exports = {
url: "http://spatialserver.spatialdev.com/services/vector-tiles/gadm2014kenya/{z}/{x}/{y}.pbf",
debug: true,
clickableLayers: ['gadm1'],
getIDForLayerFeature: function(feature) {
return feature.properties.id;
},
filter: function(feature, context) {
if (feature.layer.name === 'ga... | palantir/Leaflet.MapboxVectorTile | test/fixtures/basicStaticLabel.js | JavaScript | isc | 1,811 |
require("../env");
require("../../d3");
require("../../d3.layout");
var vows = require("vows"),
assert = require("assert");
var suite = vows.describe("d3.layout.treemap");
suite.addBatch({
"treemap": {
topic: function() {
return d3.layout.treemap;
},
"outputs a squarified treemap": function(t... | adebali/adebali.github.io | workbench/phyloblast/dendrogram/d3test/d3/test/layout/treemap-test.js | JavaScript | mit | 7,576 |
declare var foo
declare var foo;
declare function foo(): void
declare function foo(): void;
declare function foo<T>(): void;
declare function foo(x: number, y: string): void;
declare class A1 {}
declare class A1<T> extends B<T> { x: number }
declare class A1 { static foo(): number, static x : string }
declare class A1 ... | jridgewell/babel | packages/babel-plugin-transform-flow-comments/test/fixtures/flow-comments/declare-statements/input.js | JavaScript | mit | 568 |
/**
* Simpli.js
* A small library consists of some useful and shorthand function
*
* Copyright (c) 2016 Yu H.
*
* @author Yu H.
* @version 1.2.4
* @license The MIT License (MIT)
* https://opensource.org/licenses/MIT
**/
if (typeof Object.create === "undefined") {
Object.create = function(prototype) {
... | yuhlau/simplijs | src/simpli.js | JavaScript | mit | 67,423 |
/* global angular */
(function() {
angular.module('angularScreenfull', []);
})();
| hrajchert/angular-screenfull | src/main.js | JavaScript | mit | 86 |
(function() {
require(['structures'], function(structures) {
var bulgarianHeroesSection, greekHeroesSection, heroesContainer, superheroesSection;
heroesContainer = structures.getContainer();
superheroesSection = structures.getSection('Superheroes');
heroesContainer.add(superheroesSection);
superh... | TelerikAcademy/flextry-Telerik-Academy | Web Design & Development/0. Exams/Telerik 2013-2014 - JavaScript OOP Exam/JavaScript - Exam Preparation/1. TodoList/scripts/app.js | JavaScript | mit | 3,713 |
import(/* webpackChunkName: "y" */"./module-y");
| webpack/webpack | test/statsCases/graph-correctness-modules/module-x.js | JavaScript | mit | 49 |
(function(){
'use strict';
/* Scala.js runtime support
* Copyright 2013 LAMP/EPFL
* Author: Sébastien Doeraene
*/
/* ---------------------------------- *
* The top-level Scala.js environment *
* ---------------------------------- */
// Get the environment info
var $env = (typeof __ScalaJSEnv === "object" && ... | PhilAndrew/JumpMicro | JMScalaJs/src/main/resources/js/scalajsproject-fastopt.js | JavaScript | mit | 79,128 |
var t = i => {
return i * 5;
};
| luca-barbieri/5to6 | test/fixtures/transformation/5to6-arrow-functions/single-argument/expected.js | JavaScript | mit | 35 |
/* */
(function(process) {
"use strict";
var _Symbol = require("../core-js/symbol")["default"];
var _Object$create = require("../core-js/object/create")["default"];
var _Object$setPrototypeOf = require("../core-js/object/set-prototype-of")["default"];
var _Promise = require("../core-js/promise")["default"];
... | zoldello/BioinformaticsUtil.js | jspm_packages/npm/babel-runtime@5.8.35/regenerator/runtime.js | JavaScript | mit | 14,857 |
import resolver from './helpers/resolver';
import { setResolver } from 'ember-mocha';
/* jshint: redefine */
window.assert = window.chai.assert;
setResolver(resolver);
| IsaiahJTurner/emberfire | tests/test-helper.js | JavaScript | mit | 170 |
/*!
* jQuery JavaScript Library v1.8.2 -deprecated,-css,-effects,-offset,-dimensions
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2012 jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: Sun Sep 23 2012 10:58:34 G... | eric-seekas/jquery-builder | dist/1.8.2/jquery-css-deprecated-dimensions.js | JavaScript | mit | 214,865 |
import { AbstractControlDirective } from './abstract_control_directive';
/**
* A directive that contains a group of [NgControl].
*
* Only used by the forms module.
*/
export class ControlContainer extends AbstractControlDirective {
get formDirective() { return null; }
get path() { return null; }
}
... | anttisirkiafuturice/angular2todo | node_modules/angular2/es6/prod/src/forms/directives/control_container.js | JavaScript | mit | 366 |
var path = require('path')
var fs = require('graceful-fs')
var crypto = require('crypto')
var mm = require('minimatch')
var extensions = require('./binary-extensions.json').extensions
var log = require('./logger').create('preprocess')
var sha1 = function (data) {
var hash = crypto.createHash('sha1')
hash.update(d... | angyukai/boulderactive2016-landing-page | node_modules/karma/lib/preprocessor.js | JavaScript | mit | 2,861 |
import { createComponent } from 'react-fela'
const info = () => ({
padding: 5,
fontSize: '20px',
color: 'gray',
flexDirection: 'column'
})
export default createComponent(info)
| derek-duncan/fela | packages/example-react/components/Text.js | JavaScript | mit | 186 |
/* */
"format register";
define(["exports"], function (exports) {
"use strict";
var _inherits = function (subClass, superClass) {
if (typeof superClass !== "function" && superClass !== null) {
throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
}
... | sonnylazuardi/todomvc-aurelia | lib/github/aurelia/dependency-injection@0.4.1/amd/metadata.js | JavaScript | mit | 5,574 |
/*!
* jQuery JavaScript Library v2.0.1 -wrap,-css,-event-alias,-effects,-offset,-dimensions,-deprecated
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* D... | eric-seekas/jquery-builder | dist/2.0.1/jquery-css-deprecated-event-alias-wrap.js | JavaScript | mit | 198,263 |
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(global = global || self, factory(global.TWEEN = {}));
}(this, function (exports) { 'use strict';
/* global global, self */... | joeyparrish/cdnjs | ajax/libs/es6-tween/5.5.6/Tween.js | JavaScript | mit | 78,672 |
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow strict-local
* @format
*/
// flowlint ambiguous-object-type:error
'use strict';
const {
createContainer: createFra... | voideanvalue/relay | packages/react-relay/__flowtests__/ReactRelayFragmentContainer-flowtest.js | JavaScript | mit | 4,598 |
/*
* This file starts the colorbox effect.
*
* Do not delete.
*
*/
jQuery(document).ready(function(){
jQuery("a[rel='gallery-images']").colorbox();
});
| creative2020/strivela | wp-content/themes/sla/extensions/image-grid/js/colorbox-reference.js | JavaScript | mit | 159 |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = exports.styles = void 0;
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
var _objectWithoutPropert... | cdnjs/cdnjs | ajax/libs/material-ui/4.9.4/ExpansionPanelActions/ExpansionPanelActions.js | JavaScript | mit | 2,292 |
/* Czech initialisation for the jQuery UI date picker plugin. */
/* Written by Tomas Muller (tomas@tomas-muller.net). */
jQuery(function($){
$.datepicker.regional['cs'] = {
closeText: 'Zavřít',
prevText: '<Dříve',
nextText: 'Později>',
currentText: 'Nyní',
monthNames: ['leden','únor','březen','dube... | mouadben/typo6 | typo3conf/ext/t3jquery/res/jquery/ui/1.7.x/ui/i18n/jquery.ui.datepicker-cs.js | JavaScript | gpl-2.0 | 858 |
/**
* Copyright © 2015 Magento. All rights reserved.
* See COPYING.txt for license details.
*/
/*jshint jquery:true*/
define([
"jquery",
"braintree",
'mage/translate',
'Magento_Ui/js/modal/alert',
"jquery/ui"
], function($, braintree, $t, alert) {
"use strict";
$.widget('mage.braintreeFo... | FPLD/project0 | vendor/magento/module-braintree/view/frontend/web/js/cc-form.js | JavaScript | gpl-2.0 | 4,114 |
/**
* Visual Blocks Language
*
* Copyright 2012 Google Inc.
* http://blockly.googlecode.com/
*
* 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/LIC... | technologiescollege/Blockly-at-rduino_offline | wwwBlockly@rduino/generators/Blockly/logic.js | JavaScript | gpl-2.0 | 4,273 |
/**
* @file
* Your custom code into javascript behaviour.
*/
(function ($) {
Drupal.behaviors.customTheme = {
attach: function (context) {
// Your Code.
$('.page-node-type-session #block-da-vinci-page-title').prependTo('.node__content');
$('.page-node-type-session .node__content > div:not(.... | dmarrufo/devdaysseville | web/themes/da_vinci/js/custom.js | JavaScript | gpl-2.0 | 817 |
/**
* functions/general.js
*
* Copyright (c) 2013-2015 Simon Fraser University Library
* Copyright (c) 2000-2015 John Willinsky
* Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
*
* Site-wide common JavaScript functions.
*/
/**
* Prompt user for confirmation prior to loading a URL.... | jasonzou/journal.calaijol.org | tools/lib/pkp/pkp/js/functions/general.js | JavaScript | gpl-3.0 | 3,854 |
/*
* Copyright (C) 2011 Flamingo Project (http://www.cloudine.io).
*
* This program 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 versio... | chiwanpark/flamingo2 | flamingo2-web/src/main/webapp/resources/app/view/monitoring/cldb/Cldb.js | JavaScript | gpl-3.0 | 3,102 |
//settins scripts
// $('#allowed_formats option').each(function(){
// $(this).attr('selected', 'selected');
// });
// jQuery.validator with bootstrap integration
jQuery.validator.setDefaults({
highlight: function(element) {
jQuery(element).closest('.form-group').addClass('has-error');
},
unhighli... | oliverds/openclassifieds2 | themes/default/js/oc-panel/settings.js | JavaScript | gpl-3.0 | 3,497 |
var APIUserPreference = ServiceCaller.extend( {
key_name: 'UserPreference',
className: 'APIUserPreference',
getUserPreferenceDefaultData: function() {
return this.argumentsHandler( this.className, 'getUserPreferenceDefaultData', arguments );
// this.call(this.get('className'),'getUserPreferenceDefaultData',o... | alachaum/timetrex | interface/html5/services/users/APIUserPreference.js | JavaScript | agpl-3.0 | 1,259 |
var namespaceCqrs_1_1Azure_1_1ConfigurationManager =
[
[ "Tests", "namespaceCqrs_1_1Azure_1_1ConfigurationManager_1_1Tests.html", "namespaceCqrs_1_1Azure_1_1ConfigurationManager_1_1Tests" ],
[ "CloudConfigurationManager", "classCqrs_1_1Azure_1_1ConfigurationManager_1_1CloudConfigurationManager.html", "classCqrs... | Chinchilla-Software-Com/CQRS | wiki/docs/4.2/html/namespaceCqrs_1_1Azure_1_1ConfigurationManager.js | JavaScript | lgpl-2.1 | 556 |
description("Test the handling of invalid arguments in canvas getImageData().");
ctx = document.createElement('canvas').getContext('2d');
shouldThrow("ctx.getImageData(NaN, 10, 10, 10)", '"Error: NotSupportedError: DOM Exception 9"');
shouldThrow("ctx.getImageData(10, NaN, 10, 10)", '"Error: NotSupportedError: DOM Ex... | youfoh/webkit-efl | LayoutTests/fast/canvas/script-tests/canvas-getImageData-invalid.js | JavaScript | lgpl-2.1 | 1,532 |
var searchData=
[
['onkeypress',['onKeyPress',['../class_i_n_d___input.html#a866c9f3aff70946978aa4b7ab47c2281',1,'IND_Input']]],
['onkeyrelease',['onKeyRelease',['../class_i_n_d___input.html#ae9db585f1a9cfa2e86e85aaed17c41b2',1,'IND_Input']]],
['onmousebuttonpress',['onMouseButtonPress',['../class_i_n_d___input.h... | CodiCamp/C-game-course | MyGame/Tutorials/docs/Doxygen/html/search/functions_6f.js | JavaScript | lgpl-3.0 | 5,513 |
var Shapes;
(function (Shapes) {
var Point = (function () {
function Point() { }
return Point;
})();
Shapes.Point = Point;
})(Shapes || (Shapes = {}));
var Shapes;
(function (Shapes) {
var Point = (function () {
function Point() { }
return Point;
})();
Shapes.... | turbulenz/typescript | tests/baselines/reference/duplicateIdentifierShouldNotShortCircuitBaseTypeBinding.commonjs.js | JavaScript | apache-2.0 | 367 |
sap.ui.define([
"sap/ui/core/mvc/Controller",
"sap/m/MessageToast",
"sap/m/MessageBox",
"sap/ui/model/Sorter",
"sap/ui/model/Filter",
"sap/ui/model/FilterOperator",
"sap/ui/model/FilterType",
"sap/ui/model/json/JSONModel"
], function (Controller, MessageToast, MessageBox, Sorter, Filter, FilterOperator, FilterT... | SAP/openui5 | src/sap.ui.core/test/sap/ui/core/demokit/tutorial/odatav4/05/webapp/controller/App.controller.js | JavaScript | apache-2.0 | 2,956 |
import {describe, iit, it, expect, beforeEach} from 'test_lib/test_lib';
import {Key, KeyRegistry} from 'di/di';
export function main() {
describe("key", function () {
var registry;
beforeEach(function () {
registry = new KeyRegistry();
});
it('should be equal to another key if type is the s... | coffeel/TestRepository | modules/di/test/di/key_spec.js | JavaScript | apache-2.0 | 1,436 |
/* -------------------------------------------------------------------------- */
/* Copyright 2002-2016, OpenNebula Project, OpenNebula Systems */
/* */
/* Licensed under the Apache License, Version 2.0 (the "License"); you may ... | alvarosimon/one | src/sunstone/public/app/tabs/vrouter-templates-tab.js | JavaScript | apache-2.0 | 2,509 |
'use strict';
/**
* @ngdoc function
* @name twinApp.controller:MainCtrl
* @description
* # MainCtrl
* Controller of the twinApp
*/
angular.module('twinApp')
.controller('MainCtrl', function ($scope) {
$scope.awesomeThings = [
'HTML5 Boilerplate',
'AngularJS',
'Karma'
];
});
| cfalguiere/Hands-On-Angular-Tooling | solutions/yeomanlab-lab9/app/scripts/controllers/main.js | JavaScript | apache-2.0 | 312 |
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview Defines the {@link CKEDITOR.lang} object, for the
* Vietnamese language.
*/
/**#@+
@type String
@example
*/
/**
* Contains the... | royalwang/saivi | cms/editor/ckeditor/_source/lang/vi.js | JavaScript | apache-2.0 | 27,497 |
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'... | xingwu1/azure-sdk-for-node | lib/services/postgresqlManagement/lib/models/trackedResource.js | JavaScript | apache-2.0 | 2,269 |