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
/* * * @licstart The following is the entire license notice for the * JavaScript code in this page. * * Copyright (c) 2012-2016 RockStor, Inc. <http://rockstor.com> * This file is part of RockStor. * * RockStor is free software; you can redistribute it and/or modify * it under the terms of the GNU General Pub...
priyaganti/rockstor-core
src/rockstor/storageadmin/static/storageadmin/js/views/pool_rebalance_table.js
JavaScript
gpl-3.0
4,839
class MyTextAdventurePlayerClass extends TextAdventPlayerClass { constructor(PlayerName, ItemUtils, RoomUtils, UI) { super(PlayerName); this.ItemUtils = ItemUtils; this.RoomUtils = RoomUtils; this.UI = UI; this.Stats["Score"] = 0; } FollowPath(Situation, Path) { ...
partouf/mytextadventure
mytextadventure.js
JavaScript
gpl-3.0
1,896
App.service('ScoreService', function (GameService, CurrentGameFactory, AchievementService) { var points = 0; var socket = io('/points'); socket.on('update', function (response) { CurrentGameFactory.userGame.TotalLaunches = response.TotalLaunches; CurrentGameFa...
anth12/hackathon-2016
BeanFlick/public/scripts/services/ScoreService.js
JavaScript
gpl-3.0
1,146
/** * Copyright (c) 2015, Cornellapp. * All rights reserved. * * This source code is licensed under the GNU General Public License v3.0 * license found in the LICENSE file in the root directory of this source * tree. * * * Constants for the Flux dispatcher to use during schedule actions. */ module.exports = ...
pastachan/cornellapp
app/constants/ScheduleConstants.js
JavaScript
gpl-3.0
1,010
'use strict'; angular.module('podr').directive('holderFix', function() { return { link: function (scope, element, attrs) { Holder.run({images:element.get(0), nocss:true}); } }; });
johdah/PodR_Node
public/js/directives.js
JavaScript
gpl-3.0
217
/** * @fileoverview JsTestDriver test unit for ydn.store.Storage. */ goog.provide('ydn.store.StorageJstest'); goog.require('goog.debug.Console'); goog.require('goog.debug.LogManager'); goog.require('ydn.db.Storage'); goog.require('ydn.db.test'); ydn.store.StorageJstest = AsyncTestCase('StorageJstest'); ydn.store....
sagan/sora
bower_components/ydn-db/test/storage/StorageJstest.js
JavaScript
gpl-3.0
4,912
$(document).ready( function() { //http://www.codingdrama.com/bootstrap-markdown/ var urlPromptMessage = "Enter the file name of the picture, including any folders deeper than \"pictures\".\ne.g. For a picture in \"assets/pictures/faces/me.png\" use \"faces/me.png\""; var urlPrompt = "faces/me.png"; var urlPreProm...
robbaker292/Dover-War-Memorial
assets/js/narrative_edit.js
JavaScript
gpl-3.0
4,192
/** * Created by val on 9/26/16. */ 'use strict'; import errorHandler from 'errorhandler'; import express from 'express'; import path from 'path'; import config from './env'; export default function (app) { const env = app.get('env'); app.use(express.static(path.join(config.root, '.tmp'))); app.set('appPat...
valsaven/mybooklist
server/config/express.js
JavaScript
gpl-3.0
1,620
define([ ], function() { function URI(str, cb) { var proxyImg = new Image(); var res; res = '['+ str +']('+ str +')'; proxyImg.onload = function() { cb('!'+ res); proxyImg = null; } proxyImg.onerror = function() { cb('@'+ res); proxyImg = null; } proxyImg.src = str; } ...
rhiokim/haroopad
src/js/pad/editor/Editor.drop.string.js
JavaScript
gpl-3.0
350
'use strict'; require('prototypes'); var mongodb = require('mongodb'); var db; var Users =[]; var Resources =[]; var testing = require('testing'); var async = require('async'); var path = require('path'); exports.init = function(callback) { mongodb.connect("mongodb://127.0.0.1:27017/dandelion", function(error, databa...
Yarilo/dandelion-platform
server/util/mongodb.js
JavaScript
gpl-3.0
14,218
var rift = false; // this is set in run(), assume false to be safer var latestversion = version; //==================== //Basic Code function run() { rift = $(".bel.bannernation").length == 1; allPage(); //-------------------- //Region page things if (getPageBits().length == 1 && getPageBits()[0]....
ViKomprenas/LibreNSpp
src/basic.js
JavaScript
gpl-3.0
2,154
'use strict'; // Modules const _ = require('lodash'); const url = require('url'); /* * Helper to normalize routes into arrays */ const normalizeRoutes = (routes = {}) => _(routes) .map((data, key) => _.merge({}, data, {key})) .value(); /* * Helper to map redirects to upstreams */ const getUpstream = (route, ...
kalabox/lando
integrations/lando-platformsh/lib/proxy.js
JavaScript
gpl-3.0
2,247
// Node dependencies const express = require('express'); const bodyParser = require('body-parser'); const methodOverride = require('method-override'); const _ = require('underscore'); // Local dependencies const store = require('./storage/store'); const filter = require('./filter'); // configuration var app = expres...
danielw93/immowelt-filter-service
service.js
JavaScript
gpl-3.0
2,667
function mergeIntervals(arr) { arr.sort((a, b) => a.start - b.start) const newArr = [arr[0]] for (const i of arr.slice(1)) { const last = newArr.slice(-1)[0] if (i.start > last.end) { newArr.push(i) } else { newArr[newArr.length - 1] = { start: last.start, end: Math.max(i.e...
marcosfede/algorithms
array/merge_intervals/merge_intervals.js
JavaScript
gpl-3.0
698
(function(){ "use strict"; class Message extends UiController { constructor(options){ super(_.extend({ name: "Message", }, options)); } show(options){ super.show.apply(options); this.options = _.extend({ text: "MESSAGE", showSpinner: tr...
matso165/islands-of-tribes
StoneAge/source/ui/controllers/Message.js
JavaScript
gpl-3.0
839
'use strict'; /** * Serverless Module: Lambda Handler * - Your lambda functions should be a thin wrapper around your own separate * modules, to keep your code testable, reusable and AWS independent * - 'serverless-helpers-js' module is required for Serverless ENV var support. Hopefully, AWS will add ENV support t...
Backfeed/slant-protocol-service
back/modules/biddings/getbidding/handler.js
JavaScript
gpl-3.0
686
jQuery(function($) { (function() { tinymce.PluginManager.add( 'toggle_jeju_button', function( editor, url ) { editor.addButton ( 'toggle_jeju_button', { text: 'Show Jeju Tools', icon: false, onclick: function(){ $('#keywords-form').hide() ...
batconjurer/Jeju-SEO-Tool
jeju_seo_tool/js/kwds_form.js
JavaScript
gpl-3.0
5,061
/* * Copyright (C) 2009-2018 by the geOrchestra PSC * * This file is part of geOrchestra. * * geOrchestra 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 opt...
landryb/georchestra
analytics/src/main/webapp/js/app/model/OGCUser.js
JavaScript
gpl-3.0
1,311
import React, { Component } from 'react' /* <Grid data=[{data}] - data is checked for the property of dimensions and if it is, then a blank grid is created. else map is run. headers={header_list} onCellExit(index, old_cell, new_cell)={onCellExit} onCellEnter(index, old_cell, new_cell)={onCellEnter} onEdge(index, ...
frastlin/Toolo
src/grid/cell.js
JavaScript
gpl-3.0
2,526
import {AccountUtils} from "../../../util/accounts"; Template.registerHelper("isSignInState", function () { return AccountsTemplates.getState() === 'signIn'; }); Template.registerHelper("isSignUpState", function () { return AccountsTemplates.getState() === 'signUp'; }); Template.registerHelper("getWhitelistedDoma...
thm-projects/arsnova-flashcards
imports/startup/client/registerhelper/login.js
JavaScript
gpl-3.0
390
'use strict'; import chai from 'chai'; import view from '../../src/view'; import exception from '../../src/exception'; /** * @name view: * Unit tests for the view wrapper. */ describe('view', () => { let should = chai.should(); let v = new view.pouchdb(); it('rewrites a simple view properly', () => { ...
browndav/noteable
tests/unit/view.js
JavaScript
gpl-3.0
1,297
function wysiwyg(selector, name) { var element = $(selector); var html = ''; html += "<div class='controls'>"; html += " <div class='btn-group'>"; // html += " <a class='btn btn-default btn-sm' data-role='undo' href='javascript:void(0)'><i class='fa fa-undo'></i></a>"; // html += " <a class='btn btn-default btn...
ericprieto/sailship
sailship/views/assets/wysiwyg/wysiwyg.js
JavaScript
gpl-3.0
8,041
(function() { // global app namespace variable window.bindrCfg = { i18n: { bindrName: "mtgbindr" }, cookie: null }; // configure cookie defaults // $.cookie.json = true; // enable JSON read/write of our cookies $.cookie.defaults.path = "/"; // cookies s...
surmem/mtgbindr
js/bindrcfg.js
JavaScript
gpl-3.0
435
/** * $Id: editor_plugin_src.js,v 1.1 2014/09/02 15:27:51 leire Exp $ * * @author Moxiecode * @copyright Copyright © 2004-2007, Moxiecode Systems AB, All rights reserved. */ /* Import plugin specific language pack */ tinyMCE.importPluginLanguagePack('emotions'); // Plucin static class var TinyMCE_Emot...
kohascanbit/tabakaleraubik
koha-tmpl/intranet-tmpl/prog/en/js/tinymce/jscripts/tiny_mce/plugins/emotions/editor_plugin_src.js
JavaScript
gpl-3.0
1,743
/******************************************************************************* uBlock Origin - a browser extension to block requests. Copyright (C) 2015-present Raymond Hill This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as p...
gorhill/uMatrix
src/js/logger.js
JavaScript
gpl-3.0
2,880
'use strict'; const addDays = require('date-fns/addDays'); const formatISO = require('date-fns/formatISO'); const nock = require('nock'); const publishDate = addDays(new Date('2020-01-01T00:00:00Z'), 100); function createEntryMarkup(number, days) { return ` <entry> <title>Mock Feed 002 - Entry ${number}</title...
rowanmanning/audrey
test/integration/mock-websites/mock-feeds.com/valid/002.js
JavaScript
gpl-3.0
1,342
// ChaosUPS - a universal points system. // Copyright (C) 2015 Jay Baker module.exports = function(app) { app.factory.zones = [ { name: 'Bloodstone', days: [ { name: "d1", amount: 7 }, { name: "d2", amount: 10 }, { ...
logikaljay/chaosups
factory/zones.js
JavaScript
gpl-3.0
3,889
/** * We'll load jQuery and the Bootstrap jQuery plugin which provides support * for JavaScript based Bootstrap features such as modals and tabs. This * code may be modified to fit the specific needs of your application. */ try { window.Popper = require('popper.js').default; window.$ = window.jQuery = requ...
john-cms/johncms
themes/default/src/js/bootstrap.js
JavaScript
gpl-3.0
946
/* Copyright(C) 2016 John Mears 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 t...
jmears63/SolarPV
js/controllers.js
JavaScript
gpl-3.0
33,750
var NAVTREEINDEX4 = { "cmp2pol_8m_source.html":[4,0,1,5], "dir_6dc4e2912c16a7e58e1fb966ea0c80ba.html":[4,0,0,0], "dir_73ef90a042eeab54faeaf7e328fab7b3.html":[4,0,0,3], "dir_772940239f0df913ecb031c2365182dd.html":[4,0,0,1], "dir_7a72a87964f77b76824f5b85812bcae7.html":[4,0,0,9], "dir_8248032291ee15c3f092b1111a949a27.html...
petejonze/ivis
ivis/doc/API/src/navtreeindex4.js
JavaScript
gpl-3.0
7,985
const fs = require('fs') const path = require('path') const glob = require('glob') const lunr = require('lunr') const publicDir = path.resolve(__dirname, '..', process.argv[2] || 'public') const documentsPaths = glob.sync('**/search/index.json', { cwd: publicDir, absolute: true }) documentsPaths.forEach(documen...
testthedocs/ttd.webiste
themes/minimo/scripts/generate-search-index-lunr.js
JavaScript
gpl-3.0
1,026
export default class EventHandler { constructor(eventStream) { this.eventStream = eventStream } on(topic, fn) { this.eventStream.addEventListener(topic, fn) return this } }
Larkenx/Rotten-Soup
src/assets/js/game/utils/EventHandler.js
JavaScript
gpl-3.0
184
// Dependencies steal( "opstools/ProcessReports/controllers/ReportTemplateWorkspace.js", // Initialization function(){ // the div to attach the controller to var divID = 'test_ReportTemplateWorkspace'; // add the div to the window var buildHTML = function() { var html = [ ...
appdevdesigns/opstool-process-reports
assets/opstools/ProcessReports/tests/controller_ReportTemplateWorkspace.js
JavaScript
gpl-3.0
1,411
var Nrf905 = require('./nrf905.js'); var radio = new Nrf905(); radio.init(); radio.setAddress([0x41, 0x41, 0x41, 0x41]); //radio.setAddress([0x66, 0x66, 0x66, 0x66]); console.log(radio.readConfig()); var received = 0; radio.attachReceivedCallback(function(err, payload) { console.log("received: " + payload); ...
gertvermeersch/node-rf905
test.js
JavaScript
gpl-3.0
596
MODX Evolution 1.0.2 = 4203e250815720042afb39bac0ad4112
gohdan/DFC
known_files/hashes/assets/plugins/tinymce3241/jscripts/tiny_mce/plugins/searchreplace/langs/sv_dlg.js
JavaScript
gpl-3.0
56
/*! * VisualEditor UserInterface Toolbar class. * * @copyright 2011-2016 VisualEditor Team and others; see http://ve.mit-license.org */ /** * UserInterface surface toolbar. * * @class * @extends OO.ui.Toolbar * * @constructor * @param {Object} [config] Configuration options */ ve.ui.Toolbar = function VeUi...
Facerafter/starcitizen-tools
extensions/VisualEditor/lib/ve/src/ui/ve.ui.Toolbar.js
JavaScript
gpl-3.0
6,591
function isFullScreen(cm) { return /\bCodeMirror-fullscreen\b/.test(cm.getWrapperElement().className); } function winHeight() { return window.innerHeight || (document.documentElement || document.body).clientHeight; } function setFullScreen(cm, full) { var wrap = cm.getWrapperElement(); if (full) { wrap.clas...
pedromagnus/kilink
kilink/static/editor.js
JavaScript
gpl-3.0
3,914
$(function(){ $(window).responsinav({ breakpoint: 600 }); });
Fluidbyte/Fokiz
js/common.js
JavaScript
gpl-3.0
66
// Copyright 2015-2017 Parity Technologies (UK) Ltd. // This file is part of Parity. // Parity 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 lat...
BSDStudios/parity
js/src/ui/TxList/txList.js
JavaScript
gpl-3.0
2,338
// Streya is a science fiction video game for web browsers. Players // control a single character but can hire crew, command ships and // stations, rule over populations and more. The game takes place in // the Kuiper Belt around 2220 CE and confines itself to scientifically // plausible technologies. // // TODO // -...
antimeme/ripple
apps/oldstreya/app.js
JavaScript
gpl-3.0
47,349
/* * #%L * Eva * %% * Copyright (C) 2013 Abada Servicios Desarrollo (investigacion@abadasoft.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, either version 3 of the * License...
abada-investigacion/eva
eva-server/eva-web/src/main/webapp/ext4/src/data/association/HasMany.js
JavaScript
gpl-3.0
10,718
(function () { 'use strict'; angular .module('otusjs.player.component') .component('singleSelectionQuestionView', { templateUrl: 'app/otusjs-player-component/viewer/survey-item-views/single-selection-question-view-template.html', controller: Controller, bindings: { filters: '=', ...
ccem-dev/otus-preview-js
app/otusjs-player-component/viewer/survey-item-views/single-selection-question-view-component.js
JavaScript
gpl-3.0
389
'use strict'; (function (window, angular, undefined) { angular .module('iserveu') .directive('alloyEditor', [ '$rootScope', '$timeout', '$state', '$stateParams', 'alloyService', 'regexService', 'debouncer', 'CSRF_TOKEN', alloyEditor]) function alloyEdit...
IserveU/IserveU
public/app/shared/directives/alloy/alloy.js
JavaScript
gpl-3.0
4,406
import assert from 'assert' // Import Functions import {getDependencies, getTechs} from './../../../lib' // Import mock data import {versions, moduleList, techsArray, techs} from './../mock' describe('Helpers', () => { describe('getDependencies()', () => { const dependencies = getDependencies(techsArray, modul...
baristna/kiterator
test/mocha/helpers/helpers.spec.js
JavaScript
gpl-3.0
1,205
Ext.define('PM.view.MediaPanel', { alias: 'widget.mediapanel', extend: 'Ext.panel.Panel', // requires:['PM.view.FeaturePanel'], border:false, width: 730, height: 220, items:[{ xtype: 'fieldset', title: 'Media', layout:{ type:'table', co...
geobeyond/placemodeler
app/view/MediaPanel.js
JavaScript
gpl-3.0
1,555
let starttime = new Date(); starttime.setSeconds(0); let timestamp = Math.round(starttime.getTime() / 1000) - 6 * 60 * 60; // six hours earlier let now = (new Date()).getTime() / 1000; let data = ''; let i = 0; while (timestamp < now) { // console.log(`${timestamp},${75 + 2 * Math.sin(Math.PI * i / 500) + 2 * Mat...
tttapa/ESAT4B3
JS/Node/generateBPMData.js
JavaScript
gpl-3.0
836
import { getCaretCharacterOffsetWithin, setCaretPosition } from 'DomHelpers'; //var editor = new DivEditor({ // domNode: DOM node which will be editable // onEdit: function or undefined // transformText: function or undefined <-- Will be called every 50 ms and allowed // to transform domNode's HTML, given domNode's t...
Baka9k/notes
js/DivEditor.js
JavaScript
gpl-3.0
2,498
var __v=[ { "Id": 1720, "Chapter": 546, "Name": "文本绘制", "Sort": 0 } ]
zuiwuchang/king-document
data/chapters/546.js
JavaScript
gpl-3.0
94
/* * adapt-devtools * License - http://github.com/adaptlearning/adapt_framework/LICENSE * Maintainers - Chris Steele <chris.steele@kineo.com>, Oliver Foster <oliver.foster@kineo.com> */ define([ 'core/js/adapt', 'core/js/models/adaptModel', './devtools-model', './pass-half-fail', './toggle-banking', './map...
cgkineo/adapt-devtools
js/adapt-devtools.js
JavaScript
gpl-3.0
15,563
/*! jQuery UI - v1.12.1 - 2019-01-17 * http://jqueryui.com * Includes: widget.js, position.js, data.js, disable-selection.js, focusable.js, form-reset-mixin.js, jquery-1-7.js, keycode.js, labels.js, scroll-parent.js, tabbable.js, unique-id.js, widgets/datepicker.js, widgets/tooltip.js, effect.js, effects/effect-fade.js...
arielmachini/Colibri
Biblioteca maestra/Implementación/Aplicación Web/colibri/lib/jquery-ui-1.12.1/jquery-ui.js
JavaScript
gpl-3.0
182,793
var nsquare_8cpp = [ [ "nsq_balance_particles", "nsquare_8cpp.html#aeee073557df8538c5e88bd4fe9665093", null ], [ "nsq_calculate_energies", "nsquare_8cpp.html#a23a90336bcc881f63298a05c48cf7925", null ], [ "nsq_calculate_ia", "nsquare_8cpp.html#a8e0f73e1c45156e15702a4d0f724756e", null ], [ "nsq_calculate_...
HaoZeke/espresso
doc/doxygen/html/nsquare_8cpp.js
JavaScript
gpl-3.0
922
/** * Copyright (c) 2014,Egret-Labs.org * All rights reserved. * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright * notice, this list of c...
fightingplane/drawhearts
DrawHearts/libs/core/egret/context/renderer/RenderFilter.js
JavaScript
gpl-3.0
11,141
import React, { Component } from 'react' import ModalsContainer from '../containers/ModalsContainer' import './ViewSwitcher.css' class DeletedFiles extends Component { componentDidMount() { this.props.dispatch.init() } render() { const files = this.props.state.files const listView = this.props.st...
Scille/parsec-gui
src/components/DeletedFiles.js
JavaScript
gpl-3.0
3,230
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl...
roddios/SilverBooks
SilverBooksAngular2/App/browse.component.js
JavaScript
gpl-3.0
1,131
var PagedRowHeader = React.createClass({ displayName: 'PagedRowHeader', propType: { 'header_row': React.PropTypes.array.isRequired }, render: function () { return React.createElement( 'thead', null, React.createElement( 'tr', ...
HogeLab/loris
modules/data_team_helper/js/behavioural_qc_module.js
JavaScript
gpl-3.0
16,536
angular.module('lisjp').controller('lisjp.EditCertCtrl', ['$rootScope', '$filter', '$location', '$scope', '$log', '$timeout', '$stateParams', '$q', 'common.UtkastService', 'common.UserModel', 'common.DateUtilsService', 'common.UtilsService', 'lisjp.Domain.IntygModel', 'lisjp.EditCertCtrl.ViewStateSe...
sklintyg/intygstyper
fk/lisjp/src/main/resources/META-INF/resources/webjars/lisjp/webcert/views/utkast/utkast.controller.js
JavaScript
gpl-3.0
2,465
var gulp = require('gulp'), sass = require('gulp-sass'), nodemon = require('gulp-nodemon'), browserSync = require('browser-sync'); gulp.task('styles', function() { return gulp.src('./sass/**/*.scss') .pipe(sass().on('error', sass.logError)) .pipe(gulp.dest('./public/css/')) .pipe(browserSync.strea...
tmwllc/aws-exams
gulpfile.js
JavaScript
gpl-3.0
846
function handleContextMenu(event) { var target = event.target; while(target != null && target.nodeType == Node.ELEMENT_NODE && target.nodeName.toLowerCase() != "a") { target = target.parentNode; } safari.self.tab.setContextMenuEventUserInfo(event, target.href); } document.addEventListener('contextmenu', ha...
keichan34/runroller
extensions/Unroller.safariextension/injected.js
JavaScript
gpl-3.0
345
$( document ).ready(function() { $('[name=reveal]').each(function(i){ $('#answer'+$(this).attr('id')).toggle(); $(this).click(function() { $('#answer'+$(this).attr('id')).toggle("blind", 1000 ); $(this).hide(); }); } ); });
mPowering/django-orb
orb/courses/ORB_Course/js/oppia.js
JavaScript
gpl-3.0
240
/** * Copyright (C) 2018 Noah Loomans * * This file is part of rooster.hetmml.nl. * * rooster.hetmml.nl 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 op...
nloomans/rooster.hetmml.nl
src/client/react/components/presentational/WeekSelector.js
JavaScript
gpl-3.0
1,759
import StringStreamer from "../../src/streamer/string-streamer.js"; import SdfParser from "../../src/parser/sdf-parser.js"; import { assert } from 'chai'; import fs from 'fs'; describe('parser/sdf-parser', function() { describe('parsing', function () { it('basic', function () { var path = __dirname + ...
deepchem/deepchem-gui
gui/static/ngl/test/parser/tests-sdf-parser.js
JavaScript
gpl-3.0
696
// @flow import type {AlphaImage} from '../util/image'; export type GlyphMetrics = { width: number, height: number, left: number, top: number, advance: number }; export type StyleGlyph = { id: number, bitmap: AlphaImage, metrics: GlyphMetrics };
CLAV88/FEWD
node_modules/mapbox-gl/src/style/style_glyph.js
JavaScript
gpl-3.0
281
'use strict'; function Test(Repository) { var should = require('chai').should(); describe('Testing users component', function() { beforeEach(function() { this.userEntity = Repository.get('app.entity.users'); this.createData = { name: 'Felipe Barros', ...
FelipeBarrosCruz/node-wishlist
app/components/users/test/index.js
JavaScript
gpl-3.0
2,139
/* bender-tags: editor */ /* bender-ckeditor-plugins: autolink,clipboard,link,sourcearea */ /* bender-include: ../clipboard/_helpers/pasting.js */ /* global assertPasteEvent */ ( function() { 'use strict'; bender.editors = { classic: { config: { allowedContent: true, pasteFilter: null, removePlugin...
ernestbuffington/PHP-Nuke-Titanium
includes/wysiwyg/ckeditor/tests/plugins/autolink/autolink.js
JavaScript
gpl-3.0
9,206
$(document).ready(function (e) { $("#uploadimage").on('submit',(function(e) { e.preventDefault(); $("#message").empty(); $('#loading').show(); $.ajax({ url: "uploader.php", // Url to which the request is send type: "POST", // Type of request to be send, called as method data: new FormData(this), // ...
trutherbotdash/trutherbot
html/js/uploader.js
JavaScript
gpl-3.0
1,785
var primeCalculator = require('./sieve-atkin'); var commonTests = require('./common.spec.js'); describe('Test sieve-atkin prime algorithm', commonTests(primeCalculator));
fvelosa/node-primes
routes/utils/primes/sieve-atkin.spec.js
JavaScript
gpl-3.0
171
var class_g_u_i_visualization_settings = [ [ "GUIVisualizationSettings", "db/d21/class_g_u_i_visualization_settings.html#a9efca6db6ebabb33d3f61af70e890a65", null ], [ "getLaneEdgeMode", "db/d21/class_g_u_i_visualization_settings.html#afeca58fdf7bfae04063b335314dc7b43", null ], [ "getLaneEdgeScheme", "db/d21...
cathyyul/sumo-0.18
docs/doxygen/db/d21/class_g_u_i_visualization_settings.js
JavaScript
gpl-3.0
6,336
/** * @1900-2100区间内的公历、农历互转 * @charset UTF-8 * @Author Jea杨(JJonline@JJonline.Cn) * @Time 2014-7-21 * @Time 2016-8-13 Fixed 2033hex、Attribution Annals * @Time 2016-9-25 Fixed lunar LeapMonth Param Bug * @Version 1.0.2 * @公历转农历:calendar.solar2lunar(1987,11,01); //[you can ignore params of prefix 0] *...
jjonline/JFrame
asset/js/calendar.js
JavaScript
gpl-3.0
26,338
const async = require('async'); const helpers = require('../../../helpers/azure'); module.exports = { title: 'Scale Set Multi Az', category: 'Virtual Machines', description: 'Ensures that Virtual Machine Scale Sets are created to be cross-AZ for high availability', more_info: 'Having Virtual Machine Sc...
cloudsploit/scans
plugins/azure/virtualmachines/scaleSetMultiAz.js
JavaScript
gpl-3.0
2,530
export default ['中文', '英文', '特别会场', '其他']
NKMUN/hi.nkmun.cn
src/lib/session-types.js
JavaScript
gpl-3.0
62
System.register(["rtts_assert/rtts_assert", "angular2/angular2", "angular2/di", "angular2/src/render/api", "angular2/src/facade/lang", "angular2/src/facade/collection", "./model", "./validators"], function($__export) { "use strict"; var assert, View, Component, Decorator, Ancestor, onC...
nayrnet/raspipc
public/vendor/angular2/src/forms/directives.js
JavaScript
gpl-3.0
8,131
/** * Genji Scrum Tool and Issue Tracker * Copyright (C) 2015 Steinbeis GmbH & Co. KG Task Management Solutions * <a href="http://www.trackplus.com">Genji Scrum Tool</a> * * 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...
trackplus/Genji
src/main/webapp/js/ext/com/track/bulkSetter/userPickerMultipleSelect.js
JavaScript
gpl-3.0
1,675
var express = require('express'), app = express(), socketio = require('socket.io'), bodyParser = require('body-parser'), http = require('http'), mongoose = require('mongoose'), port = process.env.PORT || 3000, heartRateController = require('./server/controllers/heartRate-control...
Bhargav1009/web
heartrateapp/server.js
JavaScript
gpl-3.0
1,528
function find_span(arr, x) { // for ordered array arr and value x, find the left index // of the closed interval that the value falls in. for (let i = 0; i < arr.length - 1; i++) { if (x <= arr[i + 1] && x >= arr[i]) { return i; } } return -1; } function get_fp(alt, az, posture) { // alt : a...
CenterForTheBuiltEnvironment/mrt
js/erf.js
JavaScript
gpl-3.0
4,824
import {html, render} from 'lit-html/lib/lit-extended' import '../components/sections/user/chtr-signup' export default function signup (state, emit) { const {user} = state const error = user.error != null ? user.error.message : '' const template = html` <div id="root"> <chtr-signup loading=${...
Pablo-Rodriguez/chatters-client
src/views/signup.js
JavaScript
gpl-3.0
450
// this mini server is for: https://github.com/dwyl/hapi-error/issues/49 var Hapi = require('hapi'); var Hoek = require('hoek'); var server = new Hapi.Server(); server.connection(); server.register({ register: require('../lib/index.js') }, (err) => { Hoek.assert(!err, 'no errors registering plugins'); }); // no se...
Pacerino/screenshare
node_modules/hapi-error/test/api_server.js
JavaScript
gpl-3.0
408
var siteType = args.siteType; var formId = args.form; var widgetId = args.widget; if (siteType == undefined) { status.code = 400; status.message = "Site Type must be provided."; status.redirect = true; } else { if (widgetId == undefined) { status.code = 400; s...
hlim/studio
alfresco-svcs/src/main/resources/alfresco/templates/webscripts/org/craftercms/cstudio/service/form/formservice.getwidgetconfiguration.get.js
JavaScript
gpl-3.0
509
// @flow import { getSelectFields, getOperationFields, getFilterFields, getDropdownValues, getOperations, fetchRecordCount, fetchRecords, fetchMView, fetchView } from '../api'; export const ADD_ONE_SELECT = 'ADD_ONE_SELECT'; export const ADD_ALL_SELECT = 'ADD_ALL_SELECT'; export cons...
matiaet98/generic-search
src/actions/index.js
JavaScript
gpl-3.0
10,230
(function(window, angular, undefined) { 'use strict'; /* Filters */ var filters = angular.module('app.filters', []); filters.filter('slugify', [ function() { return function(input) { return input.replace(/[^\w\s-]/g, "").trim().toLowerCase().replace(/[-\s]+/g, "-"); }; }]); filt...
bluerobotics/SolarSurferCommander
app/scripts/filters.js
JavaScript
gpl-3.0
1,438
var highStar = {}; highStar.gameState = function (game) { this.player; //anything hard that will not move and the player can stand on. this.ground; this.platforms; this.ledges; this.ledge; this.ledgeVelocity = 50; // the ledgePosition with have 3 possible values: "x0" "x1" ...
jbranso/phaser-games
high-star/highStar.js
JavaScript
gpl-3.0
13,898
#!/usr/bin/env node /* Stripr node.js backend + angularjs frontend for controlling a RGB-LED-Strip connected to a Raspberry Pi. Copyright (C) 2015 Martin Helff 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 Soft...
mhelff/stripr
app.js
JavaScript
gpl-3.0
2,132
/* * Copyright (c) 2012 Adobe Systems Incorporated. All rights reserved. * * 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 ri...
MatiasNAmendola/gnome-web
usr/lib/brackets/src/extensions/default/DebugCommands/main.js
JavaScript
gpl-3.0
14,661
//Only for Astah UML and Professional. //This script searches Messages which is not related to an operation. importPackage(com.change_vision.jude.api.inf.model); importPackage(com.change_vision.jude.api.inf.presentation); importPackage(com.change_vision.jude.api.inf.editor); importPackage(java.awt.geom); var COLOR_PRO...
ESOM-2017-1/stunning-fiesta
astah-script-plugin/sample_scripts/java7/searchMessagesWithoutOperation.js
JavaScript
gpl-3.0
1,654
// ==UserScript== // @name Neopets : Pyramids // @namespace http://gm.wesley.eti.br // @author w35l3y // @email w35l3y@brasnet.org // @copyright 2015+, w35l3y (http://gm.wesley.eti.br) // @license GNU GPL // @homepage http://gm.wesley.eti.br // @version 1.2.4 // ...
w35l3y/userscripts
scripts/Neopets_Pyramids/main.user.js
JavaScript
gpl-3.0
5,812
'use strict'; var Http = require('http'); var Https = require('https'); var Url = require('url'); var Querystring = require('querystring'); function parseRequestOptions(opts) { if (opts.details === undefined) { opts.details = {}; } if (opts.url !== undefined) { var urlObj = Url.parse(opts.url); if ...
simpleboard/naiveboard
utils/http-request.js
JavaScript
gpl-3.0
4,101
/** * Module dependencies. */ var express = require('express') , http = require('http'); var app = express(); //- ONLY FOR NEWER 3.x express ////var app = express.createServer(); var server = http.createServer(app); var io = require('socket.io').listen(server); var crypto = require('crypto'), async = requ...
howels/pi-tank
app9.js
JavaScript
gpl-3.0
4,733
Fox.define('controllers/stream', 'controller', function (Dep) { return Dep.extend({ defaultAction: 'index', index: function () { this.main('Stream', { displayTitle: true, }, function (view) { view.render(); }); } });...
ilovefox8/zhcrm
client/src/controllers/stream.js
JavaScript
gpl-3.0
326
function Reservation(opts) { var options = opts; var elements = { beginDate: $('#formattedBeginDate'), endDate: $('#formattedEndDate'), endDateTextbox: $('#EndDate'), beginTime: $('#BeginPeriod'), endTime: $('#EndPeriod'), durationDays: $('#durationDays'), durationHours: $('#durationHours'), ...
msslava/reservationsystem
Web/scripts/reservation.js
JavaScript
gpl-3.0
16,256
/*! * time-stamp <https://github.com/jonschlinkert/time-stamp> * * Copyright (c) 2015-2018, Jon Schlinkert. * Released under the MIT License. */ 'use strict'; /** * Parse the given pattern and return a formatted * timestamp. * * @param {String} `pattern` Date pattern. * @param {Date} `date` Date object. ...
lyy289065406/expcodes
java/01-framework/dubbo-admin/incubator-dubbo-ops/dubbo-admin-frontend/node_modules/time-stamp/index.js
JavaScript
gpl-3.0
1,793
var email = (function() { var gmail = (function() { function send(to, subject, content, callback) { var callback = (typeof callback === "function") ? callback : function() {}; new OAuth(OAuth.SERVICE_GMAIL, function(status, body) { if (status !== 200) { return callback(); ...
pasimako/agitodo
core/js/email.js
JavaScript
gpl-3.0
1,099
var module = (function(document, navigator) { // Obten el elemento con id=demo. Ahí es donde añadirás las coordenadas var x = document.getElementById("demo"); // Comprueba si el navegador acepta geolocalización. // En caso afirmativo, obtén las coordenadas lat, lng y muéstralas // dentro del e...
jorgeas80/webhub
HTML5/geolocation/01-coords/js/main.js
JavaScript
gpl-3.0
940
/** * Base Model-View * * Handles loading view files, maintaining data state, * and rendering. */ // var dependencies var fs = require( 'fs' ) , Ractive = require( 'ractive' ) , _ = require( 'underscore' ); // global dependencies require( './transitions/fade' ); // define the base model var ModelView = funct...
TeachBoost/opal
app/library/modelview.js
JavaScript
gpl-3.0
2,919
/** * childTheme * @version 1.0 * @updated 00.00.00 **/ var childTheme = { /** * navSwap * @version 1.0 * @updated 00.00.00 **/ init : function() { this.navSwap(); } // end init : function /** * navSwap * @version 1.0 * @updated 00.00.00 **/ ,navSwap : function() { jQue...
vc27/vc27.com
js/main.js
JavaScript
gpl-3.0
1,214
'use strict'; //Dependencies var webpack = require('webpack'); var path = require('path'); var fs = require('fs'); //Build externals flag for excluding node_modules var nodeModules = {}; fs.readdirSync('node_modules').filter(function(x) { return ['.bin'].indexOf(x) === -1; }).forEach(function(mod) { nodeModul...
BeMacized/Midnight-Bot
webpack.server.config.js
JavaScript
gpl-3.0
1,325
const math = require('mathjs'); const express = require('express'); const app = express(); const bodyParser = require('body-parser') const _ = require('lodash'); const UP = '0'; const RIGHT = '1'; const DOWN = '2'; const LEFT = '3'; var prevState; app.use(bodyParser.json()); // to support JSON-encoded bodies app.use...
valeriocomo/2048
2048.js
JavaScript
gpl-3.0
2,399
var searchData= [ ['pending_5fwrite',['pending_write',['../structpending__write.html',1,'']]], ['pending_5fwrites',['pending_writes',['../structpending__writes.html',1,'']]], ['publications',['Publications',['../structPublications.html',1,'']]], ['publish',['Publish',['../structPublish.html',1,'']]] ];
t-moe/mqttblesensors
cli/paho-1.0.3-Linux/share/doc/MQTTClient_internal/html/search/classes_6.js
JavaScript
gpl-3.0
312
import AWS from 'aws-sdk'; import AutotagDefaultWorker, { AUTOTAG_TAG_NAME_PREFIX } from './autotag_default_worker'; class AutotagS3Worker extends AutotagDefaultWorker { /* tagResource ** method: tagResource ** ** Tag the S3 bucket with the relevant information */ async tagResource() { const roleName ...
GorillaStack/auto-tag
src/workers/autotag_s3_worker.js
JavaScript
gpl-3.0
1,909
const _ = require('lodash') //define kernels for the sobel filter const kernelx = [[-1, 0, 1], [-2, 0, 2], [-1, 0, 1]], kernely = [[-1, -2, -1], [0, 0, 0], [1, 2, 1]]; let angles = [], mags = [], strongEdgePixels = [], weakEdgePixels = [], notInUI; module.exports = function(pixels, highThresholdRatio, lowThreshol...
jywarren/image-sequencer
src/modules/EdgeDetect/EdgeUtils.js
JavaScript
gpl-3.0
5,628
import React from 'react'; import { withRouter } from 'react-router-dom' import { RSAA } from 'redux-api-middleware' import { TEAM_BASE_URL, TEAM_API_RELATIVE_PATH } from '../../envvars' import { getTasksSuccess } from '../../actions/taskActions' import parseJsonPayload from '../../util/parseJsonPayload' import PropTy...
DemocracyGuardians/DGTeam
client/src/components/Workbench/Tasks.js
JavaScript
gpl-3.0
3,616
( function () { /** * Menu header for the RCFilters filters menu * * @class mw.rcfilters.ui.FilterMenuHeaderWidget * @extends OO.ui.Widget * * @constructor * @param {mw.rcfilters.Controller} controller Controller * @param {mw.rcfilters.dm.FiltersViewModel} model View model * @param {Object} config Co...
kylethayer/bioladder
wiki/resources/src/mediawiki.rcfilters/ui/FilterMenuHeaderWidget.js
JavaScript
gpl-3.0
5,999