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
/** * Bootstrap * (sails.config.bootstrap) * * An asynchronous bootstrap function that runs before your Sails app gets lifted. * This gives you an opportunity to set up your data model, run jobs, or perform some special logic. * * For more information on bootstrapping your app, check out: * http://sailsjs.org/#...
piket/twitter-mafia
config/bootstrap.js
JavaScript
mit
1,211
const latestIncome = require('./latestIncome') const latestSpending = require('./latestSpending') function aggFinances(search) { return { latestIncome: () => latestIncome(search), latestSpending: () => latestSpending(search), } } module.exports = aggFinances
tithebarn/charity-base
graphql/resolvers/query/CHC/getCharities/aggregate/finances/index.js
JavaScript
mit
273
define(function(require, exports, module) { var Notify = require('common/bootstrap-notify'); var FileChooser = require('../widget/file/file-chooser3'); exports.run = function() { var $form = $("#course-material-form"); var materialChooser = new FileChooser({ element: '#materia...
richtermark/SMEAGOnline
web/bundles/topxiaweb/js/controller/course-manage/material-modal.js
JavaScript
mit
1,892
module.exports={A:{A:{"2":"H D G E A B FB"},B:{"1":"p z J L N I","2":"C"},C:{"1":"0 2 3 5 6 8 9 P Q R S T U V W X Y Z a c d e f g h i j k l m n o M q r s t u v w x y CB AB","2":"4 aB F K H D G E A B C p z J L N I O YB SB"},D:{"1":"0 2 3 5 6 8 9 z J L N I O P Q R S T U V W X Y Z a c d e f g h i j k l m n o M q r s t u v...
stephaniejn/stephaniejn.github.io
node_modules/caniuse-lite/data/features/download.js
JavaScript
mit
857
'use strict'; const EventEmitter = require('events'); const uuid = require('node-uuid'); const ItemType = require('./ItemType'); const { Inventory, InventoryFullError } = require('./Inventory'); const Logger = require('./Logger'); const Player = require('./Player'); /** * @property {Area} area Area the it...
CodeOtter/tech-career
src/Item.js
JavaScript
mit
6,892
var JobsList = React.createClass({displayName: "JobsList", render: function() { return ( React.createElement(JobItem, {title: "Trabalho Python", desc: "Descricao aqui"}) ); } }); var JobItem = React.createClass({displayName: "JobItem", render: function() { React.createEl...
raonyguimaraes/pyjobs
pyjobs/web/static/js/.module-cache/4ae00001aee8e40f0fb90fff1d2d3b85d7f734e2.js
JavaScript
mit
600
/* * @package jsDAV * @subpackage CardDAV * @copyright Copyright(c) 2013 Mike de Boer. <info AT mikedeboer DOT nl> * @author Mike de Boer <info AT mikedeboer DOT nl> * @license http://github.com/mikedeboer/jsDAV/blob/master/LICENSE MIT License */ "use strict"; var jsDAV_Plugin = require("./../DAV/plugin"); var j...
pascience/cloxp-install
win/life_star/node_modules/lively-davfs/node_modules/jsDAV/lib/CardDAV/plugin.js
JavaScript
mit
26,510
'@fixture click'; '@page http://example.com'; '@test'['Take a screenshot'] = { '1.Click on non-existing element': function () { act.screenshot(); }, }; '@test'['Screenshot on test code error'] = { '1.Click on non-existing element': function () { throw new Error('STOP'); }, };
VasilyStrelyaev/testcafe
test/functional/legacy-fixtures/screenshots/testcafe-fixtures/screenshots.test.js
JavaScript
mit
312
game.LoadProfile = me.ScreenObject.extend({ /** * action to perform on state change */ onResetEvent: function() { me.game.world.addChild(new me.Sprite(0, 0, me.loader.getImage('load-screen')), -10); //puts load screen in when game starts document.getElementById("inpu...
MrLarrimore/MiguelRicardo
js/screens/loadProfile.js
JavaScript
mit
1,578
/* --- MooTools: the javascript framework web build: - http://mootools.net/core/8423c12ffd6a6bfcde9ea22554aec795 packager build: - packager build Core/Core Core/Array Core/String Core/Number Core/Function Core/Object Core/Event Core/Browser Core/Class Core/Class.Extras Core/Slick.Parser Core/Slick.Finder Core/Eleme...
lyonbros/composer.js
test/lib/mootools-core-1.4.5.js
JavaScript
mit
149,108
Template.HostList.events({ }); Template.HostList.helpers({ // Get list of Hosts sorted by the sort field. hosts: function () { return Hosts.find({}, {sort: {sort: 1}}); } }); Template.HostList.rendered = function () { // Make rows sortable/draggable using Jquery-UI. this.$('#sortable').sortable({ ...
bfodeke/syrinx
client/views/hosts/hostList/hostList.js
JavaScript
mit
1,204
import Helper, { states } from './_helper'; import { module, test } from 'qunit'; module('Integration | ORM | Has Many | Named Reflexive | association #set', function(hooks) { hooks.beforeEach(function() { this.helper = new Helper(); }); /* The model can update its association via parent, for all states...
jherdman/ember-cli-mirage
tests/integration/orm/has-many/4-named-reflexive/association-set-test.js
JavaScript
mit
2,462
/* describe, it, afterEach, beforeEach */ import './snoocore-mocha'; import chai from 'chai'; import chaiAsPromised from 'chai-as-promised'; chai.use(chaiAsPromised); let expect = chai.expect; import config from '../config'; import util from './util'; import ResponseError from '../../src/ResponseError'; import Endpo...
empyrical/snoocore
test/src/ResponseError-test.js
JavaScript
mit
1,705
function someFunctionWithAVeryLongName(firstParameter='something', secondParameter='booooo', third=null, fourthParameter=false, fifthParameter=123.12, sixthParam=true ){ } function someFunctionWithAVeryLongName2( firstParameter='something', secondParameter='booooo', ) { } function blah() { } functio...
oknoorap/wpcs
scripts/phpcs/CodeSniffer/Standards/Squiz/Tests/Functions/MultiLineFunctionDeclarationUnitTest.js
JavaScript
mit
1,148
#!/usr/bin/env node require("babel/register")({ "stage": 1 }); var fs = require("fs"); GLOBAL.WALLACEVERSION = "Err"; GLOBAL.PLUGIN_CONTRIBUTORS = []; try { var p = JSON.parse(fs.readFileSync(__dirname+"/package.json")); GLOBAL.WALLACEVERSION = p.version; } catch(e) {} var Core = require("./core/Core....
Reanmachine/Wallace
main.js
JavaScript
mit
432
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports...
renmuell/makrenejs
docs/vendors/cEngine/plugins/cEngine.__pluginTemplate__.js
JavaScript
mit
1,422
// Copyright (c) 2015 Uber Technologies, Inc. // // 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...
davewhat/tchannel
out_response.js
JavaScript
mit
10,872
#!/usr/bin/env node /** * Release this package. */ "use strict"; process.chdir(__dirname + '/..'); const apeTasking = require('ape-tasking'), apeReleasing = require('ape-releasing'); apeTasking.runTasks('release', [ (callback) => { apeReleasing.releasePackage({ beforeRelease: [ ...
ape-repo/ape-scraping
ci/release.js
JavaScript
mit
430
/*global d3 */ // asynchronously load data from the Lagotto API queue() .defer(d3.json, encodeURI("/api/agents/")) .await(function(error, a) { if (error) { return console.warn(error); } agentsViz(a.agents); }); // add data to page function agentsViz(data) { for (var i=0; i<data.length; i++) { var a...
CrossRef/lagotto
app/assets/javascripts/agents/index.js
JavaScript
mit
569
var test = require("tape").test var level = require("level-test")() var testdb = level("test-versionstream") var version = require("../") var db = version(testdb) var lastVersion test("stuff some datas", function (t) { t.plan(2) db.put("pet", "fluffy", {version: 0}) db.put("pet", "spot", {version: 1}) db.p...
maxogden/level-version
test/versionstream.js
JavaScript
mit
3,427
"use strict"; const lua = require("../src/lua.js"); const lauxlib = require("../src/lauxlib.js"); const {to_luastring} = require("../src/fengaricore.js"); const toByteCode = function(luaCode) { let L = lauxlib.luaL_newstate(); if (!L) throw Error("failed to create lua state"); if (lauxlib.luaL_loadst...
daurnimator/fengari
test/tests.js
JavaScript
mit
690
/* Get Programming with JavaScript * Listing 4.01 * Displaying an object's properties on the console */ var movie1; movie1 = { title: "Inside Out", actors: "Amy Poehler, Bill Hader", directors: "Pete Doctor, Ronaldo Del Carmen" }; console.log("Movie information for " + movie1.title); console.log("----...
jrlarsen/GetProgramming
Ch04_Functions/listing4.01.js
JavaScript
mit
688
describe('Component: Product Search', function(){ var scope, q, oc, state, _ocParameters, parameters, mockProductList ; beforeEach(module(function($provide) { $provide.value('Parameters', {searchTerm: null, page: null, pageSize: null, sortBy: null...
Four51SteveDavis/JohnsonBros
src/app/productSearch/tests/productSearch.spec.js
JavaScript
mit
6,607
(function () { 'use strict'; angular.module('common') .directive('svLumxUsersDropdown', function () { return { templateUrl: 'scripts/common/directives/sv-lumx-users-dropdown.html', scope: { btnTitle: '@', actionC...
SvitlanaShepitsena/cl-poster
app/scripts/common/directives/sv-lumx-users-dropdown.js
JavaScript
mit
689
/* * Copyright (c) 2015 by Rafael Angel Aznar Aparici (rafaaznar at gmail dot com) * * sisane: The stunning micro-library that helps you to develop easily * AJAX web applications by using Angular.js 1.x & sisane-server * sisane is distributed under the MIT License (MIT) * Sources at https://github....
Ecoivan/sisane-client
public_html/js/episodio/viewpop.js
JavaScript
mit
3,146
'use strict'; var path = require('path'); var gulp = require('gulp'); var conf = require('./conf'); var browserSync = require('browser-sync'); function isOnlyChange(event) { return event.type === 'changed'; } gulp.task('watch', ['inject'], function () { gulp.watch([path.join(conf.paths.src, '/*.html'), 'bower....
devmark/laravel-angular-cms
backend/gulp/watch.js
JavaScript
mit
1,176
var assert = require('assert'); var _ = require('@sailshq/lodash'); var SchemaBuilder = require('../lib/waterline-schema'); describe('Has Many Through :: ', function() { describe('Junction Tables', function() { var schema; before(function() { var fixtures = [ { identity: 'user', ...
jhelbig/postman-linux-app
app/resources/app/node_modules/waterline-schema/test/hasManyThrough.js
JavaScript
mit
3,283
module('lively.ide.DirectoryWatcher').requires('lively.Network').toRun(function() { // depends on the DirectoryWatcherServer Object.extend(lively.ide.DirectoryWatcher, { watchServerURL: new URL(Config.nodeJSURL+'/DirectoryWatchServer/'), dirs: {}, reset: function() { // lively.ide.DirectoryWatch...
pascience/LivelyKernel
core/lively/ide/DirectoryWatcher.js
JavaScript
mit
4,138
// Generated by CoffeeScript 1.3.1
trela/qikify
qikify/views/resources/scripts/js/statistics.js
JavaScript
mit
37
'use strict'; require('../common'); // This test ensures that zlib throws a RangeError if the final buffer needs to // be larger than kMaxLength and concatenation fails. // https://github.com/nodejs/node/pull/1811 const assert = require('assert'); // Change kMaxLength for zlib to trigger the error without having to ...
enclose-io/compiler
current/test/parallel/test-zlib-brotli-kmaxlength-rangeerror.js
JavaScript
mit
762
const {createAddColumnMigration} = require('../../utils'); module.exports = createAddColumnMigration('posts_meta', 'email_only', { type: 'bool', nullable: false, defaultTo: false });
ErisDS/Ghost
core/server/data/migrations/versions/4.12/01-add-email-only-column-to-posts-meta-table.js
JavaScript
mit
196
//currently commented out as TokenTester is causing a OOG error due to the Factory being too big //Not fully needed as factory & separate tests cover token creation. /*contract("TokenTester", function(accounts) { it("creates 10000 initial tokens", function(done) { var tester = TokenTester.at(TokenTester.de...
PlutusIt/PlutusDEX
test/tokenTester.js
JavaScript
mit
816
module.exports = { "extends": "airbnb", "parser": "babel-eslint", "plugins": [ "react" ], "rules": { "react/prop-types": 0, "react/jsx-boolean-value": 0, "consistent-return": 0, "guard-for-in": 0, "no-use-before-define": 0, "space-before-function-paren": [2, { "anonymous": "never...
danieloliveira079/healthy-life-app-v1
.eslintrc.js
JavaScript
mit
351
//>>built define("clipart/SpinInput",["dojo/_base/declare","clipart/_clipart"],function(_1,_2){ return _1("clipart.SpinInput",[_2],{}); });
Bonome/pauline-desgrandchamp.com
lib/clipart/SpinInput.js
JavaScript
mit
140
/** * Created by jiangli on 15/1/6. */ "use strict"; var request = require('request'); var iconv = require('iconv-lite'); var crypto = require('crypto'); var Buffer = require('buffer').Buffer; /** * [_parseYouku 解析优酷网] * @param [type] $url [description] * @return [type] [description] */ module.exports = f...
jiangli373/nodeParseVideo
lib/youku.js
JavaScript
mit
21,702
// This file has been autogenerated. exports.setEnvironment = function() { process.env['AZURE_SUBSCRIPTION_ID'] = 'e0b81f36-36ba-44f7-b550-7c9344a35893'; }; exports.scopes = [[function (nock) { var result = nock('http://management.azure.com:443') .get('/subscriptions/e0b81f36-36ba-44f7-b550-7c9344a35893/resourc...
lmazuel/azure-sdk-for-node
test/recordings/iothub-tests/IoTHub_IoTHub_Lifecycle_Test_Suite_should_get_a_single_eventhub_consumer_group_successfully.nock.js
JavaScript
mit
2,416
module.exports = { getMeta: function(meta) { var d = meta.metaDescription || meta.description || meta.Description; if (d && d instanceof Array) { d = d[0]; } return { description: d } } };
loklak/loklak_webclient
iframely/plugins/meta/description.js
JavaScript
mit
264
/* * Treeview 1.5pre - jQuery plugin to hide and show branches of a tree * * http://bassistance.de/jquery-plugins/jquery-plugin-treeview/ * http://docs.jquery.com/Plugins/Treeview * * Copyright (c) 2007 Jörn Zaefferer * * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-...
rgeraads/phpDocumentor2
data/templates/responsive-twig/js/jquery.treeview.js
JavaScript
mit
8,204
!((document, $) => { var clip = new Clipboard('.copy-button'); clip.on('success', function(e) { $('.copied').show(); $('.copied').fadeOut(2000); }); })(document, jQuery);
cehfisher/a11y-style-guide
src/global/js/copy-button.js
JavaScript
mit
186
var binary = require('node-pre-gyp'); var path = require('path'); var binding_path = binary.find(path.resolve(path.join(__dirname,'./package.json'))); var binding = require(binding_path); var Stream = require('stream').Stream, inherits = require('util').inherits; function Snapshot() {} Snapshot.prototype.getHead...
timmyg/pedalwagon-api
node_modules/node-inspector/node_modules/v8-profiler/v8-profiler.js
JavaScript
mit
5,446
/** * webdriverio * https://github.com/Camme/webdriverio * * A WebDriver module for nodejs. Either use the super easy help commands or use the base * Webdriver wire protocol commands. Its totally inspired by jellyfishs webdriver, but the * goal is to make all the webdriver protocol items available, as near the or...
testingbot/webdriverjs
index.js
JavaScript
mit
1,748
/* Highcharts JS v8.2.2 (2020-10-22) (c) 2016-2019 Highsoft AS Authors: Jon Arild Nygard License: www.highcharts.com/license */ (function(b){"object"===typeof module&&module.exports?(b["default"]=b,module.exports=b):"function"===typeof define&&define.amd?define("highcharts/modules/sunburst",["highcharts"],functio...
cdnjs/cdnjs
ajax/libs/highcharts/8.2.2/modules/sunburst.js
JavaScript
mit
25,544
import _extends from "@babel/runtime/helpers/esm/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"; import * as React from 'react'; import PropTypes from 'prop-types'; import { Transition } from 'react-transition-group'; import useTheme from '../styles/useThem...
cdnjs/cdnjs
ajax/libs/material-ui/4.9.9/es/Grow/Grow.js
JavaScript
mit
4,874
"use strict"; exports.__esModule = true; exports.default = void 0; var React = _interopRequireWildcard(require("react")); var _createElement = _interopRequireDefault(require("../createElement")); var _css = _interopRequireDefault(require("../StyleSheet/css")); var _pick = _interopRequireDefault(require("../../modu...
cdnjs/cdnjs
ajax/libs/react-native-web/0.0.0-e437e3f47/cjs/exports/View/index.js
JavaScript
mit
6,819
/* Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'basicstyles', 'en-gb', { bold: 'Bold', italic: 'Italic', strike: 'Strike Through', subscript: 'Subscript', superscript: 'Superscript', underline...
SeeyaSia/www
web/libraries/ckeditor/plugins/basicstyles/lang/en-gb.js
JavaScript
gpl-2.0
339
/** * Drupal-specific JS helper functions and utils. Not to be confused with the * Recline library, which should live in your libraries directory. */ ;(function ($) { // Constants. var MAX_LABEL_WIDTH = 77; var LABEL_MARGIN = 5; // Undefined variables. var dataset, views, datasetOptions, fileSi...
NuCivic/recline
recline.js
JavaScript
gpl-2.0
13,387
const express = require('express'); const path = require('path'); const compression = require('compression'); const webpackDevMiddleware = require('webpack-dev-middleware'); const webpackHotMiddleware = require('webpack-hot-middleware'); const webpack = require('webpack'); // Dev middleware const addDevMiddlewares = (...
unicesi/pascani-library
web/dashboard/server/middlewares/frontendMiddleware.js
JavaScript
gpl-2.0
1,618
(function( $ ) { wp.customize( 'blogname', function( value ) { value.bind( function( to ) { $( '.site-title a' ).text( to ); } ); } ); wp.customize( 'blogdescription', function( value ) { value.bind( function( to ) { $( '.site-description' ).text( to ); } ); } ); })( jQuery );
thekirankumardash/bijithemecustomizer
project_downloads/2.5/js/theme-customizer.js
JavaScript
gpl-2.0
298
/* EventON Generate Google maps function */ (function($){ $.fn.evoGenmaps = function(opt){ var defaults = { delay: 0, fnt: 1, cal: '', mapSpotId: '', _action:'' }; var options = $.extend({}, defaults, opt); var geocoder; // popup lightbox generation i...
sabdev1/sabhoa
wp-content/plugins/eventON/assets/js/maps/eventon_gen_maps.js
JavaScript
gpl-2.0
4,157
var icms = icms || {}; icms.wall = (function ($) { var self = this; this.add = function (parent_id) { var form = $('#wall_add_form'); if (typeof (parent_id) === 'undefined') { parent_id = 0; } $('#wall_widget #wall_add_link').show(); $('#wall_widget #ent...
Loadir/icms2
templates/modern/js/wall.js
JavaScript
gpl-2.0
7,610
/* Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'find', 'cs', { find: 'Hledat', findOptions: 'Možnosti hledání', findWhat: 'Co hledat:', matchCase: 'Rozlišovat velikost písma', matchCyclic: 'Pro...
shophelfer/shophelfer.com-shop
admin/includes/modules/ckeditor/plugins/find/lang/cs.js
JavaScript
gpl-2.0
581
//>>built define("dojox/editor/plugins/nls/zh-tw/SafePaste",({"instructions":"已停用直接貼上。請使用標準瀏覽器鍵盤或功能表貼上控制項,在這個對話框中貼上內容。當您滿意要插入的內容之後,請按貼上按鈕。若要中斷插入內容,請按取消按鈕。"}));
hariomkumarmth/champaranexpress
wp-content/plugins/dojo/dojox/editor/plugins/nls/zh-tw/SafePaste.js
JavaScript
gpl-2.0
314
/* Copyright (c) 2006-2010 by OpenLayers Contributors (see authors.txt for * full list of contributors). Published under the Clear BSD license. * See http://svn.openlayers.org/trunk/openlayers/license.txt for the * full text of the license. */ /** * @requires OpenLayers/Layer.js */ /** * Class: O...
blahoink/grassroots
phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Layer/Markers.js
JavaScript
gpl-2.0
5,107
function ValidarPuntaje(id) { var aux = id.split("_"); var name=aux[0]; var fil=parseInt(aux[1]); var col=parseInt(aux[2]); var colpuntaje=col; var colpuntajereal=col+1; var puntaje=name+"_"+fil+"_"+colpuntaje; var puntajereal=name+"_"+fil+"_"+colpuntajereal; var num1=toFloat(punt...
cidesa/roraima
web/js/licitaciones/liasptecanalisis.js
JavaScript
gpl-2.0
835
var classgr__interleave = [ [ "~gr_interleave", "classgr__interleave.html#ae342ba63322b78359ee71de113e41fc1", null ], [ "check_topology", "classgr__interleave.html#ade74f196c0fc8a91ca4f853a2d1202e1", null ], [ "work", "classgr__interleave.html#a44664518c86559da58b3feccb9e45d7f", null ], [ "gr_make_inter...
aviralchandra/Sandhi
build/gr36/docs/doxygen/html/classgr__interleave.js
JavaScript
gpl-3.0
399
(function(jQuery){jQuery.fn.addLittleSisToolbar=function(){var defaults={z_index:10002,height:180,width:100,background_color:'#FFF'};return this.each(function(){if(jQuery('#littlesis-toolbar').length==0){var elements=jQuery(this);elements.css({'margin-top':(defaults.height+10)+'px'});var wrapper=jQuery('<div id="little...
public-accountability/littlesis-docker
static/js/bookmarklet.js
JavaScript
gpl-3.0
908
// 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...
nipunn1313/parity
js/src/modals/Shapeshift/shapeshift.js
JavaScript
gpl-3.0
5,450
define( [ 'jquery', 'stapes', './conditionals' ], function( $, Stapes, conditionalsMediator ) { 'use strict'; /** * Global Mediator (included on every page) * @module Globals * @implements {Stapes}...
minutelabsio/sed-postcard-map
app/library/js/mediators/globals.js
JavaScript
gpl-3.0
1,501
initSidebarItems({"mod":[["color",""],["geometry",""],["layers",""],["platform",""],["rendergl",""],["scene",""],["texturegl","OpenGL-specific implementation of texturing."],["tiling",""],["util",""]]});
susaing/doc.servo.org
servo/layers/sidebar-items.js
JavaScript
mpl-2.0
203
initSidebarItems({"struct":[["DefaultState","A structure which is a factory for instances of `Hasher` which implement the default trait."]],"trait":[["HashState","A trait representing stateful hashes which can be used to hash keys in a `HashMap`."]]});
susaing/doc.servo.org
std/collections/hash_state/sidebar-items.js
JavaScript
mpl-2.0
252
import React from 'react' import { createDevTools } from 'redux-devtools' import LogMonitor from 'redux-devtools-log-monitor' import DockMonitor from 'redux-devtools-dock-monitor' export default createDevTools( <DockMonitor toggleVisibilityKey="H" changePositionKey="Q" > <LogMonitor /> </DockMonitor>...
blockstack/blockstack-browser
app/js/components/DevTools.js
JavaScript
mpl-2.0
323
/* * The contents of this file are subject to the OpenMRS Public License * Version 1.0 (the "License"); you may not use this file except in * compliance with the License. You may obtain a copy of the License at * http://license.openmrs.org * * Software distributed under the License is distributed on an "AS IS" *...
yadamz/first-module
omod/src/main/webapp/resources/scripts/navigator/exitHandlers.js
JavaScript
mpl-2.0
1,610
import { Model, belongsTo } from 'ember-cli-mirage'; export default Model.extend({ parent: belongsTo('alloc-file'), });
hashicorp/nomad
ui/mirage/models/alloc-file.js
JavaScript
mpl-2.0
123
/* * Copyright 2007-2013 Charles du Jeu - Abstrium SAS <team (at) pyd.io> * This file is part of Pydio. * * Pydio 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, o...
FredPassos/pydio-core
core/src/plugins/gui.ajax/res/js/ui/prototype/interfaces/class.IContextMenuable.js
JavaScript
agpl-3.0
964
// // Copyright (C) 2016 - present Instructure, Inc. // // This file is part of Canvas. // // Canvas is free software: you can redistribute it and/or modify it under // the terms of the GNU Affero General Public License as published by the Free // Software Foundation, version 3 of the License. // // Canvas is distribut...
venturehive/canvas-lms
app/coffeescripts/api/enrollmentTermsApi.js
JavaScript
agpl-3.0
1,662
/*====================================================== ************ Pull To Refresh ************ ======================================================*/ app.initPullToRefresh = function (pageContainer) { var eventsTarget = $(pageContainer); if (!eventsTarget.hasClass('pull-to-refresh-content')) { ...
ayuzhin/web-apps
vendor/framework7/src/js/pull-to-refresh.js
JavaScript
agpl-3.0
8,596
/** * Copyright (c) 2014, 2015, Oracle and/or its affiliates. * All rights reserved. */ "use strict"; /* Copyright 2013 jQuery Foundation and other contributors Released under the MIT license. http://jquery.org/license Copyright 2013 jQuery Foundation and other contributors Released under the MIT license. http...
afsinka/jet_jsp
src/main/webapp/js/libs/oj/v1.1.2/min/ojdialog.js
JavaScript
lgpl-2.1
24,005
"use strict"; var express = require('express'); var less = require('less-middleware'); function HttpServer(port, staticServedPath, logRequest) { this.port = port; this.staticServedPath = staticServedPath; this.logRequest = (typeof logRequest === "undefined") ? true : logRequest; } HttpServer.prototype.start = ...
o-schneider/heroesdesk-front-web
src/server/HttpServer.js
JavaScript
lgpl-3.0
917
/* * World Calendars * https://github.com/alexcjohnson/world-calendars * * Batch-converted from kbwood/calendars * Many thanks to Keith Wood and all of the contributors to the original project! * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this sourc...
andrealmeid/ToT
node_modules/world-calendars/dist/calendars/taiwan-zh-TW.js
JavaScript
unlicense
1,220
'use strict'; import EventMap from 'eventmap'; import Log from './log'; var audioTypes = { 'mp3': 'audio/mpeg', 'wav': 'audio/wav', 'ogg': 'audio/ogg' }; var imageTypes = { 'png': 'image/png', 'jpg': 'image/jpg', 'gif': 'image/gif' }; class AssetLoader extends EventMap { constructor(assets) { supe...
maxwerr/gamebox
src/assetloader.js
JavaScript
unlicense
599
(function () { function remap(fromValue, fromMin, fromMax, toMin, toMax) { // Compute the range of the data var fromRange = fromMax - fromMin, toRange = toMax - toMin, toValue; // If either range is 0, then the value can only be mapped to 1 value if (fromRange ==...
puyanLiu/LPYFramework
前端练习/10canvas/文档/KineticJS-master/src/filters/Enhance.js
JavaScript
apache-2.0
4,121
// Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- info: The String.prototype.charAt.length property has the attribute DontEnum es5id: 15.5.4.4_A8 description: > Checking if enumerating the String.prototype.charAt.length pro...
m0ppers/arangodb
3rdParty/V8/V8-5.0.71.39/test/test262/data/test/built-ins/String/prototype/charAt/S15.5.4.4_A8.js
JavaScript
apache-2.0
1,510
// Copyright 2014 The Oppia Authors. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by ap...
amgowano/oppia
core/tests/protractor_utils/general.js
JavaScript
apache-2.0
6,076
/// Copyright (c) 2009 Microsoft Corporation /// /// 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 conditions and /// ...
hnafar/IronJS
Src/Tests/ietestcenter/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-37.js
JavaScript
apache-2.0
2,322
/** * @license * Copyright 2020 The FOAM Authors. All Rights Reserved. * http://www.apache.org/licenses/LICENSE-2.0 */ foam.CLASS({ package: 'foam.nanos.crunch.lite', name: 'MinMaxCapabilityRefinement', refines: 'foam.nanos.crunch.MinMaxCapability', implements: [ 'foam.nanos.crunch.lite.CapableCompati...
jacksonic/vjlofvhjfgm
src/foam/nanos/crunch/lite/MinMaxCapabilityRefinement.js
JavaScript
apache-2.0
3,413
module('BadAriaRole'); test('No elements === no problems.', function(assert) { var config = { ruleName: 'badAriaRole', expected: axs.constants.AuditResult.NA }; assert.runRule(config); }); test('No roles === no problems.', function(assert) { // Setup fixture var fixture = document.getE...
alice/accessibility-developer-tools
test/audits/bad-aria-role-test.js
JavaScript
apache-2.0
1,950
let connectionIdx = 0; let messageIdx = 0; function addConnection(connection) { connection.connectionId = ++connectionIdx; addMessage('New connection #' + connectionIdx); connection.addEventListener('message', function(event) { messageIdx++; const data = JSON.parse(event.data); const logString = 'Me...
beaufortfrancois/samples
presentation-api/receiver/receiver.js
JavaScript
apache-2.0
1,980
/** * Copyright 2014 IBM Corp. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in wr...
ty4tw/node-red
test/red/api/library_spec.js
JavaScript
apache-2.0
8,945
/* * Copyright (C) 2015 Stratio (http://stratio.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
Stratio/Sparta
web/src/scripts/controllers/drivers-list.js
JavaScript
apache-2.0
3,460
/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may...
ascrutae/sky-walking-ui
src/routes/Exception/500.js
JavaScript
apache-2.0
1,035
/* mustache.js — Logic-less templates in JavaScript See http://mustache.github.com/ for more info. */ var Mustache = function() { var Renderer = function() {}; Renderer.prototype = { otag: "{{", ctag: "}}", pragmas: {}, buffer: [], pragmas_implemented: { "IMPLICIT-ITERATOR": true, ...
EHJ-52n/js-sensorweb-client
src/main/js/libs/mustache.js
JavaScript
apache-2.0
11,529
'use strict'; import { module } from 'angular'; import _ from 'lodash'; import { AccountService, ExpectedArtifactService } from '@spinnaker/core'; import { KubernetesProviderSettings } from '../../../kubernetes.settings'; export const KUBERNETES_V1_CLUSTER_CONFIGURE_COMMANDBUILDER = 'spinnaker.kubernetes.clusterCom...
sgarlick987/deck
app/scripts/modules/kubernetes/src/v1/cluster/configure/CommandBuilder.js
JavaScript
apache-2.0
10,658
import { getGlobal } from '../src/prebidGlobal.js'; import { createBid } from '../src/bidfactory.js'; import { STATUS } from '../src/constants.json'; import { ajax } from '../src/ajax.js'; import * as utils from '../src/utils.js'; import { config } from '../src/config.js'; import { getHook } from '../src/hook.js'; con...
mcallari/Prebid.js
modules/currency.js
JavaScript
apache-2.0
11,629
import app from 'common/electron/app'; import path from 'path'; /** * @return the theme's css path */ function getThemePath (name) { return path.join(app.getAppPath(), 'themes', name + '.css'); } /** * @return the style's css path */ function getStylePath (name) { return path.join(app.getAppPath(), 'styles', ...
rafael-neri/whatsapp-webapp
src/scripts/common/utils/file-paths.js
JavaScript
apache-2.0
963
/* * Copyright (C) 2013 Google Inc., authors, and contributors <see AUTHORS file> * Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> * Created By: * Maintained By: */ //= require can.jquery-all //= require models/cacheable (function(ns, can) { can.Model.Cacheable("CMS.Models.Document...
hamyuan/ggrc-self-test
src/ggrc/assets/javascripts/pbc/document.js
JavaScript
apache-2.0
3,489
/*! * commander * Copyright(c) 2011 TJ Holowaychuk <tj@vision-media.ca> * MIT Licensed */ /** * Module dependencies. */ var EventEmitter = require('events').EventEmitter , spawn = require('child_process').spawn , keypress = require('keypress') , fs = require('fs') , exists = fs.existsSync , path = req...
nickperez1285/truck-hunt-hackathon
server/node_modules/winser/node_modules/commander/index.js
JavaScript
apache-2.0
25,491
if(typeof(Control)=='undefined') Control={}; Control.TextArea=Class.create(); Object.extend(Control.TextArea.prototype,{ onChangeTimeoutLength:500, element:false, onChangeTimeout:false, initialize:function(textarea){ this.element=$(textarea); $(this.element).observe('keyup',this.doOnChange.bindAsEventListener(this)); $...
zzsoszz/MyPaper
database/oracle/死锁/oracle 性能 V$PROCESS - Oracle + J2EE 一个都不能少 - JavaEye技术网站.files/compress.js
JavaScript
apache-2.0
16,972
/** * @license * Copyright 2020 The FOAM Authors. All Rights Reserved. * http://www.apache.org/licenses/LICENSE-2.0 */ foam.CLASS({ package: 'foam.nanos.jetty', name: 'JettyThreadPoolConfig', documentation: 'model of org.eclipse.jetty.server.ThreadPool', properties: [ { name: 'minThreads', class...
jacksonic/vjlofvhjfgm
src/foam/nanos/jetty/JettyThreadPoolConfig.js
JavaScript
apache-2.0
513
/** * Copyright (c) 2013-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * The examp...
mrspeaker/react-native
Examples/UIExplorer/js/TextInputExample.android.js
JavaScript
bsd-3-clause
15,828
/** * Copyright 2013-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModu...
nathanmarks/react
src/renderers/shared/stack/event/eventPlugins/ResponderEventPlugin.js
JavaScript
bsd-3-clause
25,013
$.ajax({ url: './data/population.json', success: function (data) { var max = -Infinity; data = data.map(function (item) { max = Math.max(item[2], max); return { geoCoord: item.slice(0, 2), value: item[2] } }); da...
wangyuefive/echarts-x
doc/example/code/map3d_population3.js
JavaScript
bsd-3-clause
1,877
/* ***** BEGIN LICENSE BLOCK ***** * Distributed under the BSD license: * * Copyright (c) 2010, Ajax.org B.V. * 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 so...
newrelic/ace
lib/ace/layer/gutter.js
JavaScript
bsd-3-clause
8,543
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); const chalk = require("chalk"); const cli_utils_1 = require("@ionic/cli-utils"); const command_1 = require("@ionic/cli-utils/lib/command"); const validators_1 = require("@ionic/cli-utils/lib/validators"); cons...
vivadaniele/spid-ionic-sdk
node_modules/ionic/dist/commands/package/build.js
JavaScript
bsd-3-clause
8,855
define( [ { "value": 40, "name": "Accessibility", "path": "Accessibility" }, { "value": 180, "name": "Accounts", "path": "Accounts", "children": [ { "value": 76, "name": "Access", "path": "Acc...
redmed/echarts-www
related/ppt/asset/data/disk-tree.json.js
JavaScript
bsd-3-clause
750,572
/** * window.c.ProjectSuggestedContributions component * A Project-show page helper to show suggested amounts of contributions * * Example of use: * view: () => { * ... * m.component(c.ProjectSuggestedContributions, {project: project}) * ... * } */ import m from 'mithril'; import _ from 'underscore'; c...
vicnicius/catarse_admin
src/c/project-suggested-contributions.js
JavaScript
mit
881
import { get } from '../get' export function getSearchData(page, cityName, category, keyword) { const keywordStr = keyword ? '/' + keyword : '' const result = get('/api/search/' + page + '/' + cityName + '/' + category + keywordStr) return result }
su-chang/react-web-app
app/fetch/search/search.js
JavaScript
mit
261
/*global define*/ /*jslint white:true,browser:true*/ define([ 'bluebird', // CDN 'kb_common/html', // LOCAL 'common/ui', 'common/runtime', 'common/events', 'common/props', // Wrapper for inputs './inputWrapperWidget', 'widgets/appWidgets/fieldWidget', // Display widgets ...
msneddon/narrative
nbextensions/editorCell_bill/widgets/editorParamsViewWidget.js
JavaScript
mit
11,747
// Copyright 2011 Splunk, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"): you may // not use this file except in compliance with the License. You may obtain // a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to i...
Christopheraburns/projecttelemetry
node_modules/splunk-sdk/lib/platform/client/jquery_http.js
JavaScript
mit
2,820
var fs = require('fs'); var PNG = require('../lib/png').PNG; var test = require('tape'); var noLargeOption = process.argv.indexOf("nolarge") >= 0; fs.readdir(__dirname + '/in/', function (err, files) { if (err) throw err; files = files.filter(function (file) { return (!noLargeOption || !file.match(/large/i))...
lukeapage/pngjs2
test/convert-images-spec.js
JavaScript
mit
2,317
var assert = require('assert'); var Q = require('q'); var R = require('..'); describe('pipeP', function() { function a(x) {return x + 'A';} function b(x) {return x + 'B';} it('handles promises', function() { var plusOne = function(a) {return a + 1;}; var multAsync = function(a, b) {return Q.when(a * ...
donnut/ramda
test/pipeP.js
JavaScript
mit
988