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
/** * jQuery asHoverScroll v0.3.2 * https://github.com/amazingSurge/jquery-asHoverScroll * * Copyright (c) amazingSurge * Released under the LGPL-3.0 license */ import $$1 from 'jquery'; var DEFAULTS = { namespace: 'asHoverScroll', list: '> ul', item: '> li', exception: null, direction: 'vertical', fixed...
crodriguezanton/SAD-blockchainchat
vendor/ashoverscroll/jquery-asHoverScroll.es.js
JavaScript
mit
18,161
import curry2 from '../_internal/curry2'; /** * Adds two numbers. * Doesn't try to convert any of its arguments before the operation. * * Technically it takes the first addend as its last argument but: * "Changing the order of the addends does not change the sum". * * @function * @param {number} y - The second...
vtfn/tolb
src/math/add.js
JavaScript
mit
540
/** * @fileoverview Test enforcement of lines around comments. * @author Jamund Ferguson */ "use strict"; //------------------------------------------------------------------------------ // Requirements //------------------------------------------------------------------------------ const rule = require("../../../...
kentcdodds/eslint
tests/lib/rules/lines-around-comment.js
JavaScript
mit
48,498
import * as React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M21 2H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h7l-2 3v1h8v-1l-2-3h7c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 12H3V4h18v10z" /> , 'DesktopMacOutlined');
callemall/material-ui
packages/material-ui-icons/src/DesktopMacOutlined.js
JavaScript
mit
265
Ogg.Behaviors.ResultUpdater=Essential.Behavior.extend({init:function(){var b=Ogg.Services.UrlParser.getQueryVariable("id");var a=new EventSource("/events/"+b);a.onmessage=this.updateContent.bind(this)},updateContent:function(b){var e=document.createElement("ul");var c=JSON.parse(b.data);var d="http://dummyimage.com/200...
roperzh/ogg
public/assets/javascripts/behaviors/result-updater.js
JavaScript
mit
589
// fancy console.log console.log('%c _______ _______ _______ ______ ___ _______ _______ ___ \r\n | _ || || || _ | | || | | || | \r\n | |_| || ___|| ___|| | || | || _____| | || | \r\n | || |___ | |___ |...
juanbrujo/beerjs-santiago
src/js/indianpaleale.js
JavaScript
mit
2,552
'use strict'; var Connector = require('../../lib/connector'); var fs = require('fs'); var path = require('path'); var BBPromise = require('bluebird'); var config = require('config'); describe.skip('Public Auth', function () { var connector; before(function () { connector = new Connector({ authType: 'Publ...
hoist/hoist-connector-highrise
tests_old/integration_tests/public_auth_tests.js
JavaScript
mit
3,669
import _ from "underscore" import { Shapeable, Moveable } from "./mixins" import Group from './group' class Grid { constructor(options) { this.moveable(); this.modules = []; var req = _.defaults(options || {}, { x:0, y:0, columns:10, rows:1, gutterWidth: 0, gutterHei...
chrismoulton/rune.js
src/grid.js
JavaScript
mit
1,950
import * as React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4V6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z" /> , 'StarHalfTwoTone');
callemall/material-ui
packages/material-ui-icons/src/StarHalfTwoTone.js
JavaScript
mit
304
'use strict'; const BRACKET_MINIMUM_UPDATE_INTERVAL = 2 * 1000; const AUTO_DISQUALIFY_WARNING_TIMEOUT = 30 * 1000; const AUTO_START_MINIMUM_TIMEOUT = 30 * 1000; const MAX_REASON_LENGTH = 300; let TournamentGenerators = Object.create(null); let generatorFiles = { 'roundrobin': 'generator-round-robin.js', 'eliminatio...
Alpha-Devs/Alpha-Server
tournaments/index.js
JavaScript
mit
47,278
var detectBrowser = require('./lib/detectBrowser'); var agent; if (typeof navigator !== 'undefined' && navigator) { agent = navigator.userAgent; } module.exports = detectBrowser(agent);
manggala/mgo-ip-track
node_modules/detect-browser/browser.js
JavaScript
mit
191
// Requirements var users = require('./store/users'); // Keep track of approved transfers var approvedTransfers = {}; module.exports = function (socket) { socket.on('request-transfer', function (data) { var out = users.getSocket(data.user); data.from = users.getUser(socket.id).username; out.emit('r...
KenPowers/CMPSCI-326-Group-Project
app/events/transfer.js
JavaScript
mit
940
import {extent, thresholdSturges, tickStep, range} from "d3-array"; import {slice} from "./array"; import ascending from "./ascending"; import area from "./area"; import constant from "./constant"; import contains from "./contains"; import noop from "./noop"; var cases = [ [], [[[1,1.5],[0.5,1]]], [[[1.5,1],[1,1...
dwlarson10/DataDanLarson
node_modules/d3-contour/src/contours.js
JavaScript
mit
6,129
'use strict'; module.exports = function(grunt) { grunt.loadNpmTasks('grunt-contrib-concat'); grunt.config.merge({ concat: { dist: { src: ['*.js'], dest: 'test-concat.js' } } }); //Inject the task to the task list grunt.mean.push('concat', 10); };
fdecourcelle/meanfde
node_modules/grunt-mean/example/meanGruntfile.js
JavaScript
mit
296
var vows = require('vows'), assert = require('assert'), OAuth2= require('../lib/oauth2').OAuth2, url = require('url'); vows.describe('OAuth2').addBatch({ 'Given an OAuth2 instance with clientId and clientSecret, ': { topic: new OAuth2("clientId", "clientSecret"), 'When handling the access t...
sktguha/node-oauth
tests/oauth2.js
JavaScript
mit
10,875
(function($) { var cultures = $.cultures, en = cultures.en, standard = en.calendars.standard, culture = cultures["lb-LU"] = $.extend(true, {}, en, { name: "lb-LU", englishName: "Luxembourgish (Luxembourg)", nativeName: "Lëtzebuergesch (Luxembourg)", language: ...
Leandro-b-03/SmartBracelet
public/library/javascripts/jquery.GlobalMoneyInput/globinfo/jQuery.glob.lb-LU.js
JavaScript
mit
1,961
"use strict"; /** * Copyright 2017 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 ...
aggiedefenders/aggiedefenders.github.io
node_modules/@firebase/firestore/dist/cjs/src/core/event_manager.js
JavaScript
mit
9,956
//# sourceMappingURL=requestmaker.js.map
aggiedefenders/aggiedefenders.github.io
node_modules/@firebase/storage/dist/esm/src/implementation/requestmaker.js
JavaScript
mit
43
const Lab = require('@hapi/lab') const lab = exports.lab = Lab.script() const server = require('../test-server') const config = require('../../lib/config')() const Factory = require('@nearform/udaru-core/test/factory') const { BuildFor, udaru } = require('../testBuilder') const organizationId = 'WONKA' function Poli...
nearform/labs-authorization
packages/udaru-hapi-plugin/test/authorization/policies.test.js
JavaScript
mit
18,878
'use strict'; /** * This file is part of the Aisel package. * * (c) Ivan Proskuryakov * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @name AiselSettings * @description Module configuration */ define(['app'], f...
kamilkisiela/Aisel
backend/web/app/Aisel/Settings/config/settings.js
JavaScript
mit
973
var test = require('tape'); var webpack = require('../'); var path = require('path'); var fs = require('vinyl-fs'); var named = require('vinyl-named'); var base = path.resolve(__dirname, 'fixtures'); test('streams output assets', function (t) { t.plan(3); var entry = fs.src('test/fixtures/entry.js'); var stream...
masmike/accu
node_modules/webpack-stream/test/test.js
JavaScript
mit
4,073
angular.module('ippon').directive('ipponTeamLine', function() { return { scope : { team : "=team", showTeam : "=showTeam" }, templateUrl: 'Teams/_line.html' } });
morynicz/tournament-service
app/assets/javascripts/directives/IpponTeamLine.js
JavaScript
mit
218
var webpack = require('webpack'); var path = require('path'); var plugins = [ new webpack.optimize.OccurenceOrderPlugin(), new webpack.DefinePlugin({ 'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV) }) ]; if (process.env.NODE_ENV === 'production') { plugins.push( new webpack.optimize.Uglif...
the-gilsons/rubicon-app
webpack.config.js
JavaScript
mit
766
/* ./webpack.config.js */ //process.env.NODE_ENV = 'production'; const path = require('path'); const webpack = require('webpack'); const OptimizeCssAssetsPlugin = require('optimize-css-assets-webpack-plugin'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const HtmlWebpackPluginConfig = new HtmlWebpack...
LiamKenneth/MIM
MIMDashboard/webpack.config.js
JavaScript
mit
1,968
import Ember from 'ember'; export default Ember.Component.extend({ i18n: Ember.inject.service(), difference: 0, humanizedDifference: Ember.computed('difference', function () { if (this.get('difference') === 0) { return this.get('i18n').t('global.now'); } else if (this.get('difference') < 0) { return th...
thriqon/ember-i18n-test-mock
tests/dummy/app/components/time-block.js
JavaScript
mit
489
import os from 'os'; import axios from 'axios'; import hasBinary from 'hasbin'; import path from 'path'; function isOSX() { return os.platform() === 'darwin'; } function isWindows() { return os.platform() === 'win32'; } function downloadFile(fileUrl) { return axios.get( fileUrl, { res...
pixel9/nativefier
src/helpers/helpers.js
JavaScript
mit
2,576
jQuery.noConflict(); jQuery(document).ready(function($){ MYNAMESPACE.namespace('view.MultiItemsManager'); MYNAMESPACE.view.MultiItemsManager = function() { this.initialize.apply(this, arguments); }; MYNAMESPACE.view.MultiItemsManager.prototype = { _instances : {} ,_dummyInputselect : null ,_index ...
koshihikari/modularization
rakuten/request/sp/view/MultiItemsManager.js
JavaScript
mit
6,183
'use strict'; var Command = require('./command'); var Undo = Command.extend({ static: { name: 'undo' }, execute: function() { var doc = this.getDocument(); if (doc.done.length>0) { doc.undo(); return true; } return false; } }); module.exports = Undo;
GerHobbelt/substance
ui/commands/undo.js
JavaScript
mit
294
define([], function () { 'use strict'; var context = newContext(); describe('src/ya', function () { var ya; var checkpoint = sinon.spy(); beforeEach(function (done) { context(['src/ya'], function (module) { ya = module; checkpoint.reset(); done(); }); }); ...
delapuente/ya
test/spec/ya.js
JavaScript
mit
16,673
import {getEditor, registerEditor} from './../editors.js'; import {AutocompleteEditor} from './autocompleteEditor.js'; var DropdownEditor = AutocompleteEditor.prototype.extend(); export {DropdownEditor}; Handsontable.editors = Handsontable.editors || {}; Handsontable.editors.DropdownEditor = DropdownEditor; /** *...
deenairn/handsontable
src/editors/dropdownEditor.js
JavaScript
mit
657
{ "name": "http.js", "url": "https://github.com/wylst/http.js.git" }
bower/components
packages/http.js
JavaScript
mit
73
(function() { module("can/view"); /*test("Ajax transport", function(){ var order = 0; $.ajax({ url: "//can/view/test/qunit/template.ejs", dataType : "view", async : false }).done(function(view){ equals(++order,1, "called synchronously"); equals(view({message: "hi"}).indexOf("<h3>hi</h3>"), 0, "r...
adrianmaurer/canjs
view/view_test.js
JavaScript
mit
6,124
'use strict'; /** * @ngdoc service * @name tbsApp.dailyQuest * @description * # dailyQuest * Service in the tbsApp. */ angular.module('tbsApp').service('DailyQuest', function() { // AngularJS will instantiate a singleton by calling "new" on this function var dq = {}; var quests = { 0 : 'Par...
m-atthieu/tbs.desile.fr
front/scripts/services/daily-quest.js
JavaScript
mit
1,480
'use strict'; var MAX_UINT32 = require( './../lib' ); console.log( MAX_UINT32 ); // returns 4294967295
compute-io/const-max-uint32
examples/index.js
JavaScript
mit
105
(function (Translator) { // fr Translator.add("Back title", "Backoffice", "back", "fr"); Translator.add("you are logged in as", "Vous \u00eates connect\u00e9 en tant que %fullname%", "back", "fr"); Translator.add("feature yet unavailable", "Fonctionnalit\u00e9 pas encore disponible", "back", "fr"); ...
sowbiba/senegal
web/js/translations/back/fr.js
JavaScript
mit
4,018
exports.level = { "name": { "en_US": "Introduction to Git Commits", 'ko': 'Git 커밋 소개' }, "goalTreeString": "{\"branches\":{\"master\":{\"target\":\"C3\",\"id\":\"master\"}},\"commits\":{\"C0\":{\"parents\":[],\"id\":\"C0\",\"rootCommit\":true},\"C1\":{\"parents\":[\"C0\"],\"id\":\"C1\"},\"C2\":{\"parents\...
ZeroDragon/learnGitBranching
src/levels/intro/1.js
JavaScript
mit
8,344
define([ "widgetjs/widgetjs" ], function(widgetjs) { var regionWidget = widgetjs.widget.subclass(function(that, my) { var widgets = []; that.set = function(newWidgets) { if(!Array.isArray(newWidgets)) { newWidgets = [newWidgets]; } that.empty(); widgets = newWidgets; widgets.forEach(funct...
foretagsplatsen/widget-js
sample/recipes/widgets/regionWidget.js
JavaScript
mit
663
/*! * Connect - Redis * Copyright(c) 2010 TJ Holowaychuk <tj@vision-media.ca> * MIT Licensed */ /** * Module dependencies. */ var redis = require('redis'); /** * One day in seconds. */ var oneDay = 86400; /** * Return the `RedisStore` extending `connect`'s session Store. * * @param {object} connect * @...
ksokhan/imcited
node_modules/connect-redis/lib/connect-redis.js
JavaScript
mit
2,636
import fs from "fs"; import os from "os"; import path from "path"; import { fileURLToPath } from "url"; import babel from "../lib/index.js"; import _getTargets from "@babel/helper-compilation-targets"; const getTargets = _getTargets.default; const dirname = path.dirname(fileURLToPath(import.meta.url)); import { isMJ...
babel/babel
packages/babel-core/test/config-chain.js
JavaScript
mit
41,391
module.exports = list function list(array, generateTemplate) { return { type: "list", array: array, template: generateTemplate } }
mathiasbynens/jsonml-stringify
examples/todomvc/lib-template/list.js
JavaScript
mit
164
// Put your own Twitter App keys here. See README.md for more detail. module.exports = { consumer_key: 'YOUR_CONSUMER_KEY', consumer_secret: 'YOUR_CONSUMER_SECRET', access_token: 'YOUR_ACCESS_TOKEN', access_token_secret: 'YOUR_ACCESS_TOKEN_SECRET', redisPort: 6379, botName: ...
FeelTrainCoop/101atron
config.js
JavaScript
mit
440
var gulp = require('gulp'); var gutil = require('gulp-util'); var bower = require('bower'); var sass = require('gulp-sass'); var cleanCss = require('gulp-clean-css'); var rename = require('gulp-rename'); var sh = require('shelljs'); var del = require('del'); var jshint = require('gulp-jshint'); var requiredCordovaPlug...
Grisu-NOE/mobile-app
gulpfile.js
JavaScript
mit
3,228
var searchData= [ ['updatestreams',['updateStreams',['../class_output_streams.html#aa807680b5625932c7cdd65c25023aaa3',1,'OutputStreams']]] ];
bkahlert/seqan-research
raw/pmsb13/pmsb13-data-20130530/sources/24xc47o54r0zzgyu/2013-05-28T12-13-04.486+0200/sandbox/my_sandbox/Berichte & Dokumentation/DoxyGen/html/search/functions_75.js
JavaScript
mit
144
/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ var ConcatSource = require("webpack-core/lib/ConcatSource"); function WebWorkerChunkTemplatePlugin() { } module.exports = WebWorkerChunkTemplatePlugin; WebWorkerChunkTemplatePlugin.prototype.apply = function(chunkTempl...
natebunnyfield/binnyfields
node_modules/webpack/lib/webworker/WebWorkerChunkTemplatePlugin.js
JavaScript
mit
888
/* Handle an atomic response with a different block size to a confirmable, blockwise PUT request: 1. User sends a request with the `blockSize` option set to `128`: ============================================================================== Version | Type | Token Length | Code | Message ID 0 1 |...
morkai/h5.coap
test/functional/block-008-put-negotiation.js
JavaScript
mit
14,160
var Music = { //global variables txtSearchElement: document.querySelector('#music_search'), formSearchElement: document.querySelector('.inline_form'), getData: function(){ //add eventlistener to search input this.formSearchElement.addEventListener('keypress', function(e) { //Check if user pressed...
simodecl/simodecl.github.io
js/pages/music.js
JavaScript
mit
1,989
module.exports = { command: { methods: { /** * Set an option. * * @param {string} name The identifier name of the option. * @param {mixed} value The value of the option. */ setOption: { arguments: ['stri...
Gnucki/danf
config/common/command/interfaces.js
JavaScript
mit
2,195
'use strict'; angular.module('teachers').controller('TeachersController', ['$scope', '$stateParams', '$location', 'Authentication', 'Teachers', function($scope, $stateParams, $location, Authentication, Teachers) { $scope.authentication = Authentication; $scope.create = function() { var teacher = new Teachers(...
wupicheng/test
public/modules/teachers/controllers/teachers.client.controller.js
JavaScript
mit
1,412
import Experiments from '../../classes/Experiments' import Walker from './Walker' import { randomInteger } from '../../utils/random' export default class Root extends Experiments { constructor () { super() this.walkers = null this.walkersLength = null this.walkersColor = null this.createWalk...
lhbzr/naturally-bizarre
app/experiments/Root/index.js
JavaScript
mit
1,264
'use strict'; angular.module('dockerUiApp').directive('ngAppendHtml', [ '$compile', function ($compile) { return function (scope, element, attr) { /** @namespace attr.ngAppendHtml */ element.append($compile(angular.element(scope.$eval(attr.ngAppendHtml)))(scope)); }; } ])...
neerajmathur/docker-cp
app/scripts/directives/dc-grid.js
JavaScript
mit
6,397
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon")); var _jsxRuntime = require("react/jsx-runtime")...
oliviertassinari/material-ui
packages/mui-icons-material/lib/ColorLensOutlined.js
JavaScript
mit
1,175
{ "name": "relax.js", "url": "https://github.com/gyzerok/relax.js.git" }
bower/components
packages/relax.js
JavaScript
mit
77
import { Command } from '../command/command'; import { editCellShortcutFactory } from '../edit/edit.cell.shortcut.factory'; import { editCellContextFactory } from '../edit/edit.cell.context.factory'; import { Keyboard } from '../keyboard/keyboard'; export const EDIT_CELL_ENTER_COMMAND_KEY = commandKey('edit.cell.enter...
azkurban/ng2
projects/qgrid-core/command-bag/edit.cell.enter.command.js
JavaScript
mit
2,802
/** * @author Richard Davey <rich@photonstorm.com> * @copyright 2019 Photon Storm Ltd. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ // Contains the plugins that Phaser uses globally and locally. // These are the source objects, not instantiated. var corePlugins = {}; // C...
mahill/phaser
src/plugins/PluginCache.js
JavaScript
mit
5,655
'use strict'; const _ = require('lodash'), apiAccepts = require('../../fixtures/api-accepts'), endpointName = _.startCase(__dirname.split('/').pop()), filename = _.startCase(__filename.split('/').pop().split('.').shift()), sinon = require('sinon'); describe(endpointName, function () { describe(filename, fun...
nymag/amphora
test/api/_layouts/post.js
JavaScript
mit
4,616
file:/home/charlike/dev/glob-fs/fixtures/a/s9.js
tunnckoCore/fs-readdir
benchmark/playing/a/s9.js
JavaScript
mit
48
'use strict'; var StringMask = require('string-mask'); describe('ui.utils.masks.percentage', function() { it('should load the demo page', function() { browser.get('/src/global/percentage/percentage.html'); expect(browser.getTitle()).toEqual('Percentage Spec'); }); describe('ui-percentage-mask:', function() { ...
pavelpykhtin/angular-input-masks
src/global/percentage/percentage.spec.js
JavaScript
mit
5,165
const BRACKET_MINIMUM_UPDATE_INTERVAL = 2 * 1000; const AUTO_DISQUALIFY_WARNING_TIMEOUT = 30 * 1000; const AUTO_START_MINIMUM_TIMEOUT = 30 * 1000; var TournamentGenerators = { roundrobin: require('./generator-round-robin.js').RoundRobin, elimination: require('./generator-elimination.js').Elimination }; var Tourname...
Ridukuo/Test
tournaments/index.js
JavaScript
mit
34,514
module.exports = require('./lib/php');
christophehurpeau/springbokjs-utils
php.js
JavaScript
mit
39
/** * Copyright (c) 2013-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow * @format */ 'use strict'; const RelayQuery = require('./RelayQuery'); /** * @internal * * Base class for traversing a Re...
apalm/relay
packages/react-relay/classic/query/RelayQueryVisitor.js
JavaScript
mit
3,121
var express = require("express"), app = express(), http = require("http").Server(app), io = require("socket.io")(http); app.use(express.static("client")); http.listen(3000, function () { console.log("Listenin' to port 3000, boss."); }); var grid = {}; var logicProcessor = {}; var turnProcessor = {};...
rogueSnake/musicMonstersOnline
server.js
JavaScript
mit
372
(function() { 'use strict'; angular.module('tubular-chart.directives', ['tubular.services', 'chart.js']) /** * @ngdoc directive * @name tbChartjs * @restrict E * * @description * The `tbChartjs` directive is the base to create any ChartJs component....
kadosh/tubular-boilerplate-csharp
Scripts/tubular/tubular-chartjs-bundle.js
JavaScript
mit
16,934
/** * Site-specific configuration settings for Highslide JS */ /* globals $, hs*/ hs.graphicsDir = 'graphics/'; hs.showCredits = false; hs.outlineType = 'rounded-white'; hs.dimmingOpacity = 0.80; hs.fadeInOut = true; hs.align = 'center'; hs.minWidth = 800; hs.minHeight = 600; hs.maxWidth = 800; hs.maxHeight = 600; h...
Leonid-SPB/MovePhotosVk
source/src/highslide.config.js
JavaScript
mit
3,765
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : typeof define === 'function' && define.amd ? define(['exports'], factory) : (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.Dropbox = {})); }(this, (function (e...
cdnjs/cdnjs
ajax/libs/dropbox.js/10.18.0/Dropbox-sdk.js
JavaScript
mit
191,946
exports['model.coffee'] = { name:"model.coffee", body:"\ ((global, $) ->\n\ <% if (strict) { print('use strict'); } %>\n\ <% if (typeof namespace !== 'undefined' && namespace !== null) { %>\n\ <%= namespace %> = global.<%= namespace %> ?= {}\n\ <% } else { namespace = 'global'; } %>\n\ class <%= namespace %>.<%= n...
vancarney/ezcake
data/json/default/bundles/backbone/templates/index.js
JavaScript
mit
1,817
define(['../array/min', './values'], function(arrMin, values) { /** * Returns minimum value inside object. */ /** * Description * @method min * @param {} obj * @param {} iterator * @return CallExpression */ function min(obj, iterator) { return arrMin(values(o...
benjaminhorner/codebutler
node_modules/bower/node_modules/bower-registry-client/node_modules/bower-config/node_modules/mout/src/object/min.js
JavaScript
mit
363
/** * Created by benji on 7/4/17. */ var scene; var camera; var renderer; var controls; var FLAG_WIDTH = 32, FLAG_HEIGHT = 20, RED_STRIPES = 7; init(); animate(); function initLights(scene){ var lightColor = 0xffffff; var sphere = new THREE.SphereGeometry(3, 5, 5); var pointLight = new THREE....
benji-b-rmz/AlgorithmVisuals
static/js/misc/USFlag.js
JavaScript
mit
2,772
/** * ER-Track * Copyright 2013 Baidu Inc. All rights reserved. * * @file 加载一个js文件 * @author otakustay */ define( function (require) { return function (url, callback) { var script = document.createElement('script'); script.charset = 'utf-8'; script.async = true; ...
ecomfe/er-track
src/loadScript.js
JavaScript
mit
1,313
'use strict'; /** * Module dependencies. */ var mongoose = require('mongoose'), extend = require('mongoose-schema-extend'), CustomerBase = require('./customer.server.model').CustomerBase, Schema = mongoose.Schema; /** * Purchaser Schema */ var PurchaserSchema = CustomerBase.extend({ created: { type: Date, ...
mypmapp/web2
app/models/purchaser.server.model.js
JavaScript
mit
446
'use strict'; const S = require ('./internal/sanctuary'); const {Nil, Cons} = require ('./internal/List'); const eq = require ('./internal/eq'); test ('mapMaybe', () => { eq (S.show (S.mapMaybe)) ('mapMaybe :: (Filterable f, Functor f) => (a -> Maybe b) -> f a -> f b'); eq (S.mapMaybe (S.head) ([])) ([]); e...
sanctuary-js/sanctuary
test/mapMaybe.js
JavaScript
mit
1,357
define(["require", "exports", 'Services/Shopping'], function (require, exports, shopping) { return function (page) { var model = { categories: ko.observableArray(), }; page.load.add(function (sender, args) { return shopping.getCategories().done(function (items) { ...
ansiboy/ChiTuStore
platforms/ios/platforms/browser/www/App/Module/Home/Class.js
JavaScript
mit
832
// left: 37, up: 38, right: 39, down: 40, // spacebar: 32, pageup: 33, pagedown: 34, end: 35, home: 36 var keys = { 37: 1, 38: 1, 39: 1, 40: 1, 32: 1, 33: 1, 34: 1, 35: 1, 36: 1 }; function preventDefault(e) { e = e || window.event; if (e.preventDefault) { e.preventDefault(); } e.returnVa...
jmeas/moolah
client/common/utils/prevent-scroll.js
JavaScript
mit
1,118
/* global HTMLElement */ var re = require('./a-register-element'); var utils = require('../utils/'); var isNode = re.isNode; var registerElement = re.registerElement; module.exports = registerElement( 'a-assets', { prototype: Object.create( HTMLElement.prototype, { attachedCallback: { ...
aframevr/aframe-core
src/core/a-assets.js
JavaScript
mit
1,734
import _extends from "@babel/runtime/helpers/esm/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"; // @inheritedComponent IconButton import * as React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import { refType } from '@materia...
cdnjs/cdnjs
ajax/libs/material-ui/4.9.7/es/Switch/Switch.js
JavaScript
mit
8,089
'use strict'; const fs = require('fs'); const path = require('path'); function loadLogos () { // Cache svg logos from disk in base64 string const logos = {}; const logoDir = path.join(__dirname, '..', 'logo'); const logoFiles = fs.readdirSync(logoDir); logoFiles.forEach(function(filename) { if (filename...
freezy-sk/shields
lib/load-logos.js
JavaScript
cc0-1.0
667
/* * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 which accompanies this distribution, * and is available at http://www.eclipse.org/legal/epl-v10.html */ //PAGE flow...
niuqg/controller
opendaylight/web/flows/src/main/resources/js/page.js
JavaScript
epl-1.0
64,573
var game = new Phaser.Game(800, 600, Phaser.AUTO, 'phaser-example', { create: create }); function create() { var graphics = game.add.graphics(game.world.centerX, game.world.centerY); // var ellipse = new Phaser.Ellipse(100, 100, 200, 60); // Our first arc will be a line only graphics.lineStyle(8, 0...
boniatillo-com/PhaserEditor
source/phasereditor/phasereditor.resources.phaser.examples/phaser-examples-master/examples/display/ellipse.js
JavaScript
epl-1.0
946
/*! * 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 the...
SteveSchafer-Innovent/innovent-pentaho-birt-plugin
js-lib/expanded/cdf/Dashboards.Legacy.js
JavaScript
epl-1.0
6,500
/** * @author Chris Campbell <iforce2d@gmail.com> * @author Richard Davey <rich@photonstorm.com> * @copyright 2015 Photon Storm Ltd. * @license {@link http://choosealicense.com/licenses/no-license/|No License} * * @description This example requires the Phaser Box2D Plugin to run. * F...
boniatillo-com/PhaserEditor
source/phasereditor/phasereditor.resources.phaser.examples/phaser-examples-master/examples/box2d/raycasting.js
JavaScript
epl-1.0
4,770
/** *------------------------------------------------------------------------------ * @package T3 Framework for Joomla! *------------------------------------------------------------------------------ * @copyright Copyright (C) 2004-2013 JoomlArt.com. All Rights Reserved. * @license GNU General Pub...
Sophist-UK/Sophist_t3framework
source/plg_system_t3/admin/layout/js/layout.js
JavaScript
gpl-2.0
49,692
$(document).ready(function(){ var ShowRecipients = function(){ var $reciver_name = $('.tab-content .tab-pane:last-child .form-group.widget-field').parent().find('.form-group.span-left'); var $reciver_email = $('.tab-content .tab-pane:last-child .form-group.widget-field').parent().find('.form-group....
Loopshape/Portfolio
hostweb/kernel/plugins/octodevel/octomail/assets/js/octodevel.octomail-form.js
JavaScript
gpl-2.0
929
/* Copyright (c) 2004-2008, The Dojo Foundation All Rights Reserved. Available via Academic Free License >= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ if(!dojo._hasResource["dojox.highlight.languages.css"]){ //_hasResource checks added by build. Do not use _hasResource dire...
fedora-infra/packagedb
pkgdb/static/js/dojox/highlight/languages/css.js
JavaScript
gpl-2.0
3,728
/* YUI 3.7.1 (build 5627) Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ YUI.add('event-touch', function (Y, NAME) { /** Adds touch event facade normalization properties (touches, changedTouches, targetTouches etc.) to the DOM event facade. Adds touch ...
medbenhenda/migration-ez5
ezpublish_legacy/extension/ezjscore/design/standard/lib/yui/3.7.1/build/event-touch/event-touch.js
JavaScript
gpl-2.0
4,725
var wpLink; (function($){ var inputs = {}, rivers = {}, ed, River, Query; wpLink = { timeToTriggerRiver: 150, minRiverAJAXDuration: 200, riverBottomThreshold: 5, keySensitivity: 100, lastSearch: '', textarea: function() { return edCanvas; }, init : function() { inputs.dialog = $('#wp-link'); in...
kasakon/test
wp-content/plugins/wp-multibyte-patch/ext/ja/wplink.dev.js
JavaScript
gpl-2.0
15,342
/** * @projectDescription Describes the effect class and wrapings. * That is a window, taking a single state, is processed each instant * of time to make changes in its output. Consult: @see Window , @see Thread . * * @author Txema * @version 1.00, June de 2007 * @translated by Jesús del Saz * / Effect.pro...
txemagon/web-lluvia
vendor/assets/javascripts/src/components/Effect.js
JavaScript
gpl-2.0
1,346
/* Tailwind - The Utility-First CSS Framework A project by Adam Wathan (@adamwathan), Jonathan Reinink (@reinink), David Hemphill (@davidhemphill) and Steve Schoger (@steveschoger). Welcome to the Tailwind config file. This is where you can customize Tailwind specifically for your project. Don't be intimidated by th...
ovidiul/XCloner-Wordpress
vendor/league/flysystem/docs/tailwind.js
JavaScript
gpl-2.0
24,955
angular.module('bhima.components') .component('bhPatientVisit', { bindings : { patientUuid : '<', }, templateUrl : 'modules/patients/record/bh-patient-visit.html', controller : VisitsController, }); VisitsController.$inject = ['PatientService', 'NotifyService', 'moment']; function VisitsCon...
IMA-WorldHealth/bhima-2.X
client/src/modules/patients/record/bh-patient-visit.component.js
JavaScript
gpl-2.0
2,086
var myApp = angular.module('myApp',[]); myApp.controller('CartController', ['$scope', function($scope) { $scope.items = [ {title: 'Paint pots', quantity: 8, price: 3.95}, {title: 'Polka dots', quantity: 17, price: 12.95}, {title: 'Pebbles', quantity: 5, price: 6.95} ]; $sco...
muriithi/angular
js/menu.js
JavaScript
gpl-2.0
399
var orders = []; var length = 0; var current_length = 0; (function(){ length = $('.mybid-table tbody tr').length; $('.mybid-table tbody tr').each(function(v){ var url = $(this).find('.bk12').attr('href'); //debugger; // console.log(url); var order = {}; $(this).find('td').each(function(k,v){ ...
cstony0917/ruten-order-export
script.js
JavaScript
gpl-2.0
1,036
/* WPtouch Pro Admin JS */ /* ZeroClipboard backup key */ var wptouchClip = 0; /* Start onReady */ function WPtouchProAdminReady() { /* Disable caching of AJAX responses */ jQuery.ajaxSetup ({ cache: false }); /* General Admin Functions */ WPtouchCookieSetup(); WPtouchSetupTabSwitching(); WPtouchTooltip...
hkoudai/bbb
wp-content/themes/wptouch-pro/admin/js/wptouch-admin.js
JavaScript
gpl-2.0
36,806
/** * Add a negative letter spacing to Quick User Manager email customizer menus. */ jQuery( document ).ready(function(){ jQuery('li a[href$="admin-email-customizer"]').css("letter-spacing", "-0.7px"); jQuery('li a[href$="user-email-customizer"]').css("letter-spacing", "-0.7px"); }); /* * Set the width of t...
frammawiliansyah/web
wp-content/plugins/quick-user-manager/assets/js/jquery-pb-sitewide.js
JavaScript
gpl-2.0
3,725
(function( $ ){ // Open closure var loggedin = false; /** * Global overloads, for media. */ edCanvas = document.getElementById('posttext'); // Overload global send_to_editor media function. send_to_editor = function( media ) { if ( jQuery('textarea#posttext').length ) { jQuery('textarea#posttext').val( jQuery('...
invifire/ci
wp-content/themes/ivietro/js/p2.js
JavaScript
gpl-2.0
38,485
/*! * VisualEditor UserInterface ModeledFactory class. * * @copyright 2011-2015 VisualEditor Team and others; see http://ve.mit-license.org */ /** * Mixin for factories whose items associate with specific models. * * Classes registered with the factory should have a static method named `isCompatibleWith` that ...
tbs-sct/gcpedia
extensions/VisualEditor/lib/ve/src/ui/ve.ui.ModeledFactory.js
JavaScript
gpl-2.0
2,387
/** * @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'specialchar', 'sk', { euro: 'Znak eura', lsquo: 'Ľavá jednoduchá úvodzovka', rsquo: 'Pravá jednoduchá úvodzovka', ldquo: 'Pravá ...
Mediawiki-wysiwyg/WYSIWYG-CKeditor
WYSIWYG/ckeditor_source/plugins/specialchar/dialogs/lang/sk.js
JavaScript
gpl-3.0
5,137
var searchData= [ ['fast',['fast',['../namespacefast.html',1,'']]] ];
fast-project/dummy-scheduler
doc/html/search/namespaces_0.js
JavaScript
gpl-3.0
72
// Copyright 2015, 2016 Ethcore (UK) Ltd. // This file is part of Parity. // Parity is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version....
kushti/mpt
js/src/api/subscriptions/logging.js
JavaScript
gpl-3.0
1,126
/** * richtext Editor for the Cloud9 IDE * * @copyright 2010, Ajax.org B.V. * @license GPLv3 <http://www.gnu.org/licenses/gpl.txt> */ define(function(require, exports, module) { var ide = require("core/ide"); var ext = require("core/ext"); var editors = require("ext/editors/editors"); module.exports = ext.regis...
Irrelon/cloud9
client/ext/richtext/richtext.js
JavaScript
gpl-3.0
1,663
var arrayMin = Highcharts.arrayMin, arrayMax = Highcharts.arrayMax, each = Highcharts.each, extend = Highcharts.extend, isNumber = Highcharts.isNumber, merge = Highcharts.merge, map = Highcharts.map, pick = Highcharts.pick, pInt = Highcharts.pInt, correctFloat = Highcharts.correctFloat, defaultPlotOptions = H...
juliant8805/project
src/highcharts/js/parts-more/Globals.js
JavaScript
gpl-3.0
866
/* Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'specialchar', 'sv', { options: 'Alternativ för utökade tecken', title: 'Välj utökat tecken', toolbar: 'Klistra in utökat tecken' } );
Mediawiki-wysiwyg/WYSIWYG-CKeditor
WYSIWYG/ckeditor_source/plugins/specialchar/lang/sv.js
JavaScript
gpl-3.0
312
module.exports = { 'image expando': browser => { let oldWindowHandles; browser .url('https://en.reddit.com/r/RESIntegrationTests/comments/drz1sx/image_expando/') .waitForElementVisible('.expando-button') .assert.cssClassPresent('.expando-button', 'image') .assert.cssClassPresent('.expando-button', 'co...
mc10/Reddit-Enhancement-Suite
tests/showImages.js
JavaScript
gpl-3.0
6,807