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
/** * @author Gilles Coomans <[email protected]> * */ if (typeof define !== 'function') { var define = require('amdefine')(module); } define(["require", "./marked", "./directives-parser", "./directives", "./utils"], function(require, marked, directivesParser, directives, utils){ var makro = function...
deepjs/deepjs.github.io
libs/kroked/lib/makro.js
JavaScript
apache-2.0
8,751
var gulp = require('gulp'); var istanbul = require('gulp-istanbul'); var mocha = require('gulp-mocha'); var gp_deploy = require('gulp-gh-pages'); var open = require("gulp-open"); var rename = require("gulp-rename"); require('shelljs/global'); gulp.task('test', function (cb) { gulp.src(['db/**/*.js']) .pipe(ist...
i5ting/ichat
server/gulpfile.js
JavaScript
apache-2.0
1,365
var MSG = { title: "Còdixi", blocks: "Brocus", linkTooltip: "Sarva e alliòngia a is brocus.", runTooltip: "Arròllia su programa cumpostu de is brocus in s'àrea de traballu.", badCode: "Errori in su Programa:\n%1", timeout: "Giai lòmpius a su màssimu numeru de repicus.", discard: "Scancellu su %1 de is bro...
markocelan/blockly-minecraft
minecraft/msg/sc.js
JavaScript
apache-2.0
1,129
module.exports = { "version": "1.2.0", "timeStamp": 1422863440.043, "count": 38, "id": 1212, "file": "/Users/baranovs/Desktop/texts.psd", "bounds": { "top": 0, "left": 0, "bottom": 1024, "right": 1024 }, "selection": [ 6 ], "resolution": 14...
adobe-research/svgObjectModelGenerator
tests/data/text-styling2-data.js
JavaScript
apache-2.0
45,623
/*var article=require('./request/article.js'); console.log(article);*/ /** * 导出所有模块需要用到接口 * 一级属性:模块名 * 一级属性中的方法:当前模块需要用的接口 * @type {Object} */ var request=[{ module:'user', name:'用户管理', list:require('./request/user.js') },{ module:'article', name:'文章管理', list:require('./request/article.js') },{ module:'ord...
liliangali/qudao
vue2/src/config/request.js
JavaScript
apache-2.0
669
// Copyright 2008 The Closure Library 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 requ...
nanaze/closure-rhino-fork
closure/goog/fx/draglistgroup.js
JavaScript
apache-2.0
44,356
// Copyright 2017 The Kubernetes 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 applicable law or a...
kenan435/dashboard
src/app/frontend/namespace/detail/info_component.js
JavaScript
apache-2.0
883
var quantidade =0; var nomeArtigo; var artigoCategoria = "input:text[name='articleForm:articleCategory_input']"; $(document).ready(function (e) { $('.addArtigo').click(function (e) { e.preventDefault(); $(".modalFrame12 h3").html("Adicionar Novo Artigo"); $(".articleNA").val(""); $(...
JIGAsoftSTP/NICON
web/resources/js/Administracao.js
JavaScript
apache-2.0
4,812
/* @flow strict-local */ import format from 'date-fns/format'; import isToday from 'date-fns/is_today'; import isYesterday from 'date-fns/is_yesterday'; import isSameYear from 'date-fns/is_same_year'; import tz from 'timezone/loaded'; export { default as isSameDay } from 'date-fns/is_same_day'; export const shortTime...
vishwesh3/zulip-mobile
src/utils/date.js
JavaScript
apache-2.0
1,026
import path from 'path'; import fs from 'fs'; import readdirSyncRecursive from 'fs-readdir-recursive'; import outputFileSync from 'output-file-sync'; import child_process from 'child_process'; import test from 'ava'; import rimraf from 'rimraf'; const fixturesPath = path.join(__dirname, 'fixtures', 'commands'); fs.re...
lidawang/react-server
packages/react-server-cli/test/commands.js
JavaScript
apache-2.0
2,998
/* global UTILS */ 'use strict'; angular.module('alienUiApp').factory('relationshipTopologyService', ['$q', 'componentService', 'toscaService', function($q, componentService, toscaService) { return { /** * Compute a list of node templates that can be valid targets for a given requirement. * ...
ngouagna/alien4cloud
alien4cloud-ui/yo/app/scripts/topology/services/relationship_target_matcher_service.js
JavaScript
apache-2.0
7,871
/* global config, $, APP, Strophe, callstats */ var jsSHA = require('jssha'); var io = require('socket.io-client'); var callStats = null; function initCallback (err, msg) { console.log("Initializing Status: err="+err+" msg="+msg); } var CallStats = { init: function (jingleSession) { if(!config.callSt...
gerges/jitsi-meet
modules/statistics/CallStats.js
JavaScript
apache-2.0
2,405
Ext.define('Pku.view.user.Edit',{ extend:'Ext.window.Window', alias:'widget.useredit', title:'编辑用户信息', layout:'fit', autoShow:'true', initComponent:function(){ this.items=[ { xtype:'form', items:[ { xtype:'textfield', name:'name', fieldLabel:'姓名' }, { xtype:...
PKUSS/IDP
02.Codes/IPDDEV/src/main/webapp/app/view/user/Edit.js
JavaScript
apache-2.0
616
/*! * @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2015 * @version 4.1.8 * * File input styled for Bootstrap 3.0 that utilizes HTML5 File Input's advanced * features including the FileReader API. * * The plugin drastically enhances the HTML file input to preview multiple files on the cli...
le-tri-mulodo/trile.miniblog
htmlApp/js/fileinput.min.js
JavaScript
apache-2.0
87,334
/* * Licensed to the Sakai Foundation (SF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The SF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use th...
jonmhays/3akai-ux
devwidgets/carousel/javascript/carousel.js
JavaScript
apache-2.0
12,650
import getProp from 'lodash.get' import isEmpty from 'lodash.isempty' import moment from 'moment' import PouchDB from './PouchDB-client' import { getSkipass } from './bukovelAPI' const DB_NAME = 'skipasses' const db = new PouchDB(DB_NAME) const prepareToSave = obj => { const objToSave = { _id: getProp(obj, '_id...
blobor/skipass.site
src/app/data-access/skipassRepository.js
JavaScript
apache-2.0
1,413
/** * Copyright 2017 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...
vmarteev/amphtml
tools/experiments/experiments.js
JavaScript
apache-2.0
16,033
/** * Copyright 2016 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...
mkhatib/amphtml
test/functional/test-fixed-layer.js
JavaScript
apache-2.0
19,056
/* @flow */ export { BUTTON_RENDER as default } from './webpack.config';
mstuart/paypal-checkout
webpack.button.render.config.js
JavaScript
apache-2.0
74
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import iconMessages from './icons/en-US'; export default { IndexFilters: { // Did I understand the interpolation syntax? filters: `{quantity, plural, =0 {нет фильтров} =1 {один фильтр} other {# фильтры} }`, }, ...icon...
odedre/grommet-final
src/js/messages/ru-RU.js
JavaScript
apache-2.0
5,144
/* * Web Experience Toolkit (WET) / Boîte à outils de l"expérience Web (BOEW) * wet-boew.github.io/wet-boew/License-en.html / wet-boew.github.io/wet-boew/Licence-fr.html */ /* ----- Polish dictionary (il8n) --- */ ( function( wb ) { "use strict"; /* main index */ wb.i18nDict = { "lang-code": "pl", "lang-native": ...
gmyx/CSHealthCheck
GCDOCS Health Check/wet-boew/js/i18n/pl.js
JavaScript
apache-2.0
8,701
import styled from 'styled-components' import Atomic from '../style/atomic' import { colours } from '../style' export const Error = styled.div` color: ${ colours.error }; font-style: italic; border: 2px dotted ${ colours.error }; border-radius: 4px; ${ ({ atomic }) => Atomic({ ...Error.default.atomic, ...a...
ShandyClub/shandy-club-app
app/universal/shared/components/error.js
JavaScript
apache-2.0
489
// 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...
argv0/cloudstack
ui/scripts/ui/dialog.js
JavaScript
apache-2.0
17,101
const JSONPUtil = { request: function (url) { return new Promise(function (resolve, reject) { var callback = `jsonp_${Date.now().toString(16)}`; var script = document.createElement("script"); // Add jsonp callback window[callback] = function handleJSONPResponse(data) { if (data != ...
mesosphere/marathon-ui
src/js/helpers/JSONPUtil.js
JavaScript
apache-2.0
993
class SettingsController { constructor($log, $state) { 'ngInject'; this.$log = $log; this.$state = $state; } } export default SettingsController;
azavea/raster-foundry
app-frontend/src/app/pages/user/settings/settings.controller.js
JavaScript
apache-2.0
179
var searchData= [ ['saveall',['saveAll',['../d9/dc6/class_main_window.html#a149085ca2d6cce59ecb59dcbf0892c07',1,'MainWindow']]], ['saveas',['saveAs',['../d9/dc6/class_main_window.html#a7fbef0054cdec7bbbf3c06fb12af473c',1,'MainWindow']]], ['saveplayers',['savePlayers',['../d9/dc6/class_main_window.html#aff0a6c08ba...
delfernan/LP
release/doc/html/search/all_f.js
JavaScript
apache-2.0
3,604
define( //begin v1.x content { "days-standAlone-short": [ "Ня", "Да", "Мя", "Лх", "Пү", "Ба", "Бя" ], "months-format-narrow": [ "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12" ], "quarters-standAlone-narrow": [ "1", "2", "3", "4" ], "field-weekday": "Га...
abssi/poc-tijari
dojoLib/toolkit/dojo/dojo/cldr/nls/mn/gregorian.js
JavaScript
apache-2.0
4,430
/** * @classdesc Base class from which all core Flybits models are extended. * @class * @param {Object} serverObj Raw Flybits core model `Object` directly from API. */ var BaseModel = (function(){ var BaseModel = function(serverObj){ BaseObj.call(this); /** * @instance * @memberof BaseModel ...
flybits/flybits.js
src/models/baseModel.js
JavaScript
apache-2.0
664
// Copyright 2016, Google, 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 in wr...
kydev1986/nodejs-docs-samples
bigquery/getting_started.js
JavaScript
apache-2.0
1,952
// Copyright 2009 The Closure Library 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 requ...
teppeis/closure-library
closure/goog/net/xpc/crosspagechannel_test.js
JavaScript
apache-2.0
33,245
'use strict'; var AddonsModel = require('../../../models').Addons; var shortid = require('shortid'); module.exports = function(router) { router.get('/', function(req, res) { AddonsModel.find(function(err, data) { res.json(err ? { 'error': 'API Error', 'message':...
PayPal-Opportunity-Hack-Chennai-2015/YRG-Foundation
admin/controllers/api/addons/index.js
JavaScript
apache-2.0
1,886
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ var jsm = {}; Cu.import("resource://gre/modules/XPCOMUtils.jsm", jsm); var XPCOMUtils = jsm.XPCOMUtils; /** * A ...
sergecodd/FireFox-OS
B2G/gecko/browser/app/profile/extensions/[email protected]/modules/lib/observer-service.js
JavaScript
apache-2.0
5,477
Ti.include('../class/db.js'); Ti.include('../class/const.js'); Ti.include('../viewHelper/solucioDetailsViews.js'); var win = Ti.UI.currentWindow; var objSolucio = Db.retrieveSolucio(win.idSolucio); var votat = objSolucio.votat; var textTitolSolucio = "#"+ win.numSolucio + ': ' +objSolucio.tt; win.title = L("Idea") + ...
pirata-cat/TitaniumPirataCat
old/window/solucioDetailsWindow.js
JavaScript
apache-2.0
5,553
/** * Return the list of attributes of a node. * @method getNodeAttributes * @memberof axe.utils * @param {Element} node * @deprecated * @returns {NamedNodeMap} */ function getNodeAttributes(node) { // eslint-disable-next-line no-restricted-syntax if (node.attributes instanceof window.NamedNodeMap) { // ...
GoogleCloudPlatform/prometheus-engine
third_party/prometheus_ui/base/web/ui/react-app/node_modules/axe-core/lib/core/utils/get-node-attributes.js
JavaScript
apache-2.0
694
// Copyright 2017 The Kubernetes 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 applicable law or a...
kenan435/dashboard
src/test/integration/deploy/deployfromfile_test.js
JavaScript
apache-2.0
1,058
"use strict"; define('forum/rpg/training', ['translator'], function(translator) { var training = {}; training.init = function() { }; return training; });
Holyphoenix/nodebb-plugin-openfantasy
static/lib/openfantasy/training.js
JavaScript
bsd-2-clause
163
var searchData= [ ['end',['end',['../class_html_project.html#a41599236c5e453464627a23cd2314393',1,'HtmlProject']]] ];
semyon2105/simpleHTML
doc/html/search/functions_4.js
JavaScript
bsd-2-clause
120
// Copyright 2013 The Polymer Authors. All rights reserved. // Use of this source code is goverened by a BSD-style // license that can be found in the LICENSE file. (function(scope) { 'use strict'; var HTMLElement = scope.wrappers.HTMLElement; var mixin = scope.mixin; var registerWrapper = scope.registerWrapp...
PolymerLabs/labs
dfreedm/core-icon-study/bower_components/ShadowDOM/src/wrappers/HTMLShadowElement.js
JavaScript
bsd-3-clause
818
import React from 'react'; import {storiesOf} from '@storybook/react'; import {withInfo} from '@storybook/addon-info'; import {number, boolean, array, color} from '@storybook/addon-knobs'; // import {action} from '@storybook/addon-actions'; import ScoreBar from 'app/components/scoreBar'; const stories = storiesOf('Sc...
ifduyue/sentry
docs-ui/components/scoreBar.stories.js
JavaScript
bsd-3-clause
1,670
/** * @license * Copyright (c) 2015 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt * The complete set of contributors may be f...
PolymerLabs/web-component-workspace
lib/commands.js
JavaScript
bsd-3-clause
6,471
/* f as callable(int) as int = { i | return (i * 2) } def time(block as callable()): pass */ var f:function(int):int = function(i) { return i*2; }; function time(block: function()) {}
bamboo/unityscript
tests/parser/function-types-1.js
JavaScript
bsd-3-clause
186
c3.load("../data/xkcd/c3_data.json"); var C = c3.color.length, W = c3.terms.length, map = {}; for (var i=0; i<W; ++i) { map[c3.terms[i]] = i; } $(function() { for (var w=0; w<W; ++w) { c3.terms.center[w].examples = c3.terms.relatedColors(w, 16); c3.terms.center[w].examples.sort(function(a, b) { ...
jheer/c3
examples/dictionary.js
JavaScript
bsd-3-clause
4,215
// test api var iqengines = require('./lib/iqengines.js'); var assert = require('assert'); var device_id = (new Date()).toISOString(); var api = new iqengines.Api(); var testCase = require('nodeunit').testCase; module.exports.testEnvironmentSetup = testCase({ test: function (test) { test.ok(proce...
marks/nodejs-iqengines
tests.js
JavaScript
bsd-3-clause
2,003
/* global cdb */ var ExportMapView = require('../../../../../../javascripts/cartodb/common/dialogs/export_map/export_map_view'); // Just duplicated from old modal to maintain the exiting tests at least. describe('common/dialogs/export/export_view', function () { var view; beforeEach(function () { view = new Ex...
CartoDB/cartodb
lib/assets/test/spec/cartodb/common/dialogs/export_map/export_map_view.spec.js
JavaScript
bsd-3-clause
1,218
require('../support/test_helper'); var assert = require('../support/assert'); var Windshaft = require('../../lib/windshaft'); var ServerOptions = require('../support/server_options'); var testClient = require('../support/test_client'); describe('torque tiles at 0,0 point', function() { var server = new Windshaft...
HydroLogic/Windshaft
test/acceptance/torque_zero_zero.js
JavaScript
bsd-3-clause
2,644
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /** * Rxjs observers only triggered when the async action is matched/enabled */ const Observable_1 = require("rxjs/Observable"); exports.Observable = Observable_1.Observable; const filter_1 = require("rxjs/operators/filter"); const Subject_1...
beckend/redux-mw-async-flow
build-esnext/middleware/middleware-observers.js
JavaScript
isc
1,237
var Reflux=require("reflux"); var actions=Reflux.createActions([ "add" ,"clear" ]); module.exports=actions;
ksanaforge/testreflux
src/actions.js
JavaScript
isc
109
var request = require('request'); var async = require('async'); var fs = require('fs'); var crypto = require('crypto'); var backUpFileStream; var recoveryFileStream; exports.Reporting = Reporting; function Reporting(config, lgr) { validateConfig(config); this.config = config; if (lgr) { this.lgr = lgr; } ...
briangallagher/testDrivenDevelopment
node_modules/fh-mbaas-api/node_modules/fh-mbaas-express/node_modules/fh-reportingclient/lib/fh-reporting.js
JavaScript
mit
6,010
import React from 'react'; import {BaseMixin, ContentMixin} from './../../common/common.js'; import './label.less'; export default React.createClass({ //@@viewOn:mixins mixins: [ BaseMixin, ContentMixin ], //@@viewOff:mixins //@@viewOn:statics statics: { tagName: "UU5.Forms.Label", class...
UnicornCollege/ucl.itkpd.configurator
client/node_modules/uu5g03/doc/main/server/public/data/source/uu5-forms-v3-internal-label.js
JavaScript
mit
1,523
/* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ '...
lmazuel/azure-sdk-for-node
lib/services/webSiteManagement2/lib/models/functionEnvelope.js
JavaScript
mit
4,334
/* * MelonJS Game Engine * Copyright (C) 2011 - 2013, Olivier BIOT * http://www.melonjs.org * */ (function($) { /** * a generic 2D Vector Object * @class * @extends Object * @memberOf me * @constructor * @param {Number} [x=0] x value of the vector * @param {Number} [y=0] y value of the vector */...
CreativeOutbreak/melonJS
src/math/vector.js
JavaScript
mit
8,644
/** * @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 */ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js (function(global) { glo...
Toxicable/angular
packages/common/locales/global/en-NR.js
JavaScript
mit
2,409
// Karma configuration // Generated on Wed Apr 29 2015 16:48:15 GMT-0400 (EDT) module.exports = function(config) { config.set({ // base path that will be used to resolve all patterns (eg. files, exclude) basePath: '', // frameworks to use // available frameworks: https://npmjs.org/browse/keyword/k...
artsy/day-schedule-selector
karma.conf.js
JavaScript
mit
1,655
'use strict'; const helper = require('./common').helper; const validate = require('./common').validate; /** * Tests for the Grant Type of Client. * This follows the testing guide roughly from * https://github.com/FrankHassanabad/Oauth2orizeRecipes/wiki/OAuth2orize-Authorization-Server-Tests */ describe('Grant T...
cmcampione/thingshub
useful-projects/Oauth2orizeRecipes/authorization-server/test/integration/grant_type_client.js
JavaScript
mit
1,025
/* MIT License http://www.opensource.org/licenses/mit-license.php */ "use strict"; const RuntimeGlobals = require("../RuntimeGlobals"); const Template = require("../Template"); const HelperRuntimeModule = require("./HelperRuntimeModule"); class RelativeUrlRuntimeModule extends HelperRuntimeModule { constructor() {...
webpack/webpack
lib/runtime/RelativeUrlRuntimeModule.js
JavaScript
mit
1,178
/* @flow */ import { EventEmitter } from 'events'; import Dispatcher from "./dispatcher"; import IncomingMessage from "./incoming-message"; import ServerResponse from "./server-response"; let dispatcher: Dispatcher; export type EmulatedXMLHttpRequestType = { method: string, _parsedUrl: { path: string, pat...
foraproject/isotropy-http-in-browser
src/server.js
JavaScript
mit
2,549
StartTest(function(outerT) { outerT.testExtJS(function (t) { var viewport = new Ext.Viewport({ id : 'viewport', items : [ { id : 'panel1', title : '...
arthurakay/AppInspector
app/test/siesta-2.0.5-lite/tests/530_extjs_composite_query.t.js
JavaScript
mit
3,257
import { Button, Icon } from '@rocket.chat/fuselage'; import React from 'react'; import { useTranslation } from '../../contexts/TranslationContext'; export function ResetSettingButton(props) { const t = useTranslation(); return <Button aria-label={t('Reset')} danger ghost small title={t('Reset')} style...
Sing-Li/Rocket.Chat
client/admin/settings/ResetSettingButton.js
JavaScript
mit
391
function fib(){ var start = 0; var next = 0; function nacci(){ if ((start == 0) && (next == 0)){ next = 1; sum = 1; }//end if else{ var sum = start + next; start = next; next = sum; }//end else console.log(s...
dallaspythondojo/nice
Hodge_Zach/Assignments/fib_nacci/fib_nacci.js
JavaScript
mit
611
/* product all the arguments passed in to the function usage: product(1, 2) returns 2 product(1, 2, 3) returns 6 product(1, 2, 3, 4) returns 24 */ var product = function () { var args = Array.prototype.slice.call(arguments); var product = args.reduce(function (a, b) { return a * b; ...
Sha-Grisha/anything.js
src/product.js
JavaScript
mit
383
#!/usr/bin/env node ;(function(undefined) { 'use strict'; /** Load modules */ var fs = require('fs'), path = require('path'), vm = require('vm'), build = require('../build.js'), minify = require('../build/minify'), _ = require('../lodash.js'); /** The unit testing framework */ ...
sifu/trellonext
node_modules/grunt-bower-hooks/node_modules/lodash/test/test-build.js
JavaScript
mit
39,220
'use strict'; /* global describe, it */ var assert = require('chai').assert; var Tests = require('../tests.js'), tmpTests = require('./tmp-classes.fixture.js').Tests; describe('Initialization', function() { it('Should be possible to initialize Tests', function() { assert.isFunction(Tests, 'Require Tests re...
Notalib/Dori
js/test/tests.spec.js
JavaScript
mit
4,244
/* */ "format register"; "use strict"; var _prototypeProperties = function (child, staticProps, instanceProps) { if (staticProps) Object.defineProperties(child, staticProps); if (instanceProps) Object.defineProperties(child.prototype, instanceProps); }; var _inherits = function (subClass, superClass) { if (typeof su...
Maidan-hackaton/ua-tenders-aurelia
jspm_packages/github/aurelia/[email protected]/commonjs/template-controller.js
JavaScript
mit
3,654
"use strict"; /* global casper */ module.exports.init = function (steps) { steps .when("I am on product page", function () { casper.open(document.app.parameters.base_url + "search") .thenClick('.product-thumbnail a'); }) .then("I should see basic product info", ...
GrandLTU/ongr-sandbox
src/ONGR/DemoBundle/Tests/Acceptance/Steps/Library/Product/product.js
JavaScript
mit
805
'use strict'; // Configuring the Articles module angular.module('diapers').run(['Menus', function(Menus) { // Set top bar menu items Menus.addMenuItem('topbar', 'Diapers', 'diapers', 'dropdown', '/diapers(/create)?'); Menus.addSubMenuItem('topbar', 'diapers', 'List Diapers', 'diapers'); Menus.addSubMenuItem('...
dproebsting/GroupEight
public/modules/diapers/config/diapers.client.config.js
JavaScript
mit
379
'use strict'; module.exports = function(grunt) { var fs = require('fs'), swig = require('swig'), path = require('path'); grunt.registerMultiTask('swig', 'swig templater', function(tpl_context) { var config = this, context = tpl_context || '', pages = [], date = new Date(),...
uhtred/grunt-swig
tasks/swig.js
JavaScript
mit
3,332
var bigInt = require('big-integer'); var ecdsa = require('ecdsa'); var config = require('./config.js'); var crypto = require('./crypto.js'); function StackEmptyException() { this.toString = () => { return 'Attempted to pop from an empty stack.'; }; } var serialize = (data) => { return data.toStrin...
kustomzone/blockScript
src/script-stack.js
JavaScript
mit
10,797
/** * A overlay that renders ALL available rows & columns positioned on top of the original Walkontable instance and all other overlays. * Used for debugging purposes to see if the other overlays (that render only part of the rows & columns) are positioned correctly * @param instance * @constructor */ function Wal...
digitaltech/handsontable
src/3rdparty/walkontable/src/debugOverlay.js
JavaScript
mit
2,521
/* * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. * Copyright (C) 2008 Matt Lilek <[email protected]> * Copyright (C) 2009 Joseph Pecoraro * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1...
monaca/chrome-devtools-app
app/devtools/front_end/elements/ElementsTreeElement.js
JavaScript
mit
58,106
/* * Copyright (c) 2015, Bruce Schubert <[email protected]> * 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 * ...
WorldWindEarth/WWExplorerLib
src/model/util/Tree.js
JavaScript
mit
2,460
Meteor.settings.contactForm = { emailTo: '[email protected]' }; var emailData = { name: 'Test Name', email: '[email protected]', subject: 'Test Subject', message: 'Test Message' }; var dataSent = null; // Email sending stub Email = { send: function(data) { dataSent = data; } }; Tinytest.add('Schema', function...
pchomphoosang/meteor-traning-
packages/meteor-contact-form/contact-form-tests.js
JavaScript
mit
2,050
define([ 'jquery', 'underscore', 'backbone', 'views/LoginView', 'authentication', ], function ($, _, Backbone, LoginView, Authentication) { var LoginRouter = Backbone.Router.extend({ routes: { 'login' : 'login', 'logout' : 'logou...
alex-driedger/Nurdles
clients/web/js/routers/LoginRouter.js
JavaScript
mit
624
'use strict'; // Flags: --experimental-vm-modules const common = require('../common'); const assert = require('assert'); const { types } = require('util'); const { SourceTextModule } = require('vm'); (async () => { const m = new SourceTextModule('globalThis.importResult = import("");', { importModuleDynamica...
enclose-io/compiler
current/test/parallel/test-vm-module-dynamic-namespace.js
JavaScript
mit
710
var env = require('../env.js'); var gulp = require('gulp'); var tar = require('gulp-tar'); var gzip = require('gulp-gzip'); var dateFormat = require('dateformat'); // var revision = require('git-rev-sync') module.exports = function () { return gulp.src(env.folder.dist + '/**/*') // .pipe(tar(revision.short() +...
ekfuhrmann/super-gigi
gulp/tasks/compress.js
JavaScript
mit
456
'use strict'; var common = require('../common'); var assert = require('assert'); var Transform = require('../../').Transform; var _transformCalled = false; function _transform(d, e, n) { _transformCalled = true; n(); } var _flushCalled = false; function _flush(n) { _flushCalled = true; n(); } var t = new Tr...
devlato/readable-stream
test/parallel/test-stream-transform-constructor-set-methods.js
JavaScript
mit
581
(function (window, $, undefined) { 'use strict'; var Samba; Samba = function (dashboard) { var viewModel = new ProcessModel(); viewModel.requestStatus = function () { dashboard.socket.emit('status-samba'); }; viewModel.start = function () { dashboard.socket.emit('start-samba'); }; ...
BrianAdams/openrov-dashboard
src/plugins/13_samba/public/js/samba.js
JavaScript
mit
1,024
var nodemailer = require('nodemailer'); var config = require('../config/global').get('email'); var transpoter = nodemailer.createTransport({ service: config.service, auth: { user: config.username, pass: config.password } }); function Mail(toEmail) { this.toEmail = toEmail; } Mail.prototype.send = fun...
xuxingfan/task-board
library/mail.js
JavaScript
mit
683
/* * Copyright (c) 2015 by Greg Reimer <[email protected]> * MIT License. See mit-license.txt for more info. */ import assert from 'assert' import getMegaSource from './lib/megabyte-stream' import send from './lib/send' import wait from '../lib/wait' import streams from '../lib/streams' import hoxy from '../src/...
tobli/hoxy
test/round.test.js
JavaScript
mit
11,505
var rurl = require('relative-url') var map = {http:'ws', https:'wss'} var def = 'ws' module.exports = function (url, location) { return rurl(url, location, map, def) }
ssbc/pull-ws-server
ws-url.js
JavaScript
mit
172
/* eslint-env jest */ import path from 'path' import fs from 'fs-extra' import { nextBuild } from 'next-test-utils' const appDir = path.join(__dirname, '..') const nextConfig = path.join(appDir, 'next.config.js') describe('Building Firebase', () => { // TODO: investigate re-enabling this test in node 12 environmen...
azukaru/next.js
test/integration/firebase-grpc/test/index.test.js
JavaScript
mit
1,237
require( 'babel-core/register' ); // var s = require( '../src/core/regex' ); var C = require( '../src' ); window.C = C; var StrClause = C.cat( 'foos', C.oneOrMore( C.scat( 'foo' ) ), 'wee', C.zeroOrMore( C.scat( 'weeeeeeee' ) ), 'bars', C.oneOrMore( C.scat( 'bar' ) ) ); var r = C.conform( StrClause, 'foofoofoo...
settinghead/specky
author_experiments/test.tmp.js
JavaScript
mit
6,673
"use strict"; var express = require('express'); var router = express.Router(); /* GET users listing. */ router.get('/', function (req, res, next) { res.send('respond with a resource'); }); module.exports = router;
Elou44/Hyblab2016
presse_ocean/routes/users.js
JavaScript
mit
221
describe("form submission for reporting a problem", function () { var FORM_TEXT = '<form action="ajax-endpoint"><button class="button" name="button" type="submit">Send</button></form>'; var $form, reportAProblemForm; beforeEach(function() { setFixtures(FORM_TEXT); $form = $('form'); reportAProblemFor...
kalleth/static
spec/javascripts/report-a-problem-form-spec.js
JavaScript
mit
2,649
/** * Socket.io configuration */ 'use strict'; var config = require('./environment'); // When the user disconnects.. perform this function onDisconnect(socket) { } // When the user connects.. perform this function onConnect(socket) { // When the client emits 'info', this listens and executes socket.on('info',...
blundercode/logosApp
server/config/socketio.js
JavaScript
mit
1,764
var aleph = angular.module('aleph', ['ngRoute', 'ngAnimate', 'angular-loading-bar', 'ui.bootstrap', 'debounce', 'truncate', 'infinite-scroll']); aleph.config(['$routeProvider', '$locationProvider', 'cfpLoadingBarProvider', function($routeProvider, $locationProvider, cfpLoadingB...
Luthien123/aleph
aleph/static/js/app.js
JavaScript
mit
2,576
import React from 'react'; import MouseEventTable from './mouse-event-table'; import TableInTabs from './table-in-tabs'; import GetPageNumByKeyTable from './expose-api-table'; import { Col, Panel } from 'react-bootstrap'; class Demo extends React.Component { render() { return ( <Col md={ 8 } mdOffset={ 1 }...
neelvadgama-hailo/react-bootstrap-table
examples/js/others/demo.js
JavaScript
mit
1,063
/** * ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components * @version v20.0.0 * @link http://www.ag-grid.com/ * @license MIT */ "use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.leng...
sufuf3/cdnjs
ajax/libs/ag-grid/20.0.0/lib/valueService/valueService.js
JavaScript
mit
12,729
// @flow import * as React from "react"; import { withPhenomicApi, query, BodyRenderer, } from "@phenomic/preset-react-app/lib/client"; import pkg from "../package.json"; import Layout from "./Layout"; import PageError from "./PageError"; import ActivityIndicator from "./ActivityIndicator"; import LatestPosts ...
MoOx/statinamic
examples/react-app-blog/src/Page.js
JavaScript
mit
1,535
var fast = require('../'), underscore = require('underscore'), lodash = require('lodash'), history = require('../test/history'), utils = require('./utils'); var fns = utils.fns('last', 'item', 'return last * item + Math.random()'); var input = [1,2,3,4,5,6,7,8,9,10]; exports['Array::reduce()'] = func...
codemix/fast.js
bench/reduce-10.js
JavaScript
mit
1,140
import"redux";import"./turn-order-8cc4909b.js";import"immer";import"./plugin-random-087f861e.js";import"lodash.isplainobject";import"./reducer-9b2fe64d.js";import"rfc6902";import"./initialize-cd2104ba.js";import"./transport-ce07b771.js";import"./util-89055384.js";export{L as Local,S as SocketIO}from"./socketio-80abb602...
cdnjs/cdnjs
ajax/libs/boardgame-io/0.50.0-alpha.2/esm/multiplayer.min.js
JavaScript
mit
420
/* * @name 슬라이더 * @description 로컬 프로젝트에서 이 예제를 실행하려면, * <a href="http://p5js.org/reference/#/libraries/p5.dom">p5.dom 라이브러리</a> * 를 추가하면 됩니다.<br><br> * 슬라이더를 움직여 배경색의 R,G,B값을 조정해보세요. */ let rSlider, gSlider, bSlider; function setup() { // 캔버스 생성하기 createCanvas(710, 400); textSize(15); noStroke(); // ...
processing/p5.js-website
src/data/examples/ko/16_Dom/04_Slider.js
JavaScript
mit
953
var Marionette = require('backbone.marionette'); var constants = require('utils/constants'); var attachFastClick = require('fastclick'); // View Behaviors require('../behaviors/Navigator'); module.exports = Marionette.ItemView.extend({ el: 'body', events: { 'keyup': 'keyup' }, behaviors: { ...
remydragyn/remy-dragyn-portfolio
src/javascript/app/views/GlobalView.js
JavaScript
mit
1,794
export default "hi";
tivac/modular-css
packages/rollup/test/specimens/stripped-dynamic-imports/b.js
JavaScript
mit
21
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var CONSTANTS={q_dpr1:75,q_dpr2:50,q_dpr3:35,q_dpr4:23,q_dpr5:20},_default=CONSTANTS;exports.default=_default;
cdnjs/cdnjs
ajax/libs/react-imgix/8.6.3/constants.min.js
JavaScript
mit
201
/** * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.add( 'htmlwriter', { init: function( editor ) { var writer = new CKEDITOR.htmlWriter(); writer.forceSimpleAmpersand = editor.config.forc...
SeeyaSia/www
web/libraries/ckeditor/plugins/htmlwriter/plugin.js
JavaScript
gpl-2.0
9,840
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim:set ts=2 sw=2 sts=2 et: */ /* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file e...
freaktechnik/nightingale-hacking
dependencies/vendor/mozjshttpd/test/test_setstatusline.js
JavaScript
gpl-2.0
5,696
var usuariosData = require('./data/usuariosData.js') var sesiones = []; module.exports.seguridad = function (app) { app.use('/api/priv/', function (req, res, next) { var sessionId = req.get('sessionId'); var sesion = getSesion(sessionId); if (sesion) { if (esSesionValida(sesion)) { sesion.timeStamp = ne...
EscuelaIt/Curso-angularjs-FS-2015
25-socket-io/server/seguridad.js
JavaScript
gpl-2.0
2,152
/* *=BEGIN SONGBIRD GPL * * This file is part of the Songbird web player. * * Copyright(c) 2005-2009 POTI, Inc. * http://www.songbirdnest.com * * This file may be licensed under the terms of of the * GNU General Public License Version 2 (the ``GPL''). * * Software distributed under the License is distributed...
freaktechnik/nightingale-hacking
components/moz/dirprovider/test/test_dirprovider.js
JavaScript
gpl-2.0
2,436
/* Highcharts JS v9.3.2 (2021-11-29) Solid angular gauge module (c) 2010-2021 Torstein Honsi License: www.highcharts.com/license */ 'use strict';(function(a){"object"===typeof module&&module.exports?(a["default"]=a,module.exports=a):"function"===typeof define&&define.amd?define("highcharts/modules/solid-gauge",[...
OHSU-FM/reindeer
vendor/assets/javascripts/highcharts/modules/solid-gauge.js
JavaScript
gpl-2.0
4,647
var webpack = require('webpack'); var path = require('path'); // workaround for old node version shipping w/ ubuntu var es6_promise = require('es6-promise').polyfill() var BUILD_DIR = path.resolve(__dirname, 'dist'); var APP_DIR = path.resolve(__dirname, 'src'); var config = { entry: { entry: APP_DIR + '...
flathat/IS4C
fannie/modules/plugins2.0/MobileLane/webpack.config.js
JavaScript
gpl-2.0
1,480