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
/* more general functions used all in several pages of the site. */ function add_org() { var org = document.getElementById('add_org').value; $.ajax({ type: "POST", url: "php/do_add_org.php", data: { 'organisation': org }, beforeSend:function() { $('<div class="m...
errietta/WebMeetUs
js/script.js
JavaScript
artistic-2.0
5,466
// Copyright (C) 2015 the V8 project authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- esid: sec-array.prototype.fill es6id: 22.1.3.6 description: > Fills all the elements from a with a custom start and end indexes. info: | 22.1.3.6 Array.prototype.fill (valu...
sebastienros/jint
Jint.Tests.Test262/test/built-ins/Array/prototype/fill/fill-values-custom-start-and-end.js
JavaScript
bsd-2-clause
1,074
Widget.DatabaseTabs = function (data) { this.data = data this.html = parse(function(){/*! <div> {{# tabs[i] <div class="databaseTab" style="display: none" id="{{tabs[i].id}}"> {{tabs[i].html}} </div> }}# </div> */}, data) } Widget.DatabaseTabs.prototype = { constructor: W...
cyberz-eu/octopus
extensions/database/src/widget/DatabaseTabs.js
JavaScript
bsd-2-clause
341
// Copyright (c) 2012 Ecma International. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- esid: sec-array.prototype.reduce es5id: 15.4.4.21-5-3 description: > Array.prototype.reduce throws TypeError if 'length' is 0 (subclassed Array, length overridden to fals...
sebastienros/jint
Jint.Tests.Test262/test/built-ins/Array/prototype/reduce/15.4.4.21-5-3.js
JavaScript
bsd-2-clause
532
'use strict'; // Test specific configuration // =========================== module.exports = { // MongoDB connection options mongo: { uri: 'mongodb://localhost/suggestdish-test' } };
24const/suggest_dish
server/config/environment/test.js
JavaScript
bsd-2-clause
193
import { combineReducers } from 'redux'; import config from '../../config'; // // Index reducer and actions export const FETCH_ADMIN_STATS = 'FETCH_ADMIN_STATS'; export const FETCH_ADMIN_STATS_SUCCESS = 'FETCH_ADMIN_STATS_SUCCESS'; export const FETCH_ADMIN_STATS_ERROR = 'FETCH_ADMIN_STATS_ERROR'; export const fetchA...
orma/openroads-vn-analytics
app/assets/scripts/redux/modules/admin-stats.js
JavaScript
bsd-2-clause
4,197
function foo(a, b,) {};
eslint/espree
tests/fixtures/ecma-version/8/comma-dangle.src.js
JavaScript
bsd-2-clause
23
'use strict'; angular.module('portfolioFilters', []);
bborbe/portfolio
files/js/filters.js
JavaScript
bsd-2-clause
54
var searchData= [ ['topology',['topology',['../classcpuaff_1_1impl_1_1hwloc__impl_1_1topology.html',1,'cpuaff::impl::hwloc_impl']]], ['topology_5freader',['topology_reader',['../classcpuaff_1_1impl_1_1hwloc__impl_1_1topology__reader.html',1,'cpuaff::impl::hwloc_impl::topology_reader'],['../classcpuaff_1_1impl_1_1hw...
dcdillon/cpuaff
docs/html/search/all_e.js
JavaScript
bsd-3-clause
852
// Load modules var Lab = require('lab'); var Fs = require('fs'); var Utils = require('../lib/utils'); // Declare internals var internals = {}; // Test shortcuts var lab = exports.lab = Lab.script(); var expect = Lab.expect; var describe = lab.describe; var it = lab.it; describe('utils', function () { des...
Marsup/good
test/utils.js
JavaScript
bsd-3-clause
1,423
define( "dojo/cldr/nls/hr/generic", //begin v1.x content { "field-quarter-short-relative+0": "ovaj kv.", "field-quarter-short-relative+1": "sljedeći kv.", "field-tue-relative+-1": "prošli utorak", "field-year": "godina", "dateFormatItem-Hm": "HH:mm", "field-wed-relative+0": "ova srijeda", "field-wed-relative+1":...
osingla/RouteView
dojo-release-1.16.3/dojo/cldr/nls/hr/generic.js.uncompressed.js
JavaScript
bsd-3-clause
7,708
// BEGIN-SNIPPET docs-helpers-format-relative-controller.js import Controller from '@ember/controller'; const date = new Date(); const yesterday = date.setDate(date.getDate() - 1); export default Controller.extend({ yesterday: yesterday, instant: new Date(), now: new Date() }); // END-SNIPPET
yahoo/ember-intl
tests/dummy/app/pods/docs/helpers/format-relative/controller.js
JavaScript
bsd-3-clause
303
$(document).ready(function () { /** * easyui tree extend for 'unselect' event * @author Mustafa Zeynel Dağlı * @since 04/04/2016 */ $.extend($.fn.tree.methods,{ unselect:function(jq,target){ return jq.each(function(){ var opts = $(this).tree('options'); ...
kuisatz/b2argebilisim
public/jsinline/admin_clusters.js
JavaScript
bsd-3-clause
33,213
/** * Created by ubuntu on 2/10/15. */ module.exports = { SMTP: { user: "forumdizajnu@gmail.com", pass: "something001" }, email: { from: "Forumdizajnu.sk <forumdizajnu@gmail.com>", subject: "Verifikacia e-mailu", subjectInvitation: 'Pozvánka od systému For...
mathers12/Forumdizajnu
auth/lib/params.js
JavaScript
bsd-3-clause
2,124
/* * Copyright (C) 2010 Google Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditio...
danakj/chromium
third_party/WebKit/Source/devtools/front_end/sdk/DebuggerModel.js
JavaScript
bsd-3-clause
43,481
/* globals grunt module */ //-- References: //-- https://github.com/yatskevich/grunt-bower-task //-- https://github.com/sindresorhus/grunt-shell //-- https://github.com/phated/grunt-dojo //-- https://github.com/pahen/grunt-madge module.exports = function(grunt) { // Project configuration. grunt.initConfig({ ...
ibm-js/dworklight
build/Gruntfile.js
JavaScript
bsd-3-clause
4,500
module.exports = process.env.SLIP_COV ? require("./lib-cov/slip") : (require.extensions[".coffee"] ? require("./src/slip") : require("./lib/slip"))
beyama/node-a2r-slip
index.js
JavaScript
bsd-3-clause
152
/* global previewMarkdown */ /* exported previewPollMarkdown */ function previewPollMarkdown() { const markdown_textarea = $('#poll-question'); const preview_element = $('[id^="poll_preview_"]'); const preview_button = $('[title="Preview Markdown"]'); const content = markdown_textarea.val(); previ...
RCOS-Grading-Server/HWserver
site/public/js/polls.js
JavaScript
bsd-3-clause
406
// FilesController.js import { Parse } from 'parse/node'; import { randomHexString } from '../cryptoUtils'; import AdaptableController from './AdaptableController'; import { FilesAdapter } from '../Adapters/Files/FilesAdapter'; import path from 'path'; import mime from 'mime'; import uuid from 'node-uuid'; const lega...
themungapp/themungapp
src/Controllers/FilesController.js
JavaScript
bsd-3-clause
3,013
// Check if a value is a vanilla javascript object export default value => value && value.constructor === Object;
quantmind/d3-view
src/utils/object.js
JavaScript
bsd-3-clause
114
var group__magma__zblas3 = [ [ "magma_zgemm", "group__magma__zblas3.html#gaf888c5fb33b062008ea26a61fe24d733", null ], [ "magma_zhemm", "group__magma__zblas3.html#ga76a65b497151bcb560c94c7dbc31c99a", null ], [ "magma_zher2k", "group__magma__zblas3.html#ga54ca9b7106797176b040f08ca430f9a1", null ], [ "magm...
shengren/magma-1.6.1
docs/html/group__magma__zblas3.js
JavaScript
bsd-3-clause
2,978
/* * Copyright © 2012-2015, Intel Corporation. All rights reserved. * Please see the included README.md file for license terms and conditions. */ /*jslint browser:true, devel:true, white:true, vars:true */ /*global $:false, intel:false app:false, dev:false, cordova:false */ // This file contains your event hand...
redleafar/HTML5microframework
www/js/app.js
JavaScript
bsd-3-clause
695
/** * Copyright (c) 2015-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. */ jest .do...
ichengde/react-vr
EndToEnd/__tests__/Runner-test.js
JavaScript
bsd-3-clause
2,934
import React from 'react'; export default class Counter extends React.Component { static propTypes = { counter: React.PropTypes.number.isRequired, plus: React.PropTypes.func.isRequired, minus: React.PropTypes.func.isRequired, } render() { const count = this.props.counter.toString(); const {p...
bfollington/react-redux-isomorphic-boilerplate
src/components/Counter.js
JavaScript
bsd-3-clause
545
/** * base.js: Base module */ define([ 'jquery', 'sfchat/errorHandler', 'sfchat/sfchat', 'events/gatracking' ], function ($, errorHandler, sfchat, eventGaTracking) { "use strict"; $(document).ready(function () { var baseOptions = sfchat.getOnloadOptions('.onload-js-options', ...
MySmile/sfchat
sfchat/static/js/app/base.js
JavaScript
bsd-3-clause
1,137
var main = function() { // 1. main var foo = new Foo( function(){ // 2. main/foo< this.welcome = "Hi!"; }); var bar = new Bar("GoodBye."); console.log(foo.welcome); console.log(bar.message); }; var Foo = function(){ // 3. Foo< var instances; r...
johnjbarton/nonymous
tests/paperFigure1.js
JavaScript
bsd-3-clause
505
import React from 'react'; import PropTypes from 'prop-types'; import _ from 'lodash'; import IconFilter from '../../../../shared-assets/filters/redux-icon-filter'; import InputFilter from '../../../../shared-assets/filters/redux-input-filter'; import SliderFilter from '../../../../shared-assets/filters/redux-slider-fi...
vFujin/HearthLounge
src/containers/pages/create-deck/after-class-selection/left-container/filter-sidebar.js
JavaScript
bsd-3-clause
3,662
var _ = require('underscore'); var MosaicFormView = require('../../../../javascripts/cartodb3/components/mosaic-form-view'); var MosaicCollection = require('../../../../javascripts/cartodb3/components/mosaic/mosaic-collection'); describe('components/mosaic-form-view', function () { beforeEach(function () { this....
splashblot/dronedb
lib/assets/test/spec/cartodb3/components/mosaic-form-view.spec.js
JavaScript
bsd-3-clause
1,250
/* * language_data.js * ~~~~~~~~~~~~~~~~ * * This script contains the language-specific data used by searchtools.js, * namely the list of stopwords, stemmer, scorer and splitter. * * :copyright: Copyright 2007-2020 by the Sphinx team, see AUTHORS. * :license: BSD, see LICENSE for details. * */ var stopwords ...
conda-forge/conda-forge.github.io
docs/_static/language_data.js
JavaScript
bsd-3-clause
11,817
const util = require("util"); const json2csv = require("json2csv"); const Boom = require("boom"); const bookshelf = require("../db/bookshelf_init"); const lockingCache = require("locking-cache"); const supportedOutputs = ["csv", "json"]; const lockedFetch = lockingCache({ maxAge: 1000 * 20, stale: true }); async...
AmericanRedCross/osm-stats-api
routes/company-page.js
JavaScript
bsd-3-clause
7,375
/* Copyright 2015 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. */ Polymer('gaia-input-form', { inputValue: '', onButtonClicked: function() { this.fire('buttonClick'); }, onKeyDown: function(e) { thi...
ltilve/chromium
chrome/browser/resources/chromeos/login/gaia_input_form.js
JavaScript
bsd-3-clause
768
/*! * jquery.fancytree.filter.js * * Remove or highlight tree nodes, based on a filter. * (Extension module for jquery.fancytree.js: https://github.com/mar10/fancytree/) * * Copyright (c) 2014, Martin Wendt (http://wwWendt.de) * * Released under the MIT license * https://github.com/mar10/fancytree/wiki/License...
bedaes/burp-ui
burpui/static/fancytree/jquery.fancytree.filter.js
JavaScript
bsd-3-clause
4,137
$(function() { // grab the elements and define variables var selectors = { ncImage: $('#nc-img'), uncwImage: $('#uncw-img'), vtImage: $('#vt-img'), atxImage: $('#austin-img'), lightImage: $('#light-img'), tthImage: $('#tth-img'), bugImage: $('#bugs-img'), weddingImage: $('#wedding-img'), wickedImag...
prowe214/pamela-debug-challenge
website/js/index.js
JavaScript
bsd-3-clause
3,368
$(document).ready(function(e) { //sdk var sdk; //enter api key form your Acision Forge account var key = ''; //enter username and password from user accounts var un = ''; var pw = ''; //set agents user namaes var agent1 = ''; var agent2 = ''; //agent var agent; //webrtc session v...
blaccspotmedia/acision-forge-banking
script/app.js
JavaScript
bsd-3-clause
9,961
var NWExampleElmt=function(){"use strict";return new Class({Implements:[Options],classPlugin:"NWExampleElmt",elmt:null,initialize:function(e,t){this.setOptions(t);this.elmt=e;this.elmt.store(this.classPlugin,this)}})}();
rsmats13/UMBDT
module/NovumWare/public/js/mootools/NovumWare/exampleElmt-ck.js
JavaScript
bsd-3-clause
220
const _ = require('lodash'); const UglifyJsPlugin = require('uglifyjs-webpack-plugin'); const webpack = require('webpack'); const webpackConfigBase = require('./webpack.config.base'); module.exports = _.merge({}, webpackConfigBase, { mode: 'production', optimization: { minimizer: [ new UglifyJsPlugin({ ...
netbek/chrys
webpack.config.prod.js
JavaScript
bsd-3-clause
572
var EX = exports; EX.run = function(){ console.log('run test.js7'); };
bmfrog2/kore
cjs/test.js
JavaScript
bsd-3-clause
74
// contador de click de celdas (1 ó 2) var cont = 0; // almacena el valor del personaje y la celda que lo contiene // para poder comparar dos personajes y taparlos si es necesario var personajes = []; // almacena cuantos personajes has descubierto (máximo 8) var descubiertos = 0; function comprobar(miEvento){ va...
inmagination/Quien_Es_Quien
Quien Es Quien/js/comprobar.js
JavaScript
bsd-3-clause
2,212
// @create-index export createIndexCode from './createIndexCode.js'; export findIndexFiles from './findIndexFiles.js'; export log from './log.js'; export readDirectory from './readDirectory.js'; export sortByDepth from './sortByDepth.js'; export validateTargetDirectory from './validateTargetDirectory.js'; export write...
Guibod/create-index
src/utilities/index.js
JavaScript
bsd-3-clause
398
var token ="pk.eyJ1IjoiZGlnaXRhbHVzc291dGgiLCJhIjoiY2pmbGRiNjc2MGg0MTJxczI3Z3N0Z2c5dyJ9.0MDumYsaPIFHA4RZTnKeUg";
DigitalUSSouth/ExploreSC
exploresc-app/Droid/Assets/mapbox-token.js
JavaScript
bsd-3-clause
113
// Acquire csrf token and set token header for all subsequent ajax calls var csrftoken = Cookies.get('csrftoken'); $(function () { function csrfSafeMethod(method) { // these HTTP methods do not require CSRF protection return (/^(GET|HEAD|OPTIONS|TRACE)$/.test(method)); } $.ajaxSetup({ ...
praekelt/django-admin-api
adminapi/app/static/react/login.js
JavaScript
bsd-3-clause
2,888
// Testcase for object literals function pol(tx) { print(a); // undefined tx.commit(); for (var p in a) { print("a[" + p + "]: " + a[p]); } } var a = undefined; introspect(pol) { a = { p1: 1, p2: 2, p3: 3 }; }
blackoutjack/jamscript
tests/js/objectLiteral1.js
JavaScript
bsd-3-clause
225
import Explorer, { ExplorerToggle, initExplorer } from './index'; describe('Explorer index', () => { it('exists', () => { expect(Explorer).toBeDefined(); }); describe('ExplorerToggle', () => { it('exists', () => { expect(ExplorerToggle).toBeDefined(); }); }); describe('initExplorer', () =...
iansprice/wagtail
client/src/components/Explorer/index.test.js
JavaScript
bsd-3-clause
766
// @flow import React from "react" import type { ChildrenArray } from "react" import { MDCToolbar } from "@material/toolbar/dist/mdc.toolbar" export default class Toolbar extends React.Component<*, void> { toolbar: null toolbarRoot: ?HTMLElement props: { onClickMenu: () => void, children: ChildrenArray<...
mitodl/odl-video-service
static/js/components/material/Toolbar.js
JavaScript
bsd-3-clause
1,230
// Copyright (c) 2014, Google Inc. Please see the AUTHORS file for details. // All rights reserved. Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. function PromiseCompleter() { this.promise = new Promise(function(resolve, reject) { this.resolve_ = resolve; ...
devoncarew/spark
cde-polymer-designer.dart/lib/cde_polymer_designer.js
JavaScript
bsd-3-clause
13,391
// Copyright 2014 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. 'use strict'; /** * A helper namespace used by integration_tests.js. */ var testsHelper = { /** * The base URL where all test archives are located...
endlessm/chromium-browser
chrome/browser/resources/chromeos/zip_archiver/unpacker-test/js/integration_test_helper.js
JavaScript
bsd-3-clause
12,113
function makeCollapsible(target, item, collapsible, triggerTarget, setInitStatus, setFirstStatus) { var triggerExpand = gettext('Show'); var triggerCollapse = gettext('Hide'); var triggerLink = '<a href="javascript:void(0)"></a>'; var triggerPrepend = ' ('; var triggerAppend = ')'; $(target).find(item).each(fun...
LUKKIEN/django-form-designer
form_designer/media/form_designer/js/jquery-inline-collapsible.js
JavaScript
bsd-3-clause
1,389
// qcode.FilenameCollisionChecker - takes an url and any additional post data, returns a "checker" function // checker function - takes an array of files, returns a promise of an array of accepted files // Uses the url, the filename, and any additional data to test for filename collision and ask the user to confirm. ;v...
qcode-software/qcode-ui
js/qcode.FileNameCollisionChecker.js
JavaScript
bsd-3-clause
2,524
/* * Copyright 2019 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. */ /** * Queries Payment Request with some empty parameters. * Regression test for: https://crbug.com/1022810 * @return {Promise<boolean>} - Whethe...
endlessm/chromium-browser
components/test/data/payments/empty_parameters.js
JavaScript
bsd-3-clause
705
if (typeof(RtStat) == "undefined") { RtStat = {}; } RtStat.WebSocketClient = function (config) { var webSocket; var connected = false; var protocol; var responseCommands = ['welcome', 'error', 'push', 'version']; if (!config) { config = {}; } this.connect = function (uri) { ...
feedbee/rt-stat
public/client.js
JavaScript
bsd-3-clause
4,298
var group__sparse__solvers = [ [ "General matrices", "group__sparse__gesv.html", "group__sparse__gesv" ], [ "Symmetric/Hermitian positive definite", "group__sparse__posv.html", "group__sparse__posv" ] ];
maxhutch/magma
docs/html/group__sparse__solvers.js
JavaScript
bsd-3-clause
211
function gettool(req, res) { var fileName = gettool.root +req.path; res.sendFile(fileName, function (err) { if (err) { console.log(err); res.status(err.status).end(); } else { console.log('Sent:', req.path); } }); } exports.gettool = gettool;
Meanor221/CMPSC421-Website
Syllabus/syllabus.js
JavaScript
isc
308
var dificildecision = function() { "use strict"; }; dificildecision.prototype = { is_animating : false, site_url : ('https:' == document.location.protocol ? 'https://' : 'http://') + 'dificil.dev/app_dev.php/dificildecision/', current_decision : null, decisiones_seen : 0, current_history_hash : makeid(), dis...
robhunt3r/web
web/assets/main/js/dificildecision.js
JavaScript
mit
10,722
// --------------------------------------------------------------------------------- // Patterns for methods" parameters // --------------------------------------------------------------------------------- STATE_PAT = { changePwd: Match.Optional(String), enrollAccount: Match.Optional(String), forgotPwd: ...
rawGem/ua-core
lib/core.js
JavaScript
mit
26,025
'use strict'; // The Console constructor is not actually used to construct the global // console. It's exported for backwards compatibility. const { ArrayFrom, ArrayIsArray, Boolean, Error, Map, MathFloor, Number, ObjectDefineProperties, ObjectDefineProperty, ObjectKeys, ObjectPrototypeHasOwnPro...
enclose-io/compiler
current/lib/internal/console/constructor.js
JavaScript
mit
19,193
'use strict'; define([ 'jquery', './google-maps' ], function($, gmaps) { function AutoComplete(options) { this.$el = options.$el; this.el = this.$el[0]; this.$input = this.$el.find('input'); this.input = this.$input[0]; this.map = options.map; this.marker = ...
neocotic/thebroonline.com
public/js/lib/auto-complete.js
JavaScript
mit
1,328
'use strict'; angular.module('app').controller('EquipCtrl', function($scope, mafenSession) { 'ngInject'; $scope.mafenSession = mafenSession; $scope.transferItem = function(id) { $scope.mafenSession.send({ action: 'transfer', data: { id: id } }); }; });
pil-a/mafen
web/client/scripts/controllers/EquipCtrl.js
JavaScript
mit
298
const args = ["start"]; const opts = { stdio: "inherit", cwd: "frontend", shell: true }; require("child_process").spawn("npm", args, opts);
tanzdervampire/website
start-client.js
JavaScript
mit
153
import { LOGIN_REQUEST, LOGIN_SUCCESS, LOGIN_FAILURE, LOGOUT_REQUEST, LOGOUT_SUCCESS, LOGOUT_FAILURE } from "../actions/auth"; import { loadUserProfile } from "../utils/apiUtils"; const initialState = { user: null, password: null, userRole: null, loggingIn: false, loggingOut: false, loginError...
skymaynes/next-to-go
src/reducers/auth.js
JavaScript
mit
1,379
/* * load plugins */ const pkg = require('./package.json') const banner = [ '/**', ' * <%= pkg.name %> - <%= pkg.description %>', ' * @version v<%= pkg.version %>', ' * @link <%= pkg.homepage %>', ' * @license <%= pkg.license %>', ' */', '' ].join('\n') // gulp const gulp = require('gulp') // load a...
ten1seven/what-input
Gulpfile.js
JavaScript
mit
3,290
/* (The MIT License) Copyright (C) 2005-2013 Kai Davenport 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, m...
binocarlos/quarry.io
lib/network/tools/heartbeat.js
JavaScript
mit
1,933
'use strict'; var express = require('express'); var router = express.Router(); var Blog = require('../models/blogs'); router.get('/',function(res, req, next){ var is_login = res.query.is_login; console.log(typeof is_login); console.log('fdsfdsafdsa'); if(is_login=='true'){ Blog.find(function(er...
YaFeiWyf/React-Blog
server/routes/blogList.js
JavaScript
mit
1,658
const BaseAbility = require('../baseability'); const Costs = require('../costs'); class OutOfShadowsAction extends BaseAbility { constructor() { super({ cost: Costs.payReduceableGoldCost('outOfShadows') }); this.title = 'Bring out of shadows'; } isAction() { ret...
cryogen/throneteki
server/game/PlayActions/OutOfShadowsAction.js
JavaScript
mit
1,279
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var chai_1 = require("chai"); var Clone_1 = require("./Clone"); describe('clone', function () { it('should clone simple objects', function () { var test = { a: 1, b: 2 }; chai_1.assert.deepEq...
SpawnTree/SpawnTree.github.io
js/xterm/lib/utils/Clone.test.js
JavaScript
mit
2,984
"use strict"; const sinon = require("sinon"); describe("config", function () { let config, fakes; beforeEach(function() { fakes = { logger: sinon.spy(), prepareCertificate: sinon.stub(), prepareToken: sinon.stub(), prepareCA: sinon.stub(), }; config = require("../lib/config")...
asinghani/AngelHack2017
node_modules/apn/test/config.js
JavaScript
mit
9,120
require("./object-assign-polyfill.js"); // React determines if it can depend on the DOM at require-time, so if we don't // set this up beforehand it will complain about not being able to do things // with the DOM. // Perhaps a bug in React? var jsdom = require("jsdom"); global.window = jsdom.jsdom().createWindow('<ht...
redsunsoft/react-components
test/test-helper.js
JavaScript
mit
419
--- --- var browserData = { {% for post in site.posts reversed | sort: title %} {% if post.layout == 'data' %} "{{post.id | replace:'"','\"'}}": { "category" : "{{post.category}}", "data" : "{{post.data}}", "x" : "{{post.column}}", "xFormat" : "{{post.xInputFormat}}", "xTickFormat" : "{{post.xTic...
DataSF/data-hub-starter
assets/js/core/databrowser.js
JavaScript
mit
1,338
module.exports = { devtool: 'inline-source-map', module: { rules: [{ enforce: "post", test: /\.ts$/, use: "istanbul-instrumenter-loader" }] }, resolve: { modules: ["node_modules"] } };
mansurg/typescript-project-seed
config/webpack.testing.js
JavaScript
mit
264
'use strict'; const Utils = require('./utils'); const BelongsTo = require('./associations/belongs-to'); const BelongsToMany = require('./associations/belongs-to-many'); const InstanceValidator = require('./instance-validator'); const QueryTypes = require('./query-types'); const sequelizeErrors = require('./errors'); c...
darwinserrano/sequelize
lib/model.js
JavaScript
mit
163,261
//>>built define(["dojo/has","dojo/sniff"],function(a){a.add("indexeddb",!!(window.indexedDB||window.webkitIndexedDB||window.mozIndexedDB));return a});
ycabon/presentations
2020-devsummit/arcgis-js-api-road-ahead/js-api/dojox/store/db/has.js
JavaScript
mit
151
version https://git-lfs.github.com/spec/v1 oid sha256:f48b6576542e3ab3a00572ded5f4667b20d9eb8447fd4ea1c0d85ef04de42490 size 17185
yogeshsaroya/new-cdnjs
ajax/libs/ammaps/3.13.0/maps/js/boliviaHigh.js
JavaScript
mit
130
const stringify = JSON.stringify const parse = JSON.parse /** * Deeply clone object using serialization. * Expects object to be plain and without cyclic dependencies. * * http://jsperf.com/lodash-deepclone-vs-jquery-extend-deep/6 * * @type {Object} obj * @return {Object} */ export default function clone(obj) {...
alexkuz/jss
src/clone.js
JavaScript
mit
354
// EDITOR CONSTRUCTOR import { CodeMirror } from "./CodeMirror" export { CodeMirror } from "./CodeMirror" import { eventMixin } from "../util/event" import { indexOf } from "../util/misc" import { defineOptions } from "./options" defineOptions(CodeMirror) import addEditorMethods from "./methods" addEditorMethods(...
o0baozi0o/Collaborative-Editor
finalProject651/static/public/codemirror/src/edit/main.js
JavaScript
mit
2,038
foo = 'foo'; foo = {}; foo.bar = 'foo.bar'; foo['bar'] = {}; foo['bar'].baz = 'foo[bar].baz'; foo['bar']['baz'] = {}; foo.bar['baz'].boom = 'foo.bar[baz].boom'; foo.bar['baz']['boom'] = {}; foo.bar['baz']['boom'].bam = 'foo.bar[baz][boom].bam'; foo.bar.baz.boom.bam.invalid = 'property assignment on string';
aguadev/aguadev
html/js-doc-parse/tests/assignments.js
JavaScript
mit
308
var React = require('react'); require('react/addons'); var TU = React.addons.TestUtils; var expect = require('must'); var Astarisx = require('../src/core'); var StateManager = require('../src/stateManager'); //Only initialize persons dataContext var ControllerViewModel = Astarisx.createCVMClass({ mixins:[require('....
zuudo/astarisx
test/setState.spec.js
JavaScript
mit
19,413
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M3 3v18h18V3H3zm6 14H7v-7h2v7zm4 0h-2V7h2v10zm4 0h-2v-4h2v4z" /></g></React.Fragment> , 'PollSharp');
allanalexandre/material-ui
packages/material-ui-icons/src/PollSharp.js
JavaScript
mit
281
define('ignored-module-name', ['$'], function ($) { function Button(text) { return $('<button/>').text(text); } return Button; });
pierrec/js-xxhash
node_modules/lmd/examples/plugins/amd/js/button.js
JavaScript
mit
153
var rand = Math.floor(Math.random() * 3 * 1000); // up to three seconds console.log('dying in ' + rand + 'ms'); setTimeout(function() { process.exit(1); }, rand);
ifit/optimus
test/random_death.js
JavaScript
mit
166
import React from 'react' import Icon from 'react-icon-base' const FaFemale = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m34.1 23.6q0 0.9-0.7 1.5t-1.5 0.6q-1.1 0-1.8-0.9l-5-7.7h-1v3l5.5 9.2q0.2 0.3 0.2 0.7 0 0.6-0.4 1t-1 0.4h-4.3v6.1q0 1-0.8 1.8t-1.7 0.7h-3.6q-1 0-1.8-0.7t-0.7-1.8v-6.1h-...
bengimbel/Solstice-React-Contacts-Project
node_modules/react-icons/fa/female.js
JavaScript
mit
631
import HomePage from '../../../src/components/HomePage/HomePage' // eslint-disable-line describe('components/HomePage/HomePage', () => { it('should work') })
esex/esex
test/components/HomePage/HomePageTest.js
JavaScript
mit
161
function escapeId(id) { /* From: http://www.w3.org/TR/CSS2/syndata.html In CSS, identifiers (including element names, classes, and IDs in selectors) can contain only the characters [a-zA-Z0-9] and ISO 10646 characters U+00A0 and higher, plus the hyphen (-) and the underscore (_); they cannot st...
xigt/xigtviz
xigtviz.js
JavaScript
mit
18,086
/////////////////////////////////////////////////////////////////////////////// // // AutobahnJS - http://autobahn.ws, http://wamp.ws // // A JavaScript library for WAMP ("The Web Application Messaging Protocol"). // // Copyright (c) Crossbar.io Technologies GmbH and contributors // // Licensed under the MIT Licens...
tavendo/AutobahnJS
packages/autobahn/test/test_serialization_cbor.js
JavaScript
mit
2,373
/* globals $, geo, utils */ var polygonDebug = {}; // Run after the DOM loads $(function () { 'use strict'; var query = utils.getQuery(); var map = geo.map({ node: '#map', center: { x: -88.0, y: 29 }, zoom: 4 }); if (query.map !== 'false') { map.createLayer('osm'); } var...
matthewma7/geojs
examples/polygons/main.js
JavaScript
mit
2,157
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let NextWeek = props => <SvgIcon {...props}> <path d="M20 7h-4V5c0-.55-.22-1.05-.59-1.41C15.05 3.22 14.55 3 14 3h-4c-1.1 0-2 .9-2 2v2H4c-1.1 0-2 .9-2 2v11c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V9c0-1.1-.9-2-2-2zM10 ...
AndriusBil/material-ui
packages/material-ui-icons/src/NextWeek.js
JavaScript
mit
467
'use strict' var assert = require('assert') , core = require('../index') , Stanza = core.Stanza , Message = core.Message describe('Message', function() { it('is an instanceof Stanza', function() { var s = new Message() assert(s instanceof Stanza) }) it('has "iq" as node name', func...
fritx/node-xmpp-core
test/Message.js
JavaScript
mit
638
/** * @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.editorConfig = function( config ) { config.extraPlugins = 'eqneditor'; // Define changes to default configuration here. For example: // config.lang...
jugalrathore/gradeupfinal
ckeditor/config.js
JavaScript
mit
368
/** * Utestjs JavaScript testing library. * * Copyright (c) Krystian Pietruszka <kpietru@lokolab.net> * License MIT */ /** * @param {!string} name * @param {!Function} callback * * @return {!void} */ var test = function(name, callback) { document.querySelectorAll('#results')[0].innerHTML += '<dt>' + name...
lokolab/lui
tests/lib/utestjs-0.0.1.js
JavaScript
mit
3,032
import React from 'react' import List from 'src/elements/List/List' import ListContent from 'src/elements/List/ListContent' import ListDescription from 'src/elements/List/ListDescription' import ListHeader from 'src/elements/List/ListHeader' import ListIcon from 'src/elements/List/ListIcon' import ListItem from 'src/e...
aabustamante/Semantic-UI-React
test/specs/elements/List/List-test.js
JavaScript
mit
3,080
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @generated SignedSource<<9c8c237f60708e8828ea154fb900a403>> * @flow * @lightSyntaxTransform * @nogrep */ /* eslint-disable ...
atxwebs/relay
packages/relay-runtime/store/__tests__/__generated__/RelayModernEnvironmentExecuteMutationWithGlobalInvalidationTestCreateCommentMutation.graphql.js
JavaScript
mit
3,920
angular.module('pu.loanquery.services') .service("LoanQueryService",function($window,RestApi,$uibModal){ this.getLoanCustList = function(){ return RestApi.all("/loanquery/getLoanCustList").getList(); }; this.getLoanCustApplyInfo=function(appId){ return RestApi.one("/l...
dedp1984/gps_client
app/module_loanquery/services/LoanQueryService.js
JavaScript
mit
3,019
/** * Copyright 2014 Google Inc. 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 appli...
MonoHearted/Flowerbless
node_modules/youtube-api/node_modules/googleapis/apis/appsactivity/v1.js
JavaScript
mit
3,131
var searchData= [ ['move',['move',['../class_ts3_api_1_1_client.html#a1673758a952af1d35e8e7cd1ee2797e7',1,'Ts3Api::Client']]] ];
Exus1/TeamSpeak3-C-Query-API
docs/html/search/functions_8.js
JavaScript
mit
131
/** * Set and run a batch request */ 'use strict' /** * dependencies */ const ProgressBar = require('progress') const Batch = require('batch') class Request { /** * @constructor * * @param {Promise} getObjects A promise that resolves to the target objects * @param {S3} The S3 instance used to int...
littlstar/s3renity
lib/Request.js
JavaScript
mit
16,352
webpackJsonp([0xa2868bfb69fc9000],{"./node_modules/json-loader/index.js!./.cache/json/404-html.json":function(o,n){o.exports={pathContext:{}}}}); //# sourceMappingURL=path---404-html-586c7e095e534a3909ec.js.map
smartbinaryllc/website
docs/path---404-html-586c7e095e534a3909ec.js
JavaScript
mit
210
var spawn = require('child_process').spawn, exec = require('child_process').exec, path = require('path'), Promise = require('bluebird'), isThere = require('is-there'), _ = require('underscore'); var DiffDetect = module.exports = function(storagePath) { this.storagePath = storagePath; }; DiffDetect.prototy...
DURAARK/duraark-geometricenrichment
src/lib/diffdetect/diffdetect.js
JavaScript
mit
2,548
/*! Parker v0.0.0 - MIT license */ 'use strict'; var CssDeclaration = require('../lib/CssDeclaration'); module.exports = { id: 'z-indexes', name: 'Z-Indexes', type: 'declaration', aggregate: 'list', format: 'list', measure: function (raw) { var declaration = new CssDeclaration(raw); ...
researchgate/parker
metrics/ZIndexes.js
JavaScript
mit
553
'use strict';"use strict"; // Public API for util var decorators_1 = require('./util/decorators'); exports.Class = decorators_1.Class; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtNG5vM1p...
cheng-jie/angular2_learn
node_modules/angular2/src/core/util.js
JavaScript
mit
625
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path d="M22 11v2H9V7h9c2.21 0 4 1.79 4 4zM2 14v2h6v2h8v-2h6v-2H2zm5.14-1.9c1.16-1.19 1.14-3.08-.04-4.24-1.19-1.16-3.08-1.14-4.24.04-1.16 1.19-1.14 3.08.04 4.24 1.19 1.16 3.08 1.14 4.24-.04z" /...
allanalexandre/material-ui
packages/material-ui-icons/src/AirlineSeatFlat.js
JavaScript
mit
399
Convergence.connectAnonymously(CONVERGENCE_URL).then(domain => { return domain.models().openAutoCreate({ collection: "example-input-binder", id: convergenceExampleId, data: defaultData, ephemeral: true }); }).then(model => { const textInput = document.getElementById("textInput"); ConvergenceInpu...
convergencelabs/examples
src/examples/input-elements/example.js
JavaScript
mit
2,071
var Timeline = function () { /*============ PRIVATE VARIABLES AND METHODS ============*/ var scope = {start:0, end:0}; var currentRealTime = 0; var currentScopedTime = 0; var getScopedTime = function (time_in) { return time_in - scope.start; }; /*============ PUBLIC METHODS ...
ostera/docular
lib/scripts/Timeline.js
JavaScript
mit
1,405