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
var request = require('request'); //MONGO SETUP var mongoConf = { type: 'Mongo', host: 'localhost', port: 27017, db: 'tributary' } var mongo = require('mongoskin'); var db = mongo.db('mongodb://' + mongoConf.host + ':' + mongoConf.port + '/' + mongoConf.db + '?auto_reconnect'); db.open(function(err, db) { //...
enjalot/tributary
reports/aggregators/inletsByUser.js
JavaScript
bsd-2-clause
2,451
module.exports = type => { const helpText = `${type === 'vega' ? 'Compile' : 'Render'} a Vega-Lite specification to ${ type === 'vega' ? 'Vega' : type.toUpperCase() }. Usage: vl2${type} [vega_json_spec_file] [output_${type}_file] If no arguments are provided, reads from stdin. If output_${type}_file is not ...
vega/vega-lite
bin/args.js
JavaScript
bsd-3-clause
1,964
/* ChocolateChip-UI Version 2.1.1 License: BSD This version works with ChocolateChip.js, jQuery or Zepto. For jQuery, ChocolateChip-UI requires as a minimum version 1.7.1 When using Zepto, make sure you have the following modules included in your build: zepto, event, detect, fx, fx_methods, ajax, form, data, selector,...
SoumitraAgarwal/chocolatechip-ui
examples-android-zepto/templates/chui/chui.android.js
JavaScript
bsd-3-clause
79,381
'use strict'; /* global django, Cl */ /* This functionality is used in folder/choose_copy_destination.html template to disable submit if there is only one folder to copy */ // as of Django 2.x we need to check where jQuery is var djQuery = window.$; if (django.jQuery) { djQuery = django.jQuery; } djQuer...
webu/django-filer
filer/static/filer/js/addons/copy-move-files.js
JavaScript
bsd-3-clause
748
var SdlCordova = { listeners: {}, names: {}, createProxySuccess: null, appName: null, bind: function(type, f){ if(typeof f == "function"){ var listener = {listener: f, once: false, type: type}; if(this.listeners.hasOwnProperty(type)){ this.listeners[type].push(listener); }else{ this.listener...
smartdevicelink/sdl_cordova_android
www/SdlCordova.js
JavaScript
bsd-3-clause
78,923
/** * * <i>Copyright (c) 2017 ItsAsbreuk - http://itsasbreuk.nl</i><br> * New BSD License - http://choosealicense.com/licenses/bsd-3-clause/ * * * @since 16.2.0 */ 'use strict'; require('itsa-jsext'); const COOKIE_NAME = 'itsa-info', Cookie = require('./cookie'); module.exports = { register(server, pr...
ItsAsbreuk/itsa-react-server
lib/hapi-plugin/cookies/cookie-handler.js
JavaScript
bsd-3-clause
2,225
/* Copyright (c) 2010, Yahoo! Inc. All rights reserved. Code licensed under the BSD License: http://developer.yahoo.com/yui/license.html version: 3.7.3 build: 3.7.3 */ YUI.add('view-node-map', function (Y, NAME) { /** View extension that adds a static `getByNode()` method that returns the nearest View instance associa...
giros/alloy-ui
build/view-node-map/view-node-map.js
JavaScript
bsd-3-clause
2,552
'use strict'; module.exports = function(app){ return app.openbiz.Controller.extend({ _model: app.getModel('Contact') }); }
openbiz/openbiz-cubi
app/modules/contact/controllers/ContactController.js
JavaScript
bsd-3-clause
138
$(document).ready(function() { function checkWidth() { if ($(window).width() < 769) { $('[id$=bordersDiv]').removeClass("slds-border_left slds-border_right"); } else { $('[id$=bordersDiv]').addClass("slds-border_left slds-border_right"); } } // Exe...
Zosoled/Cumulus
StaticResourceSources/RP_GettingStarted/js/checkWidth.js
JavaScript
bsd-3-clause
415
'use strict'; var BPromise = require("bluebird"); var SIS = require('./constants'); var jsondiffpatch = require("jsondiffpatch"); var hat = require('hat'); var _ = require("lodash"); var logger = require("./logger"); var LOGGER = logger.createLogger({ name : "Manager" }); // Constructor for a Manager base // A ...
sis-cmdb/sis-api
util/manager.js
JavaScript
bsd-3-clause
31,840
// Copyright 2016 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import * as Bindings from '../bindings/bindings.js'; import * as Common from '../common/common.js'; import * as PerfUI from '../perf_ui/perf_ui.js'; impor...
endlessm/chromium-browser
third_party/devtools-frontend/src/front_end/timeline/TimelineFlameChartView.js
JavaScript
bsd-3-clause
18,507
/** * 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. * * @emails o...
chirag04/relay
packages/react-relay/classic/store/__tests__/RelayStoreData-test.js
JavaScript
bsd-3-clause
19,613
/** * 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. * * @provides...
chentsulin/relay
packages/relay-runtime/mutations/commitLocalUpdate.js
JavaScript
bsd-3-clause
617
(function () { "use strict"; // TODO: Add ARIA live region markup? fluid.defaults("fluid.nexusScienceLabDashboard", { gradeNames: ["gpii.nexusWebSocketBoundComponent", "fluid.viewComponent"], numberLocale: "en", maximumFractionDigits: 2, members: { nexusPeerComp...
simonbates/nexus-examples
science-lab/dashboard/js/NexusScienceLabDashboard.js
JavaScript
bsd-3-clause
5,734
/* eslint-disable */ import axios from 'axios'; import dotenv from 'dotenv'; import mongoose from 'mongoose'; import User from '../models/user'; import { getBackEndCert, getDataVisCert, getFrontEndCert } from './getCerts'; dotenv.config(); mongoose.Promise = require('bluebird'); mongoose.connect(proc...
FCC-Alumni/alumni-network
server/helpers/mockData.js
JavaScript
bsd-3-clause
6,168
"use strict"; define(function(){ return openbiz.Router.extend({ app: openbiz.apps.cubi?openbiz.apps.cubi:'cubi', routes:{ "!/backend/*any" : "notFound" }, notFound:function(){ this.app = openbiz.apps.cubi; this.renderView("common.NotFoundView"); } }); });
openbiz/openbiz-cubi
ui/modules/common/router.js
JavaScript
bsd-3-clause
293
(function ($) { // Some simple settings storage/retrieval $.extend({ orchard: { __cookieName: "Orchrd", // Orchard, on a diet __cookieExpiration: 180, // roughly 6 months ___doCookiePathHack: null, __doCookiePathHack: function (path) { if ...
aaronamm/Orchard
src/Orchard.Web/Core/Shapes/Scripts/base.js
JavaScript
bsd-3-clause
16,216
angular.module('exampleCtrl', ['exampleService']) .controller('exampleCtrl', function(Example) { self = this; self.exampleItems = Example.all(); });
naveedaziz/ionic-meterial
public/modules/_example/controllers/exampleCtrl.js
JavaScript
mit
154
'use strict'; let fs = require('fs'), path = require('path'), yml = require('js-yaml'); const CONFIG_FOLDER = 'config'; /** * Dynamicaly fetch all environments from the config folder */ function gatherKnexEnvironments() { let files = fs.readdirSync(CONFIG_FOLDER), knexEnvironments = {}; for (l...
haimich/event
users-api/knexfile.js
JavaScript
mit
653
(function() { module('glift.rules.problemsTest'); test('IsCorrectPosition: trivial correctness', function() { var movt = glift.rules.movetree.getFromSgf(testdata.sgfs.trivialproblem), problemResults = glift.enums.problemResults; deepEqual(glift.rules.problems.positionCorrectness(movt, {GB: []}), ...
Kashomon/glift-core
src/rules/problems_test.js
JavaScript
mit
4,341
(function ($) { var timeout; var counter; var started; var counterInterval; $.fn.tooltip = function (options) { var margin = 5; started = false; // Defaults var defaults = { delay: 350 }; options = $.extend(defaults, options); return this.each(fun...
AdamByrne/materialize
js/tooltip.js
JavaScript
mit
5,305
var page = require('webpage').create(), system = require('system'), address, output, size; if (system.args.length < 3 || system.args.length > 5) { console.log('Usage: rasterize.js URL filename [paperwidth*paperheight|paperformat] [zoom]'); console.log(' paper (pdf output) examples: "5in*7.5in", "10cm*...
davebshow/prelims
js_viz/rasterize.js
JavaScript
mit
2,190
import { searchByModuleCode } from '../../../../../../../database-controller/module/methods'; /* Explanation for UE calculation * The algorithm first finds the total required number of MCs a student has to complete * given all the fixed requirements earlier * * Next, it finds the total number of elective MCs from ...
nus-mtp/nus-oracle
imports/api/logic/grad-checker/faculty/computing/computer-science/AY-1617/unrestricted-electives/methods.js
JavaScript
mit
2,504
// @TODO implementar 'clicar na notificacao' abre a janela do chat const KonchatNotification = { notificationStatus: new ReactiveVar, // notificacoes HTML5 getDesktopPermission() { if (window.Notification && (Notification.permission !== 'granted') && !Meteor.settings.public.sandstorm) { return Notification.req...
k0nsl/Rocket.Chat
packages/rocketchat-ui/client/lib/notification.js
JavaScript
mit
4,908
/** * Created by griga on 11/24/15. */ import React from 'react' import {OverlayTrigger, Tooltip} from 'react-bootstrap' import ResetWidgets from './ResetWidgets' import SmallBreadcrumbs from './SmallBreadcrumbs' const tooltip = ( <Tooltip id="reset-widgets-suggestion"><i className='text-warning fa fa-warning'...
backpackcoder/world-in-flames
src/app/components/ribbon/Ribbon.js
JavaScript
mit
786
const parentHref = require('./common').parentHref exports.allPoisons = function (req, res) { res.reply(exports.poisons(req)) } exports.allRules = function (req, res) { res.reply(exports.rules(req)) } exports.createPoison = createPartial('poisons') exports.createRule = createPartial('rules') function createParti...
alihalabyah/toxy
lib/admin/routes/directives.js
JavaScript
mit
2,959
version https://git-lfs.github.com/spec/v1 oid sha256:ac4a667d72191db39b592ba99421d7aecabb8a3cd7f986b5e5b17024e29cd903 size 128912
yogeshsaroya/new-cdnjs
ajax/libs/yui/3.9.1/resize-base/resize-base-coverage.js
JavaScript
mit
131
YUI.add('gallery-inview-event', function (Y, NAME) { /*jslint plusplus: true, white: true */ /** Adds a synthetic `inview` event that fires when the node is scrolled into view. Usage: YUI().use('gallery-inview-event',function (Y) { Y.one('#mynode').on('inview',function(){ Y.one('#my...
inikoo/fact
libs/yui/yui3-gallery/build/gallery-inview-event/gallery-inview-event-debug.js
JavaScript
mit
3,232
/** * @fileoverview Warn when using template string syntax in regular strings * @author Jeroen Engels */ "use strict"; //------------------------------------------------------------------------------ // Rule Definition //------------------------------------------------------------------------------ module.exports ...
josebet1/code2040-challenge
node_modules/eslint/lib/rules/no-template-curly-in-string.js
JavaScript
mit
984
/* Copyright (c) 2010-2015 Richard Rodger, MIT License */ 'use strict' var assert = require('assert') var Lab = require('lab') var seneca = require('../..') var si = seneca({log: 'silent'}) var lab = exports.lab = Lab.script() var describe = lab.describe var it = lab.it var util = si.pin({role: 'util', cmd: '*'}) ...
thekemkid/seneca
test/plugin/basic.test.js
JavaScript
mit
3,402
$(function() { new Dragdealer('simple-slider'); })
catalinmiron/dragdealer
examples/simple-slider/script.js
JavaScript
mit
53
import test from 'ava'; import td from 'testdouble'; import LeafletControl from '../leafletControl'; import randomId from '../../test/randomId'; function createMapInstance(options, id = randomId()) { const div = document.createElement('div'); div.setAttribute('id', id); document.body.appendChild(div); const m...
ville6000/leaflet-geosearch
src/__tests__/leafletControl.spec.js
JavaScript
mit
2,309
'use strict'; var $ = require('../internals/export'); var call = require('../internals/function-call'); var aCallable = require('../internals/a-callable'); var anObject = require('../internals/an-object'); var iterate = require('../internals/iterate'); // `Set.prototype.isDisjointFrom` method // https://tc39.github.io...
zloirock/core-js
packages/core-js/modules/esnext.set.is-disjoint-from.js
JavaScript
mit
721
#require <class.js> #require <enemy.js> SpawningEnemy.subclasses(Enemy); function SpawningEnemy(type, center, width, height, elasticity, frequency, startingTime) { Enemy.prototype.constructor.call(this, type, elasticity); this.spawnFrequency = frequency; // Time until next enemy gets spawned this.timeUntilNextS...
superarts/JekyllMetro
games/rapt/game/src/entities/spawningenemy.js
JavaScript
mit
1,429
import { rgba } from 'polished'; export default theme => { return { root: { display: 'block', verticalAlign: 'middle', '&$exiting, &$exited': { '& $header, & $children': { backgroundColor: 'transparent' }, '& $icon': { opacity: 0 }, '...
romelperez/arwes
packages/core/__deprecated__/Project/styles.js
JavaScript
mit
2,105
"use strict"; const lua = require('../src/lua.js'); const lauxlib = require('../src/lauxlib.js'); const lualib = require('../src/lualib.js'); const lstring = require("../src/lstring.js"); const {to_luastring} = require("../src/fengaricore.js"); // Roughly the same tests as test/lvm.js to cover all opcodes test('...
fengari-lua/fengari
test/lexparse.test.js
JavaScript
mit
19,503
/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ const Package = require('dgeni').Package; const glob = require('glob'); const ignore = require('ignore'); const fs = ...
IgorMinar/angular
aio/tools/transforms/angular-content-package/index.js
JavaScript
mit
4,470
'use strict'; var constant = require('./constant.json'); function Wercker(settings) { settings = settings || {}; this.api_version = settings.api_version || constant.API_VERSION; this.token = settings.token || ""; this.constant = constant; } Wercker.prototype.req = requi...
felipefdl/wercker-status
wercker_api/index.js
JavaScript
mit
621
$(document).ready(function () { $(".open-team-desc").bind("click", function () { $(this).parents('.team-member').find(".team-reveal").slideToggle('fast'); }); $(".close-team-desc").bind("click", function () { $(this).parents('.team-member').find(".team-reveal").slideToggle('fast'); });...
bgegham/davideluna
resources/src/js/cpanel/team.js
JavaScript
mit
3,602
// The root folder for this documentation category is `pages/docs` // // - A string refers to the name of a file // - A "category" value refers to the name of a directory // - All directories must have an "index.mdx" file to serve as // the landing page for the category, or a "name" property to // serve as the cate...
marxarelli/vagrant
website/data/cloud-navigation.js
JavaScript
mit
846
/*! * VERSION: 1.0.2 * DATE: 2018-03-03 * UPDATES AND DOCS AT: https://chris-moody.github.io/mkr * * @license copyright 2017-2018 Christopher C. Moody * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to dea...
chris-moody/mkr
lib/constructs/svg/grdnt.js
JavaScript
mit
10,055
var _ = require('underscore'); module.exports = function (config) { var lines = []; _.each(config, function (val, key) { key = key.replace(/_/g, ' '); lines.push(key + ' ' + val); }); return lines.join('\n') + '\n'; }
cvhnilicka/Appointment-verison1
node_modules/vpnc/lib/vpnc-config.js
JavaScript
mit
254
import React, { Component } from 'react'; import { Container, Panel } from '@extjs/ext-react'; import { mediumText } from '../../dummy'; Ext.require('Ext.panel.Collapser'); export default class CollapsibleExample extends Component { render() { return ( <Container padding={Ext.os.is.Phone ? 0 ...
sencha/extjs-reactor
packages/reactor-kitchensink/src/examples/Panels/CollapsiblePanel/CollapsiblePanel.js
JavaScript
mit
1,418
describe('hotTable - Watching options', function() { var rootScope, compile; beforeEach(module('ngHandsontable')); beforeEach(inject(function(_$compile_, _$rootScope_, $q, hotRegisterer) { rootScope = _$rootScope_; compile = _$compile_; _hotRegisterer = hotRegisterer; })); afterEach(function()...
handsontable/ngHandsontable
test/directives/hotTable/watchingOptions.spec.js
JavaScript
mit
31,398
$(function(){"use strict";$("#form-wizard-1").bootstrapWizard({tabClass:"nav nav-pills"})}),$(function(){"use strict";$("#form-wizard-2").bootstrapWizard({tabClass:"list-group list-group-separator row list-group-icons list-group-centered",nextSelector:".button-next",previousSelector:".button-previous",firstSelector:".b...
newset/theme
backend/best/Delight/assets/widgets/wizard/wizard-demo.js
JavaScript
mit
444
'use strict'; /** * Module dependencies. */ var _ = require('lodash'); /** * Extend user's controller */ module.exports = _.extend( require('./challenges/challenges.helper.server.controller') );
teamhera/challenge-accepted
app/controllers/challenges.server.controller.js
JavaScript
mit
203
var cache = {}; module.exports = function(id, fn){ if (this.cache && cache[id] != null) return cache[id]; var result = cache[id] = fn(); return result; };
007slm/hexo
lib/plugins/helper/fragment_cache.js
JavaScript
mit
162
YUI.add("lang/gallery-list-format_af",function(e){e.Intl.add("gallery-list-format","af",{listPatternEnd:"{0} en {1}",listPatternTwo:"{0} en {1}"})},"gallery-2013.04.17-18-52");
inikoo/fact
libs/yui/yui3-gallery/build/gallery-list-format/lang/gallery-list-format_af.js
JavaScript
mit
177
if(!dojo._hasResource["dojox.highlight.languages.javascript"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code. dojo._hasResource["dojox.highlight.languages.javascript"] = true; dojo.provide("dojox.highlight.languages.javascript"); dojo.require("dojox.highlight._base"); (function(...
simonbates/bitstructures
js/dojo-1.1.1/dojox/highlight/languages/javascript.js
JavaScript
mit
1,563
/** * @fileoverview Rule to flag non-camelcased identifiers * @author Nicholas C. Zakas */ //------------------------------------------------------------------------------ // Rule Definition //------------------------------------------------------------------------------ module.exports = function(context) { "...
xjamundx/eslint
lib/rules/camelcase.js
JavaScript
mit
855
/*jshint node:true */ 'use strict'; module.exports = function(grunt) { var shouldMinify = grunt.option('dev'); grunt.config.merge({ assemble: { options: { prettify: { indent: 4 }, marked: { sanitize: fa...
jonwinton/grunt-assemble-boilerplate
tasks/buildMarkup.js
JavaScript
mit
1,083
export async function getStaticProps() { return { props: { url: new URL('../public/vercel.png', import.meta.url).pathname, }, } } export default function Index({ url }) { return ( <div> Hello {new URL('../public/vercel.png', import.meta.url).pathname}+{url} </div> ) }
zeit/next.js
test/integration/url/pages/ssg.js
JavaScript
mit
306
module.exports = function(grunt) { require('load-grunt-tasks')(grunt, ['grunt-*', 'grunt-bump']); grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), phantom: { dist: 'dist', compiled: 'standalone' }, clean: { dist: ['<%= phantom.dist %>'], compiled: ['<%= phantom.compiled %>'] }, co...
Acidburn0zzz/phantom
Gruntfile.js
JavaScript
mit
5,966
var listCode = ["AB" ,"AD" ,"AE" ,"AF" ,"AG" ,"AL" ,"AM" ,"AO" ,"AR" ,"AT" ,"AU" ,"AZ" ,"BA" ,"BB" ,"BD" ,"BE" ,"BF" ,"BG" ,"BH" ,"BI" ,"BJ" ,"BN" ,"BO" ,"BR" ,"BS" ,"BT" ,"BW" ,"BY" ,"BZ" ,"CA" ,"CF" ,"CG" ,"CH" ,"CI" ,"CL" ,"CM" ,"CN" ,"CO" ,"CR" ,"CU" ,"CV" ,"CY" ,"CZ" ,"D...
mperreir/HyblabDDJ2017
mathias_virilli/public/js/visa.js
JavaScript
mit
5,061
var expressSession = require('express-session'); var ChokoStore = require('./lib/choko-store'); var flash = require('connect-flash'); var session = module.exports; /** * The init() hook. */ session.init = function(application, callback) { // Enable session on rest and page routers. var sessionMiddleware = expre...
recidive/choko
applications/default/extensions/session/session.js
JavaScript
mit
1,480
var searchData= [ ['table',['table',['../classcoda_1_1db_1_1join__clause.html#a27958599ffb6a5513ab4d4e29c7f7492',1,'coda::db::join_clause::table(const std::string &amp;value)'],['../classcoda_1_1db_1_1join__clause.html#a7bcb476213ee379cc06f6130cc2212ce',1,'coda::db::join_clause::table() const'],['../classcoda_1_1db_1...
c0der78/arg3db
html/search/all_11.js
JavaScript
mit
2,475
import React from 'react'; import ReactDOM from 'react-dom'; import JqxProgressBar from '../../../jqwidgets-react/react_jqxprogressbar.js'; class App extends React.Component { render() { return ( <div > <div style={{ fontFamily: 'Verdana', fontSize: 12, float: 'left' }}> ...
luissancheza/sice
js/jqwidgets/demos/react/app/progressbar/layout/app.js
JavaScript
mit
1,706
define({ "productVersion": "Verze produktu: ", "kernelVersion": "Verze jádra: ", "_widgetLabel": "O aplikaci" });
tmcgee/cmv-wab-widgets
wab/2.15/widgets/About/nls/cs/strings.js
JavaScript
mit
120
exports.handler = function( err, client, done, next ) { if( ! err ) return false; err.status = 500; done( client ); next( new Error("DB request failed - " + err) ); return true; };
hardware/ovh-availability
routes/errorHandler.js
JavaScript
mit
205
import ctrl from './controller'; export default { controller: ctrl, template: require('./template.html'), bindings: { modalInstance: '=', resolve: '<' } }
hobbydev-public/team-manager
src/main/webapp/WEB-INF/res/app/js/es6/modules/company/modals/editOffice/index.js
JavaScript
mit
187
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.hola_videojs_h...
Asaf-S/jsdelivr
files/hola_hap/1.0.23/hola_videojs_hls.js
JavaScript
mit
506,868
describe("me.Vector3d", function () { var x = 1, y = 2, z = 3; var a, b, c, d; it("should be initialized to a (0, 0, 0) 3d vector", function () { a = new me.Vector3d(); b = new me.Vector3d(); c = new me.Vector3d(); d = new me.Vector3d(); expect(a.toString()).t...
srbala/melonJS
tests/spec/vect3d-spec.js
JavaScript
mit
5,457
//------------------------------------------------------------------------------------------------------- // Copyright (C) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. //------------------------------------------------------...
arunetm/ChakraCore_0114
test/es5/array_filter.js
JavaScript
mit
1,360
/** * Initialisation options that can be given to DataTables at initialisation * time. * @namespace */ DataTable.defaults = { /** * An array of data to use for the table, passed in at initialisation which * will be used in preference to any data which is already in the DOM. This is * particularly useful...
woodymit/millstone_accidental_source
genome_designer/main/static/vendor/DataTables-1.9.4/media/src/model/model.defaults.js
JavaScript
mit
60,319
var EventEmitter = require('events').EventEmitter; var util = require('util'); function GenericObject(connection, handle) { this.connection = connection; this.handle = handle; EventEmitter.call(this); }; util.inherits(GenericObject, EventEmitter); GenericObject.prototype.exportData = function(FileType, Pa...
mindspank/architeqt
node_modules/qsocks/lib/genericObject.js
JavaScript
mit
9,815
var keyCodes = { ESC: 27, backspace: 8, deleteKey: 46, enter: 13, space: 32, shiftKey: 16, f1: 112, f12: 123}; var keyNames = { 37: "left", 38: "up", 39: "right", 40: "down" }; // This is a mapping of the incorrect keyIdentifiers generated by Webkit on Windows during keydown events to // the correct identifiers, which...
ChrisLTD/vimari
vimari.safariextension/js/keyboard-utils.js
JavaScript
mit
2,450
"use strict";function setAndForwardRef(e){var t=e.getForwardedRef,r=e.setLocalRef;return function(e){var n=t();r(e),"function"==typeof n?n(e):"object"==typeof n&&null!=n&&(n.current=e)}}export default setAndForwardRef;
cdnjs/cdnjs
ajax/libs/react-native-web/0.16.1/vendor/react-native/Utilities/setAndForwardRef.min.js
JavaScript
mit
218
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) : typeof define === 'function' && define.amd ? define(['exports', 'react'], factory) : (global = global || self, factory(global.ReactRouterDOM = {}, global.React)); }(this, function (exp...
cdnjs/cdnjs
ajax/libs/react-router-dom/5.2.0/react-router-dom.js
JavaScript
mit
132,624
( function ( M ) { var OverlayNew = M.require( 'OverlayNew' ), AbuseFilterOverlay; AbuseFilterOverlay = OverlayNew.extend( { defaults: { confirmMessage: mw.msg( 'mobile-frontend-photo-ownership-confirm' ) }, templatePartials: { content: M.template.get( 'modules/editor/AbuseFilterOverlay' ) }, classNam...
akvo/mediawiki-extensions-MobileFrontend
javascripts/modules/editor/AbuseFilterOverlay.js
JavaScript
gpl-2.0
592
YUI.add('options', function(Y) { var path = require('path'); /** * Handles argument parsing * @module yuidoc * @class Options */ /** * Parses arguments and returns an Object of config options * @method Options * @param {Array} args Arguments to parse * @return {Object}...
brodkinca/hubcap
node_modules/grunt-contrib/node_modules/yuidocjs/lib/options.js
JavaScript
gpl-3.0
4,688
define(['jquery'], function ($) { 'use strict'; var FileHelper = {}; FileHelper.isImage = function(image, fn) { if (this.isFileObject(image)) { var imageType = /image.*/; if (image.type.match(imageType)) { fn(true, image); } else { fn(false, image); } } else { ...
SMC-digital/directus
app/helpers/file.js
JavaScript
gpl-3.0
4,447
/* * The contents of this file are subject to the license and copyright * detailed in the LICENSE and NOTICE files at the root of the source * tree and available online at * * http://www.dspace.org/license/ */ // Client-side scripting to support DSpace Choice Control // IMPORTANT NOTE: // This code depends on a...
bczmufrn/riaufrn
static/js/choice-support.js
JavaScript
gpl-3.0
21,952
/** * @fileOverview Provides access to the Rhino JavaScript engine. */ export( 'properties', 'addHostObject', 'addRepository', 'asJavaString', 'asJavaObject', 'createSandbox', 'evaluate', 'getErrors', 'getRingoHome', 'getRepositories', '...
cga-harvard/worldmap
src/geonode-client/externals/ringo/modules/ringo/engine.js
JavaScript
gpl-3.0
6,131
"use strict"; var topicsController = require('./topics'), categoriesController = require('./categories'), tagsController = require('./tags'), usersController = require('./users'), groupsController = require('./groups'), accountsController = require('./accounts'), staticController = require('./static'), apiContr...
medidog/Cuvaldiz
src/controllers/index.js
JavaScript
gpl-3.0
6,267
YUI.add('aui-toggler-delegate', function (A, NAME) { /** * The Toggler Component * * @module aui-toggler */ var Lang = A.Lang, isBoolean = Lang.isBoolean, isObject = Lang.isObject, isString = Lang.isString, AArray = A.Array, DOC = A.config.doc, Toggler = A.Toggler, CUBIC_BEZIER = 'c...
Behzadkhosravifar/Alloy-DiagramBuilder-MVC
src/AlloyDiagram/Scripts/AlloyUi/aui-toggler-delegate/aui-toggler-delegate.js
JavaScript
gpl-3.0
9,915
'use strict'; define('settings/number', function () { return { types: ['number'], get: function (element, trim, empty) { const value = element.val(); if (!empty) { if (value) { return +value; } return; } return value ? +value : 0; }, }; });
MicroWorldwide/NodeBB
public/src/modules/settings/number.js
JavaScript
gpl-3.0
279
import AbstractModel from 'hospitalrun/models/abstract'; import CanEditRequested from 'hospitalrun/mixins/can-edit-requested'; import DateFormat from 'hospitalrun/mixins/date-format'; import DS from 'ember-data'; import Ember from 'ember'; import PatientValidation from 'hospitalrun/utils/patient-validation'; import Res...
billybonks/hospitalrun-frontend
app/models/lab.js
JavaScript
gpl-3.0
1,493
/******************************************************************************* µBlock - a browser extension to block requests. Copyright (C) 2014 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 published by ...
graydon/uBlock
src/js/contentscript-start.js
JavaScript
gpl-3.0
5,950
/* */ var arrayReduce = require('./_arrayReduce'), deburr = require('./deburr'), words = require('./words'); var rsApos = "['\u2019]"; var reApos = RegExp(rsApos, 'g'); function createCompounder(callback) { return function(string) { return arrayReduce(words(deburr(string).replace(reApos, '')), callback, ...
mscottnelson/grapph
public/jspm_packages/npm/lodash@4.13.1/_createCompounder.js
JavaScript
agpl-3.0
367
const { exec } = require('../juke'); const { stat } = require('./fs'); const { regQuery } = require('./winreg'); const fs = require('fs'); /** * Cached path to DM compiler */ let dmPath; /** * DM compiler * * @param {string} dmeFile * @param {{ defines?: string[] }} options */ const dm = async (dmeFile, option...
optimumtact/-tg-station
tools/build/cbt/dm.js
JavaScript
agpl-3.0
2,309
WorldMorph.prototype.Arduino = Arduino; WorldMorph.prototype.originalInit = WorldMorph.prototype.init; WorldMorph.prototype.init = function (aCanvas, fillPage) { this.originalInit(aCanvas, fillPage); // We need to override reportVersion and queryFirmware so that, in the event that the // cable is unplugge...
bromagosa/Snap4Arduino
src/s4a/morphic.js
JavaScript
agpl-3.0
1,159
/** * Etherpad Lite plug-in for TinyMCE version 3.x * @author Daniel Tygel * @version $Rev: 1.0 $ * @package etherpadlite * @link https://github.com/dtygel/tinymce-etherpadlite-embed * EtherPad plugin for TinyMCE * AFFERO LICENSE */ (function() { var supportedLanguages = ['en', 'pt'] ...
coletivoEITA/noosfero
public/javascripts/tinymce/js/tinymce/plugins/etherpadlite/plugin.js
JavaScript
agpl-3.0
2,655
'use strict'; var dbModule = { mongo: require('./mongo'), redis: require('./redis') }; module.exports = dbModule;
chamerling/rse-chamerling
backend/core/db/index.js
JavaScript
agpl-3.0
120
/*global describe, it, before, after, beforeEach, afterEach*/ 'use strict'; var assert = require('assert'); var ArgumentParser = require('../lib/argparse').ArgumentParser; describe('ArgumentParser', function () { describe('base', function () { var parser; var args; beforeEach(function () { parse...
ftrotter/Credential_node
node_modules/js-yaml/node_modules/argparse/test/base.js
JavaScript
agpl-3.0
3,005
/* * Copyright (c) 2017. Caipi Labs. All rights reserved. * * This File is part of Caipi. You can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version....
nathb2b/mamasound.fr
App/db/entities/content/Article.js
JavaScript
agpl-3.0
958
/* ************************************************************************ qooxdoo - the new era of web development http://qooxdoo.org Copyright: 2007-2011 1&1 Internet AG, Germany, http://www.1und1.de License: LGPL: http://www.gnu.org/licenses/lgpl.html EPL: http://www.eclipse.org/org/d...
sebastienhupin/qxrad
qooxdoo/framework/source/class/qx/test/dev/Debug.js
JavaScript
lgpl-3.0
1,537
/* Welsh locals for flatpickr */ var flatpickr = flatpickr || {l10ns: {}}; flatpickr.l10ns.cy = {}; flatpickr.l10ns.cy.weekdays = { shorthand: ["Sul", "Llun", "Maw", "Mer", "Iau", "Gwe", "Sad"], longhand: ["Dydd Sul", "Dydd Llun", "Dydd Mawrth", "Dydd Mercher", "Dydd Iau", "Dydd Gwener", "Dydd Sadwrn"] }; flatpickr...
spohlenz/trestle
vendor/assets/bower_components/trestle/flatpickr/src/l10n/cy.js
JavaScript
lgpl-3.0
1,179
angular.module('filters.status.player', ['sources.status.player']). filter('player_status', ['playerStatusSource', function(playerStatusSource) { return function(input) { return playerStatusSource.get()[input]; }; }]);
tsal/ElysiumFrontend
src/web/js/filters/player_status.js
JavaScript
unlicense
222
'use strict'; import { module } from 'angular'; import { react2angular } from 'react2angular'; import { TaskProgressBar } from './TaskProgressBar'; export const CORE_TASK_TASKPROGRESSBAR_DIRECTIVE = 'spinnaker.core.task.progressBar.directive'; export const name = CORE_TASK_TASKPROGRESSBAR_DIRECTIVE; // for backwards ...
sgarlick987/deck
app/scripts/modules/core/src/task/taskProgressBar.directive.js
JavaScript
apache-2.0
454
// This file is part of BenchExec, a framework for reliable benchmarking: // https://github.com/sosy-lab/benchexec // // SPDX-FileCopyrightText: 2019-2020 Dirk Beyer <https://www.sosy-lab.org> // // SPDX-License-Identifier: Apache-2.0 import { buildMatcher, applyMatcher, applyNumericFilter, statusForEmptyRows,...
ultimate-pa/benchexec
benchexec/tablegenerator/react-table/src/tests/filters.test.js
JavaScript
apache-2.0
4,294
/** * Copyright 2019 The AMP HTML 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 require...
prateekbh/amphtml
extensions/amp-story-auto-ads/0.1/test/test-story-ad-page.js
JavaScript
apache-2.0
21,059
/// 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-4-299-1.js
JavaScript
apache-2.0
3,018
/** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** Built-in value references. */ var getPrototypeOf = Object.getPrototypeOf; /** * The base implementation of `_.has` without support for...
Maxwelloff/react-football
node_modules/lodash-es/_baseHas.js
JavaScript
apache-2.0
888
// Copyright 2014 Technical Machine, Inc. See the COPYRIGHT // file at the top-level directory of this distribution. // // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your /...
tessel/bglib
test/test.js
JavaScript
apache-2.0
2,970
Blockly.Msg.ACTUAL = "呼び出す"; Blockly.Msg.ADD = "追加"; Blockly.Msg.ADD_COMMENT = "コメントを追加"; Blockly.Msg.ADD_PARAMETER = "パラメータを追加します。"; Blockly.Msg.CHANGE_VALUE_TITLE = "値の変更:"; Blockly.Msg.COLLAPSE_ALL = "ブロックを折りたたむ"; Blockly.Msg.COLLAPSE_BLOCK = "ブロックを折りたたむ"; Blockly.Msg.COLOUR_BLEND_COLOUR1 = "色1"; Blockly.Msg.COLOUR_...
ty-po/code-dot-org
dashboard/public/apps-package/js/ja_jp/blockly_locale-9b87dfd91fe1a2c37e38bbe759751166.js
JavaScript
apache-2.0
31,495
import React, { Component } from "react"; import { Container, Header, Left, Button, Body, Title, Icon, Right, Content, ActionSheet, Text } from "native-base"; var BUTTONS = ["Option 0", "Option 1", "Option 2", "Delete", "Cancel"]; var DESTRUCTIVE_INDEX = 3; var CANCEL_INDEX = 4; export default cl...
HomelandGvarim/FE-Phone
js/components/actionsheet/regular.js
JavaScript
apache-2.0
1,353
// Copyright 2017 The Kubernetes Dashboard Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicabl...
vlal/dashboard
src/app/frontend/job/list/cardlist_component.js
JavaScript
apache-2.0
2,204
// 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...
cpcloud/arrow
js/gulp/compile-task.js
JavaScript
apache-2.0
1,696
const util = require("./util"); const pygments_data = require("../generated/pygments_data.json"); const typeahead = require("../shared/js/typeahead"); const render_typeahead_list_item = require('../templates/typeahead_list_item.hbs'); const settings_data = require("./settings_data"); // Returns an array of private mes...
timabbott/zulip
static/js/typeahead_helper.js
JavaScript
apache-2.0
13,461
/******************************************************************************* * Code contributed to the webinos project * * 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://w...
krishnabangalore/Webinos-Platform
webinos/core/manager/context_manager/lib/contextQueryDB.js
JavaScript
apache-2.0
5,841