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
Drupal.behaviors.scholarlayout = function() { Drupal.CTools.AJAX.commands.updateLayoutForm = function(data) { scholarlayout_update_moved_elements(data.warning); } var layoutRegions = [ "#scholarlayout-header-left", "#scholarlayout-header-main", "#scholarlayout-header-right", "#scholarlayout-navbar", "#schol...
Mukeysh/alf_git
sites/all/modules/openscholar_vsite/vsite_layout/vsite_layout_ui/theme/vsite_layout_ui.js
JavaScript
gpl-2.0
12,083
var ShellTask = require('../../src/tasks/shell.js'); describe("ShellTask", function() { var fail = this.fail; it("returns stdout and stderr", function(done) { var task = new ShellTask('echo "hi"; echo "ho" >&2'); task.start(); task.then(function(result) { expect(result).toEqual({stdout: "hi\n", stderr: "h...
Yogu/site-manager
test/server-unit/shellTaskSpec.js
JavaScript
gpl-2.0
1,497
createBinding({ name: "kendoListView", defaultOption: DATA, watch: { data: function(value, options) { ko.kendo.setDataSource(this, value, options); } }, templates: ["template"] });
RUBi-ZA/JMS
static/lib/knockout-kendo-master/src/knockout-kendoListView.js
JavaScript
gpl-2.0
228
showWord(["v. "," Mache dapre sèten prensip. Se pou ou konfòme ou. 2. Obeyi, obsève prensip." ])
georgejhunt/HaitiDictionary.activity
data/words/konf~ome.js
JavaScript
gpl-2.0
99
/** * A socket connection to some devopsd daemon. A {DevopsdConnection} is an instanceof {EventEmitter}. * * Periodically pings devopsd daemons, and emits events when they respond with data. */ var _ = require('lodash'), util = require('util'), events = require('events'), nssocket = require('nssocket')...
dlopuch/glow-ops
lib/controllers/DevopsdConnection.js
JavaScript
gpl-2.0
2,495
showWord(["np. "," 1772-1802. Bòfrè Napoleyon Bonapat. Li te alatèt 45 mil nan sòlda lame franse. Men a tout sa, li pat rive genyen kontwòl koloni an. Nèg yo kraze lame mouche." ])
georgejhunt/HaitiDictionary.activity
data/words/Lekl~e.js
JavaScript
gpl-2.0
186
var searchData= [ ['check',['check',['../classWHtree.html#a668db7c1368f273ef462e44bff2fc91d',1,'WHtree']]], ['cleanup',['cleanup',['../classlistedCache.html#a92febe1b16ddb282d0f5e2ca9eb1c462',1,'listedCache']]], ['clear',['clear',['../classlistedCache.html#add33fbae1be6a7f3aaa6b052587f1619',1,'listedCache']]], ...
dmordom/hClustering
doc/html/search/functions_63.js
JavaScript
gpl-2.0
3,180
angular.module('civics.downloader', []) .service('Downloader', function(){ /** * Download XLS with filtered initiatives */ this.get = function(format, section, selected_categories){ // Check section and build base URL for the query var base_url = "/api/initiatives_" + format + "?t...
Ale-/civics
static/civics/angular/services/Downloader.js
JavaScript
gpl-3.0
1,711
/* surveys.js Copyright © 2012 - 2013 WOT Services Oy <info@mywot.com> This file is part of WOT. WOT 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) a...
mywot/firefox-xul
content/surveys.js
JavaScript
gpl-3.0
20,641
var INFO_MESSAGE = "[INFO] "; var ERROR_MESSAGE = "[ERROR] "; var WARNING_MESSAGE = "[WARN] "; var SUCCESS_MESSAGE = "[SUCCESS] "; var UNDEFINED_MESSAGE = "[???] "; function getInfoMessage(type, message){ console.log(checkTypeMessage(type) + message); } function checkTypeMessage(type){ switch(type){ case "...
MatheusMFranco/ALREADYHAS-Elysium
Implementation/Elysium-Web/src/main/webapp/assets/js/logMessage.js
JavaScript
gpl-3.0
513
/** * Play JavaScript routing as an AngularJS module. * Wraps Play's routes to use Angular's $http. * Example: * {{{ * // For `POST /login controller.Application.login()` Play generates: * jsRoutes.controllers.Application.login() * // With playRoutes, this can be used like this: * playRoutes.controllers.Applic...
myclabs/CarbonDB-UI
app/assets/javascripts/common/services/playRoutes.js
JavaScript
gpl-3.0
2,930
import path from 'node:path'; import { promises as fsP } from 'node:fs'; import { promisify } from 'node:util'; import glob from 'glob'; import { metaHelper, moduleExists } from '@sweet-milktea/utils'; import parser from './parser.js'; import lessCode from './lessCode.js'; const globPromise = promisify(glob); const { ...
duan602728596/48tools
packages/darkTheme/src/index.js
JavaScript
gpl-3.0
1,172
var path = require('path'); module.exports = { GetFileName: function (filepath) { var base_fl_name = path.basename(filepath); var filename = base_fl_name.substr(0, base_fl_name.lastIndexOf('.')) || base_fl_name; return filename; }, GetExtension: function (filename) { var ext = path.extname(filena...
gmontalvoriv/mailock
lib/file_modules/file_info.js
JavaScript
gpl-3.0
379
'use strict'; module.exports = { url: function(){ return this.api.launchUrl + '/#signin'; }, sections: { menu: require( './menu' ), content: { selector: "#core-signin-view", elements: { "signinBtn": ".login-btn", "passwordForgo...
d-pac/d-pac.client
tests/e2e/pages/signin.js
JavaScript
gpl-3.0
1,095
var searchData= [ ['timer_2ec',['timer.c',['../timer_8c.html',1,'']]], ['timer_2ed',['timer.d',['../timer_8d.html',1,'']]], ['timer_2eh',['timer.h',['../timer_8h.html',1,'']]], ['timer_5fcommon_5fall_2ec',['timer_common_all.c',['../timer__common__all_8c.html',1,'']]], ['timer_5fcommon_5fall_2ed',['timer_commo...
Aghosh993/TARS_codebase
libopencm3/doc/stm32f1/html/search/files_e.js
JavaScript
gpl-3.0
467
/** * @license Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.editorConfig = function (config) { config.extraPlugins = 'cms-imagemanager,cms-filemanager,cms-dynamicregion,cms-togglelinewrap,cms-modelvalues...
devbridge/BetterCMS
Modules/BetterCms.Module.Root/Scripts/ckeditor/config.js
JavaScript
gpl-3.0
1,293
/** * Copyright 2015 Sky Wickenden * * This file is part of StreamBed. * An implementation of the Babbling Brook Protocol. * * StreamBed 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...
babbling-brook/streambed
js/Client/Component/CodeMirror.js
JavaScript
gpl-3.0
3,894
var searchData= [ ['welcome',['Welcome',['../classUi__Widget.html#acd80be5365bb876d562abced34124d16',1,'Ui_Widget']]], ['widget_5f8cpp',['widget_8cpp',['../widget__8cpp_8js.html#a1bc5bc969cbc93541cf2ea73705bc3a9',1,'widget_8cpp.js']]], ['widget_5f8h',['widget_8h',['../widget__8h_8js.html#ae9cebfd6f1dcbcaae1bcf80c...
shinshipower/pd2-Taiko
html/search/variables_10.js
JavaScript
gpl-3.0
353
// PngMagic minimal server script (server will be active on port 83) // Waits for CarSentry to send a request, then pokes CarSentry.js to time the next WebSocket open at the optimum time localPort = 83 Http.Close() Http.Server(localPort) function OnCall( msg, cl, path ) { switch(msg) { case 'HTTPREQ': Pm.Echo('R...
CuriousTech/WiFi-Car-Sentry
Server.js
JavaScript
gpl-3.0
1,367
var ViewModule = require( './view-module' ); module.exports = ViewModule.extend( { getDefaultSettings: function() { return { container: null, items: null, columnsCount: 3, verticalSpaceBetween: 30, }; }, getDefaultElements: function() { return { $container: jQuery( this.getSettings( 'containe...
FrankM1/qazana
assets/dev/js/utils/masonry.js
JavaScript
gpl-3.0
1,328
var interrupt = { step:function(){ memory.mapper.irqStep(); }, };
dgibb/MOES
Emulators/src/NES/interrupt.js
JavaScript
gpl-3.0
74
var isnew1=false;//判定newPwd是否符合规范 var isnew2=false;//判定newPwd2是否和newPwd一致 var oldpwds=$("#pwdhid").html(); $(function(){ var newPwd=$("#newPwd"); var newPwd2=$("#newPwd2"); var btn=$("#pwdBtn"); newPwd.blur(function(){ //新密码框的失焦事件 var pwd=newPwd.val(); if((pwd.length<6 || pwd.length>20) && pwd.lengt...
dreampeople123/muke
MuKe/src/main/webapp/easyui/js/password.js
JavaScript
gpl-3.0
2,025
jQuery(document).ready(function (){ if (needToCheckCookie()){ show_cookie_bar(); var cookie_bar = jQuery('#cg_cookie_bar'); var cfTimeout = cookie_bar.data('timeout'); var cfScrollout = cookie_bar.data('scrollout'); cookie_bar.find('.close').click(function (){ co...
cartograf/cartograf-cookie-filter
script.js
JavaScript
gpl-3.0
2,643
const EventEmitter = require('events').EventEmitter; const request = require('request'); const WebSocketClient = require('websocket').client; export const SLACK_API = 'https://slack.com/api/'; export default class SlackAPI extends EventEmitter { constructor(token, screen) { super(); this.screen...
bkanber/Slackadaisical
src/SlackAPI.js
JavaScript
gpl-3.0
7,511
var HeaderModel = Backbone.Model.extend({ isEdit: false, url: '/assets/calendarDetail.json' }); headerModel = new HeaderModel(); headerModel.fetch();
BiteKollektiv/webcal
app/assets/javascripts/backbone/models/HeaderModel.js
JavaScript
gpl-3.0
152
/* Splat! Flying Slime JavaScript Script Copyright (C) 2015 GeckoGames All Rights Reserved And, we hope you have fun! This file is part of Splat!. Splat! is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Fr...
geckogames/splat
src/js/obj/flyingslime.js
JavaScript
gpl-3.0
1,217
/** * Created by yurik on 12.08.16. */ function getUrl() { // run in heroku return "https://team1-test-prof.herokuapp.com/"; // run in local host // return "http://127.0.0.1:5000/" }
YurikAbdulayev/test_prof
static/js/url.js
JavaScript
gpl-3.0
219
/* * Copyright (C) 2016-2022 phantombot.github.io/PhantomBot * * 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. * ...
PhantomBot/PhantomBot
javascript-source/discord/core/misc.js
JavaScript
gpl-3.0
15,576
function photoSearchService() { var f = {}; f.findPhotos = function(keyword) { var matches = []; if (keyword.toLowerCase() == 'water') { matches = [ { title: 'A Perfect Morning', thumbUrl: 'http://googledrive.com/h...
jorgeas80/curso-angularjs
apps_completas/photo-app/resuelto/js/services.js
JavaScript
gpl-3.0
2,565
/* Minimalistic IndexedDB Wrapper with Bullet Proof Transactions ============================================================= By David Fahlander, david.fahlander@gmail.com Version 1.0.2 - December 9, 2014. Tested successfully on Chrome, IE, Firefox and Opera. Official Website: https://github.com/dfahlander/De...
KaySchneider/istart-ntp
app/backendScript/eventADexie.js
JavaScript
gpl-3.0
154,068
'use strict'; const program = require('commander'); const debug = require('debug')('kcm:make_program'); const pkg = require('../package.json'); module.exports = function makeProgram(hasY) { debug('Start to make a commander instance...'); let tmp = program .version(pkg.version) .option('-H, --host [value]'...
Maples7/kong-config-manager
utils/make_program.js
JavaScript
gpl-3.0
1,262
'use strict' const test = require('tape') const SparseArray = require('../') const max = 100 let arr test('allows creation', (t) => { arr = new SparseArray() t.end() }) test('allows pushing', (t) => { for(let i = 0; i < max; i++) { const pos = arr.push(i.toString()) t.equal(pos, i + 1) } t.end() }...
js0p/sprouts
node_modules/sparse-array/tests/test-find.js
JavaScript
gpl-3.0
583
var test = require("test"); test.setup(); var coroutine = require('coroutine'); describe('lock', () => { it("Lock", () => { var l = new coroutine.Lock(); assert.throws(() => { l.release(); }); var v = 100; function f() { l.acquire(); v...
onceyoung/fibjs
test/lock_test.js
JavaScript
gpl-3.0
1,916
/** * Events list */ jQuery( document ).on( 'widget-updated widget-added ready', initWidgetCategoriesTiles ); /** * Renumber list * @returns {undefined} */ function reNumberCategoriesTiles( categories ) { categories.find( '.category-area' ).each( function( index ) { jQuery( this ).find( 'h3 span' ).html( index...
gcofficial/basetheme
app/assets/js/categories-tiles-widget-admin.js
JavaScript
gpl-3.0
4,525
/* * Copyright (C) 2010-2016 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 * Licen...
MarcelStructr/structr
structr-ui/src/test/javascript/004_create_page.js
JavaScript
gpl-3.0
1,908
import format from 'date-fns/format'; import { map, tap, catchError } from 'rxjs/operators'; import { of, pipe } from 'rxjs'; import { ofType } from 'redux-observable'; import { PACKAGE_GROUPS } from 'constants/AppConstants'; import { readPackageJson } from 'commons/utils'; import { mapPackages, mapOutdatedPackage...
rvpanoz/luna
app/models/packages/epics/transformEpics.js
JavaScript
gpl-3.0
4,862
"use strict"; module.exports = Object.freeze({ // App-ID. TODO: set to your own Skill App ID from the developer portal. appId : 'amzn1.ask.skill.5def441f-b36d-4f44-a8d7-f3c1a4837e17', // DynamoDB Table name dynamoDBTableName : 'stampSkill' });
jpecore/AlexaStampSkill
src/constants.js
JavaScript
gpl-3.0
292
Joomla 3.4.1 = 68f807052420e16a2697b4cc1da56970
gohdan/DFC
known_files/hashes/media/editors/codemirror/mode/markdown/test.js
JavaScript
gpl-3.0
48
var searchData= [ ['rawinput',['RawInput',['../moves_8h.html#struct_raw_input',1,'']]] ];
sherman5/MeleeModdingLibrary
docs/search/classes_8.js
JavaScript
gpl-3.0
92
/* GENERATED */ initParams = { forceErrorCorrection:1, reverseAnswers:1, interQuestionDelay:250, stimuliShowCount:0, leftKeyChar:"D", rightKeyChar:"K", tooSlowMessageMS:2000, tooSlowMessageShowTimeMS:600, practiceMode:1, practiceSuccessThreasholdCorrect:0.80, practiceSuccessThreasholdMedianMS:2000, showPracticeStats:1 ...
michalkouril/irapgen
inst/codefiles/codePARAMS_practice_neg.js
JavaScript
gpl-3.0
324
/* Find the smallest common multiple of the provided parameters that can be evenly divided by both, as well as by all sequential numbers in the range between these parameters. The range will be an array of two numbers that will not necessarily be in numerical order. e.g. for 1 and 3 - find the smallest common multiple ...
yavuzovski/playground
web development/frontend/freecodecamp/smallest_common_multiple.js
JavaScript
gpl-3.0
1,216
/* * Copyright (C) 2008 Apple Inc. All Rights Reserved. * Copyright (C) 2011 Google Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the ...
geminy/aidear
oss/qt/qt-everywhere-opensource-src-5.9.0/qtwebengine/src/3rdparty/chromium/third_party/WebKit/Source/devtools/front_end/sources/SourcesPanel.js
JavaScript
gpl-3.0
43,485
/* * editor_plugin.js * * Copyright 2014 Ed Hynan <edhynan@gmail.com> * * 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; specifically version 3 of the ...
ehy/swfput-wp
js/editor_plugin45.js
JavaScript
gpl-3.0
42,346
"use strict"; // Handle Right Button events function OnRightButtonPressed() { $.Msg("OnRightButtonPressed") var iPlayerID = Players.GetLocalPlayer(); var mainSelected = Players.GetLocalPlayerPortraitUnit(); var mainSelectedName = Entities.GetUnitName( mainSelected ) var cursor = GameUI.GetCursorPosition(); var...
TideSofDarK/DotaCraft
content/dota_addons/dotacraft/panorama/scripts/clicks.js
JavaScript
gpl-3.0
5,690
var searchData= [ ['distance',['distance',['../struct_settings_values.html#ad1a3f2b400302307e0a5d6bb7efcbb15',1,'SettingsValues']]] ];
eucall-software/targeter
docs/search/variables_1.js
JavaScript
gpl-3.0
137
var mbFilter = { dateFormat:function(date,format) { date = new Date(date); var o = { "M+" : date.getMonth()+1, //month "d+" : date.getDate(), //day "h+" : date.getHours(), //hour "m+" : date.getMinutes(), //minute "s+" : date.getS...
ckken/vco-riot-mobile
app/mod/filter.js
JavaScript
gpl-3.0
1,368
/**************************************************************************** Copyright (c) 2010-2012 cocos2d-x.org http://www.cocos2d-x.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software w...
kaikai2/ShadowWalker
Cocos2d-html5-v2.2.1/extensions/CocoStudio/GUI/UIWidgets/UISlider.js
JavaScript
gpl-3.0
20,636
/** * Use the elem given as a parameter to display the range. Does not change the elem, only its content * calling destroy() will give the elem as it was at the begining * @param elem the elem in which the input will be inserted * @param an array of nodes [{value: "...", id: n, ?children: []}] */ function Tree(elem, t...
gaelfoppolo/locomotor
resources/scripts/types/tree.js
JavaScript
gpl-3.0
4,437
var searchData= [ ['bedtargettemp',['bedTargetTemp',['../class_temperature_private.html#a7efbf4904d5577226627803e7d12cb9e',1,'TemperaturePrivate']]], ['bedtargettemperature',['bedTargetTemperature',['../class_temperature.html#ab9bee6e2f30f262336122cc6b9f9437e',1,'Temperature::bedTargetTemperature()'],['../class_tem...
lays147/WebAtelier
atelier/static/atcore_doc/search/all_2.js
JavaScript
gpl-3.0
1,193
const mc4wp = window.mc4wp || {} const forms = require('./forms/forms.js') require('./forms/conditional-elements.js') function trigger (event, args) { forms.trigger(args[0].id + '.' + event, args) forms.trigger(event, args) } function bind (evtName, cb) { document.addEventListener(evtName, evt => { if (!evt...
ibericode/mailchimp-for-wordpress
assets/src/js/forms.js
JavaScript
gpl-3.0
1,600
// Animation jQuery('#prenom').animate({opacity: 1},{duration: 300}).animate({top: "-=15px"},{duration: 800}); jQuery('#nom').animate({opacity: 1},{duration: 300}).animate({top: "+=15px"},{duration: 800}); jQuery('#two-colors').delay(1300).animate({opacity: 1},{duration: 800});
Uncanny-Nantes/accueil
js/accueil.js
JavaScript
gpl-3.0
280
'use strict'; (function(){ angular.module('factories.side-menu', []) .factory('sideMenuFactory', function( $mdSidenav, $timeout, path ){ var scope = null; var componentId = 'side-menu'; var paths = path.getPaths(); var sideMenuItems = []; var getSideMenuItems = function(){ return sideMenuIt...
betorobson/angular-material-app
src/directives/side-menu/side-menu-factory.js
JavaScript
gpl-3.0
1,584
/******************************************************************************* uBlock Origin - a browser extension to block requests. Copyright (C) 2014-2106 The uBlock Origin authors This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public Li...
dcposch/unsuckifier
platform/firefox/vapi-background.js
JavaScript
gpl-3.0
115,608
CKEDITOR.plugins.setLang('ajaxSave', 'no', { ajaxSave : { toolbar_button : 'Spare' } });
stephaneeybert/learnintouch
system/editor/ckeditor/plugins/ajaxSave/lang/no.js
JavaScript
gpl-3.0
109
import { remove_compose_box } from './composeBoxActions'; import mailer from './../../../modules/mailerService'; import { showNotification, hideNotification } from './notificationsActions'; export const send_request = () => { return { type: 'SEND_REQUEST', isSending: true } }; export const send_success = ...
DevanaLabs/lemon.email-dApp
assets/react/actions/sendMailActions.js
JavaScript
gpl-3.0
1,184
// MITHRAS: Javascript configuration management tool for AWS. // Copyright (C) 2016, Colin Steele // // 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 //...
cvillecsteele/mithras
js/instance.js
JavaScript
gpl-3.0
10,118
var struct_appointment = [ [ "callee_id", "struct_appointment.html#a1c758224d618992d6bcda246e68384c3", null ], [ "caller_id", "struct_appointment.html#a677c4126148ba11b303127cd76cf9e35", null ], [ "end", "struct_appointment.html#a13455ba845bf5d4dba37be491bc6a036", null ], [ "id", "struct_appointment.htm...
oneonestar/AppointmentManager
doc/html/struct_appointment.js
JavaScript
gpl-3.0
965
/*global describe, it*/ 'use strict'; var assert = require('chai').assert; var scorer = require('../scorer.js'); describe('scorer.js', function () { describe('scorer:getScore', function () { it('should return 0 when the user answers incorrectly', function () { var anyTime, correctAnswers, user...
mevorah/Oh-Strike-a-match
Game/test/scorer-test.js
JavaScript
gpl-3.0
1,722
/** * @module db * @description Creates new MongoDB connection to the mud database, so the connection can be included * as a module where needed, using a single connection pool * * @author cemckinley <cemckinley@gmail.com> * @copyright Copyright (c) 2013 Author, contributors * @license GPL v3 */...
cemckinley/node-mud
server/controllers/db.js
JavaScript
gpl-3.0
791
var searchData= [ ['literal_5fpiece',['literal_piece',['../format_8h.html#acfe25efb8bb971dd9e124d9ba58dda49a4576cd306de90b968e9df7b467e9a08b',1,'format.h']]], ['long_5farg',['long_arg',['../format_8h.html#acfe25efb8bb971dd9e124d9ba58dda49a10fa003dddb41328dec4ac49dd276b08',1,'format.h']]], ['long_5fdouble_5farg',[...
StanShebs/gdb-doxy-test
gdbserver/search/enumvalues_6c.js
JavaScript
gpl-3.0
590
function ControladorHabitaciones() { this.lista = Modelo.Habitaciones.lista; this.cantidad = function() { return Modelo.Habitaciones.lista.length; } this.delHabitacion = function(numero) { Modelo.Habitaciones.quitar(numero); } } function ControladorHabitacion() { this.numero = 1...
lubicanDev/cursoMEANstack
_App_Node_Hoteles/webapp_angularjs_1/js/habitaciones.js
JavaScript
gpl-3.0
744
/* * GET preguntas_respuestas listing. */ exports.list = function(req, res){ var id = req.params.id; req.getConnection(function(err,connection){ connection.query('SELECT * FROM respuesta WHERE id_pregunta = ?',[id],function(err,rows) { if(err) console.log("Er...
aberlanas/TFG-Enigmas-Pursuit
enigma/routes/respuestas.js
JavaScript
gpl-3.0
5,430
var context; context = Context(); var ride; loadSample('../audio_samples/RIDEDA.wav', function(buffer) { ride = buffer; }); var ride_sequence = [1, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0]; var step = 0; setInterval(function() { if (ride_sequence[step % ride_sequence.length] == 1) { // playride(); } step++; }, 300); ...
ruckert/web_audio_experiments
synth013/synth.js
JavaScript
gpl-3.0
832
import Lexx, { NodeTypes, NodeTypeKeys } from "xml-zero-lexer"; import XMLZeroElement from "./element"; import { seekByNodeType, getSiblings } from "./utils"; import type { Token, Tokens } from "./types"; export default class XMLZeroDOM { // I was think about extending XMLZeroElement but that // should have a dist...
holloway/xml-zero.js
packages/xml-zero-dom/src/index.js
JavaScript
gpl-3.0
1,548
const expect = require('chai').expect; const _ = require('underscore'); const Rx = require('rx'); const Game = require('../../src/game').Game; const newPlayer = require('../../src/player').newPlayer; const gameStarted = require('./unit-test-utils').gameStarted; const gameStartedAnswered = require('./unit-test-utils')....
francois-roseberry/question-game-websocket
server/test/unit/game.test.js
JavaScript
gpl-3.0
13,946
import Style from './converter' export default class Section extends Style.Properties{ size(x){ this.set("page-width",`${x.width}pt`) this.set("page-height", `${x.height}pt`) } margin(x){ this.set("margin-left",x.left+'pt') this.set("margin-right",x.right+'pt') this.set("margin-top",x.top+'pt') this.set...
lalalic/docx2xsl
src/style/section.js
JavaScript
gpl-3.0
528
$.getScript('https://sandbox.advantage-apps.com/fhstp-bewerbungstool-up3v/responsive.js', function() { // script should now be loaded an executed. // put your dependent JS here. });
FH-Complete/FHC-AddOn-Aufnahme
cis/themes/fhstp/global.js
JavaScript
gpl-3.0
184
(function(){ 'use strict'; angular.module('musicHub') .factory('ArtistService', artistService); artistService.$inject = ['$resource', 'API_URL']; function artistService($resource, API_URL) { return $resource( API_URL + '/artists/:id', {}, {} ); } })();
manufarfaro/musichub-app
app/js/services/artist-service.js
JavaScript
gpl-3.0
298
import { Promise as EmberPromise, resolve } from 'rsvp'; import { computed } from '@ember/object'; import { isEmpty } from '@ember/utils'; import { alias } from '@ember/object/computed'; import { inject as controller } from '@ember/controller'; import AbstractEditController from 'hospitalrun/controllers/abstract-edit-c...
HospitalRun/frontend
app/medication/edit/controller.js
JavaScript
gpl-3.0
6,445
/* Copyright (C) 2013 Tony Mobily Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sub...
mercmobily/SimpleSchema
simpleschema.js
JavaScript
gpl-3.0
14,014
/** * Admin/CategoryController */ module.exports = { index: function(req, res, next) { res.locals.config = {}; res.locals.headers = { 'breadcrumb': [{ name: "后台首页", link: "/admin/main" }], 'title': '栏目管理', 'description': "目前暂时支持2级栏目", 'parent_purview': "content", 'purview': "category" ...
SJTUYale/GPS
api/controllers/Admin/CategoryController.js
JavaScript
gpl-3.0
3,460
/* * This file is part of the AuScope Virtual Rock Lab (VRL) project. * Copyright (c) 2010 The University of Queensland, ESSCC * * Licensed under the terms of the GNU Lesser General Public License. */ Ext.namespace('VRL.SeriesBrowser'); VRL.SeriesBrowser = { // a template for the description html area descTpl: ...
AuScope/VirtualRockLab
src/main/webapp/js/SeriesBrowser.js
JavaScript
gpl-3.0
3,954
import { App } from '../components/app/app'; import { IonicApp } from '../components/app/app-root'; import { Config } from '../config/config'; import { DeepLinker } from '../navigation/deep-linker'; import { Form } from './form'; import { GestureController } from '../gestures/gesture-controller'; import { Keyboard } fr...
shdevops/JAF-Dice-Roller
node_modules/ionic-angular/es2015/util/mock-providers.js
JavaScript
gpl-3.0
9,830
const { JSDOM } = require("jsdom") async function checkInvite(url) { try { let page = await JSDOM.fromURL(url) let title = page.window.document.querySelector('.tgme_page_title').textContent.trim() if (title == 'Join group chat on Telegram') { return false } else { ...
wfjsw/osiris-groupindexer
lib/t_me_assistant.js
JavaScript
gpl-3.0
1,126
'use strict'; const logger = require('../../server/logger'); module.exports = function(app){ app.date = { formatUnixTimestamp: (timestamp) => { var dateObj = new Date(timestamp*1000); return dateObj.toUTCString(); // return dateObj.getHours()+':' // +(dateObj.getMinutes() < 10?'0'+dateObj.getM...
wardance-ferret/es
localtime/server/boot/date.js
JavaScript
gpl-3.0
1,456
// socket_io_transport client var LABPROJECT_BASE = process.cwd(); var LABPROJECT_LIB = process.cwd() + "/lib"; var common_crypto = require(LABPROJECT_LIB + "/common/crypto"); function create_socket(location, callback) { var socket = require('socket.io-client')(location, {forceNew: true}); socket.on('connect'...
j2h2-labproject/labproject-frontend-servers
lib/transports/socket_io_transport.js
JavaScript
gpl-3.0
4,516
var express = require('express'); var router = express.Router(); var mongoose = require('mongoose'); var ObjectId = mongoose.Types.ObjectId; var User = require('../models/User'); var bcrypt = require('bcryptjs'); var moment = require('moment'); var jwt = require('jwt-simple'); var config = require('co...
UTAlan/SenatorTracker
server/routes/users.js
JavaScript
gpl-3.0
2,346
/*! * VisualEditor DataModel ClassAttribute class. * * @copyright 2011-2016 VisualEditor Team and others; see http://ve.mit-license.org */ /** * DataModel class-attribute node. * * Used for nodes which use classes to store attributes. * * @class * @abstract * * @constructor */ ve.dm.ClassAttributeNode = f...
Facerafter/starcitizen-tools
extensions/VisualEditor/lib/ve/src/dm/ve.dm.ClassAttributeNode.js
JavaScript
gpl-3.0
2,882
define(["exports"], function (_exports) { "use strict"; Object.defineProperty(_exports, "__esModule", { value: true }); _exports.when = n; /** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: BSD-3-Clause */ function n(n, o, r) { return n ? o() : null == r ? void 0 : r...
elmsln/elmsln
core/dslmcode/cores/haxcms-1/build/es5-amd/node_modules/lit-html/directives/when.js
JavaScript
gpl-3.0
331
/* -*- Mode: JavaScript; coding: utf-8; tab-width: 3; indent-tabs-mode: tab; c-basic-offset: 3 -*- ******************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * Copyright create3000, Scheffelstraße 31a, Leipzig, Germany 2011. ...
create3000/cobweb
src/cobweb/Prototype/X3DProtoDeclaration.js
JavaScript
gpl-3.0
7,241
/* global ajaxurl */ jQuery(function($){ $( 'body' ).bind( 'click.mn-gallery', function(e){ var target = $( e.target ), id, img_size; if ( target.hasClass( 'mn-set-header' ) ) { ( window.dialogArguments || opener || parent || top ).location.href = target.data( 'location' ); e.preventDefault(); } else if (...
mtaandao/Framework
admin/js/media-gallery.js
JavaScript
gpl-3.0
769
#!/usr/bin/env node /* * Copyright (c) 2016 The Ontario Institute for Cancer Research. All rights reserved. * * This program and the accompanying materials are made available unde...
icgc-dcc/dcc-iobio
dcc-iobio-vcf/services/vcfstatsalive.js
JavaScript
gpl-3.0
3,441
"use strict"; var SHOW_DATA = { "venue_name": "Uptown Theatre, Chicago, Illinois", "venue_id": 24, "show_date": "20th of Aug, 1980", "sets": [ {"set_title": "1st set", "encore": false, "songs": [ {"name": "Jack Straw", "length":"5:54", "trans":"/"}, {"name": "Loser", "length":"7:26", "trans":"/"}, ...
maximinus/grateful-dead-songs
gdsongs/static/data/shows/66.js
JavaScript
gpl-3.0
1,599
import * as types from './Types'; export const dummy = () => ({ type: types.dummy }); export const startup = () => ({ type: types.startup }); export const setDate = (date) => ({ type: types.setDate, date}); // DayView export const goToNextDay = () => ({ type: types.goToNextDay }); export const goToPreviousDay = () =...
BALEHOK/motodo
App/Actions/AppActionCreators.js
JavaScript
gpl-3.0
881
"use strict"; var http = require('http'); var https = require('https'); http.globalAgent.maxSockets = 1000000000; const requestHandler = (request, response) => { response.end('Hello Node.js Server!') } var server = http.Server(requestHandler); var env = process.env; var url = require('url'); var fs = require('fs'); ...
assemblee-virtuelle/Semantic-Bus
timer/app.js
JavaScript
gpl-3.0
1,315
'use strict'; var config = require('../config/environment'); exports.index = function(req, res) { res.json({ currentYear: new Date().getFullYear(), apiUrl: '/api', tokenName: 'lypo.token', environment: config.env, showAds: config.showAds }); };
vivanov1410/lypo
server/settings/settings.controller.js
JavaScript
gpl-3.0
270
var __extends = (this && this.__extends) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; (function (factory) { if (typeof module === 'object' && ty...
shdevops/JAF-Dice-Roller
node_modules/ionic-angular/umd/components/modal/modal-transitions.js
JavaScript
gpl-3.0
5,137
Ext.define('Hrproject.hrproject.shared.demo.model.backgroundcheck.UniversityTypeModel', { "extend": "Ext.data.Model", "fields": [{ "name": "primaryKey", "type": "string", "defaultValue": "" }, { "name": "unvCode", "type": "string", "defaultValue...
applifireAlgo/HR
hrproject/src/main/webapp/app/hrproject/shared/demo/model/backgroundcheck/UniversityTypeModel.js
JavaScript
gpl-3.0
903
/* Scripts loaded specifically for peoplegroups post type pages in the admin */ jQuery(document).ready(function () { "use strict"; //changes the 'add new' link to the custom page. jQuery('.page-title-action').attr('href', 'edit.php?post_type=peoplegroups&page=disciple_tools_people_groups'); //removes the edit ...
ChasmSolutions/disciple-tools
dt-core/admin/js/dt-peoplegroups.js
JavaScript
gpl-3.0
371
/************************************************************************ * This file is part of EspoCRM. * * EspoCRM - Open Source CRM application. * Copyright (C) 2014-2015 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko * Website: http://www.espocrm.com * * EspoCRM is free software: you can redistribute it...
sanduhrs/espocrm
frontend/client/src/views/settings/fields/quick-create-list.js
JavaScript
gpl-3.0
1,621
Creep.prototype.roleDemolisher = function() { var demolishFlag = _.filter(Game.flags,{ memory: { function: 'demolish', spawn: this.memory.spawn}}); demolishFlag = _.filter(Game.flags,{ memory: { function: 'demolish', spawn: this.memory.spawn}}); if (demolishFlag.length > 0) { demolishFlag = demolish...
lispeaking/Screeps-Noob-Code
role.demolisher.js
JavaScript
gpl-3.0
9,494
Monocle.Controls.Contents = function (reader) { var API = { constructor: Monocle.Controls.Contents } var k = API.constants = API.constructor; var p = API.properties = { reader: reader } function createControlElements() { var div = reader.dom.make('div', 'controls_contents_container'); contentsF...
rschroll/beru
html/monocle/scripts/monoctrl.js
JavaScript
gpl-3.0
26,117
/** * Created by cgeek on 22/08/15. */ var AbstractDAL = require('./AbstractDAL'); var Q = require('q'); var _ = require('underscore'); module.exports = CoresDAL; function CoresDAL(dal) { "use strict"; AbstractDAL.call(this, dal); var logger = require('../../../lib/logger')(dal.profile); var that = this;...
okiwi/ucoin
app/lib/dal/fileDALs/CoresDAL.js
JavaScript
gpl-3.0
1,434
var class_w3_c_validator_1_1_markup_1_1_warnings_list = [ [ "WarningsList", "class_w3_c_validator_1_1_markup_1_1_warnings_list.html#ad018cf0d41988ac5d0befee141c6ad09", null ], [ "Count", "class_w3_c_validator_1_1_markup_1_1_warnings_list.html#ac41f64f0609ef2ebe688d8403b0f5c79", null ], [ "Warnings", "class_...
prokhor-ozornin/W3CValidator.NET
doc/html/class_w3_c_validator_1_1_markup_1_1_warnings_list.js
JavaScript
gpl-3.0
542
GO.billing.ImportSettingsPanel = Ext.extend(Ext.Panel,{ title:GO.billing.lang['payments'], labelWidth:200, layout:'form', cls:'go-form-panel', initComponent : function(){ this.items=[ this.importStatusId = new GO.form.ComboBox({ hiddenName: 'import_status_id', fieldLabel: GO.billing.lang.paidStatus, s...
deependhulla/powermail-debian9
files/rootdir/usr/local/src/groupoffice-6.2/groupoffice-6.2-setup-www/modules/billing/ImportSettingsPanel.js
JavaScript
gpl-3.0
2,328
function debug() { var script = document.createElement('script'); script.src = "http://netcell.github.io/phaser-inspector/build/phaser-inspector.js"; document.getElementsByTagName('head')[0].appendChild(script); function phaserInspectorInject(){ if (Phaser.Plugin.Inspector) Phaser.GAMES[0].plugins.add(Phaser.Plugin.I...
bdaenen/Mad-Science-Bro
src/debug.js
JavaScript
gpl-3.0
411
var _ = require('lodash'); var parseVerbLineData = require('../util/parse-verb-line-data'); function readSurface(data){ var vertices = []; var uvs = []; var halfEdges = []; var faces = []; var handlers = { 'v': function(x, y, z, firstHalfEdge){ vertices.push({ ...
mjleehh/paper-model
lib/surface/read-surface.js
JavaScript
gpl-3.0
1,411
/* GCompris - explore_world_animals.js * * Copyright (C) 2015 Johnny Jazeix <jazeix@gmail.com> * * Authors: * Beth Hadley <bethmhadley@gmail.com> (GTK+ version) * Johnny Jazeix <jazeix@gmail.com> (Qt Quick port) * * This program is free software; you can redistribute it and/or modify * it under the terms of the...
jamesthechamp/gcompris-recyclebin
src/activities/explore_world_animals/explore_world_animals.js
JavaScript
gpl-3.0
3,641
/* Part of the Shuttr app by @aureljared. Licensed under GPLv3. http://github.com/aureljared/shuttr */ // Logging const l = require('./logger').log; var log = function(msg) { l('ui-buttons', msg) }; const hb = require('./heartbeat'); const fn = require('./shuttr'); const ants = require('./constants'); con...
aureljared/shuttr
js/ui-buttons.js
JavaScript
gpl-3.0
6,028
exports.seed = function(knex, Promise) { // Deletes ALL existing entries return knex('action_user').del() .then(function () { return Promise.all([ // Inserts seed entries // knex('action_user').insert({action_user_id:1, action_id: 1, user_id: 1, points: 5}), knex('action_user').in...
ITsolution-git/actodo
src/db/seeds/action_user.js
JavaScript
gpl-3.0
414