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 |
|---|---|---|---|---|---|
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(global = global || self, factory(global.VueMask = {}));
}(this, function (exports) { 'use strict';
function _typeof(obj) {... | sufuf3/cdnjs | ajax/libs/v-mask/2.0.2/v-mask.js | JavaScript | mit | 13,896 |
module.exports = {
visionKey: 'AIzaSyAA14j-7sIJLDTRZd3bYpZrmCEoFA9IN40',
pairingID: 'b5378ca6',
pairingKey: '690be2968f8f08b26fcc1f2c9c8f5b90',
recipesKey: 'qAjqbB5sPamshJwWJJh01Y3exb3Jp1wBzcOjsnrqegcRf1PCXT',
backUpRecipesKey: 'jHbWfZqPEUmsh0NElMAPdMXlfPm1p1M9n5NjsnPD1l0Vjhsjng'
}
| fjjk-snacktime/snacktime | server/utils/apiKeys.js | JavaScript | mit | 293 |
!function(o){"object"==typeof module&&module.exports?module.exports=o.default=o:"function"==typeof define&&define.amd?define("highcharts/themes/sunset",["highcharts"],function(e){return o(e),o.Highcharts=e,o}):o("undefined"!=typeof Highcharts?Highcharts:void 0)}(function(e){function o(e,o,t,s){e.hasOwnProperty(o)||(e[o... | cdnjs/cdnjs | ajax/libs/highcharts/9.0.1/themes/sunset.min.js | JavaScript | mit | 737 |
'use strict';
/**
* Module dependencies.
*/
var init = require('./config/init')(),
config = require('./config/config'),
mongoose = require('mongoose'),
chalk = require('chalk');
/**
* Main application entry file.
* Please note that the order of loading is important.
*/
// Bootstrap db connection
var db = mong... | jtan25/QuickSource | server.js | JavaScript | mit | 844 |
onOpenDialog = function(dialog) {
$('.ui-dialog').corner('6px').find('.ui-dialog-titlebar').corner('1px top');
$(document.body).addClass('hide-overflow');
}
onCloseDialog = function(dialog) {
$(document.body).removeClass('hide-overflow');
}
var wymeditor_inputs = [];
var wymeditors_loaded = 0;
// supply custom_... | mdoyle13/haymarket-ref | public/javascripts/refinery/boot_wym.js | JavaScript | mit | 7,963 |
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
import _extends from "@babel/runtime/helpers/esm/extends";
import * as React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import { integerPropType, deepmerge } from '@material-ui/utils';
im... | cdnjs/cdnjs | ajax/libs/material-ui/5.0.0-alpha.31/modern/MobileStepper/MobileStepper.js | JavaScript | mit | 6,518 |
// start the popup specefic scripts
// safe to use $
jQuery(document).ready(function($) {
var vibes = {
loadVals: function()
{
var shortcode = $('#_vibe_shortcode').text(),
uShortcode = shortcode;
// fill in the gaps eg {{param}}
$('.vibe-input').each(function() ... | songlequang/myclass | wp-content/plugins/vibe-shortcodes/tinymce/js/popup.js | JavaScript | gpl-2.0 | 8,606 |
/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.editorConfig = function( config ) {
// Define changes to default configuration here.
// For complete reference see:
// https://ckeditor.com/d... | CRLbazin/agoraexmachina | public/js/ckeditor/config.js | JavaScript | gpl-2.0 | 1,321 |
/**
* BxSlider v4.1.2 - Fully loaded, responsive content slider
* http://bxslider.com
*
* Copyright 2014, Steven Wanderski - http://stevenwanderski.com - http://bxcreative.com
* Written while drinking Belgian ales and listening to jazz
*
* Released under the MIT license - http://opensource.org/licenses/MI... | mhndev/shopping | public/js/jquery.bxslider.min.js | JavaScript | gpl-2.0 | 23,177 |
'use strict';
if (mejs.i18n.ca !== undefined) {
//mejs.i18n.en["mejs.frame-rate"] = "Media frame rate (select according to your video source)";
//mejs.i18n.en["mejs.step-fwd"] = "Step forward";
//mejs.i18n.en["mejs.step-back"] = "Step back";
}
if (mejs.i18n.cs !== undefined) {
//mejs.i18n.en["mejs.fram... | exponentcms/exponent-cms | external/mediaelement/build/frameNavigator/frameNavigator-i18n.js | JavaScript | gpl-2.0 | 5,105 |
intelli.database = [];
$(function()
{
if ($('#query_out').text())
{
setTimeout( (function(){ $('#query_out').height(window.screen.height - $('#query_out').offset().top - 300) }), 1000);
}
$('a', '.js-selecting').on('click', function(e)
{
e.preventDefault();
var $ctl = $('#tbl option');
switch ($(this).... | wildanSawaludin/subrion | js/admin/database.js | JavaScript | gpl-3.0 | 5,357 |
$(document).ready(function() {
/* Add a [>>>] button on the top-right corner of getthecode div to show the code */
var div = $('.getthecode-header')
var button_text = 'Show/Hide the code';
var button_styles = {
'cursor':'pointer',
'float': 'right',
'text-size': '75%',
'font-family': 'monospa... | FabriceSalvaire/simple-morpho-math | doc/sphinx/source/_static/hidecode.js | JavaScript | gpl-3.0 | 851 |
function init() {
em.setProperty("state", "0");
em.setProperty("leader", "true");
}
function setup(eim, leaderid) {
em.setProperty("state", "1");
em.setProperty("leader", "true");
var eim = em.newInstance("2095_tokyo" + leaderid);
var map = eim.createInstanceMap(802000311);
map.killAllMonsters(false);
... | Maxcloud/Mushy | scripts/event/removed/2095_tokyo.js | JavaScript | gpl-3.0 | 1,620 |
module.exports = {
getOne: require('./get-one'),
getAllByUser: require('./get-all-by-user'),
create: require('./create'),
update: require('./update'),
delete: require('./delete'),
testProjects: require('./test-projects')
};
| errietta/publish.webmaker.org | test/lib/fixtures/projects/index.js | JavaScript | mpl-2.0 | 238 |
require=(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)... | fengkiej/chainsign | node_modules/web3/dist/web3.js | JavaScript | agpl-3.0 | 500,237 |
define([
'dojo/_base/declare',
'dojo/dom-construct',
'JBrowse/View/Track/BlockBased',
'JBrowse/Util'],
function(
declare,
dom,
BlockBased,
Util
) {
return declare(BlockBased,
/**
* @lends JBrowse.View.Track.Location... | Arabidopsis-Information-Portal/jbrowse | src/JBrowse/View/Track/LocationScale.js | JavaScript | lgpl-2.1 | 2,746 |
/**
* @license Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview Spell checker.
*/
// Register a plugin named "wsc".
CKEDITOR.plugins.add( 'wsc', {
requires: 'dialog',
lang: 'af,ar,bg,bn,bs,ca,cs,... | FuadEfendi/lpotal | tomcat-7.0.57/webapps/ROOT/html/js/editor/ckeditor/plugins/wsc/plugin.js | JavaScript | lgpl-2.1 | 1,446 |
import { isLeapYear } from "../../Source/Cesium.js";
describe("Core/isLeapYear", function () {
it("Check for valid leap years", function () {
expect(isLeapYear(2000)).toEqual(true);
expect(isLeapYear(2004)).toEqual(true);
expect(isLeapYear(2003)).toEqual(false);
expect(isLeapYear(2300)).toEqual(false... | likangning93/cesium | Specs/Core/isLeapYearSpec.js | JavaScript | apache-2.0 | 878 |
/**
* Define a namespace for the application.
*/
window.app = {};
var app = window.app;
/**
* @constructor
* @extends {ol.interaction.Pointer}
*/
app.Drag = function() {
ol.interaction.Pointer.call(this, {
handleDownEvent: app.Drag.prototype.handleDownEvent,
handleDragEvent: app.Drag.prototype.handle... | dsmiley/hhypermap-bop | bop-ui/assets/lib/ol3-google-maps/examples/concept.js | JavaScript | apache-2.0 | 8,430 |
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
// THIS CODE IS GENERATED - DO NOT MODIFY
// See angular/tools/gulp-tasks/cldr/extract.js
export default [
'en-ZM... | N03297857/2017Fall | node_modules/@angular/common/locales/en-ZM.js | JavaScript | apache-2.0 | 1,661 |
define(["require", "exports", "./base", "./layer", "./util", "./view"], function (require, exports, base_1, layer_1, util_1, view_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.COL_LABELS = base_1.COL_LABELS;
class Board extends view_1.View {
constructo... | tensorflow/minigo | minigui/static/board.js | JavaScript | apache-2.0 | 8,219 |
'use strict';
var assert = require('assert');
var fixtures = require('../fixtures');
var sharp = require('../../index');
var defaultConcurrency = sharp.concurrency();
describe('Utilities', function() {
describe('Cache', function() {
it('Can be disabled', function() {
var cache = sharp.cache(0, 0);
... | mcanthony/sharp | test/unit/util.js | JavaScript | apache-2.0 | 2,746 |
//// [inferTypes1.ts]
type Unpacked<T> =
T extends (infer U)[] ? U :
T extends (...args: any[]) => infer U ? U :
T extends Promise<infer U> ? U :
T;
type T00 = Unpacked<string>; // string
type T01 = Unpacked<string[]>; // string
type T02 = Unpacked<() => string>; // string
type T03 = Unpacked<Promi... | domchen/typescript-plus | tests/baselines/reference/inferTypes1.js | JavaScript | apache-2.0 | 5,975 |
/* eslint-disable no-unused-vars */
// This helps ember-browserify find npm modules in ember-cli addons
import md5 from 'npm:js-md5';
import config from 'ember-get-config';
import _get from 'npm:lodash/get';
import Cookie from 'npm:js-cookie';
import keenTracking from 'npm:keen-tracking';
export {default} from 'ember... | binoculars/ember-osf | app/mixins/keen-tracker.js | JavaScript | apache-2.0 | 347 |
/*
* Copyright (c) 2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you 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/li... | pirinthapan/app-cloud | modules/setup-scripts/conf/wso2das-3.0.1/repository/deployment/server/jaggeryapps/monitoring/gadgets/data-table/js/data-table.js | JavaScript | apache-2.0 | 5,363 |
exports.name = 'should';
exports.category = 'bdd/tdd';
exports.homepage = 'https://npmjs.org/package/should';
| ek1437/PeerTutor | www.peertutor.com/node_modules/nodeman/docs/should.meta.js | JavaScript | apache-2.0 | 110 |
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'... | xingwu1/azure-sdk-for-node | lib/services/recoveryServicesSiteRecoveryManagement/lib/models/inMageAzureV2EventDetails.js | JavaScript | apache-2.0 | 3,153 |
define({
root: ({
appTitle: 'Dojo Bootstrap Map',
navBasemaps: 'Basemaps',
navAbout: 'About',
sidebarTitle: 'Legend',
modalAboutTitle: 'About',
modalAboutContent: 'The goal of this application boilerplate is to demonstrate how to build a mapping application that utilizes the best parts of Dojo... | tsamaya/talking-code-esri-github | exemples/dojo-bootstrap-map-js/src/app/layout/nls/strings.js | JavaScript | apache-2.0 | 658 |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = formatDistance;
// Source: https://www.unicode.org/cldr/charts/32/summary/te.html
var formatDistanceLocale = {
lessThanXSeconds: {
standalone: {
one: 'సెకను కన్నా తక్కువ',
other: '{{count}} సెకన్ల కన్నా త... | BigBoss424/portfolio | v8/development/node_modules/date-fns/locale/te/_lib/formatDistance/index.js | JavaScript | apache-2.0 | 4,724 |
/*************************GO-LICENSE-START*********************************
* Copyright 2018 ThoughtWorks, 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... | varshavaradarajan/gocd | server/webapp/WEB-INF/rails/spec/javascripts/util_spec.js | JavaScript | apache-2.0 | 7,270 |
// This file was procedurally generated from the following sources:
// - src/dstr-binding/obj-ptrn-prop-id-get-value-err.case
// - src/dstr-binding/error/async-gen-func-named-expr-dflt.template
/*---
description: Error thrown when accessing the corresponding property of the value object (async generator named function ... | sebastienros/jint | Jint.Tests.Test262/test/language/expressions/async-generator/dstr-named-dflt-obj-ptrn-prop-id-get-value-err.js | JavaScript | bsd-2-clause | 1,274 |
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-%typedarray%.prototype.indexof
description: >
%TypedArray%.prototype.indexOf.name is "indexOf".
info: |
%TypedArray%.prototype.indexOf (searchElement [ , fromIndex ] )
... | sebastienros/jint | Jint.Tests.Test262/test/built-ins/TypedArray/prototype/indexOf/name.js | JavaScript | bsd-2-clause | 1,037 |
/* ***** BEGIN LICENSE BLOCK *****
* Distributed under the BSD license:
*
* Copyright (c) 2012, Ajax.org B.V.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of sou... | nagyist/ajaxorg-ace-editor | lib/ace/ext/language_tools.js | JavaScript | bsd-3-clause | 8,100 |
angular.module('piwikApp').factory('http404CheckInterceptor', function($q) {
function isClientError(rejection)
{
if (rejection.status === 500) {
return true;
}
return rejection.status >= 400 && rejection.status < 408;
}
return {
'responseError': function(r... | KingNoosh/Teknik | stats/plugins/CoreHome/angularjs/http404check.js | JavaScript | bsd-3-clause | 1,555 |
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
})... | ChromeDevTools/devtools-frontend | node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-use-before-define.js | JavaScript | bsd-3-clause | 10,758 |
// Copyright 2007 The Closure Library Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless requ... | darkrsw/safe | tests/clone_detector_tests/closure-library-read-only/closure/goog/ui/serverchart.js | JavaScript | bsd-3-clause | 55,051 |
//= require_self
//= require spree/backend/handlebars_extensions
//= require spree/backend/variant_autocomplete
//= require spree/backend/taxon_autocomplete
//= require spree/backend/option_type_autocomplete
//= require spree/backend/user_picker
//= require spree/backend/product_picker
//= require spree/backend/option_... | pervino/solidus | backend/app/assets/javascripts/spree/backend/admin.js | JavaScript | bsd-3-clause | 4,270 |
/* -----------------------------------------------
/* How to use? : Check the GitHub README
/* ----------------------------------------------- */
/* To load a config file (particles.json) you need to host this demo (MAMP/WAMP/local)... */
/*
particlesJS.load('particles-js', 'particles.json', function() {
console.log... | Xapuu/SoftUniSoftTech | views/js/app.js | JavaScript | mit | 2,815 |
// Note: You must restart bin/webpack-watcher for changes to take effect
const merge = require('webpack-merge')
const sharedConfig = require('./shared.js')
module.exports = merge(sharedConfig, {
devtool: 'sourcemap',
stats: {
errorDetails: true
},
output: {
pathinfo: true
}
})
| fcbajao/chitchat | config/webpack/development.js | JavaScript | mit | 300 |
var global = require('../../global');
module.exports = function (packing, offset) {
var items = [].concat.apply([], packing.items);
var iso = "FM.FP-GJ-15-003";
// var number = packing.code;
// var colorName = packing.colorName;
var orderType = (packing.orderType || "").toString().toLowerCase() ... | indriHutabalian/dl-module | src/pdf/definitions/packing.js | JavaScript | mit | 8,749 |
/**
* Interaction for the faq module
*
* @author Annelies Van Extergem <annelies@netlash.com>
* @author Jelmer Snoeck <jelmer.snoeck@netlash.com>
* @author Thomas Deceuninck <thomas@fronto.be>
*/
jsFrontend.faq =
{
// init, something like a constructor
init: function()
{
if($('#faqFeedbackForm').length > 0) ... | gertjanmeire/davy_portfolio | frontend/modules/faq/js/faq.js | JavaScript | mit | 858 |
/*
* jQuery File Upload Plugin 5.32.0
* https://github.com/blueimp/jQuery-File-Upload
*
* Copyright 2010, Sebastian Tschan
* https://blueimp.net
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/MIT
*/
/*jslint nomen: true, unparam: true, regexp: true */
/*global define, window, documen... | gregmoser/muracon2016 | www/admin/assets/js/jquery/jquery.fileupload.js | JavaScript | mit | 57,130 |
// Copyright 2008 The Closure Library Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unl... | dmincu/IOC | new_php/closure-library/closure/goog/module/basemodule.js | JavaScript | mit | 1,411 |
/*
* Copyright (c) 2012 Dmitri Melikyan
*
* 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, ... | umaar/nodetime | lib/filter.js | JavaScript | mit | 4,266 |
/*
* Version 0.1.14
* Made By Robin Kuiper
* Skype: RobinKuiper.eu
* Discord: Atheos#1095
* My Discord Server: https://discord.gg/AcC9VME
* Roll20: https://app.roll20.net/users/1226016/robin
* Roll20 Wiki: https://wiki.roll20.net/Script:Concentration
* Roll20 Thread: https://app.roll20.net/forum/post/6364317/sc... | NathaTerrien/Natha-roll20-api-scripts | Concentration/Concentration.js | JavaScript | mit | 23,944 |
Polymer('selection-example', {
itemTapAction: function(e, detail, sender) {
this.$.selection.select(e.target);
},
selectAction: function(e, detail, sender) {
detail.item.classList.toggle('selected', detail.isSelected);
}
});
| sunglim/csp_fixer | test_resource/core_elements_expected/src/core-selection/demo.html.0.js | JavaScript | mit | 278 |
/**
* Browser platform description
*/
SB.createPlatform('browser', {
keys: {
RIGHT: 39,
LEFT: 37,
DOWN: 40,
UP: 38,
RETURN: 27,//esc
EXIT: 46,//delete
TOOLS: 32,//space
FF: 33,//page up
RW: 34,//page down
NEXT: 107,//num+
PREV... | Shadealex/smartbox | src/platforms/_browser/sb.platform.browser.js | JavaScript | mit | 1,192 |
//-------------------------------------------------------------------------------------------------------
// 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/Optimizer/test137.js | JavaScript | mit | 546 |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: >
Operator x <= y returns ToString(x) <= ToString(y), if Type(Primitive(x))
is String and Type(Primitive(y)) is String
es5id: 11.8.3_A3.2_T1.2
description: >
Type(... | PiotrDabkowski/Js2Py | tests/test_cases/language/expressions/less-than-or-equal/S11.8.3_A3.2_T1.2.js | JavaScript | mit | 1,234 |
var _ = require('underscore');
var Backbone = require('backbone');
var GRAPHICS = require('../util/constants').GRAPHICS;
var VisBase = require('../visuals/visBase').VisBase;
var VisEdge = VisBase.extend({
defaults: {
tail: null,
head: null,
animationSpeed: GRAPHICS.defaultAnimationTime,
animationEas... | easteregg423/learnGitBranching | src/js/visuals/visEdge.js | JavaScript | mit | 4,984 |
require('../../support/spec_helper');
describe("Cucumber.Ast.Feature", function () {
var Cucumber = requireLib('cucumber');
var scenarioCollection, lastScenario;
var feature, keyword, name, description, uri, line;
beforeEach(function () {
lastScenario = createSpy("Last scenario");
scenarioCollection =... | arty-name/cucumber-js | spec/cucumber/ast/feature_spec.js | JavaScript | mit | 14,337 |
/*
* A reply to a screenshot comment made on a review.
*
* When created, this must take a parentObject attribute that points to a
* Review object.
*/
RB.ScreenshotCommentReply = RB.BaseCommentReply.extend({
rspNamespace: 'screenshot_comment'
});
| custode/reviewboard | reviewboard/static/rb/js/resources/models/screenshotCommentReplyModel.js | JavaScript | mit | 255 |
define([
"dojo/_base/declare",
"dojo/_base/lang",
"dojo/store/Memory",
"dojo/query",
"dojo/dom-attr",
"dijit/_WidgetBase",
"dijit/_FocusMixin",
"dijit/_TemplatedMixin",
"dijit/form/FilteringSelect"
], function(declare, lang, Store, query, domAttr, _WidgetBase, _FocusMixin, _TemplatedMixin, FilteringSelect){
/... | mbouami/pme | web/js/gridx/support/DropDownPager.js | JavaScript | mit | 2,919 |
var should = require('should'),
sinon = require('sinon'),
rewire = require('rewire'),
path = require('path'),
Promise = require('bluebird'),
ampController = rewire('../lib/router'),
errors = require('../../../errors'),
configUtils = require('../../../../test/utils/configUtils'),
themes ... | SkynetInc/steam | core/server/apps/amp/tests/router_spec.js | JavaScript | mit | 6,181 |
/** PeriodLister Class */
function PeriodDeltaChain(params) {
this.period_root_id = params.period_root_id;
this.date_format = this.set_or_default(params.date_format, '');
this.set_due_date(params.due_date);
this.period_class = this.set_or_default(params.period_class, 'period');
}
PeriodDeltaChain.prototype.re... | binuri/Markus | app/assets/javascripts/PeriodDeltaChain/PeriodDeltaChain.js | JavaScript | mit | 1,839 |
var test = require("tape")
var add = require("../index.js")
test("add is a function", function (assert) {
assert.equal(typeof add, "function")
assert.end()
})
test("can add numbers", function (assert) {
assert.equal(add(3, 9), 12)
assert.end()
}) | Raynos/add | test/index.js | JavaScript | mit | 264 |
var parent = require('../../stable/string/match-all');
module.exports = parent;
| zloirock/core-js | packages/core-js/actual/string/match-all.js | JavaScript | mit | 81 |
const Combinatorics = require('js-combinatorics');
const widths = [null, 20, 60];
const heights = [null, 40, 80];
const horizontalAlignments = [null, 'left', 'right', 'center'];
const verticalAlignments = [null, 'bottom', 'top', 'center'];
const orients = [null, 'horizontal', 'vertical'];
const caps = [null, 10, ... | chrisprice/d3fc | packages/d3fc-shape/test/data/options.js | JavaScript | mit | 1,363 |
"use strict";
const Utils = require("../../core/Utils");
const RequestQueue = require("./RequestQueue");
const ChainedBucket = require("./ChainedBucket");
class RequestQueueGroup {
constructor(bucketFactory) {
this.queues = {};
this.bucketFactory = bucketFactory || null;
if (!(bucketFactory instanceof... | Gamecloud-Solutions/streambot | node_modules/discordie/lib/core/ratelimiting/RequestQueueManager.js | JavaScript | mit | 7,655 |
'use strict';
const {
Symbol
} = primordials;
const {
kUpdateTimer,
onStreamRead,
} = require('internal/stream_base_commons');
const { owner_symbol } = require('internal/async_hooks').symbols;
const { Readable } = require('stream');
const kHandle = Symbol('kHandle');
class HeapSnapshotStream extends Readable {
... | enclose-io/compiler | lts/lib/internal/heap_utils.js | JavaScript | mit | 826 |
import hasFeature from './has';
export function prop(path) {
return function(state, props) {
const names = path.split('.');
if (!(names[0] in props)) {
throw new Error(`Missing required prop ${names[0]}.`);
}
return names.reduce((p, name) => (p && p[name]), props);
};
}
export function has... | tf/pageflow-dependabot-test | node_package/src/utils/selectors.js | JavaScript | mit | 433 |
// Returns function that returns deferred or promise object.
//
// 1. If invoked without arguments then deferred object is returned
// Deferred object consist of promise (unresolved) function and resolve
// function through which we resolve promise
// 2. If invoked with one argument then promise is returned which... | OliveAwesomesauz/pipe.js | node_modules/webmake/node_modules/deferred/lib/deferred.js | JavaScript | gpl-2.0 | 4,997 |
({
// local representation of all CSS3 named colors, companion to dojo.colors. To be used where descriptive information
// is required for each color, such as a palette widget, and not for specifying color programatically.
//Note: due to the SVG 1.0 spec additions, some of these are alternate spellings for the same c... | Emergen/zivios-panel | web/public/scripts/devel/current/dojo/nls/ar/colors.js | JavaScript | gpl-3.0 | 6,045 |
/**
* Kendo UI v2018.1.221 (http://www.telerik.com/kendo-ui)
* Copyright 2018 Telerik AD. All rights reserved. ... | Memba/Kidoju-Widgets | src/js/vendor/kendo/cultures/kendo.culture.sv-FI.js | JavaScript | gpl-3.0 | 6,541 |
$(function() {
var resultCache = [];
var allItems = $(".index .item");
$("#filter_text").keyup(function(){
var searchString = $(this).val();
allItems.addClass('visibility_hidden');
var items;
if (resultCache[searchString] === undefined) {
items = $(".index .item... | Ictp/indico | indico/htdocs/js/indico/jquery/authors.js | JavaScript | gpl-3.0 | 1,191 |
/** @odoo-module **/
export function isImg(node) {
return (node && (node.nodeName === "IMG" || (node.className && node.className.match(/(^|\s)(media_iframe_video|o_image|fa)(\s|$)/i))));
}
/**
* Returns a list of all the ancestors nodes of the provided node.
*
* @param {Node} node
* @param {Node} [stopElement... | jeremiahyan/odoo | addons/web_editor/static/src/js/common/wysiwyg_utils.js | JavaScript | gpl-3.0 | 616 |
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the Lic... | tmhorne/celtx | js/tests/js1_5/Expressions/regress-96526-noargsub.js | JavaScript | mpl-2.0 | 3,761 |
// |jit-test| error:TypeError
if (!this.hasOwnProperty("TypedObject"))
throw new TypeError();
new TypedObject.StructType(RegExp);
| JasonGross/mozjs | js/src/jit-test/tests/TypedObject/fuzz6.js | JavaScript | mpl-2.0 | 134 |
import { create, visitable } from 'ember-cli-page-object';
import editForm from 'vault/tests/pages/components/identity/edit-form';
export default create({
visit: visitable('/vault/access/identity/:item_type/aliases/add/:id'),
editForm,
});
| quixoten/vault | ui/tests/pages/access/identity/aliases/add.js | JavaScript | mpl-2.0 | 245 |
// Generated by CoffeeScript 1.11.1
var Fetcher, ware;
ware = require('ware');
Fetcher = (function() {
function Fetcher() {
this.ware = ware();
}
Fetcher.prototype.args = function() {
this.args = arguments;
return this;
};
Fetcher.prototype.use = function(operation) {
this.ware.use(operati... | nono/konnectors | build/server/lib/fetcher.js | JavaScript | agpl-3.0 | 703 |
var https = require( 'https' ),
zlib = require( 'zlib' ),
path = require( 'path' ),
fs = require( 'fs' );
var count = 0;
var resolved = 0;
var outputs = [];
var done;
function check()
{
if (resolved === count) {
normalize();
display();
}
}
function makeBar( length )
{
var i ... | hannesk001/SPHERE-Framework | Library/Moment.Js/2.8.4/tasks/history.js | JavaScript | agpl-3.0 | 3,184 |
/*
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... | patLgNova/XMS-v62 | scripts/npc/2101001.js | JavaScript | agpl-3.0 | 1,190 |
suite('Conversion', function() {
var myp5;
setup(function(done) {
new p5(function(p) {
p.setup = function() {
myp5 = p;
done();
};
});
});
teardown(function() {
myp5.remove();
});
var result;
suite('p5.prototype.float', function() {
test('should be a functio... | mlarghydracept/p5.js | test/unit/utilities/conversion.js | JavaScript | lgpl-2.1 | 9,465 |
/*
Copyright 2011, AUTHORS.txt (http://ui.operamasks.org/about)
Dual licensed under the MIT or LGPL Version 2 licenses.
*/
(function()
{
OMEDITOR.plugins.add( 'templates',
{
requires : [ 'dialog' ],
init : function( editor )
{
OMEDITOR.dialog.add( 'templates', OMEDITOR.getUrl( this.path + 'dialogs/te... | yonghuang/fastui | samplecenter/basic/timeTest/operamasks-ui-2.0/development-bundle/ui/editor/_source/plugins/templates/plugin.js | JavaScript | lgpl-3.0 | 2,274 |
$(document).ready(function() {
//extract the data from the table
var data = new Object();
$('tr').each(function(index, elem) {
var sel = $(this).children();
data[sel.eq(0).text()] = sel.eq(1).text();
})
// remove the table
$('#data').remove();
//
}); | longjl/JFinal_Authority | jfinal-authority/src/main/webapp/static/代码/Part VI/order.js | JavaScript | apache-2.0 | 302 |
/*!
* SAP UI development toolkit for HTML5 (SAPUI5/OpenUI5)
* (c) Copyright 2009-2015 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
sap.ui.define(['jquery.sap.global'],function(q){"use strict";var D={};D.render=function(r,e){r.write("<");r.write(e.getTag(... | fconFGDCA/DetailCADA | resources/sap/ui/core/tmpl/DOMElementRenderer.js | JavaScript | apache-2.0 | 1,051 |
/// Copyright (c) 2012 Ecma International. All rights reserved.
/// Ecma International makes this code available under the terms and conditions set
/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
/// "Use Terms"). Any redistribution of this code must retain the above
/// copyrigh... | popravich/typescript | tests/Fidelity/test262/suite/ch15/15.3/15.3.4/15.3.4.5/15.3.4.5-13.b-4.js | JavaScript | apache-2.0 | 729 |
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... | zaidkhan/lms_test | lib/mm.lang.js | JavaScript | apache-2.0 | 9,902 |
/**
* Copyright 2016 The AMP HTML Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... | lannka/amphtml | ads/vendors/yahoo.js | JavaScript | apache-2.0 | 921 |
/******/ (function(modules) { // webpackBootstrap
/******/ // install a JSONP callback for chunk loading
/******/ function webpackJsonpCallback(data) {
/******/ var chunkIds = data[0];
/******/ var moreModules = data[1];
/******/ var executeModules = data[2];
/******/
/******/ // add "moreModules" to the modu... | LosFuzzys/CTFd | CTFd/themes/losctf/static/js/pages/main.dev.js | JavaScript | apache-2.0 | 6,471 |
import { test } from 'ember-qunit';
import moduleForComponent from 'open-event-frontend/tests/helpers/component-helper';
import hbs from 'htmlbars-inline-precompile';
moduleForComponent('ui-table/global-filter', 'Integration | Component | ui table/global filter');
const messages = { searchPlaceholder: 'Search' };
tes... | harshitagupta30/open-event-frontend | tests/integration/components/ui-table/global-filter-test.js | JavaScript | apache-2.0 | 516 |
/// Copyright (c) 2012 Ecma International. All rights reserved.
/// Ecma International makes this code available under the terms and conditions set
/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
/// "Use Terms"). Any redistribution of this code must retain the above
/// copyrigh... | hippich/typescript | tests/Fidelity/test262/suite/ch15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-80.js | JavaScript | apache-2.0 | 1,244 |
/* eg: Box.show(div) */
var Box = {
show: function (id) {
var isIE = (document.all) ? true : false;
var isIE6 = isIE && ( [/MSIE (\d)\.0/i.exec(navigator.userAgent)][0][1] == 6);
var box = document.getElementById(id);
if (!box) {
return;
}
box.style.zIndex... | delavior/dubbo | dubbo-admin/src/main/webapp/js/box.js | JavaScript | apache-2.0 | 2,896 |
goog.provide('ol.test.source.WMTS');
describe('ol.source.WMTS', function() {
describe('when creating options from capabilities', function() {
var parser = new ol.format.WMTSCapabilities();
var capabilities;
before(function(done) {
afterLoadText('spec/ol/format/wmts/ogcsample.xml', function(xml) {
... | bill-chadwick/ol3 | test/spec/ol/source/wmtssource.test.js | JavaScript | bsd-2-clause | 7,967 |
/*
YUI 3.6.0 (build 5521)
Copyright 2012 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add("widget-skin",function(e){var d="boundingBox",b="contentBox",a="skin",c=e.ClassNameManager.getClassName;e.Widget.prototype.getSkinName=function(){var f=this.get(b)||this.ge... | bretkikehara/wattdepot-visualization | src/main/webapp/yui/3.6.0/build/widget-skin/widget-skin-min.js | JavaScript | bsd-3-clause | 494 |
//baidu
var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F4233e74dff0ae5bd0a3d81c6ccf756e6' type='text/javascript'%3E%3C/script%3E"));
//google analytics
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsO... | zjn580/jxtweb | web/style/js/analytics01.js | JavaScript | bsd-3-clause | 849 |
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
cr.define('user_manager.import_supervised_user_tests', function() {
function registerTests() {
suite('ImportSupervisedUserTests', function() {
... | danakj/chromium | chrome/test/data/webui/md_user_manager/import_supervised_user_tests.js | JavaScript | bsd-3-clause | 4,857 |
//= require admin/spree_backend | chondm/spree-awesome-blog | app/assets/javascripts/spree/admin/spree_awesome_blog.js | JavaScript | bsd-3-clause | 31 |
const {addTable} = require('../../utils');
module.exports = addTable('snippets');
| chadly/ghost | core/server/data/migrations/versions/3.36/01-add-snippets-table.js | JavaScript | mit | 82 |
var inspector = require('../');
// Custom type schema
var personValidation = {
type: 'object',
properties: {
firstname: { type: 'string', minLength: 1 },
lastname: { type: 'string', minLength: 1 },
age: { type: 'integer', gt: 0, lte: 120 }
}
};
// Custom Validation ($type)
var customValidation = {
// $type w... | biggora/schema-inspector | misc/custom-type.js | JavaScript | mit | 1,046 |
/***** AVAILABLE JAVASCRIPT FUNCTIONS ******/
/* Function: GraphicsApp()
* --------------------------------
* Creates a new GraphicsApp object and returns it.
*
* Parameters: none
*/
function GraphicsApp() {}
/* Function: addButton(buttonName)
* -----------------------------------------------
* Creates and... | chrispiech/cs106b-fall-2016-website | plugins/acmjs/graphicsapp.js | JavaScript | mit | 9,210 |
/**
* Module dependencies.
*/
var Emitter = require('emitter');
var render = require('render');
var events = require('events');
var empty = require('empty');
var filter = require('laws-filter');
var template = require('./filter-container');
var o = require('query');
var closest = require('closest');
var classes = re... | mxabierto/colaborativa | lib/sidebar/filter.js | JavaScript | mit | 3,004 |
var ModelForm = {
init: function(options)
{
var ops = $.extend(true, this.getDefaultOptions(), options);
Validation.init(ops);
},
getDefaultOptions: function()
{
return {
src: '.form',
isAjax: false,
submitAjax: function(validation)
... | erenmustafaozdal/laravel-modules-core | public/build/assets/pages/scripts/product_showcase/product_showcase-form-5065f89cf4.js | JavaScript | mit | 596 |
import React, { Component } from "react";
import Home from "../components/home/";
import BlankPage2 from "../components/blankPage2";
import { DrawerNavigator } from "react-navigation";
import DrawBar from "../components/DrawBar";
export default (DrawNav = DrawerNavigator(
{
Home: { screen: Home },
BlankPage2:... | Jenny-L/lumohacks2017 | old/js/Routers/HomeDrawerRouter.js | JavaScript | mit | 415 |
describe('Demo test with Mocha', function() {
describe('for testing purposes', function() {
before(function(client, done) {
client.globals.test_calls++;
done();
});
after(function(client, done) {
setTimeout(function() {
client.globals.test_calls++;
done();
}, 100... | beatfactor/nightwatch | test/mochatests/sampleWithBeforeAndAfter.js | JavaScript | mit | 802 |
;(function (global) {
if ("EventSource" in global) return;
var reTrim = /^(\s|\u00A0)+|(\s|\u00A0)+$/g;
var EventSource = function (url) {
var eventsource = this,
interval = 500, // polling interval
lastEventId = null,
cache = '';
if (!url || typeof url != 'string') {
throw new SyntaxE... | matuu/simpleai | simpleai/search/web_viewer_resources/EventSource.js | JavaScript | mit | 5,386 |
import { RocketChat } from 'meteor/rocketchat:lib';
import { Random } from 'meteor/random';
import _ from 'underscore';
import s from 'underscore.string';
import hljs from 'highlight.js';
import _marked from 'marked';
const renderer = new _marked.Renderer();
let msg = null;
renderer.code = function(code, lang, escap... | fatihwk/Rocket.Chat | packages/rocketchat-markdown/parser/marked/marked.js | JavaScript | mit | 2,435 |
define('lodash/lang/isEqual', ['exports', 'lodash/internal/baseIsEqual', 'lodash/internal/bindCallback'], function (exports, _lodashInternalBaseIsEqual, _lodashInternalBindCallback) {
'use strict';
/**
* Performs a deep comparison between two values to determine if they are
* equivalent. If `customizer` is p... | hoka-plus/p-01-web | tmp/babel-output_path-hOv4KMmE.tmp/lodash/lang/isEqual.js | JavaScript | mit | 2,223 |
/*!
* VERSION: 0.2.1
* DATE: 2017-01-17
* UPDATES AND DOCS AT: http://greensock.com
*
* @license Copyright (c) 2008-2017, GreenSock. All rights reserved.
* This work is subject to the terms at http://greensock.com/standard-license or for
* Club GreenSock members, the software agreement that was issued with your ... | alanontheweb/kaldi-hugo-cms-template | src/themes/theme-hugo-stackrox/scripts/greensock-js-shockingly-green 2/src/commonjs-flat/EaselPlugin.js | JavaScript | mit | 10,530 |
"use strict";import"../parts-3d/Math.js";import"../parts-3d/SVGRenderer.js";import"../parts-3d/Chart.js";import"../parts-3d/Axis.js";import"../parts-3d/Series.js";import"../parts-3d/Column.js";import"../parts-3d/Pie.js";import"../parts-3d/Scatter.js";import"../parts-3d/VMLRenderer.js"; | cdnjs/cdnjs | ajax/libs/highcharts/8.0.4/es-modules/masters/highcharts-3d.src.min.js | JavaScript | mit | 286 |