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 |
|---|---|---|---|---|---|
import Ember from 'ember';
import layout from '../../templates/components/one-way-select/option';
const {
Component
} = Ember;
export default Component.extend({
layout,
tagName: ''
});
| dockyard/ember-one-way-input | addon/components/one-way-select/option.js | JavaScript | mit | 193 |
const gulp = require('gulp');
const babel = require('gulp-babel');
const gdt = require('gulp-dev-tasks');
const eslintrc = require('./.eslintrc.json');
gdt.setRules(eslintrc.rules);
gulp.task('build', () =>
gulp.src('src/**/*.js')
.pipe(babel({ presets: ['es2015', 'stage-2'] }))
.pipe(gulp.dest('build/'))
);
... | zoover/hodlog | gulpfile.js | JavaScript | mit | 421 |
import peek42 from './browser/peek42';
export default peek42;
| rpeev/konsole | src/index.browser.js | JavaScript | mit | 63 |
var favicon = require('./includes/favicon.js');
var feed = require('./includes/feed.js');
var retrofitIcon = function (f, callback) {
console.log("Checking ", f.htmlUrl);
favicon.find(f.htmlUrl, function (favicon_url) {
f.icon = favicon_url;
feed.update(f, function (err, data) {
callback(err, data);
... | glynnbird/birdreader | retrofit_favicons.js | JavaScript | mit | 733 |
/**
* Zepernick jQuery plugins
*/
(function($) {
$.fn.dataTableSearch = function(delay) {
//console.log("data table search plugin...");
var dt = this;
this.find("thead input").on( 'keyup', function (event) {
getInput = function() {
return $(event.target);
};
... | rickyalex/cts | assets/js/jQuery.dtplugin.js | JavaScript | mit | 816 |
const path = require('path');
const webpack = require('webpack');
module.exports = {
devtool: 'cheap-module-eval-source-map',
entry: './index.js',
output: {
path: path.join(__dirname, 'dist'),
filename: 'bundle.js',
publicPath: '/static/'
},
module: {
loaders: [
{
test: /\.js?$/... | ahbing/Pure | examples/video/webpack.config.js | JavaScript | mit | 489 |
/*
* JAWStats 0.8.0 Web Statistics
*
* Copyright (c) 2009 Jon Combe (jawstats.com)
*
* 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 limitatio... | webino/JAWStats | js/jawstats.js | JavaScript | mit | 25,586 |
const request = require('request-promise')
const config = require('../tool/config.js')
const api = require('../tool/api.js')
const error = require('../tool/error.js')
const Const = require('../tool/const.js')
const exp = {
URL : '/authenticate',
ACTION : (req, res) => {
try {
const params =... | mignonat/healer | src/server/controller/authentication.js | JavaScript | mit | 1,452 |
define(['./_baseFindIndex', './_baseIsNaN', './_strictLastIndexOf', './toInteger'], function(baseFindIndex, baseIsNaN, strictLastIndexOf, toInteger) {
/** Used as a safe reference for `undefined` in pre-ES5 environments. */
var undefined;
/* Built-in method references for those with the same name as other `loda... | fdeleo/alugaqui-webserver | node_modules/lodash-amd/lastIndexOf.js | JavaScript | mit | 1,479 |
/**
* Copyright 2013 Facebook, 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 ... | hedgerwang/simple_react_py_app | node_modules/react-tools/build/modules/ChangeEventPlugin.js | JavaScript | mit | 11,417 |
version https://git-lfs.github.com/spec/v1
oid sha256:0680588e6712ebab3160ef2c9e5754716d6d2d05b09790964fe828cba5abf8e2
size 2189
| yogeshsaroya/new-cdnjs | ajax/libs/openlayers/2.12/lib/OpenLayers/Format/WMSCapabilities/v1_3.min.js | JavaScript | mit | 129 |
/**
* @module Joy
*/
/**
* This class is used on SpriteSheet's `animations` attribute.
*
* @class SpriteAnimation
* @constructor
*/
var SpriteAnimation = function (options) {
/**
* @attribute parent
* @type {SpriteSheet}
*/
this.parent = options.parent;
/**
* @attribute name
* @type {Strin... | royquintanar/joy.js | lib/render/sprite_animation.js | JavaScript | mit | 1,903 |
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
'use strict';
module.metadata = {
'stability': 'experimental',
'engines': {
'Firefox': '> 28'
}
};
cons... | freesamael/npu-moboapp-programming-fall-2015 | b2g-dist-win32-20151125/modules/commonjs/sdk/ui/button/toggle.js | JavaScript | mit | 3,512 |
import {CssAnimator} from '../src/animator';
import {animationEvent} from 'aurelia-templating';
jasmine.getFixtures().fixturesPath = 'base/test/fixtures/';
describe('animator-css', () => {
var sut;
beforeEach(() => {
sut = new CssAnimator();
});
describe('runSequence function', () => {
var elems;
... | hitesh97/animator-css | test/run-sequence.spec.js | JavaScript | mit | 1,815 |
declare module 'redux-starter-kit' {
declare export type PayloadAction<P: any, T: string = string> = {
type: T,
payload: P,
...
}
}
| splodingsocks/FlowTyped | definitions/npm/redux-starter-kit_v0.x.x/flow_v0.104.x-/redux-starter-kit_v0.x.x.js | JavaScript | mit | 148 |
// Check whether a object is an instance of the given type, respecting model
// factory injections
export default function isInstanceOfType(type, obj) {
return obj instanceof type;
}
| lytics/ember-data.model-fragments | addon/util/instance-of-type.js | JavaScript | mit | 186 |
Xflow.registerOperator("xflow.selectBool", {
outputs: [ {type: 'bool', name : 'result', customAlloc: true} ],
params: [ {type: 'int', source : 'index'},
{type: 'bool', source: 'value'} ],
alloc: function(sizes, index, value) {
sizes['result'] = 1;
},
evaluate: function(result... | Huii/develop_with_vr | src/xflow/operator/default/selectBool.js | JavaScript | mit | 498 |
import shell from 'shelljs';
import path from 'path';
import tmp from 'tmp';
import helpers from './helpers';
const { isWindows, isOSX } = helpers;
tmp.setGracefulCleanup();
const SCRIPT_PATHS = {
singleIco: path.join(__dirname, '../..', 'bin/singleIco'),
convertToPng: path.join(__dirname, '../..', 'bin/convertT... | zucher/nativefier | src/helpers/iconShellHelpers.js | JavaScript | mit | 2,106 |
(function(D,j){D.execute(function(){(function(j){document.createElement("header");var e=function(a){function b(a,b,e){a[e]=function(){d._replay.push(b.concat({m:e,a:[].slice.call(arguments)}))}}var d={};d._sourceName=a;d._replay=[];d.getNow=function(a,b){return b};d.when=function(){var a=[{m:"when",a:[].slice.call(argu... | seagatesoft/webdext | test/amazon_sellers_files/01cTdrPCuSL._RC-71+AWq+0vpL.js,518IrEtjHjL.js,01A18a0oAWL.js,31SQxfpgU+L.js,01kfgaPO2JL.js,01wBjiz9OvL.js,11AmWwI7vaL.js,21o1hvT04xL.js_.js | JavaScript | mit | 230,788 |
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2020 Photon Storm Ltd.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
/**
* Finds the key within the top level of the {@link source} object, or returns {@link defaultValue}
*
* @function Phaser.Utils.Objects.Get... | TukekeSoft/phaser | src/utils/object/GetFastValue.js | JavaScript | mit | 1,070 |
/*!
* Copyright 2016 E.J.I.E., S.A.
*
* Licencia con arreglo a la EUPL, Versión 1.1 exclusivamente (la «Licencia»);
* Solo podrá usarse esta obra si se respeta la Licencia.
* Puede obtenerse una copia de la Licencia en
*
* http://ec.europa.eu/idabc/eupl.html
*
* Salvo cuando lo exija la legislación aplica... | UDA-EJIE/uda-rup | src/rup.calendar.js | JavaScript | mit | 24,871 |
/*
License
Copyright (c) 2015 Nathan Cahill
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publ... | simonmysun/praxis | web.playground/assets/split.js | JavaScript | mit | 12,670 |
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a copy of ... | JaroslawZielinski/magento-backendo | js/mage/adminhtml/moneybookers.js | JavaScript | mit | 10,668 |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon([/*#__PURE__*/_jsx("path", {
d: "M20 4H4v13.17L5.17 16H20V4zm-6 10H6v-2h8v2zm4-3H6V9h12v2zm0-3H6V6h12v2z",
opacity: ".3"
}, "0"), /*#__PURE__*/_jsx("path", {
d: "M20 18c1.1 0 2-.9 2-2V4... | oliviertassinari/material-ui | packages/mui-icons-material/lib/esm/ChatTwoTone.js | JavaScript | mit | 464 |
import Ember from 'ember';
import { moduleForComponent, test } from 'ember-qunit';
import startApp from '../../helpers/start-app';
var App;
moduleForComponent('zip-code-input', 'zip-code-input component', {
setup: function() {
App = startApp();
},
teardown: function() {
Ember.run(App, 'destroy');
},
... | ronco/ember-inputmask | tests/unit/components/zip-code-input-test.js | JavaScript | mit | 1,261 |
var grow = grow || {};
window.grow = grow;
(function(grow){
var toolConfig = {};
grow.ui = grow.ui || {};
grow.ui.showNotice = function(text) {
var notice = document.createElement('div');
notice.classList.add('grow_tool__notice');
if (text) {
notice.appendChild(document.createTextNode(text))... | grow/pygrow | grow/ui/js/composite/ui.js | JavaScript | mit | 2,800 |
var RELANG = {};
RELANG['sq'] = {
html: 'HTML',
video: 'Video',
image: 'Fotografi',
table: 'Tabelë',
link: 'Link',
link_insert: 'Lidh linq ...',
unlink: 'Hiq linkun',
formatting: 'Stilet',
paragraph: 'Paragraf',
quote: 'Kuotë',
code: 'Kod',
header1: 'Header 1',
header2: 'Header 2',
header3: 'Hea... | cremol/symphony-demo | extensions/richtext_redactor/lib/lang/sq.js | JavaScript | mit | 1,958 |
'use strict';
const chalk = require('chalk');
const Task = require('../models/task');
const Watcher = require('../models/watcher');
const Builder = require('../models/builder');
const pDefer = require('p-defer');
class BuildWatchTask extends Task {
constructor(options) {
super(options);
this._builder = nul... | HeroicEric/ember-cli | lib/tasks/build-watch.js | JavaScript | mit | 1,250 |
module.exports={A:{A:{"1":"E A B","2":"H C G EB"},B:{"1":"D p x J L N I"},C:{"1":"0 1 2 3 4 5 6 8 9 R S T U V W X Y Z b c d e f g h i j k l m n o M q r s t u v w y","2":"YB BB","132":"F K H C G E A B D p x J L N I O P Q WB QB"},D:{"1":"0 1 2 3 4 5 6 8 9 F K H C G E A B D p x J L N I O P Q R S T U V W X Y Z b c d e f g ... | AngeliaGong/AngeliaGong.github.io | node_modules/caniuse-lite/data/features/mp3.js | JavaScript | mit | 837 |
/**
* Imports
*/
import React from 'react';
import {FormattedMessage} from 'react-intl';
// Flux
import IntlStore from '../../../stores/Application/IntlStore';
// Required components
import Button from '../buttons/Button';
import Text from '../typography/Text';
// Translation data for this component
import intlDat... | ESTEBANMURUZABAL/bananaStore | src/components/common/forms/AddressPreview.js | JavaScript | mit | 4,127 |
'use strict';
var constants = require('../../lifx').constants;
var Packet = {
size: 21
};
/**
* Converts packet specific data from a buffer to an object
* @param {Buffer} buf Buffer containing only packet specific data no header
* @return {Object} Information contained in packet
*/
Packet.toObject = funct... | 3sigma/NodejsLIFXSerial_nwjs_shell_builder | node_modules/node-lifx/lib/lifx/packets/setWaveform.js | JavaScript | mit | 5,427 |
import { createReducer } from 'redux-act';
import { fetchSystemStatus } from 'actions';
import { loadState, loadStart, loadError, loadComplete } from 'reducers/util';
const initialState = loadState();
export default createReducer({
[fetchSystemStatus.START]: state => loadStart(state),
[fetchSystemStatus.ERROR]: ... | pudo/aleph | ui/src/reducers/systemStatus.js | JavaScript | mit | 462 |
define(['durandal/app','lib/pagelayout', 'lib/prettify'], function (app, pagelayout, prettify) {
var activePage = ko.observable(),
hash = "",
oc;
return {
compositionComplete : function() {
var that = this;
oc = Stashy.OffCanvas("#sticky", { enableTouch : true })... | yagopv/Stashy | docs/public/App/viewmodels/sticky/sticky.js | JavaScript | mit | 860 |
/*
to package
"eslint": "^1.7.3",
"eslint-config-rackt": "^1.1.0",
"eslint-plugin-react": "^3.6.3",
*/
require('es6-promise').polyfill(); // old node 0.10
var path = require('path');
var webpack = require('webpack');
module.exports = {
externals: {
jquery: "jQuery",
autobahn: "autobahn"
},
... | kalmyk/gyper-app | webpack.config.js | JavaScript | mit | 2,035 |
require('uppercase-core');
require('./DIST/NODE.js');
| Hanul/UPPERCASE | OLD/node_modules/uppercase-room/index.js | JavaScript | mit | 54 |
define("foo", [ "./bar", "./baz/baz" ], function(require, exports, module) {
require("./bar");
require("./baz/baz");
}); | katosun2/grunt-imiku-cmd-transport | test/expected/relative/foo.js | JavaScript | mit | 128 |
exports.config = {
specs: require('./index-webdriver.js').specs(),
framework: 'qunit',
baseUrl: './',
capabilities: [{
browserName: 'phantomjs',
exclude: require('./index-webdriver.js').exclude('phantomjs')
}],
updateJob: false,
waitforTimeout: 1000,
logLevel: 'silent',... | maciekwie/Crafty | tests/webdriver/index-webdriver-local.js | JavaScript | mit | 613 |
var equal = require('assert').equal,
notEqual = require('assert').notEqual,
Pool = require('../lib').Pool;
describe('Pool', function () {
it('should run multiple scripts', function (finished) {
var pool = new Pool({numberOfInstances: 5});
var scriptsExited = 0;
for (var i = 0; i < 20; ++i) {
... | bcoe/sandcastle | test/pool-test.js | JavaScript | mit | 1,957 |
//////////////////////////////////////////
//
// ONLY EDIT babel-plugin.js at ./src/babel-plugin.js, not ./babel-plugin.js!
//
//////////////////////////////////////////
var plugin = function(babel) {
return {
visitor: {
ObjectExpression(path) {
path.node.properties.forEach(fun... | mattzeunert/Object-History-Debugger | src/babel-plugin.js | JavaScript | mit | 4,875 |
'use strict';
module.exports = function(app) {
var users = require('../../app/controllers/users.server.controller');
var companies = require('../../app/controllers/companies.server.controller');
var fields = require('../../app/controllers/fields.server.controller');
var schedules = require('../../app/controllers/s... | forres/canchapp | app/routes/companies.server.routes.js | JavaScript | mit | 897 |
import phantom from 'phantom';
import logger from '../Logger';
export default class PhantomFetcher {
initialize() {
if (this.instance && this.page) {
return Promise.resolve(this.page);
}
logger.info('Creating new PhantomJS instance');
return phantom.create()
.then(
(instance) => ... | ApolloCrawler/microcrawler-worker | src/Fetcher/PhantomFetcher.js | JavaScript | mit | 1,401 |
const path = require('path');
const env = require('yargs').argv.mode;
const webpack = require('webpack');
const projectRoot = path.resolve(__dirname, '/');
const UglifyJsPlugin = webpack.optimize.UglifyJsPlugin;
const libraryName = '<%= libraryName %>';
const plugins = [];
let outputFile;
if (env === 'build... | ianaya89/generator-bwk | generators/app/templates/webpack.config.js | JavaScript | mit | 1,188 |
var searchData=
[
['makeexternal',['MakeExternal',['../classv8_1_1String.html#a5efd1eba40c1fa8a6aae2c4a175a63be',1,'v8::String::MakeExternal(ExternalStringResource *resource)'],['../classv8_1_1String.html#a19db11c97e2ce01244e06f5cbcd094f2',1,'v8::String::MakeExternal(ExternalAsciiStringResource *resource)']]],
['ma... | v8-dox/v8-dox.github.io | 9d3288c/html/search/all_c.js | JavaScript | mit | 1,184 |
AUTOBAHN_DEBUG = true;
var autobahn = require('autobahn');
var program = require('commander');
program
.option('-p, --port <port>', 'Server IP port', parseInt,9000)
.option('-i, --ip <ip>', 'Server IP address','127.0.0.1')
.parse(process.argv);
var connection = new autobahn.Connection({
url: 'ws://' +... | cantidio/wamp.rt | test/pubsub/subscriber.js | JavaScript | mit | 1,473 |
'use strict';
((window, document) => {
})(window, document);
| Pier1/rocketbelt | src/rocketbelt/base/rocketbelt.legacy.js | JavaScript | mit | 62 |
/*
Time Count
TimeCount class, useful for incremental games
By Luke Nickerson, 2015
*/
(function(){
var TimeCount = function(){
this.lastTime = null;
}
TimeCount.prototype.setLastTime = function(){
}
// Install into RocketBoots if it exists, otherwise make global
if (typeof RocketBoots == "object") {
... | Lukenickerson/reptilian-president | scripts/rocketboots/time_count.js | JavaScript | mit | 486 |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M19 3h-4.18C14.4 1.84 13.3 1 12 1s-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.4... | oliviertassinari/material-ui | packages/mui-icons-material/lib/esm/AssignmentRounded.js | JavaScript | mit | 553 |
//>>built
define({descTemplate:"${2} - ${3}/${1} ${0}",firstTip:"\uccab \ud398\uc774\uc9c0",lastTip:"\ub9c8\uc9c0\ub9c9 \ud398\uc774\uc9c0",nextTip:"\ub2e4\uc74c \ud398\uc774\uc9c0",prevTip:"\uc774\uc804 \ud398\uc774\uc9c0",itemTitle:"\ud56d\ubaa9",singularItemTitle:"\ud56d\ubaa9",pageStepLabelTemplate:"${0} \ud398\uc7... | ycabon/presentations | 2020-devsummit/arcgis-js-api-road-ahead/js-api/dojox/grid/enhanced/nls/ko/Pagination.js | JavaScript | mit | 759 |
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'indent', 'eu', {
indent: 'Handitu koska',
outdent: 'Txikitu koska'
} );
| nickofbh/kort2 | app/static/js/ckeditor/plugins/indent/lang/eu.js | JavaScript | mit | 255 |
const path = require('path');
const consoleLogger = require('./logger');
const _ = require('lodash');
module.exports = (config, logger, metrics, next) => {
if (!next) { next = metrics; metrics = { increment: _.noop }; }
if (!next) { next = logger; logger = consoleLogger; }
require('../db')(config, logger, (err,... | cliftonc/seguir | api/index.js | JavaScript | mit | 992 |
'use strict';
describe('Service: Location', function () {
// load the service's module
beforeEach(module('treasuremapApp'));
// instantiate service
var Location;
beforeEach(inject(function (_Location_) {
Location = _Location_;
}));
it('should do something', function () {
expect(!!Location).toB... | comvidnet/treasure-map-web | client/services/location/location.service.spec.js | JavaScript | mit | 340 |
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0z" /><path d="M23.64 7c-.45-.34-4.93-4-11.64-4-1.5 0-2.89.19-4.15.48L18.18 13.8 23.64 7zm-6.6 8.22L3.27 1.44 2 2.72l2.05 2.06C1.91 5.76.59 6.82.36 7l11.63 14.49... | allanalexandre/material-ui | packages/material-ui-icons/src/SignalWifiOff.js | JavaScript | mit | 415 |
(function() {
var checkVersion = Dagaz.Model.checkVersion;
Dagaz.Model.checkVersion = function(design, name, value) {
if (name != "magyar-no-pass") {
checkVersion(design, name, value);
}
}
var CheckInvariants = Dagaz.Model.CheckInvariants;
Dagaz.Model.CheckInvariants = function(board) {
var ... | GlukKazan/Dagaz | src/debug/games/checkers/magyar-no-pass.js | JavaScript | mit | 562 |
/*
* UserLogin Messages
*
* This contains all the text for the UserLogin component.
*/
import { defineMessages } from 'react-intl';
export default defineMessages({
header: {
id: 'app.containers.UserLogin.header',
defaultMessage: 'This is UserLogin container !',
},
usernameInput: {
id: 'app.contai... | VeloCloud/website-ui | app/containers/UserLogin/messages.js | JavaScript | mit | 1,013 |
"use babel";
// @flow
export function filterAtomEnv(env: Object) {
const filteredVars = ["ATOM_HOME", "NODE_PATH"];
return Object.entries(env).reduce((newEnv, [key, value]) => {
if (filteredVars.find(v => v === key) != null) return newEnv;
return { ...newEnv, [key]: value };
}, {});
}
| alanzanattadev/atom-molecule-dev-environment | lib/ExecutionControlEpic/TerminalFeature/Model/utils.js | JavaScript | mit | 302 |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = clean;
var _path = require('path');
var _del = require('del');
var _del2 = _interopRequireDefault(_del);
var _config = require('../config');
var _config2 = _interopRequireDefault(_config);
function _interopRequireDef... | hsavit1/gosofi_webpage | node_modules/next/dist/server/build/clean.js | JavaScript | mit | 539 |
import { expect } from 'chai';
import { Promise } from 'es6-promise';
import { Db } from 'mongodb';
import { Factory } from '../src/index';
import { hooks } from '../src/hooks';
describe('API spec', function() {
const Adapter = Factory();
it('Adapter object API', function() {
expect(Adapter).to.have.all.key... | zoilorys/jupiter-orm-mongo | test/index.js | JavaScript | mit | 5,847 |
import { checkTest } from './utils';
var MethodCallTracker = function(env, methodName) {
this._env = env;
this._methodName = methodName;
this._isExpectingNoCalls = false;
this._expecteds = [];
this._actuals = [];
};
MethodCallTracker.prototype = {
stubMethod() {
if (this._originalMethod) {
// Me... | Gaurav0/ember.js | packages/internal-test-helpers/lib/ember-dev/method-call-tracker.js | JavaScript | mit | 3,484 |
/**
* Example on how to use regular NodeJS files, the (module)exports is used
*/
var config = require('../../index')();
console.log(config.message);
// $> node example.js -> "We are in development"
// $> NODE_ENV=production node example.js -> "We are in production" | flesler/config-node | examples/js/example.js | JavaScript | mit | 270 |
!function(e){if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.qs=e()}}(function(){var define,module,exports;return (function e(t,n,r){function s(o... | kumu/widgets | test/browser/qs.js | JavaScript | mit | 8,121 |
var env = require('./environment.js');
exports.config = {
seleniumAddress: env.seleniumAddress,
framework: 'jasmine',
specs: ['pass_spec.js'],
baseUrl: env.baseUrl,
plugins: [{
path: '../index.js',
failOnWarning: false,
failOnError: false
}]
};
| sjelin/protractor-console-plugin | spec/consolePassConfig.js | JavaScript | mit | 270 |
#!/usr/bin/env node
/*
*
* Copyright 2013 Anis Kadri
*
* 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 applicab... | yfsun/FoodMe | node_modules/cordova/node_modules/plugman/main.js | JavaScript | mit | 2,639 |
import {CYCLE_STATES, PRACTICE, REFLECTION, COMPLETE} from 'src/common/models/cycle'
import {userCan} from 'src/common/util'
import getUser from 'src/server/actions/getUser'
import assertUserIsMember from 'src/server/actions/assertUserIsMember'
import createNextCycleForChapter from 'src/server/actions/createNextCycleF... | LearnersGuild/echo | src/server/cliCommand/commands/cycle.js | JavaScript | mit | 2,624 |
/**
* Created by sunNode on 16/10/16.
*/
var should = require('should')
var app = require('../app')
var request = require('supertest')
describe('upload temporyary testing', function () {
it('uploadTemporyary should be return success', function (done) {
request(app)
.get('/admin/crawler')
... | SensitiveMix/commerce | test/test-crawel.js | JavaScript | mit | 463 |
module.exports = { str: "7.5.0" };
| repuestos-365/server | client/node_modules/auth0-js/version.js | JavaScript | mit | 35 |
/**
* AUTOMATICALLY GENERATED FILE, DO NOT EDIT MANUALLY!
* Update this file by running `lerna run webpack-updater` in the monorepo root folder.
*/
var ClientSideRowModelModule = require('../../community-modules/client-side-row-model');
var GridCoreModule = require('../../community-modules/core');
var CsvExportModul... | ceolter/angular-grid | community-modules/all-modules/webpack-no-styles.js | JavaScript | mit | 803 |
"use strict";var __importDefault=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(exports,"__esModule",{value:!0});const d3_selection_1=require("d3-selection"),d3_color_1=require("d3-color"),utils_1=__importDefault(require("../utils")),evaluate_1=__importDefault(requir... | cdnjs/cdnjs | ajax/libs/function-plot/1.22.2/graph-types/scatter.min.js | JavaScript | mit | 944 |
/* *
*
* (c) 2009-2019 Øystein Moseng
*
* Accessibility component for chart info region and table.
*
* License: www.highcharts.com/license
*
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
*
* */
'use strict';
import H from '../../../parts/Globals.js';
var doc = H.win.document, ... | cdnjs/cdnjs | ajax/libs/highcharts/8.0.0/es-modules/modules/accessibility/components/InfoRegionsComponent.js | JavaScript | mit | 19,015 |
var clone = require('clone');
var async = require('async');
Patch.prototype.get_jot_operations = function(callback) {
/* Computes an array of JOT object APPLY operations that represent the changes
made by this patch. Passes the array to the callback. Each APPLY operation
encodes which path it is for. */
var... | JoshData/dc-code-editor | editor/management.js | JavaScript | cc0-1.0 | 14,423 |
/*!
* Copyright 2002 - 2013 Webdetails, a Pentaho company. All rights reserved.
*
* This software was developed by Webdetails and is provided under the terms
* of the Mozilla Public License, Version 2.0, or any later version. You may not use
* this file except in compliance with the license. If you need a copy of... | SteveSchafer-Innovent/innovent-pentaho-birt-plugin | js-lib/expanded/cdf/lib/CCC/protovis.js | JavaScript | epl-1.0 | 391,603 |
(function($){
$.map(['validatebox','textbox','filebox','searchbox',
'combo','combobox','combogrid','combotree',
'datebox','datetimebox','numberbox',
'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){
if ($.fn[plugin]){
$.extend($.fn[plugin].defaults, {
iconAlign: 'left',
... | sansusan/yii2-easyui | assets/jquery-easyui-1.4.4/extensions/jquery-easyui-rtl/easyui-rtl.js | JavaScript | gpl-2.0 | 8,004 |
/** schemas.js **/
schemas = {
user: {
id: null,
name: null,
password: null
}
}
module.exports = schemas; | Zepx/Tamanegi | models/schemas.js | JavaScript | gpl-2.0 | 139 |
/*
This file is part of the OdinMS Maple Story Server
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
Matthias Butz <matze@odinms.de>
Jan Christian Meyer <vimes@odinms.de>
This program is free software: you can redistribute it and/or modify
it under the t... | lightryuzaki/project1 | scripts/npc/2030013.js | JavaScript | gpl-2.0 | 8,217 |
/*!
* jQuery JavaScript Library v1.8.1
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2012 jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: Thu Aug 30 2012 17:17:22 GMT-0400 (Eastern Daylight Time)
*... | bylu/Test | dreamWeb/pages/js/jquery-1.8.1.js | JavaScript | gpl-2.0 | 269,298 |
/**
* @version $Id: $Revision
* @package mootool
* @subpackage lofslidernews
* @copyright Copyright (C) JAN 2010 LandOfCoder.com <@emai:landofcoder@gmail.com>. All rights reserved.
* @website http://landofcoder.com
* @license This plugin is dual-licensed under the GNU General Public License and the MIT Li... | vuchannguyen/dayhoc | modules/mod_lofk2news/assets/js.js | JavaScript | gpl-2.0 | 8,624 |
/*!
* jQuery postMessage - v0.5 - 9/11/2009
* http://benalman.com/projects/jquery-postmessage-plugin/
*
* Copyright (c) 2009 "Cowboy" Ben Alman
* Dual licensed under the MIT and GPL licenses.
* http://benalman.com/about/license/
*/
// Script: jQuery postMessage: Cross-domain scripting goodness
//
//... | young-geng/StatNews | SFGateBusiness/test_files/Swzl_TrafficDriverTypeAhead_data_002/postMessage.js | JavaScript | gpl-2.0 | 8,792 |
;
(function ($, scope) {
function NextendElementStyle(id, parameters) {
this.element = $('#' + id);
this.parameters = parameters;
this.defaultSetId = parameters.set;
this.element.parent()
.on('click', $.proxy(this.show, this));
this.element.siblings('.n2-form... | ttthanhDC/ProjectTeamWP | wp-content/plugins/smart-slider-3/nextend/media/js/element/style.js | JavaScript | gpl-2.0 | 3,135 |
define(function() {
var config = {
paths: {
FAOSTAT_UI_COMMONS: 'faostat-ui-commons',
faostat_ui_commons: '../'
},
shim: {
bootstrap: {
deps: ['jquery']
}
}
};
return config;
}); | FAOSTAT4/faostat-ui-commons | js/paths.js | JavaScript | gpl-2.0 | 289 |
// initializeSearchBox
// Description: used to set an initial value for the search
// box, clear it when the user clicks into it and
// reset the value if no text was entered
function initializeSearchBox() {
var inputPrompt = "Search people and the Web";
$("#q").val(inputPrompt);
$("#q").focus(function(... | shermang/unca | sites/all/themes/unca/unca_department/js/functions.js | JavaScript | gpl-2.0 | 3,690 |
describe('fs-xhr',function() {
function createJQPromise(success) {
return {
done: function() {
var p = Q.when(success);
return p.then.apply(p,arguments);
}
};
}
var fakeJQuery = {
get: jasmine.createSpy('jqget').andReturn(crea... | rikkertkoppes/fllscoring | spec/services/fs-xhrSpec.js | JavaScript | gpl-2.0 | 3,106 |
/**
* @file
* Webform module Gmap admin page script.
*/
(function ($) {
Drupal.behaviors.gmapAdmin = {
attach: function(context, settings) {
var lat = Drupal.settings.gmap.lat;
var lon = Drupal.settings.gmap.lon;
var zoom = Drupal.settings.gmap.zoom;
var icon = Drupal.settings.gmap.pat... | kaypro4/cf-openshift | sites/all/modules/webform_gmap_location/js/gmap_admin.js | JavaScript | gpl-2.0 | 2,158 |
/**
* jqPlot
* Pure JavaScript plotting plugin using jQuery
*
* Version: 1.0.8
* Revision: 1250
*
* Copyright (c) 2009-2013 Chris Leonello
* jqPlot is currently available for use in all personal or commercial projects
* under both the MIT (http://www.opensource.org/licenses/mit-license.php) and GPL
* versio... | Mariana3/CultExcelEnterprise | web/js/jqPlot/plugins/jqplot.mekkoRenderer.js | JavaScript | gpl-2.0 | 18,942 |
/*
* This file is part of the MediaWiki extension MultimediaViewer.
*
* MultimediaViewer is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later v... | tuxun/smw-funwiki | extensions/MultimediaViewer/tests/qunit/mmv/logging/mmv.logging.PerformanceLogger.test.js | JavaScript | gpl-2.0 | 14,429 |
(function( $ ) {
/**
* Activity reply object for the activity index screen
*
* @since ajency-activity-and-notifications (1.6)
*/
var activityReply = {
/**
* Attach event handler functions to the relevant elements.
*
* @since ajency-activity-and-notifications (1.6)
*/
init : function() {
$(document).on... | ajency/minyawns | wp-content/plugins/ajency-activity-and-notifications/ajan-activity/admin/js/admin.js | JavaScript | gpl-2.0 | 4,814 |
script('../node_modules/domready/ready.js', function () {
domready(function() {
sink('Basic', function(test, ok, before, after) {
test('should call from chained ready calls', 4, function() {
script.ready('jquery', function() {
ok(true, 'loaded from ready callback')
})
... | unicef/uPortal | sites/all/libraries/scriptjs/tests/tests.js | JavaScript | gpl-2.0 | 3,404 |
var winston = require('winston');
module.exports = function(app, models, tasks, channel) {
// initialize the sync of a repo
app.post('/', function (req, res) {
winston.log("info", "POST /");
channel.sendToQueue("gms.queue", new Buffer(JSON.stringify(req.body)), {deliveryMode: true});
res.sendStatus(20... | git-mirror-sync/git-mirror-sync | routes/hooks.js | JavaScript | gpl-2.0 | 333 |
define(
//begin v1.x content
{
"decimal": ".",
"group": ",",
"list": ";",
"percentSign": "%",
"plusSign": "+",
"minusSign": "-",
"exponential": "E",
"perMille": "‰",
"infinity": "∞",
"nan": "NaN",
"decimalFormat": "#,##0.###",
"decimalFormat-short": "000조",
"scientificFormat": "#E0",
"percentFormat": "#,#... | Gambiit/pmb-on-docker | web_appli/pmb/javascript/dojo/dojo/cldr/nls/ko/number.js | JavaScript | gpl-2.0 | 387 |
var tinymce_cnf = {
selector: 'textarea.tinymce',
plugins: 'link table code fullscreen preview textcolor paste image media responsivefilemanager anchor codesample',
toolbar: "responsivefilemanager undo redo | styleselect | bold italic forecolor | alignleft aligncenter alignright alignjustify | bullist numli... | gayathma/footballs | vendor/web-feet/coasterframework/public/app/js/editor.js | JavaScript | gpl-3.0 | 7,677 |
/**
* tinymce.js
*
* Copyright 2009, Moxiecode Systems AB
* Released under LGPL License.
*
* License: http://tinymce.moxiecode.com/license
* Contributing: http://tinymce.moxiecode.com/contributing
*/
(function(win) {
var whiteSpaceRe = /^\s*|\s*$/g,
undefined, isRegExpBroken = 'B'.replace(/A(.)|... | saintbyte/stalker-gis-php | stalker-gis.ru/js/tiny_mce/classes/tinymce.js | JavaScript | gpl-3.0 | 17,197 |
// Copyright 2015-2021, University of Colorado Boulder
/**
* This type defines a rectangular shape that encloses a segment of the mRNA. These segments, connected together, are
* used to define the outer bounds of the mRNA strand. The path of the strand within these shape segments is worked out
* elsewhere.
*
* Sh... | phetsims/gene-expression-basics | js/common/model/ShapeSegment.js | JavaScript | gpl-3.0 | 6,318 |
/*
Highcharts JS v3.0.0 (2013-03-22)
(c) 2009-2013 Torstein Hønsi
License: www.highcharts.com/license
*/
(function(){function u(a,b){var c;a||(a={});for(c in b)a[c]=b[c];return a}function x(){var a,b=arguments.length,c={},d=function(a,b){var c,h;for(h in b)b.hasOwnProperty(h)&&(c=b[h],typeof a!=="object"&&(a={}),a... | prihantosimbah/OpenSID-1 | assets/js/highcharts/highcharts.js | JavaScript | gpl-3.0 | 133,583 |
jQuery.fn.resolveLetterData = function() {
var letterTypes = [];
letterTypes.push("Peraturan");
letterTypes.push("Pedoman");
letterTypes.push("Petunjuk Pelaksanaan");
letterTypes.push("Instruksi");
letterTypes.push("Prosedur Tetap (SOP)");
letterTypes.push("Surat Edaran");
letterTypes.push("Keputusan");... | simaya/simaya | static/js/letter-data.js | JavaScript | gpl-3.0 | 2,871 |
/* Copyright (c) 2013 by Antonio Santiago <asantiagop_at_gmail_dot_com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyrig... | 2p2r/velobs_web | lib/js/framework/AnimatedCluster.js | JavaScript | gpl-3.0 | 16,688 |
/**
* functions for creating major ui elements
*/
/**
* backbone model for icon buttons
*/
var IconButton = Backbone.Model.extend({
defaults: {
title : "",
icon_class : "",
on_click : null,
menu_options : null,
is_menu_button : true,
id ... | mikel-egana-aranguren/SADI-Galaxy-Docker | galaxy-dist/static/scripts/mvc/ui.js | JavaScript | gpl-3.0 | 66,639 |
/*
Copyright (c) 2004-2006, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/community/licensing.shtml
*/
dojo.provide("dojo.storage");
dojo.requir... | smee/elateXam | taskmodel/taskmodel-core-view/src/main/webapp/dojo/src/storage.js | JavaScript | gpl-3.0 | 13,329 |
import {Actions} from 'relax-framework';
class StyleActions extends Actions {
init () {
}
getActions () {
return [
'add',
'remove',
'update'
];
}
}
export default new StyleActions();
| GordonDiggs/relax | lib/client/actions/style.js | JavaScript | gpl-3.0 | 230 |
$(document).ready(function () {
var dropdown_fields_item_count = 0; // Global unique counter
$('#dropdown_fields').hide();
if ($('#custom_field_type').val() == 'dropdown' || $('#custom_field_type').val() == 'checkbox') {
$('#dropdown_fields').show();
}
$('#custom_field_type').change(function() {
... | final-gene/mrpassword | system/js/global_custom_fields.js | JavaScript | gpl-3.0 | 1,123 |
let io = require('socket.io-client');
let server = io('http://localhost:3000/');
let dispatcher = require('../dispatcher');
server.on('dispatch', dispatcher.handleServerAction.bind(dispatcher));
dispatcher.register(function(payload) {
if (payload.sendToServer) {
server.emit('message', payload.action);
... | blint6/app-server-deployer | src/web/io/ServerIo.js | JavaScript | gpl-3.0 | 345 |
// **********************************************************************
//
// Copyright (c) 2003-2014 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// ***************************************************... | aitormf/JdeRobotWebClients | node_example/node_modules/Ice/DispatchStatus.js | JavaScript | gpl-3.0 | 596 |
/**
* Head
*
* This file should only include basic environment setup logic and browser feature tests
*
* This should be included before the stylesheet so the browser doesn't need to reflow after adding the feature
* detect classes from modernizer. Since this goes before the stylesheet this file should be placed i... | willroche/astonmartin | themes/fe/source/js/head/init.js | JavaScript | gpl-3.0 | 664 |