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'; export function MessagePanel(props, context) { let message = context.messenger.getMessage(); let messagePanel; if (message !== undefined) { messagePanel = ( <div className={ 'alert alert-' + message.type }> { message.text } </div> ); context.mess...
mapkiwiz/sectorisation
src/client/app/panels/message.panel.js
JavaScript
agpl-3.0
534
'use strict'; var mongoose = require('mongoose'), Schema = mongoose.Schema; var Event = new Schema({ name: String, description: String, sport: String, place: { name: String, coords: { longitude: { type: Number }, latitude: { type: Number } }, ad...
asm-products/sportiz-backend
models/event.js
JavaScript
agpl-3.0
1,155
/* Places, Copyright 2014 Ansamb. This file is part of Places By Ansamb. Places By Ansamb is free software: you can redistribute it and/or modify it under the terms of the Affero GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your optio...
ansamb-places/places-application-runtime
core/migrations/application/20140402160700-migration-from-0.0.3-to-0.0.4.js
JavaScript
agpl-3.0
1,271
/*! jQuery UI - v1.10.3 - 2014-01-12 * http://jqueryui.com * Includes: jquery.ui.core.js, jquery.ui.widget.js, jquery.ui.mouse.js, jquery.ui.position.js, jquery.ui.accordion.js, jquery.ui.progressbar.js, jquery.ui.slider.js * Copyright 2014 jQuery Foundation and other contributors; Licensed MIT */ (function( $, undefi...
nccgroup/typofinder
TypoMagic/js/jquery-ui-1.10.3.custom.js
JavaScript
agpl-3.0
78,447
// 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. // This program is distributed in the hope that it will be use...
aarkerio/Centauro
webroot/js/ckeditor/plugins/GeSHi/lang/en.js
JavaScript
agpl-3.0
818
OC.L10N.register( "encryption", { "Missing recovery key password" : "Palautusavaimen salasana puuttuu", "Please repeat the recovery key password" : "Toista palautusavaimen salasana", "Repeated recovery key password does not match the provided recovery key password" : "Toistamiseen annettu palautusav...
jacklicn/owncloud
apps/encryption/l10n/fi_FI.js
JavaScript
agpl-3.0
6,194
'use strict'; import Flickity from 'flickity-imagesloaded' export default function LessonHeader() { console.log("-- LessonHeader initialized") let photosSelector = '.LessonHeader__photos' let $photos = $(photosSelector) if ($photos.length > 0) { let photoSelector = '.LessonHeader__photo' let $status = $(...
fablabbcn/SCOPESdf
assets/javascripts/components/LessonHeader.js
JavaScript
agpl-3.0
973
define([], function () { return function (distributor) { var container = document.createElement("ul") container.classList.add("filters") var div = document.createElement("div") function render(el) { el.appendChild(div) } function filtersChanged(filters) { while (container.firstCh...
srauscher/hopglass
lib/filters/filtergui.js
JavaScript
agpl-3.0
1,004
/* The Conflict of Interest (COI) module of Kuali Research Copyright © 2005-2016 Kuali, Inc. This program 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 (at your ...
kuali/research-coi
test/test-utils.js
JavaScript
agpl-3.0
5,482
import test from 'ava'; import {big64, get64} from '../../src/index.js'; function macro(t, a, o, expected) { expected = get64(...expected); t.deepEqual(big64(a, o), expected); } macro.title = (providedTitle, a, o, expected) => `${providedTitle || ''} big64(${a}, ${o}) === ${expected}`.trim(); test( macro, [0x0...
aureooms/js-uint64
test/src/big64.js
JavaScript
agpl-3.0
1,153
/* This file is part of the HeavenMS MapleStory Server Copyleft (L) 2016 - 2019 RonanLana This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation version 3 as published by the F...
ronancpl/MapleSolaxiaV2
scripts/quest/21613.js
JavaScript
agpl-3.0
2,413
bpmnGatewayInclusive=function(width,_30ab){ VectorFigure.call(this); this.stroke =1; }; bpmnGatewayInclusive.prototype=new VectorFigure; bpmnGatewayInclusive.prototype.type="bpmnGatewayInclusive"; bpmnGatewayInclusive.prototype.paint=function(){ VectorFigure.prototype.paint.call(this); if(typeof workflow.zoomf...
carbonadona/pm
workflow/engine/templates/bpmn/GatewayInclusive.js
JavaScript
agpl-3.0
3,734
/* This file is part of Archivematica. Copyright 2010-2013 Artefactual Systems Inc. <http://artefactual.com> Archivematica 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 ...
sevein/archivematica
src/dashboard/src/media/js/ingest/ingest_file_browser.js
JavaScript
agpl-3.0
14,811
import SPELLS from 'common/SPELLS/index'; /* * Fields: * int: spell scales with Intellect * crit: spell scales with (is able to or procced from) Critical Strike * hasteHpm: spell does more healing due to Haste, e.g. HoTs that gain more ticks * hasteHpct: spell can be cast more frequently due to Haste, basically a...
FaideWW/WoWAnalyzer
src/parser/shared/modules/features/SpellInfo.js
JavaScript
agpl-3.0
5,070
/** * @author Anakeen * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License */ // Utility function to add an event listener function addEvent(o,e,f){ if (o.addEventListener){ o.addEventListener(e,f,true); return true; } else if (o.attachEvent){ return o.attachEvent("on...
Eric-Brison/dynacase-core
Zone/Ui/widget-document.js
JavaScript
agpl-3.0
80,977
var _ = require('lodash'); var fs = require('fs'); var logger = require('./logger'); var jsonLoad = require('./json-load'); var config = module.exports; // defaults - can be overridden in config.json config.startServer = true; config.postgresqlUser = 'postgres'; config.postgresqlPassword = null; config.postgresqlData...
parasgithub/PrairieLearn
lib/config.js
JavaScript
agpl-3.0
6,879
/* ************************************************************************ qooxdoo - the new era of web development http://qooxdoo.org Copyright: 2004-2009 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...
Seldaiendil/meyeOS
devtools/qooxdoo-1.5-sdk/framework/source/class/qx/data/controller/Form.js
JavaScript
agpl-3.0
11,935
import SPELLS from 'common/SPELLS'; import RESOURCE_TYPES from 'game/RESOURCE_TYPES'; import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer'; import Events from 'parser/core/Events'; import STATISTIC_ORDER from 'parser/ui/STATISTIC_ORDER'; import TalentStatisticBox from 'parser/ui/TalentStatisticBox'; import ...
anom0ly/WoWAnalyzer
analysis/deathknightblood/src/modules/talents/Heartbreaker.js
JavaScript
agpl-3.0
1,692
var clover = new Object(); // JSON: {classes : [{name, id, sl, el, methods : [{sl, el}, ...]}, ...]} clover.pageData = {"classes":[{"el":46,"id":86762,"methods":[{"el":38,"sc":2,"sl":36}],"name":"AbstractEigenvectorModel","sl":32}]} // JSON: {test_ID : {"methods": [ID1, ID2, ID3...], "name" : "testXXX() void"}, ...}...
cm-is-dog/rapidminer-studio-core
report/html/com/rapidminer/operator/features/transformation/AbstractEigenvectorModel.js
JavaScript
agpl-3.0
629
'use strict'; angular.module('impactApp') .controller('PartenairesEditCtrl', function($scope, $state, partenaire) { $scope.partenaire = partenaire; $scope.update = function() { $scope.partenaire.$save(function() { $state.go('^', {}, {reload: true}); }); }; $scope.delete = functi...
sgmap/impact
client/app/dashboard/users/partenaires/edit.controller.js
JavaScript
agpl-3.0
439
'use strict'; const _ = require('underscore'); const Handlebars = require('handlebars'); const moment = require('moment'); const VPREmulatorModel = require('./vprEmulatorModel'); const toFMDateTime = require('../vdmUtils').toFMDateTime; class VPRPatientEmulator extends VPREmulatorModel { template() { retu...
vistadataproject/MVDM
vprEmulator/vprEmulatorPatientModel.js
JavaScript
agpl-3.0
3,784
/* Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'specialchar', 'de-ch', { options: 'Sonderzeichenoptionen', title: 'Sonderzeichen auswählen', toolbar: 'Sonderzeichen einfügen' } );
afshinnj/php-mvc
assets/framework/ckeditor/plugins/specialchar/lang/de-ch.js
JavaScript
agpl-3.0
319
/** * This file is part of agora-gui-admin. * Copyright (C) 2015-2016 Agora Voting SL <agora@agoravoting.com> * agora-gui-admin 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...
agoravoting/agora-gui-admin
avAdmin/admin-directives/elcensus/add-csv-modal.js
JavaScript
agpl-3.0
1,844
(function() { 'use strict'; angular .module('blocks.logger') .factory('logListeners', logListeners); /** * @ngdoc service * @name spaghetto.logger:logListeners * * @description * Manage different log listeners so that log messages can have various * destinatio...
aurelien-rainone/spaghetto
src/client/app/blocks/logger/loglisteners.js
JavaScript
agpl-3.0
3,869
/* Copyright (C) 2014 Härnösands kommun This program 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 (at your option) any later version. Th...
Sundsvallskommun/OpenEMap-WebUserInterface
src/main/javascript/action/Print.js
JavaScript
agpl-3.0
9,608
/* @flow */ import oEmbedStorage from './oEmbedStorage'; import getContentType from './getContentType'; import regexes from './regexes'; import providers from './providers'; import type { Embed } from './oEmbedTypes'; function getProperty(prop: string, type: ?string): RegExp { if (typeof type === 'string') { retur...
Anup-Allamsetty/pure
src/modules/oembed/oEmbed.js
JavaScript
agpl-3.0
3,946
(function (factory) { if (typeof define === 'function') { if(define.amd) { define(['common/metastore', 'jslet', 'mock/employee-mock'], factory); } else { define(function(require, exports, module) { module.exports = factory(); }); } } else { factory(); } })(fu...
jslet/jslet
democn/dbcontrol/table/basic.js
JavaScript
agpl-3.0
3,253
/** * @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang( 'a11yhelp', 'gu', { title: 'એક્ક્ષેબિલિટી ની વિગતો', contents: 'હેલ્પ. આ બંધ કરવા ESC દબાવો.', legend: [ { ...
astrobin/astrobin
astrobin/static/astrobin/ckeditor/plugins/a11yhelp/dialogs/lang/gu.js
JavaScript
agpl-3.0
5,574
export default { standard: { credits: { enabled: false }, chart: { spacingBottom: 20, style: { fontFamily: "'proxima', 'Helvetica', sans-serif' ", paddingTop: '20px' // Make room for buttons } }, exporting: { buttons: { contextButton: { onclic...
unicef/rhizome
webapp/src/components/highchart/themes.js
JavaScript
agpl-3.0
663
/* * Copyright (c) 2014 * * This file is licensed under the Affero General Public License version 3 * or later. * * See the COPYING-README file. * */ (function() { OC.Update = { _started : false, /** * Start the upgrade process. * * @param $el progress list element */ start: function($el, o...
lrytz/core
core/js/update.js
JavaScript
agpl-3.0
3,085
'use strict'; describe('itemListService', function() { beforeEach(module('superdesk.mocks')); beforeEach(module('superdesk.templates-cache')); beforeEach(module('superdesk.itemList')); beforeEach(module(function($provide) { $provide.service('api', function($q) { return function ApiS...
plamut/superdesk
client/app/scripts/superdesk/itemList/itemList_spec.js
JavaScript
agpl-3.0
8,544
var status = 0; var minlvl = 100; var maxlvl = 255; var minplayers = 1; var maxplayers = 6; var time = 15; var open = true; function start() { status = -1; // and when they click lets fight make it turn to a really cool ifght song :D LOL ok like the Zakum battle song? kk and btw uhm can you add a message ...
ZenityMS/forgottenstorysource
scripts/npc/2102000.js
JavaScript
agpl-3.0
3,619
/** * @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang( 'uploadwidget', 'ja', { abort: 'アップロードを中止しました。', doneOne: 'ファイルのアップロードに成功しました。', doneMany: '%1個のファイルのアップロードに成功...
astrobin/astrobin
astrobin/static/astrobin/ckeditor/plugins/uploadwidget/lang/ja.js
JavaScript
agpl-3.0
624
/* This file is part of the Juju GUI, which lets users view and manage Juju environments within a graphical interface (https://launchpad.net/juju-gui). Copyright (C) 2012-2013 Canonical Ltd. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License...
jrwren/juju-gui
app/views/notifications.js
JavaScript
agpl-3.0
7,674
'use strict'; const async = require('async'); const mongoose = require('mongoose'); const UserNotification = mongoose.model('Usernotification'); const DEFAULT_LIMIT = 50; const DEFAULT_OFFSET = 0; module.exports = { countForUser, create, get, getAll, getForUser, remove, setAcknowledged, setAllRead, ...
heroandtn3/openpaas-esn
backend/core/notification/usernotification.js
JavaScript
agpl-3.0
2,510
'use strict'; angular.module('hopsWorksApp') .controller('DatasetsCtrl', ['$scope', '$q', '$mdSidenav', '$mdUtil', '$log', 'DataSetService', 'JupyterService', '$routeParams', '$route', 'ModalService', 'growl', '$location', 'MetadataHelperService', '$rootScope', 'DelaProjectService', 'DelaCl...
FilotasSiskos/hopsworks
hopsworks-web/yo/app/scripts/controllers/datasetsCtrl.js
JavaScript
agpl-3.0
46,695
/** * Carousel controller * * @author Hein Bekker <hein@netbek.co.za> * @copyright (c) 2015 Hein Bekker * @license http://www.gnu.org/licenses/agpl-3.0.txt AGPLv3 */ (function (window, angular, undefined) { 'use strict'; angular .module('nb.carousel') .controller('nbCarouselController', nbCarouselControll...
netbek/nb-carousel
src/js/nb-carousel.controller.js
JavaScript
agpl-3.0
8,617
/* * (c) Copyright Ascensio System SIA 2010-2014 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) * version 3 as published by the Free Software Foundation. In accordance with * Section 7(a) of the GNU AGPL i...
devsarr/ONLYOFFICE-OnlineEditors
OfficeWeb/sdk/Common/Shapes/SerializeWriter.js
JavaScript
agpl-3.0
112,112
Meteor.publish('card-vocoder-vocoders',function(simulatorId){ return Flint.collection('vocoders').find({simulatorId:simulatorId}); });
infinitedg/flint
packages/card-vocoder/publish.js
JavaScript
agpl-3.0
136
import React from "react"; import basicComponent from "core/basicComponent"; import Radium from "radium"; import ReactAplayer from "react-aplayer"; import mergeAdvanced from "object-merge-advanced"; class audioPlayer extends basicComponent { constructor(props) { super(props); if (!this.isRestored) { thi...
project-jste/framework
src/JS/components/audioPlayer.js
JavaScript
agpl-3.0
1,207
import { expect, fixture, fixtureCleanup, fixtureSync } from '@open-wc/testing'; import sinon from 'sinon'; import volumesProvider from '../../../../src/BookNavigator/volumes/volumes-provider'; const brOptions = { "options": { "enableMultipleBooks": true, "multipleBooksList": { "by_subprefix": { ...
internetarchive/bookreader
tests/karma/BookNavigator/volumes/volumes-provider.test.js
JavaScript
agpl-3.0
6,945
describe('Service: can', function () { var api beforeEach(angular.mock.inject(function (can) { api = can })) describe('.can()', function () { it('returns true when the resource includes a method', function () { var project = { '_links': { repositories: { update: 'PUT'...
harrowio/harrow
frontend/test/spec/service/can_test.js
JavaScript
agpl-3.0
779
/* * Copyright 2015 Westfälische Hochschule * * This file is part of Poodle. * * Poodle 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 * (at your option) any...
whs-poodle/poodle
src/main/resources/static/js/instructor/exercise.js
JavaScript
agpl-3.0
7,646
/* Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'link', 'cs', { acccessKey: 'Přístupový klíč', advanced: 'Rozšířené', advisoryContentType: 'Pomocný typ obsahu', advisoryTitle: 'Pomocný t...
afshinnj/php-mvc
assets/framework/ckeditor/plugins/link/lang/cs.js
JavaScript
agpl-3.0
2,156
/* ListJS 1.1.1 (www.listjs.com) License (MIT) Copyright (c) 2012 Jonny Strömberg <jonny.stromberg@gmail.com> http://jonnystromberg.com */ ;(function(){ /** * Require the given path. * * @param {String} path * @return {Object} exports * @api public */ function require(path, parent, orig) { var resolved = requ...
studentenportal/web
apps/front/static/js/list.js
JavaScript
agpl-3.0
40,148
app.controller('LeadStatusEditCtrl', ['$scope', 'Auth', 'Leadstatus', function ($scope, Auth, Leadstatus) { $("ul.page-sidebar-menu li").removeClass("active"); $("#id_LeadStatus").addClass("active"); $scope.isSignedIn = false; $scope.immediateFailed = false; $scope.nbLoads = 0; $scope.isLoading ...
ioGrow/iogrowCRM
static/app/scripts/controllers/admin/LeadStatusEditController.js
JavaScript
agpl-3.0
3,220
import React from 'react'; import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer'; import Events from 'parser/core/Events'; import calculateEffectiveDamage from 'parser/core/calculateEffectiveDamage'; import SPELLS from 'common/SPELLS'; import { formatThousands } from 'common/format'; import STATISTIC_CATEG...
yajinni/WoWAnalyzer
analysis/warlockdemonology/src/modules/talents/SacrificedSouls.js
JavaScript
agpl-3.0
4,211
import * as Actions from './actions' import * as Controls from './controls' import Editor from './editor' import Panel from './panel' export {Actions} export {Editor} export {Panel} export {Controls}
ChuckDaniels87/pydio-core
core/src/plugins/meta.exif/res/js/index.js
JavaScript
agpl-3.0
201
////////////////////////////////////////////////////////////// // File of helper functions for primitives and world. var helpers = {}; (function() { var format = function(formatStr, args, functionName) { var throwFormatError = function() { functionName = functionName || '#<function>'; var matches = format...
bootstrapworld/wescheme-js
src/runtime/helpers.js
JavaScript
lgpl-2.1
17,782
/* Lasso range library Name: Lasso Description: Lightweight, crossbrowser javascript library for creating and modifying ranges. Used by the GhostEdit editor. Licence: Dual licensed under MIT and LGPL licenses. Browser Support: Internet Explorer 6+, Mozilla Firefox 3.5+, Google Chrome, Apple Safari 3+, Opera 10...
nicoburns/ghostedit
dist/ghostedit-core-1.0.0-pre.js
JavaScript
lgpl-2.1
128,789
/* * Give a file path uuid, or full path, render a html for the file display. * * ../unit/u-rvp.js will be the test file. */ var fs = require('fs'); var path = require('path'); var handlebars = require('handlebars'); var folder_module = require("../aws/folder-v5.js"); var vpt = require("./video-player-tpl.js"...
goodagood/gg
plain/video/render-video-player.js
JavaScript
lgpl-2.1
2,470
/** * EditorUpload.js * * Released under LGPL License. * Copyright (c) 1999-2015 Ephox Corp. All rights reserved * * License: http://www.tinymce.com/license * Contributing: http://www.tinymce.com/contributing */ /** * Handles image uploads, updates undo stack and patches over various internal functions. * *...
VioletLife/tinymce
js/tinymce/classes/EditorUpload.js
JavaScript
lgpl-2.1
4,051
var searchData= [ ['fan2para',['Fan2Para',['../classrisa_1_1cuda_1_1_fan2_para.html',1,'risa::cuda']]], ['filter',['Filter',['../classrisa_1_1cuda_1_1_filter.html',1,'risa::cuda']]] ];
HZDR-FWDF/RISA
docs/search/classes_4.js
JavaScript
lgpl-3.0
189
'use strict'; /** * Module dependencies. */ var passport = require('passport'), url = require('url'), config = require('../../config'), GitHubStrategy = require('passport-github').Strategy; module.exports = function() { // Use github strategy passport.use(new GitHubStrategy({ clientID: config.github....
ClearcodeHQ/angular-collective
config/strategies/github/github.js
JavaScript
lgpl-3.0
663
/* * SonarQube * Copyright (C) 2009-2016 SonarSource SA * mailto:contact AT sonarsource DOT com * * This program 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...
joansmith/sonarqube
server/sonar-web/src/main/js/components/navigator/models/state.js
JavaScript
lgpl-3.0
2,070
var sys = require('sys'), child_process = require('child_process'), vm = require('vm'), http = require('http'), querystring = require('querystring'), Persistence = require('./persistence/persistence'), request = require('request'), xml2jsParser = require('xml2js').parseString; function msTo...
mmattozzi/botboy
behaviors.js
JavaScript
lgpl-3.0
12,397
/** * Copyright (C) 2015 Swift Navigation Inc. * Contact: Joshua Gross <josh@swift-nav.com> * This source is subject to the license found in the file 'LICENSE' which must * be distributed together with this source. All other rights reserved. * * THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF AN...
swift-nav/libsbp
javascript/tests/test_dispatch.js
JavaScript
lgpl-3.0
8,674
angular.module('dnsControllers', ['dnsServices', 'dnsModels']) .controller('dnsCtrl', function($scope, $location, socket, Hosts, Zone) { $scope.dns = { zone : Zone.get(), hosts : Hosts.list() }; socket.on('new:host', function (host) { var found = false; if ($sc...
binRick/thc.digital
dnsServer/public/js/controllers/dns-controller.js
JavaScript
unlicense
1,158
const fs = require("fs"); const assert = require("assert"); const testMngr = require("test/testManager"); const FormData = require("form-data"); describe("Document No Auth", function () { let client; before(async function () { if (!testMngr.app.config.document) { this.skip(); } client = testMngr....
FredericHeem/starhackit
server/src/plugins/document/testDocument.js
JavaScript
unlicense
2,513
import _ from 'lodash'; import React from 'react'; import Reflux from 'reflux'; import { Navigation } from 'react-router'; import recipeActions from 'actions/recipe'; import recipeStore from 'stores/recipe'; import SapCalculator from 'components/sapCalculator'; import FormSaveRecipe from 'components/formSaveRecipe'; ...
nazar/soapee-ui
src/app/views/recipeEdit.js
JavaScript
unlicense
3,163
var AppGlobal = { exposePrivateVariablesForTesting: true }; var testableObject = function (exposePrivateVariablesForTesting) { var _privateVar = "can't see this"; var _publicVar = "we see this fine"; function _privateFunction() { console.log("Executed Private"); } function _exposedFu...
Grax32/JurassicPlayground
JurassicPlayground/Scripts/RevealingModuleVariant.js
JavaScript
unlicense
898
import when from 'when'; import { post } from 'utils/http'; import baseUrl from 'utils/baseUrl'; export function requestPasswordReset( email ) { return when( post( baseUrl( 'auth/reset_password' ), { params: { email } } ) ); } export function verifyRese...
FrontSmith/FSFramework
client/src/app/resources/resets.js
JavaScript
unlicense
540
'use strict'; describe('Controller: MainCtrl', function () { // load the controller's module beforeEach(module('gftApp')); var MainCtrl, scope; // Initialize the controller and a mock scope beforeEach(inject(function ($controller, $rootScope) { scope = $rootScope.$new(); MainCtrl = $controller...
murilobeltrame/gft
ui/test/spec/controllers/main.js
JavaScript
unlicense
545
(function(synth, lang, langIndex) { var voice = synth.getVoices().filter(voice => voice.lang === lang)[langIndex], text = window.getSelection().toString(); function speak(text, voice) { var utterance = new SpeechSynthesisUtterance(text); utterance.voice = voice; utterance.lang ...
pansay/tts_bookmarklets
read_selection_in_pt_PT.js
JavaScript
unlicense
461
(function (parent, $, element) { function loadEvents() { var date = new Date(); var d = date.getDate(); var m = date.getMonth(); var y = date.getFullYear(); return [ { title: 'Appointment 1', start: new Date(y, m, d, 10), ...
lowds/scheduler
src/Scheduler.UI/js/schedule.js
JavaScript
apache-2.0
1,409
#!/usr/bin/env node /** * Copyright IBM Corp. 2019, 2019 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ /* eslint-disable no-console */ 'use strict'; // Makes the script crash on unhandled rejections instead of silently //...
carbon-design-system/carbon-components
packages/upgrade/bin/carbon-upgrade.js
JavaScript
apache-2.0
1,034
var studio_locale = {lc:{"ar":function(n){ if (n === 0) { return 'zero'; } if (n == 1) { return 'one'; } if (n == 2) { return 'two'; } if ((n % 100) >= 3 && (n % 100) <= 10 && n == Math.floor(n)) { return 'few'; } if ((n % 100) >= 11 && (n % 100) <= 99 && n == Math.floor(n)) { retu...
ty-po/code-dot-org
dashboard/public/apps-package/js/cs_cz/studio_locale-bfd0c94141f74417a2ff3e69569591ae.js
JavaScript
apache-2.0
30,817
var gulp = require('gulp'); var g = require('gulp-load-plugins')({lazy: false}); var config = require('../config'); gulp.task('webpack', function () { g.webpack(config.webpack) .pipe(gulp.dest(config.js.dest)); }); gulp.task('webpack-dev', function () { g.webpack(config.webpackDev) .pipe(gulp....
rightcode/gaepack
gulp/tasks/webpack.js
JavaScript
apache-2.0
347
(function(){ id = Ti.App.Properties.getString("tisink", ""); var param, xhr; file = Ti.Filesystem.getFile("examples/label.js"); xhr = Ti.Network.createHTTPClient(); xhr.open("POST", "http://tisink.nodester.com/"); xhr.setRequestHeader("content-type", "application/json"); param = { data: "" + file.read...
steerapi/KichenSinkLive
build/mobileweb/examples/label.js
JavaScript
apache-2.0
1,095
// "use strict"; var AppDispatcher = require('../dispatcher/AppDispatcher'); var StationEquipmentAlarmConstants = require('../constants/StationEquipmentAlarmConstants'); var StationEquipmentAlarmsWebApiUtils = require('../webapiutils/StationEquipmentAlarmsWebApiUtils') var Station = require('../domain/Station'); var...
DForshner/ReactFluxDashboardProto
ReactFluxDashboardProto.Web/Scripts/App/actions/StationEquipmentAlarmActionCreators.js
JavaScript
apache-2.0
733
var expect = require('chai').expect describe('Pane', function () { describe('# Show pane', function () { it('should show a lateral pane when requested (click on data feature)', function () { const pane = require('../src/pane') expect(pane.show).to.be.a('function') pane.show() expect(docume...
ilice/OSCWeb
test/pane.test.js
JavaScript
apache-2.0
3,763
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP export default { 'People Finder': 'Localizador de Pessoas', 'Groups Finder': 'Localizador de Grupos', 'Locations Finder': 'Localizador de Locais', 'People': 'Pessoas', 'Groups': 'Grupos', 'Locations': 'Locais', 'Organization': 'Organiza...
grommet/grommet-people-finder
src/messages/pt-BR.js
JavaScript
apache-2.0
822
module.exports = LocalTransport; function LocalTransport(incoming, options) { options = options || {}; this.name = "local"; this.outgoing = function(destination, message, sender, callback) { setImmediate(incoming(destination, message, callback)); //to make function async, just like other transports? //inco...
RemcoTukker/eve-nodejs-remco
services/localTransport.js
JavaScript
apache-2.0
364
export const GET = 'GET'; export const PUT = 'PUT'; export const POST = 'POST'; export const DELETE = 'DELETE';
adioss/MyWebAppBootstrap
src/main/resources/static/js/apis/ApiConstants.js
JavaScript
apache-2.0
111
/* ------ IOS ------ */ if(OS_IOS){ // NappSlideMenu var NappSlideMenu = require('dk.napp.slidemenu'); var drawerIphone = NappSlideMenu.createSlideMenuWindow({ centerWindow: $.navWindow, leftWindow: Alloy.createController('menu').getView(), leftLedge: 50 }); // Configure navigation and init app Alloy.G...
netoramalho/ti.slidemenu
app/controllers/index.js
JavaScript
apache-2.0
1,119
module.exports = function (process, manifest, actionCallback) { var program = require('commander'); program .version(manifest.version) .option('-v, --verbose', 'Enable verbose output') .command('*') .action(function (args) { actionCallback(process, args); });...
blegros/TestBoxCLI
lib/cli.js
JavaScript
apache-2.0
357
define(['socket.io'], function() { var socket = io.connect('//' + window.document.location.host); return socket; })
pinittome/pinitto.me
public/js/socket.js
JavaScript
apache-2.0
124
/* * Copyright (C) 2013 salesforce.com, inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable ...
badlogicmanpreet/aura
aura-components/src/test/components/clientServiceTest/enqueueAction/enqueueActionTest.js
JavaScript
apache-2.0
25,099
/** * @license Apache-2.0 * * Copyright (c) 2018 The Stdlib Authors. * * 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 a...
stdlib-js/stdlib
lib/node_modules/@stdlib/stats/base/dists/levy/median/lib/index.js
JavaScript
apache-2.0
994
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
jmuehlner/incubator-guacamole-client
guacamole/src/main/webapp/app/form/services/formService.js
JavaScript
apache-2.0
10,923
var less, tree; if (typeof environment === "object" && ({}).toString.call(environment) === "[object Environment]") { // Rhino // Details on how to detect Rhino: https://github.com/ringo/ringojs/issues/88 if (typeof(window) === 'undefined') { less = {} } else { less = wind...
qvuilliot/less.js
lib/less/parser.js
JavaScript
apache-2.0
49,427
/** * This looks at static needs parameter in components and waits for the promise to be fullfilled * It is used to make sure server side rendered pages wait for APIs to resolve before * returning res.end() * * As seen in: https://github.com/caljrimmer/isomorphic-redux-app */ export function fetchComponentDataBe...
Poniverse/Poniverse.net
app/api/fetchComponentDataBeforeRender.js
JavaScript
apache-2.0
710
/* eslint-disable no-underscore-dangle, no-param-reassign */ import d3 from 'd3'; require('./sequences.css'); // Modified from http://bl.ocks.org/kerryrodden/7090426 function sunburstVis(slice) { const container = d3.select(slice.selector); const render = function () { // vars with shared scope within this ...
jeromecn/caravel_viz_full
caravel/assets/visualizations/sequences.js
JavaScript
apache-2.0
11,085
//Funcion para insertar un trozo de codigo HTML function loadXMLDoc(url) { var xmlhttp; if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else {// code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatech...
CarlosIribarren/Ejemplos-Examples
JavaScript/Nativo/Algunos ejemplos/02 Insertar codigo HTML/funcionJS.js
JavaScript
apache-2.0
535
/* * #%L * %% * Copyright (C) 2011 - 2017 BMW Car IT GmbH * %% * 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 requir...
clive-jevons/joynr
javascript/libjoynr-js/src/main/js/joynr/messaging/inprocess/InProcessMessagingSkeleton.js
JavaScript
apache-2.0
1,684
var http=require('http'); var url = require('url') var httpget = function ( url ) { return new Promise(( resolve,reject)=>{ http.get( url ,function(req,res){ var html=''; req.on('data',function(data){ html+=data; }); req.on('end',functi...
17golang/nodejsstudy
httpclient.js
JavaScript
apache-2.0
2,282
import {rnaPlot} from './rnaplot.js'; export function rnaTreemapChart() { var width = 550; var height = 400; function rnaTreemapNode(selection) { // create a background rectangle for each RNA structure selection.each(function(d) { d3.select(this) .attr('transform', ...
pkerpedjiev/fornac
app/scripts/rnatreemap.js
JavaScript
apache-2.0
2,511
'use strict'; /** * Configuration options for Ember CLI App used to manage broccoli build tree for DataHub web. * Returns a method to import build dependencies and an options * object with configuration attributes * * @param {string} env current build application environment * @returns { options: object } */ m...
mars-lan/WhereHows
datahub-web/configs/ember-cli-build-options.js
JavaScript
apache-2.0
2,560
var Canvas = require('canvas'); function generateCode() { return ('' + Math.random()).substr(3, 6); } function generateImage(req, res, params) { params.color = params.color || 'rgb(0, 0, 0)'; params.background = params.background || 'rgb(255, 255, 255)'; params.width = params.width || 250; params.height = p...
klesh/kaptcha
kaptcha.js
JavaScript
apache-2.0
1,961
(function($, utils, $HELPER){ var $app = window.vgrome; $app.controller('CalendarCtrl', ['$scope', '$compile', 'lang', 'apiProvider', '$controller', function ($scope, $compile, $lang, $apiProvider, $controller) { $.extend(this, $controller('EntityCtrl', {$scope: $scope})); $sco...
vijay-developer/Chrome-Extension
ui/app/controllers/calendar.js
JavaScript
apache-2.0
10,975
// Copyright 2012 Google Inc. All Rights Reserved. /** * @fileoverview A class representing operations on binary expressions. */ goog.provide('wgxpath.BinaryExpr'); goog.require('wgxpath.DataType'); goog.require('wgxpath.Expr'); goog.require('wgxpath.Node'); /** * Constructor for BinaryExpr. * * @param {!wg...
vinay-qa/vinayit-android-server-apk
third_party/js/wgxpath/binaryExpr.js
JavaScript
apache-2.0
10,027
/** Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"...
polyvi/xface-lib
xface-lib/src/cordova/config.js
JavaScript
apache-2.0
3,336
(function() { const MAX_LINE_CHARS = 4000; const RE_WS = /^\s*$/; this.search_panel = function(search, type, handler) { return ( [ ['div', this['advanced_' + type + '_search'](search), 'class', 'advanced-search-controls'], ['div', ['div', 'class', 'panel-search mono...
operasoftware/dragonfly
src/searches/templates.js
JavaScript
apache-2.0
9,442
/* * ../../../..//localization/fr/HelpDialog.js * * Copyright (c) 2009-2018 The MathJax Consortium * * 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...
GerHobbelt/MathJax
localization/fr/HelpDialog.js
JavaScript
apache-2.0
3,680
function Vec2(_x, _y) { var self = this; self.x = _x; self.y = _y; self.Distance = function (OtherPoint) { try { return Math.sqrt(Math.pow(OtherPoint.x - self.x, 2) + Math.pow(OtherPoint.y - self.y, 2)); } catch (e) { console.error(e); return false; ...
SpencerAlanWatson/Javascript-Expierments
public/js/utilities.js
JavaScript
apache-2.0
751
MotorTemperatures = new Mongo.Collection('MotorTemperatures'); // fields : value, timestamp MotorTemperatures.allow({ insert: function(userid, temp){return true;} //for now }); Meteor.methods({ motorTemperatureInsert: function(temp) { check(temp,Match.Integer); var tempObject = { value: temp...
yanisIk/TelemetryDashboard
.old app/collections/motorTemperature.js
JavaScript
apache-2.0
973
/*global define*/ define([ '../Core/combine', '../Core/Credit', '../Core/defaultValue', '../Core/defined', '../Core/defineProperties', '../Core/DeveloperError', '../Core/Event', '../Core/freezeObject', '../Core/isArray', '../Core...
atrawog/360-flight-explorer
Source/Scene/WebMapTileServiceImageryProvider.js
JavaScript
apache-2.0
19,958
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.Elem=e()}}(function(){var define,module,exports;retur...
ybonnel/Elem
dist/elem.js
JavaScript
apache-2.0
41,774
/*! * Start Bootstrap - Agency Bootstrap Theme (http://startbootstrap.com) * Code licensed under the Apache License v2.0. * For details, see http://www.apache.org/licenses/LICENSE-2.0. */ // jQuery for page scrolling feature - requires jQuery Easing plugin $(function() { $('a.page-scroll').bind('click', functi...
thinkivy/korea
js/agency.js
JavaScript
apache-2.0
1,181
// 热门推荐 module.exports = function recommend() { var t = t || { }; t = { init: function () { this.tap() }, tap: function () { $('.hot-lesson ul li').tooltip('tag', { type: 'mouseover', selected: 'on', contentClass: '#hot-lessonbox .one-classfiy-lesson' }) }...
feichanglaoshuai/jkxy
第11周/作业/极客学院首页/modules/recommend.js
JavaScript
apache-2.0
351