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
"use strict"; try { var CLIENT = require("mongodb").MongoClient; } catch (MODULE_NOT_FOUND) { console.error(MODULE_NOT_FOUND), process.exit(1); } module.exports = function() { function with_log(json) { var diff = process.hrtime(json.ns); json.ns = 1e9 * diff[0] + diff[1], json.event = opti...
hex7c0/monitode
min/module/mongodb.js
JavaScript
gpl-3.0
1,773
var number=[], end_positions=[],position=5, current_direction; number.push("LRRLLLRDRURUDLRDDURULRULLDLRRLRLDULUDDDDLLRRLDUUDULDRURRLDULRRULDLRDUDLRLLLULDUURRRRURURULURRULRURDLULURDRDURDRLRRUUDRULLLLLDRULDDLLRDLURRLDUURDLRLUDLDUDLURLRLDRLUDUULRRRUUULLRDURUDRUDRDRLLDLDDDLDLRRULDUUDULRUDDRLLURDDRLDDUDLLLLULRDDUDDUUULRUL...
julianschmuckli/adventofcode_2016
day2/task2.js
JavaScript
gpl-3.0
5,282
var searchData= [ ['qosprocessor_2ecpp',['QOSProcessor.cpp',['../QOSProcessor_8cpp.html',1,'']]], ['qosprocessor_2eh',['QOSProcessor.h',['../QOSProcessor_8h.html',1,'']]], ['qualitymanager_2ecpp',['QualityManager.cpp',['../QualityManager_8cpp.html',1,'']]], ['qualitymanager_2eh',['QualityManager.h',['../Quality...
lmarent/QualityManager
html/search/files_7.js
JavaScript
gpl-3.0
727
$(function () { console.log("Hello from custom local script!"); });
AnnaIshchenko/homework_js
homework17_18/grunt/src/script/script_local.js
JavaScript
gpl-3.0
79
var Editor = {}; Editor.init = function() { Editor.load_project(); Editor.init_mode(); Editor.init_buttons(); Editor.init_element_menus(); Editor.init_page_list(); Editor.init_selector(); Editor.init_type_to_add(); Editor.handle_key_events(); } Editor.load_project = function() { va...
moexmen/supermock
app/assets/javascripts/editor/editor.js
JavaScript
gpl-3.0
4,759
/* * This file is part of MystudiesMyteaching application. * * MystudiesMyteaching application 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 l...
UH-StudentServices/mystudies-myteaching-frontend
common/src/app/constants/commonExternalLinks.js
JavaScript
gpl-3.0
1,385
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license Copyright (c) 2012, Brian McCloskey. All rights reserved. For licensing, see LICENSE, or <http://www.gnu.org/licenses/> This code was modififed from the CKEditor plugin bbcode...
kodene/MyBB_CKEditor
ckeditor/_source/plugins/mybb/plugin.js
JavaScript
gpl-3.0
32,164
--- --- // TODO: move to _data // Explanations for items var itemExplanations = { 'education' : 'Teachers Service Commission, State Department for Science and Technology, and State Department for Education', 'public-healthcare' : 'Ministry of Health', 'law-and-order' : 'Judiciary, State Department for Interior, ...
CodeForAfrica/TaxClock
js/taxclock/tc-schedule.js
JavaScript
gpl-3.0
11,813
/* Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ (function(){function e(a){return{"aria-label":a,"class":"cke_pagebreak",contenteditable:"false","data-cke-display-name":"pagebreak","data-cke-pagebreak":1,style:"page-break-af...
digirati-co-uk/omeka-s
application/asset/vendor/ckeditor/plugins/pagebreak/plugin.js
JavaScript
gpl-3.0
2,553
/* Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'image2', 'he', { alt: 'טקסט חלופי', btnUpload: 'שליחה לשרת', captioned: 'כותרת תמונה', captionPlaceholder: 'כותרת', infoTab: 'מידע על התמונה', l...
srammram/jeevan
skin/backend/js/ckeditor/plugins/image2/lang/he.js
JavaScript
gpl-3.0
758
Simpla CMS 2.3.8 = dfa8026b853fa55b589c2e8596d975f8
gohdan/DFC
known_files/hashes/simpla/design/js/codemirror/mode/velocity/velocity.js
JavaScript
gpl-3.0
52
zeus.controller('MainCtrl', ['$scope', '$rootScope', '$route', '$window', '$location', function ($scope, $rootScope, $route, $window, $location) { // A scope! $rootScope.$on('$routeChangeError', function (event, curr, prev, rejection) { if (!prev) { $location.url('/'); return; } $window.his...
luop90/Operation-Zeus
assets/src/js/controller.main.js
JavaScript
gpl-3.0
574
module.exports.states = [ { "cap_city": "Maiduguri", "createdAt": "2015-10-24T17:25:54.748Z", "latitude": 11.5097479, "longitude": 12.9789121, "max_latitude": 13.7144441, "max_longitude": 14.680073, "min_latitude": 10.0291549, "min_longitude": 11.6286559,...
dsninjas/states-cities
config/states.js
JavaScript
gpl-3.0
17,239
Art = { global: { ajaxTimeout: 30 //seconds }, createScopeFunction: function(func, scope) { return function() { return func.apply(scope); }; }, log: function(value) { if ("undefined" != typeof(console) && "function" == typeof(console.log)) console.log(value); }, ajaxSubmit: function(formId, ...
sagifire/Artful
lib/artful/js/artful.js
JavaScript
gpl-3.0
4,503
///////////////////////////////////////////////////////////////////////////////// // // jHako WebGUI // Copyright (C) 2014-2015 Komatsu Yuji(Zheng Chuyu) // // 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 Softwar...
komatsuyuji/jhako
frontends/public/app/view/common/Condition.js
JavaScript
gpl-3.0
2,635
function walk(rootNode) { // Find all the text nodes in rootNode var walker = document.createTreeWalker( rootNode, NodeFilter.SHOW_TEXT, null, false ), node; // Modify each text node's value while (node = walker.nextNode()) { handleText(node); } } fu...
marley/theyify
content_script.js
JavaScript
gpl-3.0
3,370
// Javascript functions for Flexsections course format. M.course = M.course || {}; M.course.format = M.course.format || {}; /** * Get sections config for this format * * The section structure is: * <ul class="flexsections"> * <li class="section">...</li> * <li class="section">...</li> * ... * </ul> * *...
saylordotorg/Moodle_Saylor
course/format/flexsections/format.js
JavaScript
gpl-3.0
1,802
require([ 'gridx/Grid', 'gridx/tests/support/data/MusicData', 'gridx/tests/support/stores/Memory', 'gridx/tests/support/TestPane', 'gridx/allModules', 'dojo/on' ], function(Grid, dataSource, storeFactory, TestPane, mods, on){ var columnSetIdx = 0; destroy = function(){ if(window.grid){ grid.destroy(); ...
ustegrew/ustegrew.github.io
courses/it001/lib/dojo/gridx/tests/test_grid.js
JavaScript
gpl-3.0
3,005
var app = require('http').createServer(handler); var io = require('socket.io').listen(app); var fs = require('fs'); var tcp = null; var array = []; // Which port number and IP address we're listening on app.listen(8000, '129.21.67.6'); function handler (req, res) { fs.readFile(__dirname + '/index.html', functio...
RIT-Tool-Time/Cascade
server.js
JavaScript
gpl-3.0
2,805
#pragma strict /* Script usage instructions This class demonstrates the use of the Salsa [Broadcast Receivers] property to catch broadcast talk status changes. 1. Create a GameObject and attach this script to it. 2. Set this GameObject as a [Broadcast Receiver] in Salsa. */ /* This class demonstrates the use o...
worthingtonjg/Sort2017
SortDemo/Assets/Crazy Minnow Studio/SALSA with RandomEyes/Examples/Scripts/JavaScript/CM_SalsaBroadcastEventTester.js
JavaScript
gpl-3.0
783
module.exports = function(grunt) { grunt.loadNpmTasks('grunt-contrib-jshint'); grunt.loadNpmTasks('grunt-contrib-watch'); grunt.initConfig({ watch: { files: ['**/*.js'], tasks: ['jshint'] }, jshint: { all: ['Gruntfile.js', 'static/js/common.js', '...
OpenTreeMap/otm-dashboard
Gruntfile.js
JavaScript
gpl-3.0
364
const app = require("../app"); const assert = require("chai").assert; const config = require("../config/app"); const fake = require("../lib/fake"); const mongoose = require("mongoose"); const request = require("supertest"); const purge = require("../lib/purge-collection"); const gh = require("../lib/generate-hash"); co...
BlackChaosNL/dragontide
test/endpoint-campaign.js
JavaScript
gpl-3.0
11,985
var CacheWindow=new Class({ Extends: WebWindow, initialize: function(app,options) { // Default options this.options.filter=''; // Class this.classNames.push('CacheWindow'); // Initializing the window this.parent(app,options); // Registering commands this.app.registerCommand('win'+this.id+'-...
Rest4/Rest4-php
public/javascript/widgets/CacheWindow.js
JavaScript
gpl-3.0
5,052
// Enable ES6 support require("babel-core/register"); // Load gulp tasks require("require-dir")("./tasks");
sheppy/dota-picker
gulpfile.js
JavaScript
gpl-3.0
109
/* scenarioo-client * Copyright (C) 2014, scenarioo.org Development Team * * 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 ...
MyrionPhoenixmoon/scenarioo
scenarioo-client/app/scripts/directives/debounce.js
JavaScript
gpl-3.0
1,738
/// <binding Clean='clean' /> "use strict"; var gulp = require("gulp"), rimraf = require("rimraf"), concat = require("gulp-concat"), cssmin = require("gulp-cssmin"), fontmin = require("gulp-fontmin"), htmlmin = require("gulp-htmlmin"), uglify = require("gulp-uglify"); var uglifyjs...
Swastika-IO/Swastika-Core
src/Sio.Cms.Web/app/gulpfile.js
JavaScript
gpl-3.0
6,762
function flowfield(sim, renderer, perlin) { let ctx = renderer.canvas.getContext('2d'); ctx.strokeStyle = 'lightgrey'; noise.seed(Math.random()); let fieldResolution = 20, cols = sim.width/fieldResolution, rows = sim.height/fieldResolution, field = []; // populate field w...
tomjorquera/noc-workingrepo
demo/15-flowfield/flowfield.js
JavaScript
gpl-3.0
4,443
var __v=[ { "Id": 1841, "Panel": 966, "Name": "INCLUDEPATH", "Sort": 0, "Str": "" } ]
zuiwuchang/king-document
data/panels/966.js
JavaScript
gpl-3.0
105
var searchData= [ ['camera',['Camera',['../group__camera.html',1,'']]], ['compass',['Compass',['../group__compass.html',1,'']]], ['console',['Console',['../group__console.html',1,'']]] ];
kipr/harrogate
shared/client/doc/search/groups_2.js
JavaScript
gpl-3.0
194
var structAtConnectivity = [ [ "func", "structAtConnectivity.html#a11dba158c0502cf2c916e8c0c03791b9", null ], [ "init", "structAtConnectivity.html#a78d5f8fdb24867572a5ac7c044129528", null ], [ "o", "structAtConnectivity.html#a5630065db6925574f4b9a16dc75b268b", null ], [ "seeds", "structAtConnectivity.ht...
atkv/atkv.github.io
doc/structAtConnectivity.js
JavaScript
gpl-3.0
368
$(document).ready(function () { $('#importInformation').css('display', 'none'); var numberOfCustomers = 0; var customers2dArray = new Array(); // The event listener for the file upload doc = document.getElementById('csvFileToUpload').addEventListener('change', upload, false);...
johnforeland/Codename-JAK
public/js/importCustomer.min.js
JavaScript
gpl-3.0
16,751
/* jshint esnext: true */ module.exports = { printName(person) { return `${person.last}, ${person.first}`; } };
jonathas/lynda-nodejs-essential
ch10/10_01/start/lib/tools.js
JavaScript
gpl-3.0
128
const state = { corefeatures: [], initializing: false, resetting: false, selectedGroup: 'usability' } // getters const getters = {} // actions const actions = { init (context) { if (state.initializing) { return null } context.commit('initStatus', true) if (state.corefeatures.length !==...
ossbusiness/projectpage
frontend/src/store/modules/CoreFeatures.js
JavaScript
gpl-3.0
1,688
/*global defineSuite*/ defineSuite([ 'Core/GeometryPipeline', 'Core/AttributeCompression', 'Core/BoundingSphere', 'Core/BoxGeometry', 'Core/Cartesian2', 'Core/Cartesian3', 'Core/ComponentDatatype', 'Core/Ellipsoid', 'Core/EllipsoidGeometr...
cryo3d/cryo3d
static/Specs/Core/GeometryPipelineSpec.js
JavaScript
gpl-3.0
120,150
/*! * Webogram v0.0.21 - messaging web application for MTProto * https://github.com/zhukov/webogram * Copyright (C) 2014 Igor Zhukov <igor.beatle@gmail.com> * https://github.com/zhukov/webogram/blob/master/LICENSE */ importScripts( '../../vendor/console-polyfill/console-polyfill.js', 'mtproto.js', '../../ve...
vkgrd/webogramru
js/lib/pq_worker.js
JavaScript
gpl-3.0
426
import 'react-native'; import React from 'react'; import {assert} from 'chai'; import {Grid} from '../../../src/components/Grid'; import renderer from 'react-test-renderer'; it('Should properly render the grid', () => { const field = [0, 0, 1, 1]; const tree = renderer.create(<Grid field={field}/>).toJSON(); as...
ghaiklor/flood-it
__tests__/unit/components/Grid.js
JavaScript
gpl-3.0
502
webpackHotUpdate(4,{ /***/ "./pages/post.js": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* WEBPACK VAR INJECTION */(function(module) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webp...
fishjar/gabe-study-notes
cms/next/.next/4.8cfa8c9bc1fdf601541b.hot-update.js
JavaScript
gpl-3.0
2,586
const monitorOptions = [ { key: 'all', value: 'All Albums' }, { key: 'future', value: 'Future Albums' }, { key: 'missing', value: 'Missing Albums' }, { key: 'existing', value: 'Existing Albums' }, { key: 'first', value: 'Only First Album' }, { key: 'latest', value: 'Only Latest Album' }, { key: 'none', va...
lidarr/Lidarr
frontend/src/Utilities/Artist/monitorOptions.js
JavaScript
gpl-3.0
369
/* Given two binary search trees root1 and root2, return a list containing all the integers from both trees sorted in ascending order. Example 1: Input: root1 = [2,1,4], root2 = [1,0,3] Output: [0,1,1,2,3,4] Example 2: Input: root1 = [1,null,8], root2 = [8,1] Output: [1,1,8,8] Constraints: The number of no...
matrixki/LeetCode
1305. All Elements in Two Binary Search Trees.js
JavaScript
gpl-3.0
1,515
const createError = require('http-errors'); const express = require('express'); const path = require('path'); const cookieParser = require('cookie-parser'); const logger = require('morgan'); const mongoose = require('mongoose'); const app = express(); const indexRouter = require('./routes/index'); const usersRouter = ...
Ronmantech/portf
storage/newStorage/app.js
JavaScript
gpl-3.0
2,009
var cfg = require("./configFile"); var url = require('url'); var fs = require("fs"); var express = require("express"); var app = express(); var path = require("path"); var cfg = require("./configFile"); var mysql = require('mysql'); var generator = require('./pageGenerator.js'); var http = require("http").Server(app); ...
Colarsis/SR2D
WebServer/web/server.js
JavaScript
gpl-3.0
12,631
import 'knockout-mapping'; import ko from 'knockout'; /** * A Knockout Mapping addition that will automatically add any field not * included in the `include` list to the ignore list. * This eliminates the need to explicitly enter both includes and ignores. * * Usage: * * function MyModel() { * this.mapping ...
adventurerscodex/adventurerscodex
src/bin/knockout-mapping-autoignore.js
JavaScript
gpl-3.0
845
/* This file is part of VideoBrowser. Copyright (C) 2013 Sven Ludwig aka muhgatus VideoBrowser 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 ver...
muhgatus/VideoBrowser
VideoBrowser.js
JavaScript
gpl-3.0
4,132
import { documentFilterService } from '../../../../../Extension/src/background/filter/services/document-filter'; import { backgroundPage } from '../../../../../Extension/src/background/extension-api/background-page'; jest.spyOn(backgroundPage, 'getURL').mockImplementation(url => url); describe('documentFilterService'...
AdguardTeam/AdguardBrowserExtension
tests/src/background/filter/services/document-filter.test.js
JavaScript
gpl-3.0
1,102
/* Highmaps JS v4.2.5 (2016-05-06) (c) 2011-2016 Torstein Honsi License: www.highcharts.com/license */ (function(D,V){typeof module==="object"&&module.exports?module.exports=D.document?V(D):V:D.Highcharts=V(D)})(typeof window!=="undefined"?window:this,function(D){function V(a,b){var c="Highcharts error #"+a...
inleggo/inleggo.io.offline
app/assets/js/modules/inleggo/libs/highcharts/highmaps.js
JavaScript
gpl-3.0
185,567
var VIEW_MODE_NONE = 0; var VIEW_MODE_CLIPS = 1; var VIEW_MODE_STREAM = 2; var VIEW_MODE_ADMIN = 100; var anchorClickDelay = 100; var WitnessViewModel = function() { "use strict"; var self = this; self.adminController = ko.observable(null); self.adminAction = function(){ if( self.adminController() ) { se...
IanNorris/Witness
WitnessServer/Web/witness/asset/js/viewModels/witness.js
JavaScript
gpl-3.0
3,647
Ext.define('${appName}.view.main.MainController', { extend: 'Ext.app.ViewController', requires: [ 'Ext.MessageBox', '${appName}.services.TabService' ], alias: 'controller.main', onLogout:function(){ Ext.Ajax.request({ url: ${appName}.config.Runtime.getLogo...
MayGo/extjsScaffoldingPlugin
src/templates/scaffolding/application/app/view/main/MainController.js
JavaScript
gpl-3.0
822
/** * @license Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @fileOverview */ /**#@+ @type String @example */ /** * Contains the dictionary of language entries. * @namespace */ CKEDITOR.lang[ 'sv' ] =...
tsmaryka/hitc
public/javascripts/ckeditor/lang/sv.js
JavaScript
gpl-3.0
3,427
'use strict'; var _ = require('lodash'); /* obj may be any of * null * boolean * number * string * array * object where array and values in an object are again of the above types. */ module.exports = function cloneWhitelisted (obj, whitelist) { if (obj === undefined || !whitelist) return undefi...
paperhive/mongoose-authorize
lib/cloneWhitelisted.js
JavaScript
gpl-3.0
1,661
/** @odoo-module **/ import { registerModel } from '@mail/model/model_core'; import { attr, many2one, one2one } from '@mail/model/model_field'; import { clear, insertAndReplace, link, unlink } from '@mail/model/model_field_command'; registerModel({ name: 'Discuss', identifyingFields: ['messaging'], record...
jeremiahyan/odoo
addons/mail/static/src/models/discuss/discuss.js
JavaScript
gpl-3.0
15,030
function drawHardcodedJQueryTree() { //Create a toolbar that has a text field to search with and a context specific help link. var helpToolBar = new Ext.Toolbar([ new Ext.form.TextField({id:"txtCrossSearchBox"}), { id:'searchButton', handler: function(event, toolEl, pane...
tranSMART-N/tranSMART-N_app
web-app/js/datasetExplorer/jsTreeFunctions.js
JavaScript
gpl-3.0
21,397
/** * @license * j5g3 v@VERSION - Javascript Game Engine * http://hackerhosting.com/j5g3 * * Copyright 2010, Giancarlo F Bellido * * j5g3 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 versio...
srinivasarao549/j5g3
src/intro.js
JavaScript
gpl-3.0
1,247
$(document).ready(function () { $('.parallax').parallax(); Materialize.toast('Bienvenido AdminHome', 4000) });
jota09/AdminHome
public/js/adminhome/home.js
JavaScript
gpl-3.0
119
var a00649 = [ [ "BLE Connection Handles", "a00532.html", "a00532" ], [ "Assigned Values for BLE UUIDs", "a00533.html", "a00533" ], [ "Types of UUID", "a00534.html", "a00534" ], [ "Bluetooth Appearance values", "a00535.html", "a00535" ], [ "BLE_UUID_BLE_ASSIGN", "a00649.html#gac4478362651889d2ade803...
DroneBucket/Drone_Bucket_CrazyFlie2_NRF_Firmware
nrf51_sdk/Documentation/s310/html/a00649.js
JavaScript
gpl-3.0
672
import React from 'react'; import SignIn from 'react-icons/lib/fa/sign-in'; // CSS import './AccessForm.css'; const AccessForm = ({ accessValue, handleAccessChange, handleAccessSubmit, accessPlaceholder }) => { return ( <div className="container access-form-container-wrapper"> <form className="acc...
morewines/refund-calculator-bigcommerce
react-ui/src/components/AccessForm/AccessForm.js
JavaScript
gpl-3.0
974
/** * @class Ext.dom.Query * @alternateClassName Ext.DomQuery * @alternateClassName Ext.core.DomQuery * @singleton * * Provides high performance selector/xpath processing by compiling queries into reusable functions. New pseudo classes * and matchers can be plugged. It works on HTML and XML documents (if a conte...
grgur/Sencha5-Finance
ext/packages/sencha-core/src/dom/Query.js
JavaScript
gpl-3.0
45,664
/****************************************************************************** * Copyright AllSeen Alliance. All rights reserved. * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and th...
dengcj0/QCA4010
target/demo/aj/allseen/core/alljoyn-js/js/ledslider.js
JavaScript
gpl-3.0
1,460
var a00127 = [ [ "data", "a00127.html#adaf3ed862b2c96947da60d9b576b31c9", null ], [ "handle", "a00127.html#a54644f05780b15248eba975decdd4e48", null ], [ "len", "a00127.html#a5131e80ad4da52f707a84aed7240f2ee", null ], [ "offset", "a00127.html#a1ed66c83e153fd6471056d19b10fac67", null ] ];
DroneBucket/Drone_Bucket_CrazyFlie2_NRF_Firmware
nrf51_sdk/Documentation/s120/html/a00127.js
JavaScript
gpl-3.0
303
var SerialPort = require('serialport'); var port = new SerialPort('/dev/ttyUSB0', { baudRate: 9600 }); var GoogleSpreadsheet = require('google-spreadsheet'); var async = require('async'); var doc = new GoogleSpreadsheet('ID'); var sheet; var creds = require('./TusCredenciales.json'); doc.useServiceAccountAuth(cre...
alswnet/ProyectoStreaming
Demos/ArduinoGoogleDriver/GoogleDriver/CodigoGoogle.js
JavaScript
gpl-3.0
992
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ /** * View mixin to support a user upgrading their session to * be verified. This is useful in situations where ...
shane-tomlinson/fxa-content-server
app/scripts/views/mixins/upgrade-session-mixin.js
JavaScript
mpl-2.0
4,771
describe("API", function () { it("has a method 'on'", function () { expect(typeof Log.on).toBe("function"); }); it("'on' expects two parameters", function () { expect(Log.on.length).toBe(2); }); it("has a method 'debug'", function () { expect(typeof Log.debug).toBe("functi...
gweax/one-to-log-them-all
spec/Log.spec.js
JavaScript
mpl-2.0
7,051
const React = require("react"); const { DOM: dom, PropTypes } = React; const Svg = require("./utils/Svg"); require("./CloseButton.css"); function CloseButton({ handleClick }) { return dom.div({ className: "close-btn", onClick: handleClick }, Svg("close")); } CloseButton.propTypes = { handleClick: PropTypes.f...
helenvholmes/debugger.html
public/js/components/CloseButton.js
JavaScript
mpl-2.0
370
'use strict'; import rndm from 'rndm'; /** * Returns a unique dom element id */ function rndid(len) { len = len || 8; const id = rndm(len); if (document.getElementById(id)) { return rndid(len); } return id; } module.exports = rndid;
dequelabs/pattern-library
lib/commons/rndid/index.js
JavaScript
mpl-2.0
254
/* Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang("language","zh",{button:"設定語言",remove:"移除語言"});
crunchmail/dentifrice
dist/ckeditor/plugins/language/lang/zh.js
JavaScript
mpl-2.0
233
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. */ /* This module uses the LoginAPI to translate a username into * an email address for the purpose of searching * ...
jbuck/MakeAPI
lib/queryBuilder/generators/user.js
JavaScript
mpl-2.0
2,522
'use strict'; // Creates a new iframe in |doc|, calls |func| on it and appends it as a child // of |doc|. // Returns a promise that resolves to the iframe once loaded (successfully or // not). // The iframe is removed from |doc| once test |t| is done running. // // NOTE: Because iframe elements always invoke the onloa...
asajeffrey/servo
tests/wpt/web-platform-tests/cors-rfc1918/resources/support.js
JavaScript
mpl-2.0
1,020
/* * Legendary version 1.2 * https://github.com/fusion94/Legendary * * Copyright 2011-2013, http://fusion94.org * Licensed under the Mozilla Public License Version 2.0 */ var sexView = Titanium.UI.createView({ backgroundColor:'#000', backgroundImage:'../images/plaid.png', bottom:0, left:0, top:0, ...
fusion94/Legendary
Resources/windows/seasons/season6.js
JavaScript
mpl-2.0
841
var donationSection = (function(){ var safebitui, $section, firstTime; var donateAmount = 0.5; // This is my donation address ;) -Eli var sendTo = "1Ba8iTkxYANDjhFAvYXBaxz3EpYMVCJ6RG"; var confirmDialogTemplate = Template('confirm-donation-dialog'), $confirmDonation = confirmDialogTemplate.el, c...
elis/Safebit
chrome-app/static/section/donate.js
JavaScript
mpl-2.0
5,303
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ define([ 'intern', 'intern!object', 'intern/chai!assert', 'require', 'intern/node_modules/dojo/node!xmlh...
atiqueahmedziad/fxa-content-server
tests/functional/change_password.js
JavaScript
mpl-2.0
8,735
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ define(function(require, exports, module) { main.consumes = ["Plugin", "language"]; main.provides = ["mo...
aisle-moz/moz.xliff
plugin.js
JavaScript
mpl-2.0
1,417
(function () { //for client-version })(); var tiles = document.querySelectorAll('div.tile'); init(); for (var i = 0; i < tiles.length; i++) { tiles[i].addEventListener('click', function (e) { e.target.classList.add('triggered'); console.log('getHash: ', e.target.firstElementChild.getHash); ...
Asfades/420Scheduler
js/app.js
JavaScript
mpl-2.0
931
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ import _ from 'underscore'; import AuthErrors from '../../../lib/auth-errors'; import Cocktail from 'cocktail'; im...
mozilla/fxa-content-server
app/scripts/views/settings/account_recovery/confirm_password.js
JavaScript
mpl-2.0
2,200
// Copyright 2016 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Flags: --expose-debug-as debug Debug = debug.Debug; ScopeType = debug.ScopeType; var exception = null; var nested = false; function bar() { let a...
Jet-Streaming/framework
deps/v8/test/mjsunit/debug-evaluate-nested.js
JavaScript
mpl-2.0
1,250
/* * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ /* * Copyright (c) 2017, Joyent, Inc. */ /* * OUI/MAC address utility unit tests */ 'use strict'; var u...
joyent/sdc-napi
test/unit/util-oui.test.js
JavaScript
mpl-2.0
1,558
import {constantMap} from '../utils/constants'; const TimelineActionTypes = constantMap([ // Reset all the bugs in the store to the provided raw bugs. 'SET_RAW_BUGS', // Reset "blocked" bugs for all bugs in the store. 'SET_BLOCKER_BUGS', // Reset all the PRs in the store to the provided raw prs. 'SET_RAW_P...
mythmon/edwin
edwin/client/static/js/constants/TimelineActionTypes.js
JavaScript
mpl-2.0
894
/* * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ /* * Copyright (c) 2015, Joyent, Inc. */ /** * A Transform stream to filter UFDS objects by some criteria ...
joyent/sdc-napi-ufds-watcher
lib/ufds-filter-stream.js
JavaScript
mpl-2.0
1,484
import IdentityAdapter from './base'; export default IdentityAdapter.extend({ lookup(store, data) { let url = `/${this.urlPrefix()}/identity/lookup/entity`; return this.ajax(url, 'POST', { data }).then((response) => { // unsuccessful lookup is a 204 if (!response) return; let modelName = 'i...
hashicorp/vault
ui/app/adapters/identity/entity.js
JavaScript
mpl-2.0
559
/** * Gateway tunnel service. * * Manages the tunnel service. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 'use strict'; const fs = require('fs'); cons...
mozilla-iot/gateway
src/ssltunnel.js
JavaScript
mpl-2.0
6,401
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ const autoprefixer = require('gulp-autoprefixer'); const babelify = require('babelify'); const bourbon = require('...
mozilla/idea-town-app
gulpfile.js
JavaScript
mpl-2.0
5,247
import { find, findAll } from 'ember-native-dom-helpers'; import { test, moduleForComponent } from 'ember-qunit'; import hbs from 'htmlbars-inline-precompile'; import flat from 'flat'; const { flatten } = flat; moduleForComponent('attributes-table', 'Integration | Component | attributes table', { integration: true,...
nak3/nomad
ui/tests/integration/attributes-table-test.js
JavaScript
mpl-2.0
2,622
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ // @flow /** * Space-efficient url component compatible encoding for arrays of 32bit * unsigned integers. Smalle...
devtools-html/perf.html
src/utils/uintarray-encoding.js
JavaScript
mpl-2.0
3,261
$(function(){ $("#header").bind("tripleclick", function(){ //console.log("tripleclick"); //$(this).find("*").fadeOut("slow", function(){ $("#header").css({ width: "100%" }); //}); $.get(chicken_url, function(chicken){ flashembed( "header", "/flash/chicks.swf", { chickenNames: chick...
mathijshenquet/dnsleergemeenschap
web/js/chicken.js
JavaScript
agpl-3.0
449
function enter(pi) { var mapid = pi.getPlayer().getMap().getId(); if (mapid == 103040410 && pi.isQuestCompleted(2287)) { pi.playPortalSound(); pi.warp(103040420, "right00"); return true; } else if (mapid == 103040420 && pi.isQuestCompleted(2288)) { pi.playPortalSound(); pi.warp...
ronancpl/MapleSolaxiaV2
scripts/portal/Depart_goFoward0.js
JavaScript
agpl-3.0
924
var url = require('url'); var net = require('net'); var http = require('http'); var BinaryServer = require('binaryjs').BinaryServer; var express = require('express'); var request = require('request'); var app = express(); var server = http.createServer(app); var bs = BinaryServer({ port: 3011 }); var io = require('sock...
BrianAdams/openrov-proxy
middleware/proxy.js
JavaScript
agpl-3.0
4,932
/** * @author David Yzaguirre <dvdyzag@gmail.com> * * @copyright Copyright (c) 2016, David Yzaguirre, Aníbal Rodríguez * @license AGPL-3.0 * * This code is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License, version 3, * as published by the Free So...
anibaljose/swimWorldWeb
validators/tiempos_nado.js
JavaScript
agpl-3.0
1,294
export const LANGUAGES = [ ['af-ZA', gettext('Afrikaans'), 'ltr'], ['sq-AL', gettext('Albanian'), 'ltr'], ['ar', gettext('Arabic'), 'rtl'], ['ast', gettext('Asturian'), 'ltr'], ['be', gettext('Belarusian'), 'ltr'], ['br', gettext('Breton'), 'ltr'], ['bg', gettext('Bulgarian'), 'ltr'], ['...
fiduswriter/fiduswriter
fiduswriter/document/static/js/modules/schema/const.js
JavaScript
agpl-3.0
2,387
const { CatCommand } = require('../../../Core/Structures/Command'); const util = require('util'); const exec = require('child_process').exec; class WhitelistGuildCommand extends CatCommand { constructor(client) { super(client, { name: 'whitelistguild' }); } async execute(ctx) { if (ctx.input._...
Ratismal/blargbot
Production/Commands/owner/whitelistguild.js
JavaScript
agpl-3.0
510
import Enzyme from 'enzyme'; import Adapter from 'enzyme-adapter-react-16'; Enzyme.configure({ adapter: new Adapter(), disableLifecycleMethods: true });
tronroy/sickhauls
client/spec/helpers/enzyme_config.js
JavaScript
agpl-3.0
157
(function($){ MapasCulturais.Map = {}; L.Icon.Default.imagePath = MapasCulturais.assetURL + 'img/'; MapasCulturais.Map.initialize = function(initializerOptions) { var config = MapasCulturais.mapsDefaults, mapSelector = initializerOptions.mapSelector, defaultIconOptions = { ...
secultce/mapasculturais
src/protected/application/themes/BaseV1/assets/js/map.js
JavaScript
agpl-3.0
18,541
// // Global map.js variables // var $selectExclude var $selectPokemonNotify var $selectRarityNotify var $textPerfectionNotify var $selectStyle var $selectIconResolution var $selectIconSize var $selectLuredPokestopsOnly var $selectSearchIconMarker var $selectGymMarkerStyle var $selectLocationIconMarker var language ...
engle2192/PoGoMap-GUI
PokemonGo-Map/static/js/map.js
JavaScript
agpl-3.0
51,601
// Amara, universalsubtitles.org // // Copyright (C) 2013 Participatory Culture Foundation // // 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...
ujdhesa/unisubs
media/js/widget/subtitle/transcribeentry.js
JavaScript
agpl-3.0
8,466
/** * Copyright (C) 2017 Mailvelope GmbH * Licensed under the GNU Affero General Public License version 3 */ import React from 'react'; import ReactDOM from 'react-dom'; import * as l10n from '../../lib/l10n'; import {str2bool} from '../../lib/util'; import DecryptMessage from './DecryptMessage'; import './decrypt...
mailvelope/mailvelope
src/components/decrypt-message/decryptMessageRoot.js
JavaScript
agpl-3.0
805
/** * @link http://www.brainerror.net/scripts_js_blendtrans.php */ function opacity(id, opacStart, opacEnd, millisec) { //speed for each frame var speed = Math.round(millisec / 100); var timer = 0; //determine the direction for the blending, if start and end are the same nothing happens if(opacStart > opacEnd)...
culturagovbr/CEUs
www/includes/blendtrans.js
JavaScript
agpl-3.0
2,051
import React from 'react'; import SPELLS from 'common/SPELLS'; import { STATISTIC_ORDER } from 'interface/others/StatisticBox'; import { formatNumber, formatPercentage } from 'common/format'; import AbilityTracker from 'parser/shared/modules/AbilityTracker'; import Analyzer from 'parser/core/Analyzer'; import Statistic...
ronaldpereira/WoWAnalyzer
src/parser/monk/windwalker/modules/spells/ReverseHarm.js
JavaScript
agpl-3.0
2,308
import { range, sample } from 'lodash' import { note, scale, rootNoteLetters } from 'playnote' import { formatLetter } from 'playnote/lib/NoteTransformer' const mapSingleNoteToAnswer = note => ({ value: [note], label: formatLetter(note).replace('_', ' '), intervals: [1], }) export const generateBeginnerNoteSets...
createbits/eartrainer
src/lib/NoteGameData.js
JavaScript
agpl-3.0
1,600
import React, { PropTypes } from 'react'; import classNames from 'classnames'; import ControlGroup from './ControlGroup'; import Controls from './Controls'; import Input from './Input'; import Textarea from './Textarea'; import Select from './Select'; const { string, any } = PropTypes; function Form({ children, clas...
sozialhelden/wheelmap
app/assets/javascripts/common/Form/index.js
JavaScript
agpl-3.0
745
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { View, RefreshControl, TouchableOpacity, Alert, Platform } from 'react-native'; import { List, ListItem, Text, Content, Left, Body, Thumbnail, Right, Icon } from 'native-base'; import { Actions } from '...
PowerlineApp/powerline-rn
src/scenes/influences/followers/index.js
JavaScript
agpl-3.0
5,361
/* * _ _ _ * | | | | | | * | | __ _| |__ ___ ___ __ _| |_ Labcoat (R) * | |/ _` | '_ \ / __/ _ \ / _` | __| Powerful development environment for Quirrel. * | | (_| | |_) | (_| (_) | (_| | |_ Copyright (C) 2010 - 2013...
precog/labcoat-legacy
js/ace/test/benchmark.js
JavaScript
agpl-3.0
3,946
'use strict'; describe('Service: Congressman', function () { // load the service's module beforeEach(module('vigiaPoliticoApp')); // instantiate service var Congressman; beforeEach(inject(function (_Congressman_) { Congressman = _Congressman_; })); it('should do something', function () { expec...
cidadao-automatico/cidadao-frontend
frontend-0.2/test/spec/services/Congressman.js
JavaScript
agpl-3.0
360
/** * Vis definitions can include. - visualization: 'histogram', 'timeline', 'map' - value: function used to map item to a key for aggregation - inputFilter: function to run on items to determine if they should be included (return a boolean) - resultsFilter: function to run on values produced by the...
CENDARI/editorsnotes
cendari/static/cendari/js/smallvis-generators.js
JavaScript
agpl-3.0
22,947