code stringlengths 2 1.05M | repo_name stringlengths 5 114 | path stringlengths 4 991 | language stringclasses 1
value | license stringclasses 15
values | size int32 2 1.05M |
|---|---|---|---|---|---|
/*
* Copyright (C) 2010-2021 Structr GmbH
*
* This file is part of Structr <http://structr.org>.
*
* Structr 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, either version 3 of the
* License, or... | ckramp/structr | structr-ui/src/main/resources/structr/js/dashboard.js | JavaScript | gpl-3.0 | 32,802 |
'use strict';
var Stylize = require('stylize-core'),
chalk = require('chalk'),
_ = require('lodash'),
path = require('path'),
frontEnd = require('stylize-front-end'),
ProgressBar = require('progress');
var Patterns = function() {
this.run = function(params, cb) {
console.log(chalk.green('Co... | Josh-Miller/stylize | lib/compile.js | JavaScript | gpl-3.0 | 3,253 |
{"address":["Level 3 Sunnyvale","1380 Kifer Road","Sunnyvale, United States, 94086"],"id":12384,"exchanges":[{"slug":"pacific-wave-san-francisco-united-states","name":"Pacific Wave","info":[{"onclick":null,"link":null,"value":"888 722 9283"},{"onclick":null,"link":"mailto:info@pacificwave.net","value":"info@pacificwave... | brangerbriz/webroutes | nw-app/telegeography-data/internetexchanges/buildings/12384.js | JavaScript | gpl-3.0 | 452 |
import React from 'react';
import ShallowRenderer from 'react-test-renderer/shallow';
import Children from '.';
const renderer = new ShallowRenderer();
describe('<Children />', () => {
test('should render', () => {
renderer.render(
<Children
names={{
12333: {
name: 'unclassi... | ProteinsWebTeam/interpro7-client | src/components/Taxonomy/Children/test.js | JavaScript | gpl-3.0 | 645 |
/* ************************************************************************
qooxdoo - the new era of web development
http://qooxdoo.org
Copyright:
2004-2008 1&1 Internet AG, Germany, http://www.1und1.de
License:
LGPL: http://www.gnu.org/licenses/lgpl.html
EPL: http://www.eclipse.org/org/d... | 09zwcbupt/undergrad_thesis | ext/poxdesk/qx/application/demobrowser/source/class/demobrowser/demo/bom/Location.js | JavaScript | gpl-3.0 | 2,892 |
var url = require('url');
var config = require('../../../config').config;
function urlForHelper(path){
path = path || '/';
var root = config.HOST.root;
var data = url.parse(path);
// Exit if this is an external path
if (data.protocol || path.substring(0, 2) === '//'){
return path;
}
// Prepend roo... | JudgeGirl/JudgeNode | lib/components/plugin/helper/url_for.js | JavaScript | gpl-3.0 | 473 |
define(["npm:aurelia-templating-resources@1.0.0-beta.1.1.0/aurelia-templating-resources"], function(main) {
return main;
}); | ludoT/PFCLS | jspm_packages/npm/aurelia-templating-resources@1.0.0-beta.1.1.0.js | JavaScript | gpl-3.0 | 126 |
'use strict';
angular.module('Wbpms')
.controller('ViewCtrl', ['$scope', '$http', '$log', 'UserData', 'ProjectData', 'IterationData', 'SearchMemberData', 'ViewHomeData',
function ($scope, $http, $log, UserData, ProjectData, IterationData, SearchMemberData, ViewHomeData) {
//Global User Data
$sc... | Matias-Bernal/www | js/viewCtrl.js | JavaScript | gpl-3.0 | 7,971 |
const Util = require('../core/util')
const Player = require('./player')
const UUID = require('./uuid')
class Team {
constructor (tournament, other) {
this.tournament = tournament
if (other) {
for (var [key, value] of Object.entries(other)) {
this[key] = value
}
}
(this.name != n... | dapetcu21/ARGOTabs | client/models/team.js | JavaScript | gpl-3.0 | 7,066 |
angular.module('common.viewEditDirectives.viewEditPercentageField', []);
| CARLI/select | browserClient/common/components/viewEditDirectives/viewEditPercentageField/viewEditPercentageField.config.js | JavaScript | gpl-3.0 | 73 |
const DataType = {SIMPLE:0,JSON:1,BYTE:2};
class Communicator {
request(url,data={},uploadDataType=DataType.SIMPLE,downloadDataType=DataType.JSON){
// Deferred object for function status
const status = $.Deferred();
let request = {
type: "POST",
url: url,
beforeSend: () => console.log(`reque... | chreul/LAREX | src/main/webapp/resources/js/viewer/communicator.js | JavaScript | gpl-3.0 | 5,754 |
var BaseRouter = require('../../api/BaseRouter');
module.exports = class StageRouter extends BaseRouter {
constructor() {
super();
this.init();
var PostStageController = require('./PostStageController');
this.postStageController = new PostStageController();
this.that = this... | straach/helptracker | api/controller/stages/StageRouter.js | JavaScript | gpl-3.0 | 618 |
'use strict';
var renderer = require('./lib/renderer');
var assign = require('object-assign');
var read_info = require('./lib/read-info');
// Init option
hexo.config.org = assign({
toc: false,
emacs: 'emacs',
common: '',
export_cfg: "(progn (package-initialize)(require 'org) (require 'org-clock) (require 'ox))... | CodeFalling/hexo-renderer-org | index.js | JavaScript | gpl-3.0 | 514 |
Grooovy.grid.Queues = function(config) {
config = config || {};
if (!config.id) {
config.id = 'grooovy-grid-queues';
}
Ext.applyIf(config,{
url: Grooovy.config.connector_url
,baseParams: {
action: 'mgr/queue/getlist'
}
,fields: ['id','bid_id','client_i... | madebydima/GrooovyProject | assets/components/grooovy/js/mgr/widgets/queues.grid.js | JavaScript | gpl-3.0 | 1,479 |
/*jshint esversion: 6*/
import StreamTask from './classes/StreamTask';
import proc from './functions/styles';
let obj = {
name: 'styles',
src: './styles/main.styl',
proc,
dest: './build/styles/',
watchDir: './styles/**/*',
};
let task = new StreamTask(obj);
task.execute();
task.watch();
| michaelkornblum/clockwork | gulp_modules/styles.js | JavaScript | gpl-3.0 | 301 |
Cassablanca', 1),
(178, 1209, 12, '', 0, 'Chaouia-Ouardigha', 1),
(179, 1210, 12, '', 0, 'Doukahla-Adba', 1),
(180, 1211, 12, '', 0, 'Marrakech-Tensift-Al Haouz', 1),
(181, 1212, 12, '', 0, 'Tadla-Azilal', 1),
(182, 1213, 12, '', 0, 'Sous-Massa-Drâa', 1),
(183, 1214, 12, '', 0, 'Guelmim-Es Smara', 1),
(184, 1215, 12, '... | maxpalermo/dolibarr-simplepos | js/jquery.autocomplete.min.js | JavaScript | gpl-3.0 | 13,062 |
var namespaceDQN_Deepmind_NIPS_2013_1_1Saver =
[
[ "Saver", "classDQN-Deepmind-NIPS-2013_1_1Saver_1_1Saver.html", "classDQN-Deepmind-NIPS-2013_1_1Saver_1_1Saver" ]
]; | Nimoab/DQN-Deepmind-NIPS-2013 | doc/html/namespaceDQN-Deepmind-NIPS-2013_1_1Saver.js | JavaScript | gpl-3.0 | 170 |
var searchData=
[
['acseauthenticationparameter_5fcreate',['AcseAuthenticationParameter_create',['../group__mms__client__api__group.html#ga966b284fff8df3d22b982eab91bebaa1',1,'iso_connection_parameters.h']]],
['acseauthenticationparameter_5fdestroy',['AcseAuthenticationParameter_destroy',['../group__mms__client__ap... | feuvan/libiec61850 | html/search/functions_0.js | JavaScript | gpl-3.0 | 824 |
'use strict';
angular.module('three')
.directive('glLocationMessages', function () {
return {
restrict: 'E',
scope: {
},
controller: locMsgController,
controllerAs: 'vm'
}
});
function locMsgController($scope, toaster, glCoordService) {
var vm = this;
vm.coordService = g... | met-office-lab/ng-3d-vis | components/location_search/glLocationMessages.js | JavaScript | gpl-3.0 | 1,122 |
{"exchanges":[{"info":[{"onclick":null,"link":"mailto:info@nwax.net","value":"info@nwax.net"},{"onclick":null,"link":null,"value":"1 503 914 0700"},{"onclick":null,"link":"mailto:info@nwax.net","value":"info@nwax.net"},{"onclick":"window.open(this.href,'ix-new-window');return false;","link":"http://www.nwax.net","value... | brangerbriz/webroutes | nw-app/telegeography-data/internetexchanges/buildings/15879.js | JavaScript | gpl-3.0 | 560 |
/*
* Copyright (C) 2015-present CloudBeat Limited
*
* 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 version.
*/
/**
* Pr... | oxygenhq/oxygen-node | ox_modules/module-soap.js | JavaScript | gpl-3.0 | 6,074 |
var searchData=
[
['filterjoint',['FilterJoint',['../class_microsoft_1_1_samples_1_1_kinect_1_1_avateering_1_1_filters_1_1_bone_orientation_double_exponential_filter.html#a8f88f7fd4bb8f00569eafe15b74b2331',1,'Microsoft.Samples.Kinect.Avateering.Filters.BoneOrientationDoubleExponentialFilter.FilterJoint()'],['../class... | kandran/musee-interactif | Prototype 3D/Docs/html/search/all_5.js | JavaScript | gpl-3.0 | 1,351 |
class TimeValidator {
/** Regular format in this context means: WeekDay, mm dd, yyyy hh:mm
* ex: Thu, May 04, 2017 02:44
* */
static isValidRegularFormat(dateTimeString) {
let expressionMatches = /^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (J(an(|uary)|u(ne|ly))|Feb(|ruary)|Ma(r(|ch)|y)|A(pr(|il)|... | TuHuynhVan/js-tevn | lib/TimeValidator.js | JavaScript | gpl-3.0 | 1,547 |
if( typeof ka == "undefined" ) window.ka = {};
ka.kedit = new Class({
initialize: function( pDocument ){
this.body = pDocument.body;
this.body.setStyle('margin-top', 60);
this._createLayout();
},
_createLayout: function(){
this.panelBorder = new Element('div', {
... | m1rco/Kryn.cms | inc/template/admin/js/ka.kedit.js | JavaScript | gpl-3.0 | 1,645 |
emit('agents:changed', this);
// check if objects are attached
var currentAgent = this; // fool the closure
dpd.objects.get({owner: this.id}, function(objectsToUpdate) {
for (var i=0; i<objectsToUpdate.length; i++) {
objectsToUpdate[i].location = currentAgent.location;
emit('objects:changed', ... | blckwngd/WorldServer | Server/Resources/agents/put.js | JavaScript | gpl-3.0 | 350 |
$(document).ready(function () {
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Globals and initializations
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////
let Edit... | andrewbrg/codepad-chrome-app | src/js/events.js | JavaScript | gpl-3.0 | 15,438 |
// @flow
/**
* Game state including who is the current player, the armies on each territory,
* and the cards each player holds.
*
* The flat data structure contains mostly integers representing counts and indices.
*
* @property state - the state of the game, such as "Battling"
* @property territories - array wi... | matthewspivey/warcode-core | src/MatchState.js | JavaScript | gpl-3.0 | 1,564 |
"use strict";
const fs = require('fs');
function setDefaults(configValue) {
let result = configValue;
if (typeof configValue === 'undefined') {
for (let i = 1; i < arguments.length; i++) {
if (typeof arguments[i] != 'undefined') {
result = arguments[i];
brea... | AndresCalimero/gvcp | utils/config/index.js | JavaScript | gpl-3.0 | 1,863 |
( function () {
var SavedLinksListWidget = require( './SavedLinksListWidget.js' ),
FilterWrapperWidget = require( './FilterWrapperWidget.js' ),
ChangesListWrapperWidget = require( './ChangesListWrapperWidget.js' ),
RcTopSectionWidget = require( './RcTopSectionWidget.js' ),
RclTopSectionWidget = require( './Rcl... | kylethayer/bioladder | wiki/resources/src/mediawiki.rcfilters/ui/MainWrapperWidget.js | JavaScript | gpl-3.0 | 4,644 |
(function() {
var init = function() {
var map = document.getElementsByClassName('map_wrapper')[0];
if(map)
{
// Asynchronously Load the map API
var script = document.createElement('script');
script.src = "https://maps.googleapis.com/maps/api/js?key=AIzaSyAY50DkMkPv8SFSD4gz3y6UUC6qyIqQtmo&callback=init_m... | puggan/wp_rent_objects | map.js | JavaScript | gpl-3.0 | 3,258 |
$(document).ready(function () {
$('#li-speeddial').after('<li><a href="#tabs-bluetooth">Bluetooth</a></li>');
$('#tabs-speeddial').after('<div id="tabs-bluetooth"><div id="BluetoothContainer"></div><br /><div><form id="discovery_form"><input type="checkbox" id="DiscoveryCheckbox" name="discovery"><label for="disc... | long-exposure/potsbliz-src | python/potsbliz/userpart/bluetooth/www/bluetooth.js | JavaScript | gpl-3.0 | 6,022 |
import MayorLeonard from '#/utils/dialogues/MayorLeonard.js'
import DwarfBili from '#/utils/dialogues/DwarfBili.js'
import Bartender from '#/utils/dialogues/Bartender.js'
import NaniAndBiliRescue from '#/utils/dialogues/NaniAndBiliRescue.js'
export default {
MAYOR_LEONARD: MayorLeonard,
DWARF_BILI: DwarfBili,
BA... | Larkenx/Rotten-Soup | src/assets/js/game/utils/Dialogues.js | JavaScript | gpl-3.0 | 384 |
var H = new ActiveXObject("DriverHelper.Chooser");
WScript.Echo("Choose your new driver in the Chooser that will appear. Then click Properties to activate its SetupDialog");
H.DeviceType = "Telescope"; // Make chooser for Telescopes
var drvrID = H.Choose("");
if(drvrID === "") WScript.Quit(); ... | PKAstro/Ascom.Gemini.Telescope | Telescope/Test.js | JavaScript | gpl-3.0 | 1,147 |
import sinon from 'sinon';
import factory, {
isStartingOperation,
isFinishingOperation,
createNodeEnvelope,
isNodeEnvelope,
resolveChain
} from './index.js';
test(`
"api.flowQuery > isStartingOperation" utility should return a falsy boolean
if no operation object was passed.`, () => {
e... | dimaip/neos-ui | packages/neos-ui-backend-connector/src/FlowQuery/index.spec.js | JavaScript | gpl-3.0 | 6,543 |
/*
tagManager JS loader
*/
;(function () {
function loadCss(url) {
var link = document.createElement("link");
link.type = "text/css";
link.rel = "stylesheet";
link.href = url;
document.getElementsByTagName("head")[0].appendChild(link);
}
/*
if ( typeof tmFiltersOptions == 'undefined' ) {
v... | kosgis26/kosgis26.github.io | Work/kubproekt/assets/components/tag_manager2/js/web/tm_loader.js | JavaScript | gpl-3.0 | 1,361 |
var fs = require('fs');
exports.rmdir = function(dirPath) {
try {
var files = fs.readdirSync(dirPath);
} catch (e) {
return console.error(e);
}
if (files.length > 0)
for (var i = 0; i < files.length; i++) {
var filePath = dirPath + '/' + files[i];
if (fs.statSync(filePath).isFile())
fs.u... | brunofin/coinvalue | frontend/build/commom.js | JavaScript | gpl-3.0 | 540 |
require('dotenv').config()
const test = require('ava')
const request = require('supertest')
const nodemailer = require('nodemailer')
const _ = require('lodash')
const {
testTools: { lifecycle, auth }
} = require('../../serverTooling')
const { before, beforeEach, after } = lifecycle
const { getAccessTokenHeaders } ... | stelace/stelace | plugins/email/test/email.spec.js | JavaScript | gpl-3.0 | 28,794 |
import React, { Component } from "react";
import PropTypes from "prop-types";
import { Components } from "@reactioncommerce/reaction-components";
import OrderTable from "../containers/orderTableContainer";
import OrderFilter from "./orderFilter";
import OrderSearch from "./orderSearch";
class OrderDashboard extends Co... | MassDistributionMedia/rc-ca-blinds | imports/plugins/core/orders/client/components/orderDashboard.js | JavaScript | gpl-3.0 | 3,613 |
/*
* Copyright (C) 2021 Inera AB (http://www.inera.se)
*
* This file is part of sklintyg (https://github.com/sklintyg).
*
* sklintyg 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 t... | sklintyg/webcert | test/webcertTestTools/pages/intyg/fk/smi/luae_fs/luae_fs.intyg.page.js | JavaScript | gpl-3.0 | 1,751 |
// GPLv3, Copyright (C) 2017, theBlock, https://theblock.io
// @flow
declare module 'moment' {
declare module.exports: (date: Date) => {
fromNow: () => string
}
}
| theblock/theblock.github.io | flow-typed/moment.js | JavaScript | gpl-3.0 | 172 |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'newpage', 'hu', {
toolbar: 'Új oldal'
});
| tsmaryka/hitc | public/javascripts/ckeditor/plugins/newpage/lang/hu.js | JavaScript | gpl-3.0 | 219 |
/**
* Given an array of integers that is already sorted in ascending order,
* find two numbers such that they add up to a specific target number.
*
* The function twoSum should return indices of the two numbers such that they add up to the target,
* where index1 must be less than index2. Please note that your r... | whelan957/leetcode | javascript/TwoPointers/leetcode167_TwoSumII-InputArrayIsSorted.js | JavaScript | gpl-3.0 | 2,002 |
var searchData=
[
['halt_5fevents',['halt_events',['../game__a_8cpp.html#a86cee01a84babc41068444bd207eb1f8',1,'game_a.cpp']]],
['halt_5fsounds',['halt_sounds',['../resources_8cpp.html#ad87ec74036a0a1ec50e83011b55678ba',1,'halt_sounds(): resources.cpp'],['../resources_8h.html#ad87ec74036a0a1ec50e83011b55678ba',... | SimonItaly/duckhunt | doc/html/search/all_68.js | JavaScript | gpl-3.0 | 691 |
(function() {
'use strict';
angular
.module('ngNjOrg')
.controller('CodeController',function ($log) {
var self = this;
})
})();
| ng-nj/ng-nj.org | src/app/routes/code/code.controller.js | JavaScript | gpl-3.0 | 153 |
/**
* @author Martin Micunda {@link http://martinmicunda.com}
* @copyright Copyright (c) 2015, Martin Micunda
* @license GPL-3.0
*/
'use strict';
import 'angular-mocks';
import Login from './login.js';
describe('Login', () => {
let component = '<login></login>';
beforeEach(angular.mock.module('ngDec... | martinmicunda/employee-scheduling-ui | src/app/routes/layout-auth/login/login.spec.js | JavaScript | gpl-3.0 | 12,885 |
define(['model/appModel', 'view/loginView'], function(appModel, loginView) {
return function (router) {
router.routes.login = function() {
appModel.set('view', new loginView);
}
}
}) | dhruvkhatkar/bestMapAppNA | src/scripts/control/routes/loginRoutes.js | JavaScript | gpl-3.0 | 196 |
// Generates coordinates that can be used together with drawing commands and the max lcd object
/*
Inlets:
0: number of dots to draw (int)
Outlets:
0: list of coordinates for dot (list)
1: the drawing command clear is emitted whenever the number of dots to draw changes (msg)
Arguments:
size of dots (int... | carrierdown/m4l-midular | externals/js/drawcount.js | JavaScript | gpl-3.0 | 1,067 |
function ThreeJsCtrl($scope, gcodeinterpreter, scene) {
$scope.workpiece = {width: 300, height: 100, depth: 200};
$scope.tools = [{diameter: 10}, {diameter: 20}];
$scope.gcode = "g0 x0 y0 z10\nm6 t2\ng1 z-10\nx30\ny30\nx0\ny0\nm6 t1\ng1 z-20\nx30\ny30\nx0\ny0\nm6 t1\ng1 z-30\nx30\ny30\nx0\ny0\nm6 t1\ng1 z-110\nx3... | dagrende/gsim | js/controller.js | JavaScript | gpl-3.0 | 3,173 |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'image', 'fo', {
alertUrl: 'Rita slóðina til myndina',
alt: 'Alternativur tekstur',
border: 'Bordi',
btnUpload: 'Send til ambætaran',
button2Im... | tsmaryka/hitc | public/javascripts/ckeditor/plugins/image/lang/fo.js | JavaScript | gpl-3.0 | 909 |
Joomla 3.6.4 = b491a3ffbbaf3d17188d4cbfc9701656
Joomla 3.7.0 = e87ce22da1d9df5759358657dac550e2
| gohdan/DFC | known_files/hashes/media/jui/js/fielduser.js | JavaScript | gpl-3.0 | 96 |
'use strict';
define(['pubsub'],
function(PubSub) {
testSetup('PubSub', function() {
it('logs an event to the console if debug is true', function() {
var spy = sinon.spy(window.console, 'log');
window.tenacityConfig = {
debug: true
... | Maloric/tenacity | test/spec/tenacity/pubsubTest.js | JavaScript | gpl-3.0 | 2,571 |
'use strict';
TABS.dataflash = {
available: false
};
TABS.dataflash.initialize = function (callback) {
var
self = this,
saveCancelled, eraseCancelled;
if (GUI.active_tab != 'dataflash') {
GUI.active_tab = 'dataflash';
googleAnalytics.sendAppView('Dataflash');
}
va... | rs2k/raceflight-configurator | tabs/dataflash.js | JavaScript | gpl-3.0 | 9,827 |
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var RegionSchema = new Schema({
name : {type: String, required: true, unique: true},
continent : {type: Schema.Types.ObjectId, ref: "Continent"},
neighbors : [{type: Schema.Types.ObjectId, ref: "Region"}],
cultures : [{type: Sche... | Rostlab/JS16_ProjectA | app/models/region.js | JavaScript | gpl-3.0 | 614 |
/**
* Module dependencies.
*/
var debug = require('debug')('vorbis:decoder');
var binding = require('./binding');
var inherits = require('util').inherits;
var Transform = require('stream').Transform;
// node v0.8.x compat
if (!Transform) Transform = require('readable-stream/transform');
/**
* Module exports.
*/... | cstabb/vafbot | node_modules/vorbis/lib/decoder.js | JavaScript | gpl-3.0 | 4,555 |
CKEDITOR.plugins.setLang("stylescombo","ar",{label:"أنماط",panelTitle:"أنماط التنسيق",panelTitle1:"أنماط الفقرة",panelTitle2:"أنماط مضمنة",panelTitle3:"أنماط الكائن"}); | babbling-brook/streambed | js/resources/ckeditor/release/plugins/stylescombo/lang/ar.js | JavaScript | gpl-3.0 | 220 |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _awsSdk = require('aws-sdk');
var _awsSdk2 = _interopRequireDefault(_awsSdk);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var dynamoConfig = {
region: process.env.DDB_REGION || '... | jpicornell/dynabrow | dist/dynamo.js | JavaScript | gpl-3.0 | 857 |
var searchData=
[
['l2cap_20api',['L2CAP API',['../a00499.html',1,'']]],
['link_20encryption_20with_20bonded_20device',['Link Encryption with Bonded Device',['../a00504.html',1,'']]],
['libraries',['Libraries',['../a00003.html',1,'']]],
['l2cap_5fevt',['l2cap_evt',['../a00078.html#a615ab3df54ef7363a90f915d6440c... | DroneBucket/Drone_Bucket_CrazyFlie2_NRF_Firmware | nrf51_sdk/Documentation/s120/html/search/all_6c.js | JavaScript | gpl-3.0 | 2,180 |
import BrandedAppBar from './BrandedAppBar';
export default BrandedAppBar;
| nobt-io/frontend | src/components/BrandedAppBar/index.js | JavaScript | gpl-3.0 | 76 |
import * as albums from './albumActions';
import * as albumHistory from './albumHistoryActions';
import * as albumStudio from './albumStudioActions';
import * as app from './appActions';
import * as artist from './artistActions';
import * as artistEditor from './artistEditorActions';
import * as artistHistory from './a... | lidarr/Lidarr | frontend/src/Store/Actions/index.js | JavaScript | gpl-3.0 | 1,802 |
/*global $*/
angular.module('nicoco').directive('carousel', ['slides', function (slides) {
return {
templateUrl: '/carousel.html',
restrict: 'E',
bindToController: 'true',
controllerAs: 'carousel',
controller: function () {
this.slides = slides;
$('#carousel').carousel({ interval: 3000 });
}
};
}]);... | tcompart/nicoco | src/app/carousel/carouselDirective.js | JavaScript | gpl-3.0 | 321 |
var Market = React.createClass({
getInitialState: function() {
return { services: [] };
},
componentDidMount: function() {
this.refreshMarket();
if(this.props.interval !== undefined) {
setInterval(this.refreshMarket, this.props.interval);
}
},
refreshMarket: function() {
this.props.ajax(this.props.... | karalabe/etherapis | etherapis/dashboard/assets/components/market.js | JavaScript | gpl-3.0 | 1,884 |
/*
* File: app/store/IpB.js
*
* This file was generated by Sencha Architect version 2.2.2.
* http://www.sencha.com/products/architect/
*
* This file requires use of the Ext JS 4.1.x library, under independent license.
* License of Sencha Architect does not include license for Ext JS 4.1.x. For more
* details se... | Jnig/openPCM | web/app/store/IpB.js | JavaScript | gpl-3.0 | 1,257 |
import React from 'react'
import Head from './../components/Head';
import Footer from './../components/Footer';
import Header from './../components/Header';
import { RegisterForm } from './../components/Forms';
import { Panel, Alert } from 'react-bootstrap';
import withRedux from 'next-redux-wrapper';
import { bin... | marioguerriero/opengram | client/pages/register.js | JavaScript | gpl-3.0 | 1,242 |
/**
* @class Ext.draw.sprite.Composite
* @extends Ext.draw.sprite.Sprite
*
* Represents a group of sprites.
*/
Ext.define('Ext.draw.sprite.Composite', {
extend: 'Ext.draw.sprite.Sprite',
alias: 'sprite.composite',
type: 'composite',
constructor: function () {
this.callParent(arguments);
... | grgur/Sencha5-Finance | ext/packages/sencha-charts/src/draw/sprite/Composite.js | JavaScript | gpl-3.0 | 3,140 |
// Add pages.
let shorturl = "http://example.com/" + "a".repeat(1981);
let longurl = "http://example.com/" + "a".repeat(1982);
let bmurl = "http://example.com/" + "a".repeat(1983);
add_task(function* setup() {
yield setupPlacesDatabase("places_v31.sqlite");
// Setup database contents to be migrated.
let path = O... | Yukarumya/Yukarum-Redfoxes | toolkit/components/places/tests/migration/test_current_from_v31.js | JavaScript | mpl-2.0 | 2,113 |
import hbs from 'htmlbars-inline-precompile';
import { storiesOf } from '@storybook/ember';
import notes from './ttl-picker2.md';
import { withKnobs, text, boolean, select } from '@storybook/addon-knobs';
storiesOf('TTL/TtlPicker2', module)
.addParameters({ options: { showPanel: true } })
.addDecorator(withKnobs()... | hashicorp/vault | ui/lib/core/stories/ttl-picker2.stories.js | JavaScript | mpl-2.0 | 1,762 |
'use strict';
// Test is based on the following editor draft:
// https://w3c.github.io/webrtc-pc/archives/20170605/webrtc.html
// Code using this helper should also include RTCPeerConnection-helper.js
// in the main HTML file
// The following helper functions are called from RTCPeerConnection-helper.js:
// getTrac... | SimonSapin/servo | tests/wpt/web-platform-tests/webrtc/RTCDTMFSender-helper.js | JavaScript | mpl-2.0 | 5,018 |
/*global famous*/
// dependencies
var Engine = famous.core.Engine;
var Modifier = famous.core.Modifier;
var Transform = famous.core.Transform;
var ImageSurface = famous.surfaces.ImageSurface;
var Surface = famous.core.Surface;
var StateModifier = famous.modifiers.StateModifier;
var Easing = famous.transitions.Easing;
v... | RizkyWellyanto/EFChallenge | Hello Universe/src/main.js | JavaScript | mpl-2.0 | 2,833 |
/* 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/. */
(function(){
"use strict";
let scope;
if ((typeof exports) !== "undefined"){
scope = exports;
}
else {
s... | kkapsner/CanvasBlocker | lib/modifiedNavigatorAPI.js | JavaScript | mpl-2.0 | 1,883 |
import detectBrowser from 'browser-detect'
import {
CHROME_BROWSER,
FIREFOX_BROWSER,
UNSUPPORTED_BROWSER,
} from 'js/constants'
/**
* Determines the user's browser. If the browser is one
* for which we have a browser extension, return the browser
* name; else, return "other".
* @return {String} One of "chrom... | gladly-team/tab | web/src/js/utils/detectBrowser.js | JavaScript | mpl-2.0 | 813 |
/*
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/.
Copyright (c) 2014 Mozilla Corporation
Contributors:
Jeff Bryner jbryner@mozilla.com
Anthony Verez averez@mozilla.com
*/
... | jvehent/MozDef | meteor/app/client/alertTableItem.js | JavaScript | mpl-2.0 | 509 |
// DO NOT EDIT! This test has been generated by tools/gentest.py.
// OffscreenCanvas test in a worker:2d.imageData.get.unaffected
// Description:getImageData() is not affected by context state
// Note:
importScripts("/resources/testharness.js");
importScripts("/2dcontext/resources/canvas-tests.js");
var t = async_tes... | DominoTree/servo | tests/wpt/web-platform-tests/offscreen-canvas/pixel-manipulation/2d.imageData.get.unaffected.worker.js | JavaScript | mpl-2.0 | 1,144 |
/* 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/. */
"use strict";
const { assert } = require("devtools/shared/DevToolsUtils");
const { actions } = require("../constan... | Yukarumya/Yukarum-Redfoxes | devtools/client/memory/actions/label-display.js | JavaScript | mpl-2.0 | 1,204 |
/* 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/. */
"use strict";
const { frames } = require("../remote/child");
const { Class } = require("../core/heritage");
const ... | Yukarumya/Yukarum-Redfoxes | addon-sdk/source/lib/sdk/content/page-worker.js | JavaScript | mpl-2.0 | 4,573 |
// flow-typed signatures for 'watchpack' module.
declare module "watchpack" {
declare type WatchpackOptions = {
ignored: Array<string>,
};
declare type WatchOptions = {
files: Array<string>,
directories: Array<string>,
missing: Array<string>,
startTime?: number
};
declare class Watchpac... | mozilla/web-ext | flow-typed/watchpack.decl.js | JavaScript | mpl-2.0 | 518 |
/* exported startup, shutdown, install, ADDON_ID */
Components.utils.import("resource://gre/modules/Services.jsm");
Components.utils.import("resource://gre/modules/AddonManager.jsm");
const ADDON_ID = "test_delay_update_complete@tests.mozilla.org";
function install(data, reason) {}
function startup(data, reason) {}
... | Yukarumya/Yukarum-Redfoxes | toolkit/mozapps/extensions/test/addons/test_delay_update_complete_v2/bootstrap.js | JavaScript | mpl-2.0 | 356 |
self.addEventListener('fetch', function (event) {
if (!event.request.url.endsWith('sw_clients/does_not_exist.html')) {
return;
}
event.respondWith(new Response('', {
status: 301,
statusText: 'Moved Permanently',
headers: {
'Location': 'refresher_compressed.html'
}
}));
});
| Yukarumya/Yukarum-Redfoxes | dom/workers/test/serviceworkers/gzip_redirect_worker.js | JavaScript | mpl-2.0 | 309 |
import React, { Fragment } from 'react';
import { Row, Col } from 'reactstrap';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { Link } from 'react-router-dom';
import config from '../../data/config';
import hero9 from '../../assets/images/hero-bg/hero-9.jpg';
import logo from '../../assets/... | servinglynk/servinglynk-hmis | admin/src/client/LandingPage/index.js | JavaScript | mpl-2.0 | 1,469 |
import * as React from 'react';
import { shallow } from 'enzyme';
import AddonsCard from 'amo/components/AddonsCard';
import LandingAddonsCard from 'amo/components/LandingAddonsCard';
import Link from 'amo/components/Link';
import {
LANDING_PAGE_EXTENSION_COUNT,
LANDING_PAGE_THEME_COUNT,
ADDON_TYPE_STATIC_THEME,... | mozilla/addons-frontend | tests/unit/amo/components/TestLandingAddonsCard.js | JavaScript | mpl-2.0 | 6,032 |
"use strict";
var perf = angular.module("perf", ['ui.router', 'ui.bootstrap', 'treeherder']);
treeherder.factory('PhSeries', ['$http', 'thServiceDomain', 'ThOptionCollectionModel', function($http, thServiceDomain, ThOptionCollectionModel) {
var _getTestName = function(signatureProps, displayOptions) {
va... | wlach/treeherder | ui/js/perf.js | JavaScript | mpl-2.0 | 30,006 |
/* 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/. */
define(function (require, exports, module) {
'use strict';
const $ = require('jquery');
const { assert } = ... | shane-tomlinson/fxa-content-server | app/tests/spec/views/mixins/sync-suggestion-mixin.js | JavaScript | mpl-2.0 | 5,281 |
var app = angular.module('ifyApp', []);
app.controller('ifyCtrl', function($scope) {
$scope.word = "spoon";
}); | Anonymus1/lanServer | public/script.js | JavaScript | mpl-2.0 | 115 |
ace.define("ace/theme/theme",["require","exports","module","ace/lib/dom"], function(acequire, exports, module) {
exports.isDark = false;
exports.cssClass = "ace-theme";
exports.cssText = "";
var dom = acequire("../lib/dom");
dom.importCssString(exports.cssText, exports.cssClass);
});
| Skyus/Oak.js | src/sections/ace_theme.js | JavaScript | mpl-2.0 | 315 |
/*jslint browser: true, eqeqeq: true, bitwise: true, newcap: true, immed: true, regexp: false */
/**
LazyLoad makes it easy and painless to lazily load one or more external
JavaScript or CSS files on demand either during or after the rendering of a web
page.
Supported browsers include Firefox 2+, IE6+, Safari 3+ (inc... | VeriteCo/SliderJS | compiled/js/storyjs-embed.js | JavaScript | mpl-2.0 | 23,826 |
"use strict";
var isHelpfulLine = function(lineData) {
lineData = lineData.replace(/\s*(.*)\s*/, "$1");
var blacklist = {
'automation.py': true,
'remoteautomation.py': true,
'Shutdown': true,
'undefined': true,
'Main app process exited normally': true,
'Tracebac... | glenn124f/treeherder | ui/plugins/auto_classification/controller.js | JavaScript | mpl-2.0 | 40,877 |
/* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/
*/
// Checks that we rebuild something sensible from a corrupt database
Components.utils.import("resource://testing-common/httpd.js");
Components.utils.import("resource://gre/modules/osfile.jsm");
var testserver... | Yukarumya/Yukarum-Redfoxes | toolkit/mozapps/extensions/test/xpcshell/test_locked.js | JavaScript | mpl-2.0 | 18,008 |
/*
Microformats Test Suite - Downloaded from github repo: microformats/tests version v0.1.24
Mocha integration test from: microformats-mixed/h-card/mixedpropertries
The test was built on Fri Sep 25 2015 13:26:26 GMT+0100 (BST)
*/
assert = chai.assert;
describe('h-card', function() {
var htmlFragment = "<div class... | Yukarumya/Yukarum-Redfoxes | toolkit/components/microformats/test/standards-tests/mf-mixed-h-card-mixedpropertries.js | JavaScript | mpl-2.0 | 1,782 |
// danzi.tn@201308091917
function show_points(obj, divid,points,id,showdiv) {
if (id == "" || id == ";" || id == 'null' || id == 0)
{
alert(alert_arr.SELECT);
return false;
}
else {
var use_worklow = getFile("index.php?module=Accounts&action=AccountsAjax&parenttab=Marketing&file=AccRatingAjax&mode=ajax&poin... | andreadanzi/rotho_dev | modules/SDK/src/uitypejQuery/616_functions.js | JavaScript | mpl-2.0 | 2,307 |
/**
* View for an individual team.
*/
(function(define) {
'use strict';
define([
'backbone',
'underscore',
'gettext',
'edx-ui-toolkit/js/utils/html-utils',
'teams/js/views/team_discussion',
'common/js/components/utils/view_utils',
'teams/js/views/team_ut... | cpennington/edx-platform | lms/djangoapps/teams/static/teams/js/views/team_profile.js | JavaScript | agpl-3.0 | 5,721 |
(function (requirejs, require, define) {
"use strict";
define(
'video/08_video_speed_control.js',
['video/00_iterator.js'],
function (Iterator) {
/**
* Video speed control module.
* @exports video/08_video_speed_control.js
* @constructor
* @param {object} state The object containing th... | nttks/edx-platform | common/lib/xmodule/xmodule/js/src/video/08_video_speed_control.js | JavaScript | agpl-3.0 | 13,594 |
import _get from 'lodash/get'
export default {
getOptions: ({formField}) => ({
postPointDigits: _get(formField, 'validation.decimalDigits.postPointDigits', null)
})
}
| tocco/tocco-client | packages/core/app-extensions/src/field/formattedTypeConfigs/number.js | JavaScript | agpl-3.0 | 176 |
// TODO pass optionsId and optionsLabel to directive
function frmMultipleCheckboxField() {
return {
restrict: 'A',
scope: {
required: '&',
model: '=',
options: '=',
optionsId: '@',
optionsLabel: '@',
},
template: '<div frm-model frm-required frm-multiple-checkbox ng-model... | renalreg/radar-client | src/app/forms/fields/multiple-checkbox-field.directive.js | JavaScript | agpl-3.0 | 429 |
/*jshint esversion: 6 */
/*
Manage Menu View to select and unselect proposition of element/link
*/
class AskomicsMenuFile {
constructor () {
}
start() {
let mythis = this;
//$("#uploadedQuery")
$("#dwl-query").on('click', function(d) {
var date = new Date().getTime();
$(this).attr("hr... | cbettemb/askomics | askomics/static/js/AskomicsMenuFile.js | JavaScript | agpl-3.0 | 1,071 |
(function() {
var MblogModel, Model, _ref,
__hasProp = {}.hasOwnProperty,
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); ... | craveprogramminginc/metgeo-frontend | dist/models/mblogModel.js | JavaScript | agpl-3.0 | 1,054 |
const Router = require('koa-router');
const router = new Router();
router.get('/', async (ctx) => {
ctx.status = 200;
ctx.body = 'subject main';
});
module.exports = router;
| tibyte/hanpyo | api/src/routers/subject.js | JavaScript | agpl-3.0 | 181 |
import {gql} from 'react-graphql'
import {browserHistory} from 'react-router'
import {runMutation, queryToCache} from 'core/api'
export const addLibrary = async data => {
const res = await runMutation(gql`
mutation ($library: CreateLibraryInput!) {
createLibrary(library: $library) {
library { id }
... | madjam002/pix | packages/pix-web/src/controllers/add-library/actions.js | JavaScript | agpl-3.0 | 626 |
'use strict';
let CleanWebpackPlugin = require('clean-webpack-plugin');
let webpack = require('webpack');
module.exports = function (_path) {
return {
context: _path,
devtool: 'source-map',
output: {
publicPath: './',
filename: '[name].[chunkhash].js'
},
plugins: [
new CleanWebp... | CERT-BDF/Cortex | www/config/webpack/environments/production.js | JavaScript | agpl-3.0 | 554 |
var Server = function () {
var self = this;
this.name = '';
this.ipAddress = '';
this.serverType = '';
this.offsetX = 0;
this.offsetY = 0;
};
var Connection = function () {
var self = this;
this.serverPath = [];
this.toggleServer = function (server) {
var i;
for (i = 0; i < self.... | omouse/bloodfox-net | client/src/connection.js | JavaScript | agpl-3.0 | 480 |
'use strict'
var redis = require('redis')
module.exports = (wagner) => {
wagner.factory('redcli', (config) => {
let obj = {
current: undefined,
get: () => {
if (obj.current === undefined || !obj.current.connected) {
obj.current = obj.new()
}
return obj.current
... | setecrs/iped-webviewer | lib/redcli.js | JavaScript | agpl-3.0 | 495 |
angular.module('avAdmin')
.controller('ConfirmStartModal',
function($scope, $modalInstance) {
$scope.ok = function () {
$modalInstance.close();
};
$scope.cancel = function () {
$modalInstance.dismiss('cancel');
};
});
| agoravoting/agora-core-view | avAdmin/admin-directives/dashboard/confirm-start-modal.js | JavaScript | agpl-3.0 | 269 |