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 |
|---|---|---|---|---|---|
exports.hasBeenLoaded = false;
exports.load = function() {
exports.hasBeenLoaded = true;
}
| bitgamma/plugin-loader | test/test_plugins/plugin1/index.js | JavaScript | mit | 94 |
/*!
* Stickyfill -- `position: sticky` polyfill
* v. 1.1.4 | https://github.com/wilddeer/stickyfill
* Copyright Oleg Korsunsky | http://wd.dizaina.net/
*
* MIT License
*/
(function(doc, win) {
var watchArray = [],
scroll,
initialized = false,
html = doc.documentElement,
noop =... | BROCKHAUS-AG/contentmonkee | MAIN/Default.WebUI/App_Themes/default/js/stickyfill.js | JavaScript | mit | 14,350 |
var copy = require('..');
copy.oneSync('fixtures/a.txt', 'actual');
| malys/copy | examples/copy-one-sync.js | JavaScript | mit | 69 |
var fs = require('fs');
module.exports = {
/**
* check if folder exists - otherwise create one
* @param rootFolder
* @param folder
* @param cb
*/
createFolder : function(rootFolder, folder, cb) {
var folders = [],
actualFolder = "";
// create array
f... | eightyfour/drag-king | lib/folderUtil.js | JavaScript | mit | 1,594 |
define([
'jquery',
'underscore',
'backbone',
'app',
'text!templates/nav.html'
], function ($, _, Backbone, App, Template) {
var Nav = Backbone.View.extend({
el: '#rightSidebarMenu',
template: _.template(Template),
initialize: function () {
this.render();
... | SergioRodriguezRuiz/change4city | www/js/views/nav.js | JavaScript | mit | 688 |
module.exports = require('bindings')('binding');
| emersion/mpu6050-dmp | index.js | JavaScript | mit | 49 |
'use strict';
const _test = require('tap').test;
const _unhandledStatus = require('./unhandled-status');
_test('200 status ok', assert => {
assert.plan(1);
_unhandledStatus.filter({
statusCode: 200
});
assert.pass();
});
_test('299 status ok', assert => {
assert.plan(1);
_unhandledStat... | AKBarcenas/COGS-120-Project | node_modules/yelp-fusion/node_modules/@tonybadguy/call-me-maybe/lib/response-filters/unhandled-status.test.js | JavaScript | mit | 867 |
export const replaceVariables = (str, callback) => str.replace(/\{ *([^\{\} ]+)[^\{\}]*\}/gmi, callback);
| VoiSmart/Rocket.Chat | app/mailer/server/utils.js | JavaScript | mit | 106 |
/* eslint-disable import/no-extraneous-dependencies */
/* eslint-disable global-require */
const path = require('path');
const webpack = require('webpack');
const HtmlWebpackPlugin = require('html-webpack-plugin');
module.exports = {
entry: {
index: [
'webpack-hot-middleware/client',
'./client/index.... | rugby-board/rugby-board-node | config/webpack.dev.config.js | JavaScript | mit | 2,355 |
'use strict';
var BaseModel = require('model-toolkit').BaseModel;
var uom = require('../master/uom');
module.exports = class DeliveryOrderItemFulfillment extends BaseModel {
constructor(source) {
super('delivery-order-item-fulfillment', '1.0.0');
//Define Properties
this.purchaseOrderId =... | danliris/dl-models | src/purchasing/delivery-order-item-fulfillment.js | JavaScript | mit | 634 |
describe("toBeGreaterThan", function() {
it("passes if 2 is > 1", function() {
expect(2).toBeGreaterThan(1);
});
it("passes if 1 > 0.999", function() {
expect(1).toBeGreaterThan(0.999);
});
it("passes if 2 is not > 2", function() {
expect(2).not.toBeGreaterThan(2);
});
});
| crysalead-js/chai-kahlan | spec/to-be-greater-than-spec.js | JavaScript | mit | 308 |
var http = require("http");
var bCapServ = require("buster-capture-server");
var helper = module.exports = {
run: function (tc, args, callback) {
tc.cli.run(args, function (err, server) {
if (server && server.close) { server.close(); }
callback.call(tc, err, server);
});
... | zenners/angular-contacts | node_modules/firebase/node_modules/faye-websocket/node_modules/websocket-driver/node_modules/websocket-extensions/node_modules/jstest/node_modules/buster/node_modules/buster-test-cli/node_modules/stream-logger/node_modules/buster/node_modules_old/buster-server-cli/test/test-helper.js | JavaScript | mit | 1,504 |
(function() {
this.IssuableBulkActions = (function() {
function IssuableBulkActions(opts) {
var ref, ref1, ref2;
if (opts == null) {
opts = {};
}
this.container = (ref = opts.container) != null ? ref : $('.content'), this.form = (ref1 = opts.form) != null ? ref1 : this.getElement('... | mr-dxdy/gitlabhq | app/assets/javascripts/issues-bulk-assignment.js | JavaScript | mit | 5,046 |
module.exports = function (req, res, bounce) {
if (!req.connection.encrypted) {
for (var i = 0; i < this.bouncers.length; i++) {
if (!this.bouncers[i].key) continue;
var hostname = req.headers.host.split(':')[0];
var host = hostname + ':' + this.bouncers[i].address().port... | beni55/ploy | example/bouncer.js | JavaScript | mit | 594 |
var Xflow = Xflow || {};
var XML3D = XML3D || {};
(function() {
var camController;
function setupCameraController()
{
camController = XML3D.Xml3dSceneController.controllers[0];
camController.detach();
camController.mode = "panning";
camController.useKeys = false;
camController.useRaycasting = true;
camControl... | stlemme/xml3d-experimental | buffersize-bug/main.js | JavaScript | mit | 528 |
return "Raw example"; | ForbesLindesay/umd | examples/raw/index.js | JavaScript | mit | 21 |
console.log("[puzzle(knalledge/storage-mongo) - /models/index.js] Building up 'global.db'");
var mkNode = require('./mkNode');
var mkEdge = require('./mkEdge');
var mkMap = require('./mkMap');
if (!global.hasOwnProperty('db')) {
global.db = {};
}
global.db.kNode = mkNode;
global.db.kEdge = mkEdge;
global.db.kMap... | mprinc/KnAllEdge | src/backend/dev_puzzles/knalledge/storage-mongo_old/lib/models/index-old.js | JavaScript | mit | 568 |
/* eslint-env browser */
/* global Webex */
/* eslint-disable camelcase */
/* eslint-disable max-nested-callbacks */
/* eslint-disable no-alert */
/* eslint-disable no-console */
/* eslint-disable require-jsdoc */
/* eslint-disable arrow-body-style */
/* eslint-disable max-len */
// Declare some globals that we'll n... | aimeex3/spark-js-sdk | packages/node_modules/samples/browser-call-with-screenshare/app.js | JavaScript | mit | 10,305 |
"use strict";
/**
* Copyright 2015 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless req... | ratokeshi/endo-google-cloud-platform | node_modules/googleapis/apis/videointelligence/v1beta1.js | JavaScript | mit | 2,959 |
var auth = require('../helpers/auth');
var proxy = require('../helpers/proxy');
var config = {
/**
* --------- ADD YOUR UAA CONFIGURATION HERE ---------
*
* This uaa helper object simulates NGINX uaa integration using Grunt allowing secure cloudfoundry service integration in local development without deploy... | edwinrsuarez/Thoth | PredixMachineDashboard-ES/tasks/options/connect.js | JavaScript | mit | 2,424 |
/**
* GUploads
* Javascript multiples upload
*
* @filesource js/uploads.js
* @link http://www.kotchasan.com/
* @copyright 2016 Goragod.com
* @license http://www.kotchasan.com/license/
*/
(function() {
"use strict";
window.GUploads = GClass.create();
GUploads.prototype = {
initialize: function(options)... | goragod/GCMS | js/uploads.js | JavaScript | mit | 11,668 |
var path = require('path');
var express = require('express');
var webpack = require('webpack');
var config = require('./webpack.config.dev');
var app = express();
var compiler = webpack(config);
app.use(require('webpack-dev-middleware')(compiler, {
noInfo: true,
publicPath: config.output.publicPath
}));
app.use(... | jdsninja/mimic | server.js | JavaScript | mit | 613 |
/*globals define*/
/*jshint browser: true*/
/**
* Contains helper functions for logging/downloading the state of the client.
*
* @author pmeijer / https://github.com/pmeijer
*/
define([
'js/Utils/SaveToDisk'
], function (saveToDisk) {
'use strict';
function _stateLogReplacer(key, value) {
var ... | pillforge/webgme | src/client/js/client/stateloghelpers.js | JavaScript | mit | 5,082 |
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//------------------------------------------------------... | arunetm/ChakraCore_0114 | test/Error/sourceInfo_00.js | JavaScript | mit | 506 |
/**
* == scripty2 fx ==
* The scripty2 effects framework provides for time-based transformations of DOM elements
* and arbitrary JavaScript objects. This is at the core of scripty2 and presents a refinement
* of the visual effects framework of script.aculo.us 1.
*
* In practice [[S2.FX.Morph]] is most often used... | abhishekbhalani/scripty2 | src/effects/base.js | JavaScript | mit | 14,480 |
/*
* Copyright 2016 Hewlett-Packard Development Company, L.P.
* Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License.
*/
define([
'find/app/page/search/suggest/suggest-view',
'find/idol/app/page/search/results/idol-results-view',
'find/idol/app/... | LinkPowerHK/find | idol/src/main/public/static/js/find/idol/app/page/search/suggest/idol-suggest-view.js | JavaScript | mit | 686 |
/**
* @license Highcharts JS v8.2.2 (2020-10-22)
* @module highcharts/modules/venn
* @requires highcharts
*
* (c) 2017-2019 Highsoft AS
* Authors: Jon Arild Nygard
*
* License: www.highcharts.com/license
*/
'use strict';
import '../../Series/VennSeries.js';
| cdnjs/cdnjs | ajax/libs/highcharts/8.2.2/es-modules/masters/modules/venn.src.js | JavaScript | mit | 267 |
$(document).ready(function () {
var window_height = window.innerHeight;
$('.wrapper').css("height", window_height);
$(window).resize(function () {
$('.wrapper').css("height", window.innerHeight);
});
window.bg = chrome.extension.getBackgroundPage();
show_def(location.hash.substring(1));
... | SineLabo/WordsNoteGenerator | js/app.js | JavaScript | mit | 7,676 |
/**
* jQuery plugins development demo
*
* by javascript-html5-tutorial.com
*/
(function($) {
// we extend jQ by new simple function
$.fn.myFunctionExt = function(param) {
alert("The parameter is: " + param);
};
// standard CSS modifier for elements
$.fn.myCSSModifier = fun... | dominik-w/js_html5_com | jquery_plugins_dev/jq_plugin_dev_demo2/jq_plugin_dev_demo2.js | JavaScript | mit | 2,023 |
/**
* @name padLeft
* @category String
* @since v0.19.0
* @description
* Pads a string to a given length by prepending it with the given character
* until that length is reached.
*
* @example
* padLeft(5, 'X', 'hi') // => 'XXXhi'
*/
// TODO(zuko): how should we handle char of length > 1?
// TODO(zuko): throw ... | davezuko/halcyon | src/padLeft.js | JavaScript | mit | 470 |
'use strict';
exports.init = function(req, res) {
if (req.isAuthenticated()) {
res.redirect(req.user.defaultReturnUrl());
} else {
res.render('login/forgot/index');
}
};
exports.send = function(req, res, next) {
var workflow = req.app.utility.workflow(req, res);
workflow.on('valid... | akinaru/google-cross-client-node | app/views/login/forgot/index.js | JavaScript | mit | 2,648 |
//>>built
define({"days-standAlone-short":"Du Lu Ma Mi Jo Vi S\u00e2".split(" "),"field-second-relative+0":"acum","field-weekday":"Zi a s\u0103pt\u0103m\u00e2nii","field-wed-relative+0":"miercurea aceasta","field-wed-relative+1":"miercurea viitoare","dateFormatItem-GyMMMEd":"E, d MMM y G","dateFormatItem-MMMEd":"E, d M... | ycabon/presentations | 2020-devsummit/arcgis-js-api-road-ahead/js-api/dojo/cldr/nls/ro/islamic.js | JavaScript | mit | 3,833 |
/* global describe, it, expect */
import { shortMessage, shortCommit } from './commits';
describe('shortMessage', () => {
const BIG_MESSAGE = `✨ Somehow this is the first spec I've written for our front-end, and this seems really odd to me
- this should be a big enough message to make sure we're not running into an... | fotinakis/buildkite-frontend | app/lib/commits.spec.js | JavaScript | mit | 1,120 |
type TestFunction = (done: () => void) => void | Promise<mixed>;
declare var describe: {
(name: string, spec: () => void): void,
only(description: string, spec: () => void): void,
skip(description: string, spec: () => void): void,
timeout(ms: number): void,
...
};
declare var context: typeof describe;
decl... | splodingsocks/FlowTyped | definitions/npm/mocha_v2.4.x/flow_v0.104.x-/mocha_v2.4.x.js | JavaScript | mit | 746 |
import TopicTree from './TopicTree.js';
let raw;
if (__SERVER__) {
// TODO(jlfwong): Make this actually download data from KA instead of just
// pulling from disk.
/*
const PROJECTION = JSON.stringify({
topics:[{
id: 1,
slug: 1,
translatedTitle: 1,
translatedDesc... | jlfwong/1rt | src/FullTopicTree.js | JavaScript | mit | 1,008 |
/*
* Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'use strict';
var models = require('./index');
/**
* @class
* Initializes a new instance of the UpdateApplicationUpgradeDescription class.
* @construct... | smithab/azure-sdk-for-node | lib/services/serviceFabric/lib/models/updateApplicationUpgradeDescription.js | JavaScript | mit | 3,108 |
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] =... | ceolter/angular-grid | enterprise-modules/charts/dist/es6/charts/chartComp/menu/data/chartDataPanel.js | JavaScript | mit | 12,388 |
/**
* Utilities; useful scripts
*/
var utils = {
debug: false
}
/**
* Functions related to arrays
*/
utils.array = {
/**
* Is the given value present in the array
*
* @return bool
*/
inArray: function (needle, array) {
// loop values
for (var i in array) {
if (array[i] === needle) r... | riadvice/forkcms | src/Frontend/Core/Js/utils.js | JavaScript | mit | 10,489 |
suite('isObject', () => {
function isObject1(obj) {
return obj && Object.prototype.toString.call(obj) === '[object Object]'
}
function isObject2(obj) {
return obj && typeof obj === 'object' && !Array.isArray(obj)
}
const obj0 = {}
const obj1 = null
const obj2 = []
const obj3 = '123'
const ob... | cssinjs/jss | packages/jss/benchmark/tests/is-object.js | JavaScript | mit | 729 |
'use strict';
describe('Test vehicle Service', function() {
var url = 'http://localhost:5002';
var vehicleService, $httpBackend, scope;
var vehicles=[{
'email': 'mary@demo.org',
'name': 'Lincon MKX'
}, {
'email': 'mary@demo.org',
'name': 'Corolla'
}];
var vehicle = {
'email': 'mary@demo.org',
'n... | vollov/mileagelog | client/test/unit/services/vehicle.test.js | JavaScript | mit | 1,446 |
(function(JVM) {
JVM.RegisterBuiltIn("java/lang/Object", {
'$impl': {
'getClass$()Ljava/lang/Class;': function($) {
return this.$class.class; // Return the Java Class implementation from our class
},
'toString$()Ljava/lang/String;': function($... | NexusTools/NexusToolsWebsite | src/static/jvm/jvm.js/classes/java_lang_Object.js | JavaScript | mit | 537 |
var models = require('./../app/models')
, db = require('../db').connect()
, async = require('async')
var updateUserInfo = function() {
var userSerializer = {
select: ['id', 'username', 'type', 'info'],
info: {
select: ['screenName', 'email', 'receiveEmails']
}
}
db.keys('user:*', function(... | berkus/pepyatka-server | services/update-user-info.js | JavaScript | mit | 1,836 |
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
import _extends from "@babel/runtime/helpers/esm/extends";
/* eslint-disable jsx-a11y/aria-role */
import * as React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import { deepmerge } from ... | cdnjs/cdnjs | ajax/libs/material-ui/5.0.0-alpha.27/modern/TabScrollButton/TabScrollButton.js | JavaScript | mit | 3,824 |
/**
* @license Highstock JS v8.2.2 (2020-10-22)
*
* Indicator series type for Highstock
*
* (c) 2010-2019 Paweł Fus
*
* License: www.highcharts.com/license
*/
'use strict';
(function (factory) {
if (typeof module === 'object' && module.exports) {
factory['default'] = factory;
module.exports ... | cdnjs/cdnjs | ajax/libs/highcharts/8.2.2/indicators/price-envelopes.src.js | JavaScript | mit | 10,344 |
define(['database', 'queue', 'qPopulate', 'status', 'qData'], function(database, questionQueue, populate, status, queueData) {
// ===============================================
//
// Populate
//
//
describe('Queue: Testing Queue Load and Save', function() {
var... | JudgeGroovyman/new_lazacademy | public/javascripts/app/queue/load_save_spec.js | JavaScript | cc0-1.0 | 5,463 |
var require = { "paths" :
{
"jquery": "./lib/jquery/dist/jquery",
"underscore": "./lib/underscore/underscore",
"backbone": "./lib/backbone/backbone",
"jquery-scrollstop": "./lib/jquery.scrollstop/index",
"queryparams": "./lib/backbone.queryparams/index",
"unveil": "./lib/... | jeremiak/regulations-site | regulations/static/regulations/js/built/require.config.js | JavaScript | cc0-1.0 | 2,818 |
/**
* @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 Virtual Joystick Plugin to run.
* For more details please see http://phaser.... | boniatillo-com/PhaserEditor | source/phasereditor/phasereditor.resources.phaser.examples/phaser-examples-master/examples/virtualjoystick/show on touch.js | JavaScript | epl-1.0 | 1,722 |
define(["CC"],
function(CC) {
if (UNIT_TEST) {
var uexALiBaiChuanCase = {
"init": function() {
uexALiBaiChuan.init(function(error, msg) {
if (!error) {
UNIT_TEST.assert(true);
} else {
UNIT_TE... | android-plugin/uexGaodeNavi | assets/widget/case/js/uexALiBaiChuan.js | JavaScript | gpl-2.0 | 3,862 |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2007 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* ... | healthcommcore/lung_cancer_site | survey/admin/scripts/fckeditor.263/editor/plugins/LimeReplacementFields/lang/en.js | JavaScript | gpl-2.0 | 822 |
jQuery(document).ready(function($) {
$(".fland-tabs").tabs({ fx: { opacity: 'show' } });
$(".fland-toggle").each( function () {
if($(this).attr('data-id') == 'closed') {
$(this).accordion({ header: '.fland-toggle-title', collapsible: true, active: false });
} else {
$(this).accordion({ header: '.fland-t... | alonecuzzo/23bit | wp-content/themes/timeline/shortcode/js/zilla-shortcodes-lib.js | JavaScript | gpl-2.0 | 371 |
import { browserHistory } from 'react-router';
import C from './constants';
const auth = {
login: (provider) => {
let authProvider = null;
switch (provider) {
case 'facebook':
authProvider = new firebase.auth.FacebookAuthProvider();
break;
case 'google':
authProvider = n... | project-bobon/bobonroastprofile | src/auth.js | JavaScript | gpl-2.0 | 921 |
if (!window._path) {
window._path = 'admin';
}
window.sites = [];
window.groupname = null;
if (window.menuData == undefined) {
jr.xhr.get(window._path + '?module=ajax&action=appinit', function (x) {
var ip, address, md, username;
eval(x);
window.menuData = md;
jr.json.bind(docu... | jsix/cms | src/core/JR.Cms.Web/Resource/WebManager/resouces/images/ui.component.source.js | JavaScript | gpl-2.0 | 20,786 |
var Aether = Aether || {};
/***
* Hud Object
*/
(function(){
var Hud = function(){
var _this = this;
_this.canvas = document.createElement("canvas");
_this.canvas.width = 200;
_this.canvas.height = 200;
_this.ctx = _this.canvas.getContext("2d");
_this.ctx.font = "9px Helvetica";
_this.... | asyndesis/harpies | public/js/hud.js | JavaScript | gpl-2.0 | 930 |
/*
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.lang.functional.reversed"]){ //_hasResource checks added by build. Do not use _hasResource dir... | fedora-infra/packagedb | pkgdb/static/js/dojox/lang/functional/reversed.js | JavaScript | gpl-2.0 | 3,243 |
Drupal.TBMegaMenu = Drupal.TBMegaMenu || {};
(function ($, Drupal, drupalSettings) {
"use strict";
Drupal.TBMegaMenu.oldWindowWidth = 0;
Drupal.TBMegaMenu.displayedMenuMobile = false;
Drupal.TBMegaMenu.supportedScreens = [980];
Drupal.TBMegaMenu.menuResponsive = function () {
var windowWidth = window.in... | padmanabhan-developer/EstarProd | modules/tb_megamenu/js/tb-megamenu-frontend.js | JavaScript | gpl-2.0 | 3,768 |
/*
* This file is part of the TYPO3 CMS project.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*
* For the full copyright and license information, please read the
* LICENSE.txt file ... | ksjogo/TYPO3.CMS | typo3/sysext/backend/Resources/Public/JavaScript/LayoutModule/DragDrop.js | JavaScript | gpl-2.0 | 9,148 |
(function($, v) {
var timeout;
$(document).ready(function() {
$('#settings-button').click(function() {
$('#settings-form').submit();
});
function updateChart() {
clearTimeout(timeout);
timeout = setTimeout(function() {
var settings = $('#settings-form').serializeObject();
delete settin... | hle25-micros/aet-tankers | wp-content/plugins/visualizer/js/preview.js | JavaScript | gpl-2.0 | 2,020 |
var api = angular.module('api', []);
api.config(function($interpolateProvider) {
$interpolateProvider.startSymbol('[[|').endSymbol('|]]');
})
// wikipedia controller
api.controller('WikipediaController', ['$scope', '$http',
function($scope, $http) {
$scope.wikipediaUrl = 'https://el.wikipedia.org/w/ap... | crowdhackathon-tourism/holidays-on-village | public/assets/js/controllers/api.js | JavaScript | gpl-2.0 | 4,908 |
/***************************************************************
¶à¼¶¹ØÁª²Ëµ¥ http://wanghui.name
***************************************************************/
//²Ëµ¥ÏÂÀ¿òÃû³Æ
var arrSel = ['S1','S2','S3','S4','S5'];
//**********¶¨ÒåÊý×鿪ʼ*****************************
//²Ëµ¥Ïî¸ñʽ£ºÃû³Æ£¬Öµ£¬[×ÓÏî(ûÓÐ×ÓÏîÎ... | hp-yu/quicklab_yc | include/multiLevelMenu.js | JavaScript | gpl-2.0 | 3,754 |
/* ************************************************************************
qooxdoo - the new era of web development
http://qooxdoo.org
Copyright:
2004-2011 1&1 Internet AG, Germany, http://www.1und1.de
License:
LGPL: http://www.gnu.org/licenses/lgpl.html
EPL: http://www.eclipse.org/org/d... | 09zwcbupt/undergrad_thesis | ext/poxdesk/qx/framework/source/class/qx/ui/core/scroll/MWheelHandling.js | JavaScript | gpl-3.0 | 2,606 |
'use strict';
var BotUtil = require('./botutil');
var PermissionLevels = require('./permissionlevels');
/**
* Creates/loads a permission object
* @constructor
* @param {PermissionsManager} manager
* @param {String} id
* @param {Integer} defaultLevel
* @returns {Permission}
*/
var Permission = function (manager... | Tschrock/PicartoChatBot | modules/permission.js | JavaScript | gpl-3.0 | 3,068 |
/*******************************************************************************
uBlock Origin - a browser extension to block requests.
Copyright (C) 2015-present Raymond Hill
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as p... | gorhill/uBlock | src/js/scriptlets/load-large-media-interactive.js | JavaScript | gpl-3.0 | 9,032 |
var searchData=
[
['editor',['editor',['../classeditor.html',1,'']]]
];
| mihailikus/cengen | doc/html/search/classes_65.js | JavaScript | gpl-3.0 | 74 |
// @flow
import { Record, Map } from 'immutable'
import Profile from 'models/Profile'
import ShareRecipient from 'models/ShareRecipient'
import IpfsDirectory from 'models/IpfsDirectory'
import isIpfs from 'is-ipfs'
const LOCAL_DATA_VERSION = 1
const PUBLISH_DATA_VERSION = 1
export const ShareState = {
AVAILABLE : '... | MichaelMure/TotallyNotArbore | app/models/Share.js | JavaScript | gpl-3.0 | 4,675 |
/*
* Copyright (C) 2007-2022 Crafter Software Corporation. All Rights Reserved.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 3 as published by
* the Free Software Foundation.
*
* This program is distributed in the hope tha... | rart/studio-ui | static-assets/components/cstudio-templates/in-context-edit.js | JavaScript | gpl-3.0 | 1,116 |
/*! jQuery UI - v1.10.4 - 2014-03-09
* http://jqueryui.com
* Copyright 2014 jQuery Foundation and other contributors; Licensed MIT */
(function(t){var e=/up|down|vertical/,i=/up|left|vertical|horizontal/;t.effects.effect.blind=function(s,n){var a,o,r,l=t(this),h=["position","top","bottom","left","right","height","widt... | dwbfox/Nuke-Your-Tracks | js/vendor/jquery-ui-1.10.4.custom/development-bundle/ui/minified/jquery.ui.effect-blind.min.js | JavaScript | gpl-3.0 | 956 |
import countWords from "../stringProcessing/countWords.js";
import keyphraseLengthFactor from "../helpers/keyphraseLengthFactor.js";
/**
* Calculates a recommended keyword count for a text. The formula to calculate this number is based on the
* keyword density formula.
*
* @param {string} text The paper text.
* @... | Yoast/js-text-analysis | src/assessmentHelpers/recommendedKeywordCount.js | JavaScript | gpl-3.0 | 1,477 |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/** @module state */ /** for typedoc */
var predicates_1 = require("../common/predicates");
var common_1 = require("../common/common");
var StateMatcher = /** @class */ (function () {
function StateMatcher(_states) {
this._states =... | cycojesus/ledgerrb | public/app/vendor/node_modules/@uirouter/core/lib/state/stateMatcher.js | JavaScript | gpl-3.0 | 2,700 |
/**
* @file Burrow.js
* @fileOverview Factory module for the Burrow class.
* @author Dennis Mckinnon
* @module Burrow
*/
'use strict'
var Service = require('./service')
var events = require('./events.js')
var Pipe = require('./pipe')
var ContractManager = require('./contractManager')
var Namereg = require('./na... | silasdavis/eris-db | js/lib/Burrow.js | JavaScript | gpl-3.0 | 1,514 |
/**
* Licensed to The Apereo Foundation under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
*
*
* The Apereo Foundation licenses this file to you under the Educational
* Community License, Version 2.0 (the ... | TIK-NFL/ilias-oc-plugin | templates/theodul/plugin/4/static/main.js | JavaScript | gpl-3.0 | 11,430 |
/**
* @license
* Visual Blocks Editor
*
* Copyright 2011 Google Inc.
* https://developers.google.com/blockly/
*
* 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.apach... | guimotoys/guimo_app | www/lib/blockly/core/blockly.js | JavaScript | gpl-3.0 | 18,440 |
(function () {
'use strict';
var components = angular.module('lavagna.components');
components.component('lvgCardModal', {
bindings: {
project: '=',
board: '=',
card: '=',
user: '='
},
controller: function($mdDialog, $state, $scope) {
var ctrl = this;
var goBack = func... | velmuruganvelayutham/lavagna | src/main/webapp/app/components/card-modal/card-modal.js | JavaScript | gpl-3.0 | 1,277 |
$(document).ready(function () {
$("#elm_cnh_code").focus(function (e) {
$(".cnh-hint").fadeIn("slow");
$(".cnh-arrow").removeClass("hide");
$(".cnh-arrow").addClass("cnh");
$(".cnh-arrow").removeClass("validade");
$(".cnh-arrow2").addClass("hide");
});
$("#elm_cnh_val... | eokoe/De-Olho-Nas-Metas | web/root/static/js/cadastro.js | JavaScript | gpl-3.0 | 947 |
module.exports = {
props: ['user', 'team', 'billableType'],
/**
* Load mixins for the component.
*/
mixins: [
require('./../mixins/discounts')
],
/**
* The componetn's data.
*/
data() {
return {
currentDiscount: null,
loadingCurrent... | expoteca/expoteca.com | spark/resources/assets/js/settings/payment-method-stripe.js | JavaScript | gpl-3.0 | 784 |
Ext
.define(
'Bloodbank.view.searchengine.search.SearchEngineMainPanelController',
{
extend : 'Ext.app.ViewController',
alias : 'controller.solrsearchcontroller',
recognizing : false,
recognition:null,
searchCommand : [],
afterRender : function() {
debugger;
me=this;... | applifireAlgo/bloodbank | bloodbank/src/main/webapp/app/view/searchengine/search/SearchEngineMainPanelController.js | JavaScript | gpl-3.0 | 11,390 |
// Karma configuration
// Generated on Tue Aug 18 2015 09:02:09 GMT+0100 (GMT Daylight Time)
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/br... | Softwire/Workflowy2Web | karma.conf.js | JavaScript | gpl-3.0 | 1,659 |
/* 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/>. */
import type { ThunkArgs } from "./types";
export function setExpandedState(expanded) {
return ({ dispatch, ge... | amitzur/debugger.html | src/actions/source-tree.js | JavaScript | mpl-2.0 | 425 |
/*global self*/
/*jshint latedef: nofunc*/
/*
Distributed under both the W3C Test Suite License [1] and the W3C
3-clause BSD License [2]. To contribute to a W3C Test Suite, see the
policies and contribution forms [3].
[1] http://www.w3.org/Consortium/Legal/2008/04-testsuite-license
[2] http://www.w3.org/Consortium/Leg... | bzbarsky/servo | tests/wpt/web-platform-tests/resources/testharness.js | JavaScript | mpl-2.0 | 100,320 |
// DO NOT EDIT! This test has been generated by tools/gentest.py.
// OffscreenCanvas test in a worker:size.attributes.parse.hex
// Description:Parsing of non-negative integers
// Note:
importScripts("/resources/testharness.js");
importScripts("/2dcontext/resources/canvas-tests.js");
var t = async_test("Parsing of non... | larsbergstrom/servo | tests/wpt/web-platform-tests/offscreen-canvas/the-offscreen-canvas/size.attributes.parse.hex.worker.js | JavaScript | mpl-2.0 | 699 |
const helper = require('./helper');
const _ = require('lodash');
const assume = require('assume');
const taskcluster = require('taskcluster-client');
const mocha = require('mocha');
helper.secrets.mockSuite(helper.suiteName(__filename), ['app', 'azure'], function(mock, skipping) {
helper.withPulse(mock, skipping);
... | taskcluster/taskcluster-auth | test/rolelogic_test.js | JavaScript | mpl-2.0 | 12,558 |
/* 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 https://mozilla.org/MPL/2.0/. */
import { SET_PREFERENCE, UPDATE_OUTPUT } from '../../../constants/actions';
import { requestSetPreference } from ... | translatium/translatium | src/state/root/preferences/actions.js | JavaScript | mpl-2.0 | 2,183 |
(function(){
var a;
a=function(){
var a,b;
b=document.createElement("script");
b.src="/assets/js/vendor/zxcvbn.js";
b.type="text/javascript";
b.async=!0;
a=document.getElementsByTagName("script")[0];
return a.parentNode.insertBefore(b,a)
};
null!=w... | CryptArc/txbits | txbits/public/js/vendor/zxcvbn-async.js | JavaScript | agpl-3.0 | 421 |
var env = 'prod';
var api_url;
var admin_url;
if (env == 'local') {
admin_url = 'http://admin.forum.dev/';
api_url = 'http://api.forum.dev/';
} else {
admin_url = 'https://admin.forum-am.fr/';
api_url = 'https://api.forum-am.fr/';
}
var app = angular.module('app', ['ngResource',
'oc.lazyLoad',
... | Nyan-Kat/forumam_front | src/app.js | JavaScript | agpl-3.0 | 7,841 |
/*
This file is part of the Juju GUI, which lets users view and manage Juju
environments within a graphical interface (https://launchpad.net/juju-gui).
Copyright (C) 2014 Canonical Ltd.
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU Affero General Public License vers... | bac/juju-gui | jujugui/static/gui/src/test/test_web_handler.js | JavaScript | agpl-3.0 | 13,636 |
import React from "react";
import PropTypes from "prop-types";
import { connect } from "react-redux";
// material components
import Select from "@material-ui/core/Select";
import MenuItem from "@material-ui/core/MenuItem";
import FormControl from "@material-ui/core/FormControl";
import FormHelperText from "@material-ui... | jaesivsm/JARR | jsclient/src/features/editpanel/Feed/ProposedLinks.js | JavaScript | agpl-3.0 | 1,467 |
$(document).ready(function () {
//do not show when upgrade is in progress or an error message
//is visible on the login page
if (jQuery('#upgrade').length === 0 && jQuery('#body-login .error').length === 0) {
showSetPassword();
}
});
// Done when "colorBox" is displayed
function showSetPasswordComplete() {
$... | CNRS-DSI-Dev/user_set_password | js/activate.js | JavaScript | agpl-3.0 | 4,458 |
/* This file is part of Stereoskopix FOV2GO for Unity V3.
* URL: http://www.stereoskopix.com/ * Please direct any bugs/comments/suggestions to hoberman@usc.edu.
* Stereoskopix FOV2GO for Unity Copyright (c) 2011-12 Perry Hoberman & MxR Lab. All rights reserved.
* This script goes in the Editor folder. It provides a... | hcilab-um/UnityHandlers | UnityMultiplatform/unity_epson-200/Assets/FOV2GO/Editor/s3dDeviceManagerEditor.js | JavaScript | agpl-3.0 | 4,845 |
/*
* Copyright 2015 Anton Tananaev (anton.tananaev@gmail.com)
*
* 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 b... | erlymon/erlymon | apps/erlymon/priv/web/app/view/State.js | JavaScript | agpl-3.0 | 1,052 |
/**
* Store data to enroll learners into the course
*/
;(function (define) {
'use strict';
define([
'backbone'
],
function( Backbone) {
return Backbone.Model.extend({
defaults: {
course_id: '',
optIn: false,
... | waheedahmed/edx-platform | lms/static/js/learner_dashboard/models/course_enroll_model.js | JavaScript | agpl-3.0 | 410 |
/**
* PUI Object
*/
PUI = {
zindex : 1000,
/**
* Aligns container scrollbar to keep item in container viewport, algorithm copied from jquery-ui menu widget
*/
scrollInView: function(container, item) {
var borderTop = parseFloat(container.css('borderTopWidth')) || ... | echinopsii/net.echinopsii.ariane.community.core.portal | wresources/src/main/webapp/ariane/test/ajs/primeui-0.9.6/development/js/core/core.js | JavaScript | agpl-3.0 | 1,852 |
/*
***** BEGIN LICENSE BLOCK *****
Copyright © 2009 Center for History and New Media
George Mason University, Fairfax, Virginia, USA
http://zotero.org
This file is part of Zotero.
Zotero is free software: you can redistribute it and/or modify
... | fbennett/zotero | chrome/content/zotero/xpcom/data/itemFields.js | JavaScript | agpl-3.0 | 13,152 |
define([
'backbone',
'./metric'
], function (Backbone, Metric) {
return Backbone.Collection.extend({
model: Metric,
url: function () {
return window.baseUrl + '/api/metrics/search';
},
parse: function (r) {
this.total = r.total;
this.p = r.p;
this.ps = r.ps;
return... | dgageot/sonarqube | server/sonar-web/src/main/js/apps/metrics/metrics.js | JavaScript | lgpl-3.0 | 911 |
class DataInterface {
// Data retrieval. Going to use API in this instance, but in the event
// sockets seems more doable the functions should be easy to switch out
getUpdatedStory(){
return "Myep";
}
}
module.exports = DataInterface; | TheGrimJam/fictiongen | fictiongen_app/staticfiles/js/data.js | JavaScript | lgpl-3.0 | 269 |
import { faIcon } from '../../../helpers/fa-icon';
import { module, test } from 'qunit';
module('Unit | Helper | {{fa-icon}}');
test('it works as a function', function(assert) {
var result = faIcon('credit-card');
assert.equal(result, '<i class="fa fa-credit-card" aria-hidden="true"></i>');
});
| limesoft/ember-cli-font-awesome | tests/unit/helpers/fa-icon-test.js | JavaScript | unlicense | 302 |
import { app, Menu, prompt } from "electron";
const template = [
{
label: "Edit",
submenu: [
{
role: "undo"
},
{
role: "redo"
},
{
type: "separator"
},
{
role: "cut"
},
{
role: "copy"
},
{
role: ... | streamkitchen/streamkitchen | packages/sp-app/src/menu.js | JavaScript | apache-2.0 | 2,458 |
export function ba_se() {
console.log('"mod.ule"."ba.se"');
}
| WebAssembly/binaryen | scripts/test/mod.ule.js | JavaScript | apache-2.0 | 65 |
// Copyright 2015 OpenWhere, 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... | owap/scenery | lib/properties/CloudfrontLogging.js | JavaScript | apache-2.0 | 1,043 |
/*
* Kendo UI Web v2014.1.318 (http://kendoui.com)
* Copyright 2014 Telerik AD. All rights reserved.
*
* Kendo UI Web commercial licenses may be obtained at
* http://www.telerik.com/purchase/license-agreement/kendo-ui-web
* If you do not own a commercial license, this file shall be governed by the
* GNU General Public ... | facundolucas/eCuentas | src/main/webapp/resources/kendoui/src/js/cultures/kendo.culture.sr-Latn-CS.js | JavaScript | apache-2.0 | 2,717 |
return 53;
| lucaswerkmeister/ceylon.language | runtime-js/runtime/integerSize.js | JavaScript | apache-2.0 | 11 |
export default function initOverrideOpen(db, SyncNode, crudMonitor) {
return function overrideOpen(origOpen) {
return function () {
//
// Make sure to subscribe to "creating", "updating" and "deleting" hooks for all observable tables that were created in the stores() method.
//
Object.keys... | chrahunt/Dexie.js | addons/Dexie.Observable/src/override-open.js | JavaScript | apache-2.0 | 644 |