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 |
|---|---|---|---|---|---|
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionFeedback = (props) => (
<SvgIcon {...props}>
<path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 12h-2v-2h2v2zm0-4h-2V6h2v4z"/>
</SvgIcon>
);
ActionFeedback = pure(Acti... | rhaedes/material-ui | src/svg-icons/action/feedback.js | JavaScript | mit | 412 |
/*
* Note that this control will most likely remain as an example, and not as a core Ext form
* control. However, the API will be changing in a future release and so should not yet be
* treated as a final, stable API at this time.
*/
/**
* A control that allows selection of between two Ext.ux.form.MultiSelect co... | devmaster-terian/hwt-backend | gestion/recurso/framework/ext-5.1.3/examples/ux/form/ItemSelector.js | JavaScript | mit | 11,926 |
/*
YUI 3.8.0pr2 (build 154)
Copyright 2012 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add("lang/datatype-date-format_es-VE",function(e){e.Intl.add("datatype-date-format","es-VE",{a:["dom","lun","mar","mi\u00e9","jue","vie","s\u00e1b"],A:["domingo","lunes","mar... | SHMEDIALIMITED/tallest-tower | node_modules/grunt-contrib/node_modules/grunt-contrib-yuidoc/node_modules/yuidocjs/node_modules/yui/datatype-date-format/lang/datatype-date-format_es-VE.js | JavaScript | mit | 676 |
module.exports = function () {
var module = {
t: function () {
console.log('a');
}
};
return module;
}(); | phillipgreenii/deamdify | test/data/module-with-contained-variabled-named-module.expect.js | JavaScript | mit | 145 |
app.PageNav = React.createClass({
handleWelcome:function(){
//dispatch a navigate to welcome on click
app.PageActions.navigate({
dest: 'welcome'
});
},
render:function(){
return (
<header className="pure-g" ref="body">
<div className="pure-u-1-2">
<button className=... | drabinowitz/Brainstorm | client/react/PageNav.js | JavaScript | mit | 519 |
//*********************************************************
//
// Copyright (c) Microsoft. All rights reserved.
// This code is licensed under the MIT License (MIT).
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
// IMPLIED WARRANTIES OF FITNESS FOR A PARTICU... | Microsoft/Windows-universal-samples | archived/LineDisplay/js/js/scenario4-updatingLineDisplayAttributes.js | JavaScript | mit | 5,422 |
/**
*
* Created by aleckim on 2015. 10. 18..
*/
"use strict";
var Logger = require('../lib/log');
global.log = new Logger(__dirname + "/debug.log");
var assert = require('assert');
var config = require('../config/config');
var LifeIndexKmaRequester = require('../lib/lifeIndexKmaRequester');
describe('unit tes... | WizardFactory/TodayWeather | server/test/testLifeIndexKmaRequester.js | JavaScript | mit | 13,097 |
// Copyright: Hiroshi Ichikawa <http://gimite.net/en/>
// License: New BSD License
// Reference: http://dev.w3.org/html5/websockets/
// Reference: http://tools.ietf.org/html/draft-hixie-thewebsocketprotocol
(function() {
if (window.WebSocket) return;
var console = window.console;
if (!console) console = {log... | ruby-hammer/hammer-app-base | public/websocket/web_socket.js | JavaScript | mit | 12,347 |
/**
* Very simple implementation of a popup window. Any DOM element can be marked up as a popup,
* usage is:
*
* $("selector").popup(); // initializes it as a popup, and hides it
*
* // later...
*
* $("selector").popup("show"); // to show it
* $("selector").popup("hide"); // to hide it
*
* Copyright (c) 2012... | jife94/wwmmo | website/static/js/popup.js | JavaScript | mit | 2,340 |
/* *
*
* (c) 2010-2020 Torstein Honsi
*
* License: www.highcharts.com/license
*
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
*
* */
'use strict';
import H from './Globals.js';
/**
* Define the time span for the button
*
* @typedef {"all"|"day"|"hour"|"millisecond"|"minute"|"m... | generalludd/expenses | js/highcharts/es-modules/parts/RangeSelector.js | JavaScript | mit | 61,256 |
'use strict';
var cfenv = require('cfenv'),
appEnv = cfenv.getAppEnv(),
cfMongoUrl = appEnv.getService('mean-mongo') ?
appEnv.getService('mean-mongo').credentials.uri : undefined;
var getCred = function (serviceName, credProp) {
return appEnv.getService(serviceName) ?
appEnv.getService(serviceName).creden... | NicolasKovalsky/mean | config/env/cloud-foundry.js | JavaScript | mit | 3,063 |
/*
Highcharts JS v7.1.0 (2019-04-01)
Force directed graph module
(c) 2010-2019 Torstein Honsi
License: www.highcharts.com/license
*/
(function(h){"object"===typeof module&&module.exports?(h["default"]=h,module.exports=h):"function"===typeof define&&define.amd?define("highcharts/modules/networkgraph",["highchart... | extend1994/cdnjs | ajax/libs/highcharts/7.1.0/modules/networkgraph.js | JavaScript | mit | 22,028 |
/* jshint globalstrict: true */
'use strict';
function setupModuleLoader(window) {
var ensure = function(obj, name, factory) {
return obj[name] || (obj[name] = factory());
};
var angular = ensure(window, 'angular', Object);
var createModule = function(name, requires, modules, configFn) {
if (name ===... | resalisbury/build-your-own-angularjs | src/loader.js | JavaScript | mit | 2,172 |
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react'), require('mobx'), require('react-dom')) :
typeof define === 'function' && define.amd ? define(['exports', 'react', 'mobx', 'react-dom'], factory) :
(factory((global.mobxReact = {}),global... | extend1994/cdnjs | ajax/libs/mobx-react/5.4.2/index.js | JavaScript | mit | 52,938 |
'use strict';
const path = require('path');
const fs = require('fs');
const commonDir = require('commondir');
const pkgDir = require('pkg-dir');
const makeDir = require('make-dir');
const isWritable = path => {
try {
fs.accessSync(path, fs.constants.W_OK);
return true;
} catch (_) {
return false;
}
};
module... | jeffmcfadden/PiThermostat | node_modules/terser-webpack-plugin/node_modules/find-cache-dir/index.js | JavaScript | mit | 1,049 |
var args = arguments[0] || {};
var api = {
// initialization of our variables
callback: null,
content: null,
contentView: null,
headerPullView: null,
headerPullControl: null,
headerPullViewSize : 60,
headerPullViewArgs : [],
// ios ptr parameters
iosRefreshControl: [],
//... | jolicode/Alloy-PullToRefresh | controllers/widget.js | JavaScript | mit | 5,589 |
describe('setViewportSize/getViewportSize', () => {
let windowSize = {}
before(async function () {
windowSize = await this.client.windowHandleSize()
})
beforeEach(async function () {
await this.client.windowHandleSize({ width: 300, height: 300 })
})
it('should change viewport ... | testingbot/webdriverjs | test/spec/desktop/viewportSize.js | JavaScript | mit | 1,822 |
/* *
*
* Copyright (c) 2019-2021 Highsoft AS
*
* Boost module: stripped-down renderer for higher performance
*
* License: highcharts.com/license
*
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
*
* */
'use strict';
import '../../Core/Globals.js';
/**
* Options for the Boost mo... | cdnjs/cdnjs | ajax/libs/highcharts/9.3.3/es-modules/Extensions/Boost/BoostOptions.js | JavaScript | mit | 6,649 |
var classwayverb_1_1combined_1_1model_1_1material =
[
[ "material", "classwayverb_1_1combined_1_1model_1_1material.html#a583d34826add3ae50891b9fdf7d2352f", null ],
[ "get_name", "classwayverb_1_1combined_1_1model_1_1material.html#abbeec8c982d714f016f711e851a606b0", null ],
[ "get_surface", "classwayverb_1_1... | reuk/waveguide | docs_source/doxygen/html/classwayverb_1_1combined_1_1model_1_1material.js | JavaScript | gpl-2.0 | 746 |
jQuery(document).ready(function(){
// Index first
slideshowSlideInserterIndexSlidesOrder();
// Make list items in the sortables list sortable, exclude elements with cancel option.
jQuery('.sortable-slides-list').sortable({
revert: true,
placeholder: 'sortable-placeholder',
forcePlaceholderSize: tru... | Bochet/festival_lgbt | wp-content/plugins/slideshow-jquery-image-gallery/js/SlideshowPluginSlideInserter/slide-inserter.js | JavaScript | gpl-2.0 | 9,929 |
/**
* ------------------------------------------------------------------------
* T3V2 Framework
* ------------------------------------------------------------------------
* Copyright (C) 2004-20011 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
* @license - GNU/GPL, http://www.gnu.org/licenses/gpl.html
* ... | heqiaoliu/Viral-Dark-Matter | tmp/install_4f209c9de9bf1/plugins/system/jat3/core/admin/assets/js/japageidsettings.js | JavaScript | gpl-2.0 | 8,087 |
var searchData=
[
['material',['material',['../classmaterial.html',1,'']]]
];
| hishamop/CROptim | search/classes_7.js | JavaScript | gpl-3.0 | 80 |
"use strict";
var nconf = require('nconf'),
path = require('path'),
winston = require('winston'),
controllers = require('../controllers'),
meta = require('../meta'),
plugins = require('../plugins'),
express = require('express'),
metaRoutes = require('./meta'),
apiRoutes = require('./api'),
adminRoutes = requ... | Sarabpreet/notcrud | src/routes/index.js | JavaScript | gpl-3.0 | 9,226 |
/* InfoAction.js
*
* copyright (c) 2010-2017, Christian Mayer and the CometVisu contributers.
*
* 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 y... | jensgulow/CometVisu | source/class/cv/ui/structure/pure/InfoAction.js | JavaScript | gpl-3.0 | 2,960 |
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
// @flow
import classnames from "classnames";
import React from "react";
import AccessibleImage from "../Access... | ruturajv/debugger.html | src/components/shared/Button/CommandBarButton.js | JavaScript | mpl-2.0 | 1,233 |
"use strict";
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = exports.YAMLSet = void 0;
var _typeof2 = _int... | mdranger/mytest | node_modules/yaml/browser/dist/tags/yaml-1.1/set.js | JavaScript | mpl-2.0 | 4,639 |
(function() {
"use strict";
var website = openerp.website;
var _t = openerp._t;
website.add_template_file('/website_event/static/src/xml/website_event.xml');
website.is_editable = true;
website.EditorBar.include({
start: function() {
website.is_editable_button = website.is_... | ovnicraft/openerp-restaurant | website_event/static/src/js/website_event.editor.js | JavaScript | agpl-3.0 | 1,095 |
/**
* @class Ext.History
* @extends Ext.util.Observable
* @ignore
* @private
*
* Mobile-optimized port of Ext.History. Note - iPad on iOS < 4.2 does not have HTML5 History support so we still
* have to poll for changes.
*/
Ext.History = new Ext.util.Observable({
constructor: function() {
Ext.Histor... | gabegorelick/MedSocial | src/main/webapp/lib/sencha/sencha-touch-1.1.1/src/core/History.js | JavaScript | agpl-3.0 | 2,517 |
/*
Ext JS - JavaScript Library
Copyright (c) 2006-2011, Sencha Inc.
All rights reserved.
licensing@sencha.com
*/
/**
* @class Ext
* @singleton
*/
(function() {
var global = this,
objectPrototype = Object.prototype,
toString = Object.prototype.toString,
enumerables = true,
enumerab... | bibryam/lazyplanner | webapp/lazyplanner/ext-4.0.0/pkgs/foundation.js | JavaScript | lgpl-2.1 | 273,154 |
/*
* Copyright 2014 Apereo Foundation (AF) Licensed under the
* Educational Community 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://opensource.org/licenses/ECL-2.0
*
* Unless required by applicabl... | timdegroote/Hilary | node_modules/oae-util/tests/test-io.js | JavaScript | apache-2.0 | 4,053 |
CKEDITOR.plugins.add('bbcodeselector',
{
requires: ['dialog'],
lang: ['en'],
init: function(editor) {
window["arrayTest"] = [];
$.getJSON(CKEDITOR.basePath.replace('Scripts/ckeditor/', '') + "resource.ashx?bbcodelist=json", function (json) {
$.each(json, function(idx, obj) {
... | Pathfinder-Fr/YAFNET | yafsrc/YetAnotherForum.NET/Scripts/ckeditor/plugins/bbcodeselector/plugin.js | JavaScript | apache-2.0 | 872 |
/*global ArangoServerState*/
'use strict';
////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2014 triAGENS GmbH, Cologne, Germany
/// Copyright 2016 ArangoDB GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
//... | wiltonlazary/arangodb | js/apps/system/_admin/aardvark/APP/statistics.js | JavaScript | apache-2.0 | 12,516 |
/**
* 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 applic... | baumicon/blk-game | src/blk/game/server/servercontroller.js | JavaScript | apache-2.0 | 10,159 |
module.exports={"dependencies":{},"theme":"corporate_theme"}; | titanium-forks/appcelerator-se.DemoApp | Resources/iphone/alloy/CFG.js | JavaScript | apache-2.0 | 61 |
// Copyright 2007 The Closure Library Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless requ... | chihuahua/beautiful-audio-editor | third_party/closure_library/closure/goog/ui/combobox.js | JavaScript | apache-2.0 | 26,925 |
dojo.provide("dojox.gfx.Moveable");
dojo.require("dojox.gfx.Mover");
dojo.declare("dojox.gfx.Moveable", null, {
constructor: function(shape, params){
// summary: an object, which makes a shape moveable
// shape: dojox.gfx.Shape: a shape object to be moved
// params: Object: an optional object with additional p... | sulistionoadi/belajar-springmvc-dojo | training-web/src/main/webapp/js/dojotoolkit/dojox/gfx/Moveable.js | JavaScript | apache-2.0 | 3,453 |
// This file was procedurally generated from the following sources:
// - src/dstr-binding/obj-ptrn-prop-obj-value-null.case
// - src/dstr-binding/error/async-gen-meth.template
/*---
description: Object binding pattern with "nested" object binding pattern taking the `null` value (async generator method)
esid: sec-asyncg... | sebastienros/jint | Jint.Tests.Test262/test/language/expressions/object/dstr-async-gen-meth-obj-ptrn-prop-obj-value-null.js | JavaScript | bsd-2-clause | 1,441 |
/*!
* SAP UI development toolkit for HTML5 (SAPUI5/OpenUI5)
* (c) Copyright 2009-2015 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
sap.ui.define(['jquery.sap.global','sap/ui/core/Element','sap/ui/core/library'],function(q,E,l){"use strict";var S=E.extend... | mindmill/open-cmis-explorer | resources/sap/ui/core/search/SearchProvider.js | JavaScript | bsd-2-clause | 696 |
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.2.2.4
description: >
get %TypedArray% [ @@species ].length is 0.
info: |
get %TypedArray% [ @@species ]
17 ECMAScript Standard Built-in Objects:
Every built-in Fun... | sebastienros/jint | Jint.Tests.Test262/test/built-ins/TypedArray/Symbol.species/length.js | JavaScript | bsd-2-clause | 1,215 |
'use strict';
var mergeTrees = require('broccoli-merge-trees'),
unwatchedTree = require('broccoli-unwatched-tree'),
compileModules = require('./lib/compile-modules'),
graphModules = require('./lib/graph'),
cssWithMQs = require('./lib/css-with-mqs'),
stripMQs = require('./lib/css-st... | igorstefurak/pushcourse | Brocfile.js | JavaScript | bsd-3-clause | 1,292 |
/**
* Copyright 2013-2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @providesModule ... | xymostech/relay | src/traversal/diffRelayQuery.js | JavaScript | bsd-3-clause | 22,986 |
/**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @providesModule Geolocation
* @flow
*/
'use strict';
const NativeEventEmitter = require('NativeEventEmitter');
const RCTLocationObse... | hoastoolshop/react-native | Libraries/Geolocation/Geolocation.js | JavaScript | bsd-3-clause | 5,003 |
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @flow
*/... | peterp/react-native | packager/src/defaults.js | JavaScript | bsd-3-clause | 1,544 |
(function() {
module('Arrays');
test('first', function() {
equal(_.first([1, 2, 3]), 1, 'can pull out the first element of an array');
equal(_([1, 2, 3]).first(), 1, 'can perform OO-style "first()"');
deepEqual(_.first([1, 2, 3], 0), [], 'can pass an index to first');
deepEqual(_.first([1, 2, 3], ... | dimitriwalters/underscore | test/arrays.js | JavaScript | mit | 17,722 |
describe('fg-edit-palette', function () {
var $controller, $scope, fgConfigMock, $compile, $templateCache, FgField;
beforeEach(function () {
module('fg');
fgConfigMock = {
fields: {
templates: [],
categories: []
}
};
module(function ($provide) {
$provide.consta... | yujj/angular-form-gen | src/angular-form-gen/edit/palette/palette-controller.test.js | JavaScript | mit | 4,452 |
(async function() { aw\u0061it x })
| jridgewell/babel | packages/babel-parser/test/fixtures/es2017/async-functions/invalid-escape-await/input.js | JavaScript | mit | 36 |
/*!
* Module dependencies.
*/
var util = require('util'),
utils = require('keystone-utils'),
super_ = require('../field');
/**
* TextArray FieldType Constructor
* @extends Field
* @api public
*/
function textarray(list, path, options) {
this._nativeType = [String];
this._underscoreMethods = ['crop'];
tex... | gyiang/advdb-exp | node_modules/keystone/lib/fieldTypes/textarray.js | JavaScript | mit | 1,002 |
module.exports = require("github:angular/bower-material@master/index"); | jagdeepak123/meanapp | app/jspm_packages/github/angular/bower-material@master.js | JavaScript | mit | 71 |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("va... | xzzw9987/Memos | project/LearnReact/node_modules/recompose/branch.js | JavaScript | mit | 3,417 |
'use strict';
require('../common');
console.trace('foo');
| enclose-io/compiler | lts/test/message/console.js | JavaScript | mit | 60 |
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
"use strict";
const WebpackError = require("../WebpackError");
const {
evaluateToString,
toConstantDependency
} = require("../javascript/JavascriptParserHelpers");
const makeSerializable = require("../util/makeSerial... | webpack/webpack | lib/dependencies/RequireIncludeDependencyParserPlugin.js | JavaScript | mit | 2,046 |
exports.BattleMovedex = {
acupressure: {
inherit: true,
desc: "Raises a random stat by 2 stages as long as the stat is not already at stage 6. The user can choose to use this move on itself or an ally. Fails if no stat stage can be raised or if the user or ally has a Substitute. This move ignores Protect and Detec... | BuzzyOG/Pokemon-Showdown | mods/gen4/moves.js | JavaScript | mit | 32,423 |
window.addEventListener('DOMContentLoaded', webGLStart, false);
function webGLStart() {
var numSites = 1,
sites = [0, 0, 1],
siteColors = [0.5, 0.5, 0.7],
width = 800,
height = 600,
R = 200,
vs = [],
weight = [1],
fullscreen = false,
dragStart = [],
matStart = null,
mat = ... | Drakesinger/philogl | examples/voronoi/index.js | JavaScript | mit | 4,533 |
/* eslint-disable */
var webpack = require('webpack');
module.exports = {
debug: true,
devtool: 'source-map',
entry: {
app: __dirname + '/index.js'
},
module: {
loaders: [
{
test: /\.js$/, exclude: /node_modules/, loader: 'babel'
}
]
},
output: {
path: __dirname + '... | Charmatzis/react-leaflet-google | example/webpack.config.js | JavaScript | mit | 816 |
const fs = require('fs');
const path = require('path');
const p = path.join(
path.dirname(process.mainModule.filename),
'data',
'products.json'
);
const getProductsFromFile = cb => {
fs.readFile(p, (err, fileContent) => {
if (err) {
cb([]);
} else {
cb(JSON.parse(fileContent));
}
});... | tarsoqueiroz/NodeJS | Udemy/NodeJS - The Complete Guide/Recursos/09/00-starting-setup-b/models/product.js | JavaScript | mit | 772 |
/*
* Copyright (c) 2015-2016 Codenvy, S.A.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Coden... | dhuebner/che | dashboard/src/components/api/che-svn.spec.js | JavaScript | epl-1.0 | 2,191 |
// This file is part of the jQuery formatCurrency Plugin.
//
// The jQuery formatCurrency Plugin is free software: you can redistribute it
// and/or modify it under the terms of the GNU Lesser General Public License as published
// by the Free Software Foundation, either version 3 of the License, or
//... | wulanrahayu/jquery-formatcurrency | i18n/jquery.formatCurrency.fr.js | JavaScript | gpl-3.0 | 1,081 |
Ext.ns('QNAP.QOS.QPKG.EyeFiServerController');
QNAP.QOS.QPKG.EyeFiServerController = function () {
return {
init: function (cmp) {
Ext.apply(cmp, this);
},
ajaxFunction: function (paramsData, callbackFunction) {
var me = this;
QNAP.QOS.ajax({
url: QNAP.QOS.lib.getCgiUrl('/cgi-bin/qpkg/EyeFiServer/' ... | dgrant/eyefiserver2 | qpkg/ui/eyefiserver_controller.js | JavaScript | gpl-3.0 | 4,927 |
/*
YUI 3.8.0 (build 5744)
Copyright 2012 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('yql', function (Y, NAME) {
/**
* This class adds a sugar class to allow access to YQL (http://developer.yahoo.com/yql/).
* @module yql
*/
/**
* Utility Class used und... | relipse/cworklog | public_html/js/yui/3.8.0/build/yql/yql-debug.js | JavaScript | gpl-3.0 | 4,926 |
function _iterableToArrayLimitLoose(arr, i) {
if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) {
return;
}
var _arr = [];
for (var _iterator = arr[Symbol.iterator](), _step; !(_step = _iterator.next()).done;) {
_arr.push(_step.value);
if (i &&... | mdranger/mytest | node_modules/@babel/runtime/helpers/iterableToArrayLimitLoose.js | JavaScript | mpl-2.0 | 414 |
'use strict';
var openUrl = require('./utils').open;
module.exports = new Dashboard();
function Dashboard() {
/**
* Open dashboard for current selected desk/custom workspace.
*/
this.openDashboard = function() {
openUrl('/#/workspace');
};
/**
* Open the dashboard setting. Th... | sivakuna-aap/superdesk | client/spec/helpers/dashboard.js | JavaScript | agpl-3.0 | 4,857 |
var b = require('bonescript');
// setup starting conditions
var awValue = 0.01;
var awDirection = 1;
var awPin = "P9_14";
// configure pin
b.pinMode(awPin, b.ANALOG_OUTPUT);
// call function to update brightness every 10ms
setInterval(fade, 10);
// function to update brightness
function fade() {
b.analogWrite(awP... | MIC00L/bone101 | examples/fade.js | JavaScript | lgpl-3.0 | 496 |
var locations = [
];
var states = [
];
var countries = [
]; | cnsde/lforum | webapp/javascript/locations.js | JavaScript | apache-2.0 | 74 |
//// [optionalPropertyAssignableToStringIndexSignature.ts]
declare let optionalProperties: { k1?: string };
declare let undefinedProperties: { k1: string | undefined };
declare let stringDictionary: { [key: string]: string };
stringDictionary = optionalProperties; // ok
stringDictionary = undefinedProperties; // err... | Microsoft/TypeScript | tests/baselines/reference/optionalPropertyAssignableToStringIndexSignature.js | JavaScript | apache-2.0 | 1,050 |
class CacheClassification {
constructor() {
this.state = {
cachedClassification: null,
};
}
create() {
const cachedClassification = { annotations: [] };
this.state = { cachedClassification };
return this.state.cachedClassification;
}
update(newAnnotation) {
let cachedClassific... | jelliotartz/Panoptes-Front-End | app/components/cache-classification.js | JavaScript | apache-2.0 | 1,460 |
module.exports={A:{A:{"2":"K C G E A B EB"},B:{"1":"I M H","2":"D w","322":"Z"},C:{"2":"0 1 XB AB F J K C G E A B D w Z I M H N O P Q R S T U V W X Y y a b c d e f L h i j k l m n o p q r s t u v VB PB","4162":"3 5 6 7 8 z x"},D:{"1":"8 BB JB DB FB ZB GB HB","2":"F J K C G E A B D w Z I M H N O P Q R S T U V W X Y y a ... | arschles/go-in-5-minutes | episode24/node_modules/caniuse-lite/data/features/payment-request.js | JavaScript | apache-2.0 | 880 |
// Need the following side-effect import because in actual production code,
// Fast Fetch impls are always loaded via an AmpAd tag, which means AmpAd is
// always available for them. However, when we test an impl in isolation,
// AmpAd is not loaded already, so we need to load it separately.
import '../../../amp-ad/0.1... | Gregable/amphtml | extensions/amp-ad-network-doubleclick-impl/0.1/test/test-amp-ad-network-doubleclick-impl.js | JavaScript | apache-2.0 | 84,517 |
DEBUG = true;
CLASS({
name: 'Account',
properties: [
{ name: 'id' },
{ name: 'status' },
{ name: 'balance', defaultValue: 0 }
],
methods: [
{
name: "setStatus",
code: function (status) {
this.status = status;
},
args: [
{ model_: 'Arg', type: 'boo... | jlhughes/foam | demos/TypeCheck.js | JavaScript | apache-2.0 | 912 |
/**
* Copyright 2021 The AMP HTML Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... | prateekbh/amphtml | 3p/vendors/sogouad.js | JavaScript | apache-2.0 | 902 |
if (typeof WeakMap === "undefined") {
(function() {
var defineProperty = Object.defineProperty;
var counter = Date.now() % 1e9;
var WeakMap = function() {
this.name = "__st" + (Math.random() * 1e9 >>> 0) + (counter++ + "__");
};
WeakMap.prototype = {
s... | kbwatts/topeka-edu | topeka/components/webcomponentsjs/ShadowDOM.debug.js | JavaScript | bsd-2-clause | 168,342 |
var path = require('path');
module.exports = {
root: path.resolve(__dirname, '../../..'),
suites: ['cli/conf/test'],
};
| Polymer/web-component-tester | test/fixtures/cli/conf/rooted/wct.conf.js | JavaScript | bsd-3-clause | 125 |
/*
YUI 3.6.0 (build 5521)
Copyright 2012 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('loader-rollup', function(Y) {
/**
* Optional automatic rollup logic for reducing http connections
* when not using a combo service.
* @module loader
* @submodule roll... | bretkikehara/wattdepot-visualization | src/main/webapp/yui/3.6.0/build/loader-rollup/loader-rollup-debug.js | JavaScript | bsd-3-clause | 3,508 |
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'clipboard', 'ms', {
copy: 'Salin',
copyError: 'Keselamatan perisian browser anda tidak membenarkan operasi salinan text/imej. Sila gunakan papan kek... | CCI-MIT/XCoLab | view/src/main/resources/static/js/lib/newckeditorplugins/clipboard/lang/ms.js | JavaScript | mit | 878 |
define(function(require) {
'use strict';
var _ = require('underscore');
var Path = require('oroworkflow/js/tools/path-finder/path');
var Graph = require('oroworkflow/js/tools/path-finder/graph');
var Point2d = require('oroworkflow/js/tools/path-finder/point2d');
var Rectangle = require('orowork... | Djamy/platform | src/Oro/Bundle/WorkflowBundle/Tests/JS/tools/path-finder/pathSpec.js | JavaScript | mit | 7,095 |
define([
'aeris/util',
'aeris/geolocate/html5geolocateservice',
'aeris/geolocate/errors/geolocateserviceerror',
'mocks/window/navigator',
'mocks/window/geolocationresults',
'mocks/window/geolocationerror'
], function(_, HTML5GeolocateService, GeolocateServiceError, MockNavigator, MockGeolocationResults, Moc... | MikeLockz/exit-now-mobile | www/lib/aerisjs/tests/spec/aeris/geolocate/html5geolocateservice.js | JavaScript | mit | 5,453 |
//this page is accessible to all users - authenticated or not.
| feiyue/maven-framework-project | spring3-security-example/src/main/webapp/resources/unprotected.js | JavaScript | mit | 63 |
mocha.setup('bdd');
var expect = chai.expect;
function createRange(min, max) {
var list = [];
for (var i = min; i <= max; i++) {
list.push(i);
}
return list;
}
describe("paged extender", function () {
var emptyObservableArray,
singlePageObservableArray,
smallNumberPagesObservableArray,
... | papermache/elmhurst_front_end | newVersion/js/lib/knockout-paging-master/spec/knockout-paged-spec.js | JavaScript | mit | 26,482 |
/**
* Testing of this component is included in the materialize-tabs test cases, since this component
* cannot exist independently
*/
| unmanbearpig/ember-cli-materialize | tests/unit/components/materialize-tabs-tab-test.js | JavaScript | mit | 136 |
// Copyright 2011 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flags: --harmony-regexp-property
assertThrows("/[\\p]/u");
assertThrows("/[\\p{garbage}]/u");
assertThrows("/[\\p{}]/u");
assertThrows("/[\\p{]/u");... | hoho/dosido | nodejs/deps/v8/test/mjsunit/harmony/regexp-property-char-class.js | JavaScript | mit | 973 |
angular.module('services.templateRetriever',[])
.factory('templateRetriever', function ($http, $q){
return {
getTemplate: function (templateUrl, tracker) {
var deferred = $q.defer();
$http({
url: templateUrl,
method: 'GET',
headers: {'Content-Type': 'text/html'},
tracker: tracker || 'promiseT... | doortracker/doortracker | public/app/lib/angular-ui-form-validation/app/scripts/services/templateretriever/templateRetriever.js | JavaScript | mit | 604 |
/**
@module ember
@submodule ember-htmlbars
*/
/**
Lookup both on root and on window. If the path starts with
a keyword, the corresponding object will be looked up in the
template's data hash and used to resolve the path.
@method get
@for Ember.Handlebars
@param {Object} root The object to look up the pro... | Zagorakiss/ember.js | packages/ember-htmlbars/lib/compat/handlebars-get.js | JavaScript | mit | 676 |
(function(){
"use strict;";
var WebDriver = require('sync-webdriver'),
Bacon = require('baconjs').Bacon,
express = require('express'),
http = require("http"),
https = require("https"),
url = require("url"),
path = require("path"),
base64_arraybuffer = requ... | ecoder83/html2canvas | tests/selenium.js | JavaScript | mit | 15,207 |
Highcharts.setOptions({
global: {
useUTC: false
}
});
var chart1;
$(document).ready(function() {
chart1 = new Highcharts.Chart({
chart: {
renderTo: 'chart-container-1',
defaultSeriesType: 'scatter',
marginRight: 10,
events: {
load: function() {
}
}
},
title: {... | AdlerFarHorizons/FarHorizonsApp | public/tracking/testChart.js | JavaScript | mit | 3,350 |
var Checker = require('../../../lib/checker');
var assert = require('assert');
describe('rules/disallow-parentheses-around-arrow-param', function() {
var checker;
beforeEach(function() {
checker = new Checker();
checker.registerDefaultRules();
checker.configure({ esnext: true, disallow... | ronkorving/node-jscs | test/specs/rules/disallow-parentheses-around-arrow-param.js | JavaScript | mit | 1,553 |
(function () {
var colorpicker = (function () {
'use strict';
var global = tinymce.util.Tools.resolve('tinymce.PluginManager');
var global$1 = tinymce.util.Tools.resolve('tinymce.util.Color');
var showPreview = function (win, hexColor) {
win.find('#preview')[0].getEl().style.background = hexColor;
};
... | cityofasheville/coa-converse | plugins/colorpicker/plugin.js | JavaScript | mit | 3,353 |
/**
@license
* @pnp/pnpjs v1.2.2-0 - pnp - rollup library of core functionality (mimics sp-pnp-js)
* MIT (https://github.com/pnp/pnpjs/blob/master/LICENSE)
* Copyright (c) 2018 Microsoft
* docs: https://pnp.github.io/pnpjs/
* source: https:github.com/pnp/pnpjs
* bugs: https://github.com/pnp/pnpjs/issues
*/
impor... | joeyparrish/cdnjs | ajax/libs/pnp-pnpjs/1.2.2-0/pnpjs.es5.js | JavaScript | mit | 3,001 |
/**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React, { Component, PropTypes } from 'react';
impor... | donal-crotty/fuzzy-telegram | src/components/App/App.js | JavaScript | mit | 1,478 |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _concat = require('./internal/concat');
var _concat2 = _interopRequireDefault(_concat);
var _doParallel = require('./internal/doParallel');
var _doParallel2 = _interopRequireDefault(_doParallel);
function _interopRequireDefault(obj... | fedejoaquin/IAW | serverNode/node_modules/async/concat.js | JavaScript | mit | 481 |
var through = require('through2');
var chunky = require('chunky');
var fs = require('fs');
var path = require('path');
var verify = require('adventure-verify');
var concat = require('concat-stream');
var data = fs.readFileSync(path.join(__dirname, 'finnegans_wake.txt'), 'utf8');
var spawn = require('child_process').s... | Gtskk/stream-adventure | problems/lines/index.js | JavaScript | mit | 2,130 |
import { get } from 'ember-metal';
import { ControllerMixin } from 'ember-runtime';
import { prefixRouteNameArg } from '../utils';
/**
@module ember
@submodule ember-routing
*/
ControllerMixin.reopen({
concatenatedProperties: ['queryParams'],
/**
Defines which query parameters the controller accepts.
If ... | cbou/ember.js | packages/ember-routing/lib/ext/controller.js | JavaScript | mit | 7,323 |
void function(exports,$,_,Backbone){Backbone.UndoManager.removeUndoType("add");Backbone.UndoManager.removeUndoType("remove");_(exports).extend({onbeforeunload:function(){},slider:new JSNES_SliderView({el:".jsn-es-app",saveTarget:"#jform_slider_data"})});$(".dropdown-toggle").dropdown()}(this,JSNES_jQuery,JSNES_Undersco... | DevDean/jissaticket | administrator/components/com_easyslider/assets/slider/js/init.js | JavaScript | gpl-2.0 | 339 |
modules.define('test', ['i-bem__dom'], function(provide, BEMDOM) {
provide(BEMDOM.decl(this.name, {
onSetMod : {
'js' : {
'inited' : function() {
var modal = this.findBlockInside('modal');
this.findBlockInside('link').on('click', function() {
... | just-boris/bem-components | common.blocks/modal/modal.tests/gemini.blocks/test/test.js | JavaScript | mpl-2.0 | 431 |
/**
* Copyright (C) 2005-2016 Alfresco Software Limited.
*
* This file is part of Alfresco
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at ... | davidcognite/Aikau | aikau/src/main/resources/alfresco/forms/controls/utilities/ServiceStore.js | JavaScript | lgpl-3.0 | 15,995 |
var brCore = require("br/Core");
var Fixture = require("br/test/Fixture");
var FixtureFactory = require("br/test/FixtureFactory");
var TestFixtureFactory = function()
{
this.m_mFixtures = {};
};
brCore.implement(TestFixtureFactory, FixtureFactory);
TestFixtureFactory.createMockFixture = function(bCanHandleExactMatch... | trueadm/brjs | brjs-sdk/sdk/libs/javascript/br-test/test-unit/src-test/br/test/TestFixtureFactory.js | JavaScript | lgpl-3.0 | 2,121 |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _lodash = require('lodash');
var _lodash2 = _interopRequireDefault(_lodash);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var schema = [];
var create = function create(context) {
... | BigBoss424/portfolio | v8/development/node_modules/eslint-plugin-flowtype/dist/rules/noPrimitiveConstructorTypes.js | JavaScript | apache-2.0 | 817 |
var Hat=function(){function t(t){this.greeting=t}return t.prototype.go=function(){return this.greeting},t}();module.exports=Hat; | jimhotchkin-wf/wGulp | test/subtasks/minify/app.min.js | JavaScript | apache-2.0 | 128 |
/**
* Sahi - Web Automation and Test Tool
*
* Copyright 2006 V Narayan Raman
*
* 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
*
*... | ketan/functional-tests | tools/sahi/htdocs/spr/controller7.js | JavaScript | apache-2.0 | 27,203 |
// This file was procedurally generated from the following sources:
// - src/async-generators/yield-star-getiter-sync-returns-undefined-throw.case
// - src/async-generators/default/async-class-expr-method.template
/*---
description: Non object returned by [Symbol.iterator]() - undefined (Async generator method as a Cla... | sebastienros/jint | Jint.Tests.Test262/test/language/expressions/class/async-gen-method-yield-star-getiter-sync-returns-undefined-throw.js | JavaScript | bsd-2-clause | 2,119 |
/**
* Copyright 2014-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @emails react... | flipactual/react | src/renderers/__tests__/ReactEmptyComponent-test.js | JavaScript | bsd-3-clause | 8,879 |
/* axios v0.19.0-beta.1 | (c) 2018 by Matt Zabriskie */
(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... | jonobr1/cdnjs | ajax/libs/axios/0.19.0-beta.1/axios.js | JavaScript | mit | 44,448 |