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 |
|---|---|---|---|---|---|
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
define(['jquery', 'datatable', 'mathjax'], function () {
var question = (function () {
var questionTable = $('#question-t... | gabriel-r-pereira/CatsSys | public/js/app/pages/school-management/exam/question.js | JavaScript | lgpl-3.0 | 7,778 |
//
// Description notifications actions
//
// To add a new Action :
// 1) Import you constant
// 2) Add a function like this:
// export function yourAction(var) {
// return { type: YOUR_ACTION_CONSTANT, var: var }
// }
//
import {
NOTIFICATIONS_DESCRIPTION_CHANGE,
NOTIFICATIONS_RESET_STATE_DESCRIPTION... | EIP-SAM/SAM-Solution-Server | webapp/app/containers/Notifications/Form/Description/actions.js | JavaScript | lgpl-3.0 | 758 |
'use strict';
var util = require('util');
var path = require('path');
var events = require('events');
var assert = require('assert');
var _ = require('lodash');
var _s = require('underscore.string');
var async = require('async');
var findup = require('findup-sync');
var chalk = require('chalk');
var mkdirp = require('m... | Josh-Miller/generator-stylize | node_modules/yeoman-generator/lib/base.js | JavaScript | lgpl-3.0 | 24,009 |
function(elem) {
if (!nn$(elem))return false;
for (var i=0; i<this.length; i++) {
if (nn$(this[i]) && elem.equals(this[i])) {
return true;
}
}
return false;
}
| unratito/ceylon.language | runtime-js/Array/contains.js | JavaScript | apache-2.0 | 203 |
// Copyright 2013 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... | gabriel-76/NavMatBr | common/aural_style_util.js | JavaScript | apache-2.0 | 5,646 |
var a00305 =
[
[ "ReCachePagesFunc", "a00305.html#ad65916c2bf7f69279388c79bb7381730", null ],
[ "kMaxReadAhead", "a00305.html#a242da311d6eca25202d6cdb98ff46600", null ]
]; | stweil/tesseract-ocr.github.io | 4.0.0/a00305.js | JavaScript | apache-2.0 | 179 |
(function() {
module.exports = function(grunt) {
var fs = require('fs'),
TPL_NAME = 'tpl';
/*
* Tasks:
* - grunt Create the production build
* - grunt server Run a webserver on 8080
* - grunt jshint Run JSHint once
* - grunt watch Run JSHint every time a JS file change
* - grunt js... | pleavin/map-journal-storytelling-template-js | Gruntfile.js | JavaScript | apache-2.0 | 10,533 |
//v.1.6 build 80512
/*
Copyright DHTMLX LTD. http://www.dhtmlx.com
You allowed to use this component or parts of it under GPL terms
To use it on other terms or get Professional edition of the component please contact us at sales@dhtmlx.com
*/
dhtmlXTreeObject.prototype.makeDragable=function(obj,func){if (typeof(... | sunli2015/Quark | src/main/webapp/common/tree_1/ext/dhtmlxtree_dragin.js | JavaScript | apache-2.0 | 2,055 |
(function() {
'use strict';
function truncate() {
return function (input, words) {
if (isNaN(words)) {
return input;
}
if (words <= 0){
return '';
}
if (input) {
var inputWords = input.split(/\s+/);
if (inputWords.length > words) {
input = inputWords.slice(0, wor... | whisher/rock-paper-scissors-multiplayer | public/modules/articles/filters/index.js | JavaScript | apache-2.0 | 461 |
(function () {
function timer($interval, $document){
return {
templateUrl: '/templates/directives/timer.html',
replace: true,
restrict: 'E',
scope: {
onChange: '&'
},
link: function(scope, element, attributes){
... | quasi2364/bloctime | dist/scripts/directives/timer.js | JavaScript | apache-2.0 | 4,214 |
(function(tirequire,__dirname,__filename){module.id=__filename;module.loaded=false;module.filename=__filename;var require=tirequire("node_modules/ti-commonjs/lib/ti-commonjs")(__dirname,module);module.require=require;(function(factory) {
"function" == typeof define && define.amd ? define([ "moment" ], factory) : "o... | k0sukey/TiTodoMVC | Resources/iphone/node_modules/moment/lang/nn.js | JavaScript | apache-2.0 | 1,961 |
// package net.ivank.events;
function MouseEvent(type, bubbles)
{
Event.call(this, type, bubbles);
this.movementX = 0;
this.movementY = 0;
}
MouseEvent.prototype = new Event();
MouseEvent.CLICK = "click";
MouseEvent.MOUSE_DOWN = "mouseDown";
MouseEvent.MOUSE_UP = "mouseUp";
MouseEvent.MIDDLE_... | kaydensigh/bib | ivank_0_8/events/MouseEvent.js | JavaScript | apache-2.0 | 693 |
/* global describe, before, it */
const expect = require('chai').expect;
const jhiCore = require('jhipster-core');
const expectedFiles = require('./utils/expected-files');
const BaseGenerator = require('../generators/generator-base').prototype;
BaseGenerator.log = (msg) => { console.log(msg); }; // eslint-disable-lin... | erikkemperman/generator-jhipster | test/generator-base.spec.js | JavaScript | apache-2.0 | 10,307 |
// This file is empty, is used to simulate the request for authentication to a WebServer | Lightstreamer/Lightstreamer-JMS-example-Auth-client-javascript | src/js/login.js | JavaScript | apache-2.0 | 88 |
window.onload = init;
var analyser;
var filter;
var audioCtx;
var source;
var myVad;
function init() {
navigator.getUserMedia = (navigator.getUserMedia ||
navigator.webkitGetUserMedia ||
navigator.mozGetUserMedia ||
navigator.msGetUserMedia);
audioCtx = new (window.AudioC... | sankar-mukherjee/SPIC-WebTool | Source Code/sp/web/javascript/SpeechRecognition_1.js | JavaScript | apache-2.0 | 4,397 |
/* 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/.
*/
/* General Update Directory Cleanup Tests */
function run_test() {
do_test_pending();
do_register_cleanup(en... | sergecodd/FireFox-OS | B2G/gecko/toolkit/mozapps/update/test/unit/test_0070_update_dir_cleanup.js | JavaScript | apache-2.0 | 1,516 |
/**
* Copyright 2015 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... | sriramkrish85/amphtml | extensions/amp-iframe/0.1/amp-iframe.js | JavaScript | apache-2.0 | 21,925 |
/*********************************************************************
*
* mj-page-svg.js
*
* Implements an API to MathJax in node.js so that MathJax can be
* used server-side to generate SVG, MathML, or images (the latter
* requires an external library, batik, to do the svg to png
* conversion). This API ... | sukki/RL-learning-note | resources/reinforcement-learning-an-introduction/node_modules/mathjax-node/lib/mj-page.js | JavaScript | apache-2.0 | 34,988 |
// The contents of this file will be executed before any of
// your view controllers are ever executed, including the index.
// You have access to all functionality on the `Alloy` namespace.
//
// This is a great place to do any initialization for your app
// or create any global variables/functions that you'd like to
... | FokkeZB/TripLogr | app/alloy.js | JavaScript | apache-2.0 | 765 |
/**
* Copyright 2013 International Business Machines Corporation
*
* 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... | tml/activitystrea.ms | src/social/_common.js | JavaScript | apache-2.0 | 2,111 |
define(function (require) {
var _ = require('lodash');
function VersionMathException(message) {
this.message = message;
this.name = 'VersionMathException';
}
// Get the max version in this cluster
function max(versions) {
return sortVersions(versions).pop();
}
// Return the lowest version i... | gusai-francelabs/datafari | debian7/elk/kibana/src/ui/public/utils/versionmath.js | JavaScript | apache-2.0 | 3,492 |
//Copyright Joyent, Inc. and other Node contributors.
//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, mer... | sergecodd/FireFox-OS | B2G/gaia/tools/xpcwindow/lib/modules/path.js | JavaScript | apache-2.0 | 4,487 |
var profile = (function(){
var testResourceRe = /^esri\/tests\//,
jsRe = /\.js$/i,
onlineFolderRe = /^esri\/arcgisonline\//i,
mobileFolderRe = /^esri\/mobile\//i,
discoveryFolderRe = /^esri\/discovery\//i,
copyOnly = function(filename, mid){
var list = {
"esri/package.json": ... | aconyteds/Esri-Ozone-Map-Widget | vendor/js/esri/arcgis_js_api/library/3.11/3.11compact/esri/esri.profile.js | JavaScript | apache-2.0 | 1,579 |
define(function(require){
return 'createAclForm';
}); | ggalancs/one | src/sunstone/public/app/tabs/acls-tab/form-panels/create/formPanelId.js | JavaScript | apache-2.0 | 55 |
/* =========================================================
* bootstrap-datepicker.js
* Repo: https://github.com/eternicode/bootstrap-datepicker/
* Demo: http://eternicode.github.io/bootstrap-datepicker/
* Docs: http://bootstrap-datepicker.readthedocs.org/
* Forked from http://www.eyecon.ro/bootstrap-datepicker
... | gn0st1k4m/bootstrap-datepicker | js/bootstrap-datepicker.js | JavaScript | apache-2.0 | 55,007 |
/*!
* Copyright 2015 Digital Services, University of Cambridge Licensed
* under the Educational Community 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://opensource.org/licenses/ECL-2.0
*
* Unless r... | ucamrc/grasshopper-ui | shared/gh/js/views/tenant-admin/gh.admin-batch-edit.js | JavaScript | apache-2.0 | 65,823 |
'use strict';
const Fs = require('fs');
const Path = require('path');
const internals = {};
internals.default = {
check: (args) => {
let pkg;
try {
pkg = JSON.parse(Fs.readFileSync(Path.join(args.path, 'package.json')));
}
catch (err) {
return Promise.reject(new Error(`Unable to load pa... | nodesecurity/nsp | lib/preprocessor.js | JavaScript | apache-2.0 | 896 |
/* Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ */
const middleMousePastePref = "middlemouse.contentLoadURL";
const autoScrollPref = "general.autoScroll";
function test() {
waitForExplicitFinish();
Services.prefs.setBoolPref(middleMousePastePref, true);
S... | wilebeast/FireFox-OS | B2G/gecko/browser/base/content/test/browser_middleMouse_inherit.js | JavaScript | apache-2.0 | 1,819 |
#!/usr/bin/env node
var fs = require('fs');
var nearley = require('../lib/nearley.js');
var opts = require('commander');
var randexp = require('randexp');
var Unparse = require('../lib/unparse.js');
var version = require('../package.json').version;
opts.version(version, '-v, --version')
.arguments('<file.js>')
... | GoogleCloudPlatform/prometheus-engine | third_party/prometheus_ui/base/web/ui/react-app/node_modules/nearley/bin/nearley-unparse.js | JavaScript | apache-2.0 | 1,249 |
// Licensed to Cloudera, Inc. under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. Cloudera, Inc. licenses this file
// to you under the Apache License, Version 2.0 (the
// 'License'); you may not use this f... | kawamon/hue | desktop/core/src/desktop/js/parse/sql/impala/test/impalaAutocompleteParser.Set.test.js | JavaScript | apache-2.0 | 2,168 |
var interval = null;
var start = null;
var args = phantom.args;
if (args.length < 1 || args.length > 2) {
console.log("Usage: " + phantom.scriptName + " <URL>");
phantom.exit(1);
}
var page = require('webpage').create();
page.open(args[0], function(status) {
if (status !== 'success') {
console.err... | joachimhs/Montric | Montric.View/src/test/qunit/run-qunit.js | JavaScript | apache-2.0 | 3,107 |
/*
* 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/applicationinsights/lib/models/workItemCreateConfiguration.js | JavaScript | apache-2.0 | 1,983 |
// Copyright 2017 The Kubernetes Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or a... | kenan435/dashboard | src/app/frontend/node/list/card_component.js | JavaScript | apache-2.0 | 1,968 |
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
(function (window, undefined) {
var freeExports = typeof exports == 'object' && exports,
freeModule = typeof module == 'object' && module && module.exports == freeExports &&... | Reactive-Extensions/NDC-Oslo-2014 | demos/WinJS/client/rxjs/rx.js | JavaScript | apache-2.0 | 186,710 |
define(function(require) {
'use strict';
var Backbone = require('backbone')
, Post = require('app/models/Post')
, log = require('bows.min')('Collections:UserPosts')
, socket = require('app/utils/socket')
, pusher = require('app/store/Pusher')
, user = require('app/store/User... | webhost/wifi-chat | public/scripts/app/collections/UserPosts.js | JavaScript | apache-2.0 | 2,120 |
/**
* The copyright in this software is being made available under the BSD License,
* included below. This software may be subject to other third party and contributor
* rights, including patent rights, and no such rights are granted under this license.
*
* Copyright (c) 2013, Dash Industry Forum.
* All rights re... | Mentors4EDU/Transcribe-Media-Project | Landing-Page/Server/streaming/MediaPlayerEvents.js | JavaScript | apache-2.0 | 8,161 |
/*
* 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/datafactoryManagement/lib/models/webLinkedService.js | JavaScript | apache-2.0 | 3,346 |
var DWZ={
keyCode:{
ENTER:13,ESC:27,END:35,HOME:36,
SHIFT:16,TAB:9,
LEFT:37,RIGHT:39,UP:38,DOWN:40,
DELETE:46,BACKSPACE:8},
eventType:{
pageClear:"pageClear",
resizeGrid:"resizeGrid"},
isOverAxis:function(x,reference,size){
return(x>reference)&&(x<(reference+size));},
isOver:function(y,x,top,left,height,width){
return... | ksyydream/ksls_2 | dwz/bin/dwz.min.js | JavaScript | apache-2.0 | 133,617 |
var jayson = require(__dirname + '/../..');
var fs = require('fs');
var path = require('path');
// Read node's tls documentation for more information about these options:
// https://nodejs.org/api/tls.html#tls_tls_connect_options_callback
var options = {
key: fs.readFileSync(path.resolve(__dirname + '../../../test/f... | speedovation/kiwi-node-plugins | node_modules/jayson/examples/tls_example/client.js | JavaScript | apache-2.0 | 857 |
var MSG = {
title: "קוד",
blocks: "קטעי קוד",
linkTooltip: "שמירה וקישור לקטעי קוד.",
runTooltip: "הרצת התכנית שהוגדרה על ידי קטעי הקוד שבמרחב העבודה.",
badCode: "שגיאה בתכנית: %1",
timeout: "חריגה ממספר פעולות חוזרות אפשריות.",
trashTooltip: "השלך את כל קטעי הקוד.",
catLogic: "לוגיקה",
catLoops: "לול... | rachel-fenichel/blockly | demos/code/msg/he.js | JavaScript | apache-2.0 | 1,300 |
#!/usr/bin/env node
/*
* You may redistribute this program 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.
*
* This program is distributed in the hope that it will be useful,... | krattai/noo-ebs | ref_code/cjdns/contrib/nodejs/tools/splice.js | JavaScript | bsd-2-clause | 2,705 |
window.hypothesisConfig = function () {
return {
showHighlights: false
}
}
| hypothesis/wp-hypothesis | js/nohighlights.js | JavaScript | bsd-2-clause | 83 |
/*
GLGE WebGL Graphics Engine
Copyright (c) 2010, Paul Brunt
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list o... | supereggbert/GLGE | src/core/glge.js | JavaScript | bsd-3-clause | 16,541 |
"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __decorate = (this && this.__decorate) || fu... | MengjiaoH/UpSet-Phovea | node_modules/typedoc/dist/lib/converter/nodes/variable-statement.js | JavaScript | bsd-3-clause | 2,602 |
/**
* Copyright (c) 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @provides... | dirkholsopple/draft-js | src/model/transaction/ContentStateInlineStyle.js | JavaScript | bsd-3-clause | 2,572 |
// Copyright 2009 the V8 project authors. All rights reserved.
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of ... | amyvmiwei/chromium | chrome/tools/test/reference_build/chrome_linux/resources/inspector/profile_view.js | JavaScript | bsd-3-clause | 7,896 |
require('../support/test_helper.js');
var RedisPool = require('redis-mpool');
var assert = require('assert');
var step = require('step');
var serverOptions = require('../support/server_options');
var MapStore = require('../../lib/windshaft/storages/mapstore');
var MapConfig = require('../.... | HydroLogic/Windshaft | test/unit/mapstore.test.js | JavaScript | bsd-3-clause | 2,071 |
(function() {
var Dom = YAHOO.util.Dom,
Event = YAHOO.util.Event,
Lang = YAHOO.lang,
Toolbar = YAHOO.widget.Toolbar;
YAHOO.widget.SimpleEditor.prototype.cleanHTML = function(html) {
//Start Filtering Output
//Begin RegExs..
if (!html) {
html = this.g... | davglass/yui-examples | editor39/patch.js | JavaScript | bsd-3-clause | 5,041 |
/*!
* Angular Material Design
* https://github.com/angular/material
* @license MIT
* v0.7.0-rc3-master-ec53d1a
*/
goog.provide('ng.material.core');
(function() {
'use strict';
/**
* Initialization function that validates environment
* requirements.
*/
angular.module('material.core', ['material.core.theming'])... | SergeiHaidukov/c-fashion.ru | web/js/modules/closure/core/core.js | JavaScript | bsd-3-clause | 83,631 |
var Shaders = Backbone.Model.extend({
/**
* @memberOf Shaders
*/
},{
/**
* @memberOf Shaders
*/
getRenderShader_4Byte : function(gl) {
var str = "precision mediump float; \
uniform mediump sampler2D u_data; \
uniform mediump float u_texw, u_texh; \
uniform mediump... | uwdata/imMens | webapp/WebContent/lib/shaders.js | JavaScript | bsd-3-clause | 35,189 |
'use strict';
import {Objects, Seq, Storage, Strings} from 'js-prelude';
let nextTodoId = 0;
const
filters = {
all: _ => true,
completed: todo => todo.completed,
active: todo => !todo.completed
},
adjustFilter = filterKey => {
return filters.hasOwnProperty(filterKey) ? fi... | mcjazzyfunky/js-bling | archive/js-surface-x/demos/todomvc/js/storages/TodosStorage.js | JavaScript | bsd-3-clause | 3,098 |
/**
* JW Player display component
*
* @author zach
* @version 5.4
*/
(function(jwplayer) {
_css = jwplayer.utils.css;
_hide = function(element) {
_css(element, {
display: "none"
});
};
_show = function(element) {
_css(element, {
display: "block"
});
};
jwplayer.html5.display = function(ap... | emelleme/All-Drag-Racing | jwplayer/js/src/html5/jwplayer.html5.display.js | JavaScript | bsd-3-clause | 9,215 |
Type.registerNamespace('Sys.Extended.UI');
Sys.Extended.UI.PasswordStrengthExtenderBehavior = function(element) {
Sys.Extended.UI.PasswordStrengthExtenderBehavior.initializeBase(this, [element]);
// The array holding the default textual descriptions for the password strength levels
this._levelArray = new ... | DevExpress/AjaxControlToolkit | AjaxControlToolkit/Scripts/PasswordStrength.js | JavaScript | bsd-3-clause | 53,315 |
define(function (require) {
describe('SchemaBuild', function() {
var $ = require('jquery');
var schemaHelper = require('common/schemaHelper');
var dtLib = require('dt/lib');
var SCHEMA_URL = './spec/common/optionSchemaForTest.json?_v_=' + Math.random();
var RENDER_URL = './... | redmed/echarts-www | docv/test/spec/common/schemaHelperSpec.js | JavaScript | bsd-3-clause | 3,273 |
const path = require('path');
const TerserJSPlugin = require('terser-webpack-plugin');
const CssMinimizerPlugin = require('css-minimizer-webpack-plugin');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const { CleanWebpackPlugin } = require("clean-webpack-plugin");
module.exports = [{
mode: 'prod... | Shuttle/shuttle-recall | webpack.production.js | JavaScript | bsd-3-clause | 2,389 |
/*
* Package: ringo.js
*
* Namespace: bbop.rest.manager.ringo
*
* RingoJS BBOP manager for dealing with remote calls. Remember,
* this is actually a "subclass" of <bbop.rest.manager>.
*
* TODO/BUG: Does not handle "error" besides giving an "empty"
* response.
*/
if ( typeof bbop == "undefined" ){ var bbo... | mugitty/bbop-js | lib/bbop/rest/manager/ringo.js | JavaScript | bsd-3-clause | 3,665 |
/**
* Pimcore
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://www.pimcore.org/license
*
* @copyright Copyright (c) 2009-2013 pimcore GmbH (http://www.pimcore... | PatidarWeb/pimcore | pimcore/static/js/pimcore/layout/portlets/customreports.js | JavaScript | bsd-3-clause | 8,472 |
function Profile(){ }
Profile.prototype = {
init: function(){
$("#cmd-updateprofile").unbind('click').bind('click',this.profile);
$('#show-profile').unbind('click').bind('click',this.reset);
},
reset: function(){
$('#profile-message').html('');
$('#form-profile').find('.form... | andybui2014/PocketRecuiter-Z2 | public/js/profile.js | JavaScript | bsd-3-clause | 10,747 |
'use strict';
var common = require('../common');
var stream = require('../../');
var assert = require('assert');
var util = require('util');
function Writable() {
this.writable = true;
require('stream').Stream.call(this);
}
util.inherits(Writable, require('stream').Stream);
function Readable() {
this.readable =... | devlato/readable-stream | test/parallel/test-stream-pipe-event.js | JavaScript | mit | 571 |
import {flow, map, uniq, compact} from 'lodash/fp';
import traverser from '../traverser';
import * as functionType from '../utils/functionType';
import * as variableType from '../utils/variableType';
import * as destructuring from '../utils/destructuring.js';
import multiReplaceStatement from '../utils/multiReplaceStat... | lebab/lebab | src/transform/let.js | JavaScript | mit | 6,535 |
YUI.add("gallery-aui-event",function(B){},"gallery-2010.08.18-17-12",{skinnable:false,requires:["gallery-aui-event-input"]}); | inikoo/fact | libs/yui/yui3-gallery/build/gallery-aui-event/gallery-aui-event-min.js | JavaScript | mit | 125 |
$(function(){
new FormValidator("profile-form",[
{"name":"slug","rules":"alpha_numeric|min_length[1]|max_length[20]"},
{"name":"email","rules":"valid_email"},
{"name":"url","rules":"valid_url"}
],function(errors,e) {
e.preventDefault();
$('.invalid').hide();
if(er... | dinever/dingo | view/admin/assets/src/js/profile.js | JavaScript | mit | 690 |
/* */
System.register([], function (_export) {
var _classCallCheck, _createClass, BehaviorInstance;
return {
setters: [],
execute: function () {
"use strict";
_classCallCheck = function (instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a clas... | jdanyow/dependency-viewer | jspm_packages/github/aurelia/templating@0.10.3/behavior-instance.js | JavaScript | mit | 4,526 |
angular.module('material.components.menu')
.provider('$mdMenu', MenuProvider);
/*
* Interim element provider for the menu.
* Handles behavior for a menu while it is open, including:
* - handling animating the menu opening/closing
* - handling key/mouse events on the menu element
* - handling enabling/dis... | Belicosus/material | src/components/menu/menu-interim-element.js | JavaScript | mit | 12,746 |
/**
* auxiliar functions
*/
function sleep(milliseconds) {
var start = new Date().getTime();
for (var i = 0; i < 1e7; i++) {
if ((new Date().getTime() - start) > milliseconds){
break;
}
}
}
function parseVersionString (str) {
if (typeof(str) != 'string') { return false; }
var x = str.spli... | rafaelcpalmeida/ahoy | Google Chrome/background.js | JavaScript | mit | 1,115 |
version https://git-lfs.github.com/spec/v1
oid sha256:d0952547ae527cfdfa7e385c7d77f3cccbb68cf5d881e9e373ca829e4e8bf184
size 15734
| yogeshsaroya/new-cdnjs | ajax/libs/webshim/1.12.7/minified/shims/combos/1.js | JavaScript | mit | 130 |
import React from 'react';
import SvgIcon from '../../SvgIcon';
const MapsLocalParking = (props) => (
<SvgIcon {...props}>
<path d="M13 3H6v18h4v-6h3c3.31 0 6-2.69 6-6s-2.69-6-6-6zm.2 8H10V7h3.2c1.1 0 2 .9 2 2s-.9 2-2 2z"/>
</SvgIcon>
);
MapsLocalParking.displayName = 'MapsLocalParking';
MapsLocalParking.muiNa... | alvarolobato/blueocean-plugin | jenkins-design-language/src/js/components/material-ui/svg-icons/maps/local-parking.js | JavaScript | mit | 370 |
$(function() {
var scalarN = 400;
var inputW = 21;
var minInput = 0;
var maxInput = 55;
var scalarEncoder = new HTM.encoders.ScalarEncoder(
scalarN, inputW, minInput, maxInput
);
var dateEncoder = new HTM.encoders.DateEncoder(51);
var playing = false;
var noise = 0.0;
v... | nupic-community/sdr-viz | static/js/ep8/sp-learning-comparison.js | JavaScript | mit | 18,999 |
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'image2', 'fa', {
alt: 'متن جایگزین',
btnUpload: 'به سرور بفرست',
captioned: 'تصویر زیرنویس شده',
infoTab: 'اطلاعات تصویر',
lockRatio: 'قفل کردن ... | Natetronn/wygwam-enhanced-image | themes/third_party/wygwam_enhanced_img/ckeditor-4.3/image2/lang/fa.js | JavaScript | mit | 738 |
// try { require('gulplog').info = function() {}; } catch (err) {}
// try { require('fancy-log').apply = function() {}; } catch (err) {}
const path = require('path');
const gulp = require('gulp');
require('ts-node/register');
require('require-dir')(path.join(__dirname, 'scripts', 'gulp'));
gulp.task('build', ['!com... | Crazyht/crazy-select | gulpfile.js | JavaScript | mit | 328 |
/*global console: false */
define([
'module', 'dom', 'underscore'
], function (module, $, _) {
"use strict";
var config = _.defaults(module.config(), {
log: false
}),
$element = $(document.body),
app;
function fillItem(prefix, key, value) {
return function (item) {
var $item = $(item),
target = ... | nkbt/notes | src/js/bower/core/app.js | JavaScript | mit | 2,999 |
#!/usr/bin/env node
var path = require('path');
var fs = require('fs');
/* eslint no-sync:0 no-console:0*/
var usage = fs.readFileSync(path.resolve(__dirname, '../usage.txt')).toString();
var args = require('minimist')(process.argv.slice(2), {
boolean: ['debug']
});
var getURL = require('../');
args.version = args... | Selichio/SEEKOO | node_modules/mongodb/node_modules/mongodb-version-manager/node_modules/mongodb-download-url/bin/mongodb-download-url.js | JavaScript | mit | 565 |
describe('dsFirebaseAdapter#updateAll', function () {
it('should update all users in firebase', function () {
var id, id2, u, u2;
return dsFirebaseAdapter.create(User, { name: 'John' })
.then(function (user) {
u = user;
id = user.id;
assert.equal(user.name, 'John');
asser... | txchen/js-data-firebase | test/updateAll.spec.js | JavaScript | mit | 1,232 |
'use strict';
/**
* @ngdoc directive
* @name ng.directive:ngSwitch
* @restrict EA
*
* @description
* Conditionally change the DOM structure.
*
* @usageContent
* <ANY ng-switch-when="matchValue1">...</ANY>
* <ANY ng-switch-when="matchValue2">...</ANY>
* ...
* <ANY ng-switch-default>...</ANY>
*
* @sc... | 1800joe/angular.js | src/ng/directive/ngSwitch.js | JavaScript | mit | 3,368 |
'use strict';
var config = require('../config');
var gulp = require('gulp');
var nodemon = require('gulp-nodemon');
gulp.task('oauth', function(cb) {
var init = true;
return nodemon({
script: config.oauth_proxy.index_file
}).on('start', function() {
if (init) {
cb();
}
init = false;
});
}); | loklak/loklak_webclient | gulp/tasks/oauth.js | JavaScript | mit | 312 |
var Promise = require('bluebird'),
_ = require('lodash'),
models = require('../../models'),
errors = require('../../errors'),
globalUtils = require('../../utils'),
i18n = require('../../i18n'),
internal = {context: {internal: true}},
utils,
areEmpty,
... | tidyui/Ghost | core/server/data/import/utils.js | JavaScript | mit | 11,882 |
/**
* Create a dot.
* @param x: number - The x value.
* @param y: number - The y value.
* @param width: number - The width of the dot, in pixels.
* +--
* # Create a dot
*
* Example usage
* ```
* const dot = new Dot();
* ```
* +--
*/
| mr-doc/mr-doc | test/fixtures/comments/6.js | JavaScript | mit | 258 |
const assert = require('assert');
const YouTube = require('../src/index');
exports.checkUnknownVideo = (video) => assert(video instanceof YouTube.Video, 'result is not an instance of Video');
exports.checkUnknownPlaylist = (playlist) => assert(playlist instanceof YouTube.Playlist, 'result is not an instance of Playlis... | Hyper-Coder/simple-youtube-api | test/util.js | JavaScript | mit | 2,194 |
import ComponentView from '../../view/Component';
export default ComponentView.extend({
type: 'dataZoom',
render: function (dataZoomModel, ecModel, api, payload) {
this.dataZoomModel = dataZoomModel;
this.ecModel = ecModel;
this.api = api;
},
/**
* Find the first target ... | ka215/WP-Gentelella | vendors/echarts/src/component/dataZoom/DataZoomView.js | JavaScript | mit | 2,322 |
/**
* A view for editing a client secret.
*
* This view hits the API to regenerate the associated application's
* client secret and updates the ``<input>`` element with the updated value. It
* also bundles a copy button so that the value can be copied to the user's
* clipboard.
*/
RB.OAuthClientSecretView = Back... | brennie/reviewboard | reviewboard/static/rb/js/accountPrefsPage/views/oauthClientSecretView.es6.js | JavaScript | mit | 2,261 |
frappe.pages['print-format-builder'].on_page_load = function(wrapper) {
frappe.print_format_builder = new frappe.PrintFormatBuilder(wrapper);
frappe.breadcrumbs.add("Setup", "Print Format");
}
frappe.pages['print-format-builder'].on_page_show = function(wrapper) {
if(frappe.route_options) {
if(frappe.route_option... | sbktechnology/trufil-frappe | frappe/print/page/print_format_builder/print_format_builder.js | JavaScript | mit | 17,878 |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.utils = exports.effects = exports.CANCEL = exports.delay = exports.takeLatest = exports.takeEvery = exports.buffers = exports.channel = exports.eventChannel = exports.END = exports.runSaga = undefined;
var _runSaga = require('./int... | wrleskovec/thoughtcrime | node_modules/redux-saga/lib/index.js | JavaScript | mit | 2,407 |
var objectAssign = require("./ObjectAssign");
module.exports = function () {
var res = {};
for (var i=0; i<arguments.length; ++i) {
if (arguments[i]) {
objectAssign(res, arguments[i]);
}
}
return res;
}
| geminiyellow/dex | app/assets/javascripts/components/support/ObjectMerge.js | JavaScript | mit | 226 |
(function(){
'use strict';
angular
.module('ngCytoscape')
.service('cytoHelpers', cytoHelpers);
cytoHelpers.$inject=['$q'];
function cytoHelpers($q){
var _errorHeader = '[AngularJS - Cytoscape] ';
var _copy = angular.copy;
var _clone = _copy;
function _e... | johnnyflinn/ngCytoscape | src/services/cytoHelpers.js | JavaScript | mit | 6,233 |
$(function () {
// Preload images
$.preloadCssImages();
// CSS tweaks
$('#header #nav li:last').addClass('nobg');
$('.block_head ul').each(function() { $('li:first', this).addClass('nobg'); });
$('.block form input[type=file]').addClass('file');
// Web stats
$('table.stats').each(function() {
... | hyEvans/ph-open | server/static/js/appCustom.js | JavaScript | mit | 5,278 |
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'... | lmazuel/azure-sdk-for-node | lib/services/serviceBusManagement2/lib/models/sBTopicListResult.js | JavaScript | mit | 1,608 |
// --------------------------------------------
// asking for input
// See http://www.tropo.com for more info
// --------------------------------------------
answer();
result=ask( "Hi. For sales, press 1. For support, press 2.", {choices:"1, 2"} );
if (result.name=='choice')
{
if (result.value=="1") { say( "sales ... | rogervaas/tropo-samples | javascript/tutorial/02-askforinput.js | JavaScript | mit | 444 |
/***********************************************************************
A JavaScript tokenizer / parser / beautifier / compressor.
https://github.com/mishoo/UglifyJS2
-------------------------------- (C) ---------------------------------
Author: Mihai Bazon
... | azilnik/azilnik.github.io | node_modules/uglify-js/lib/utils.js | JavaScript | mit | 9,372 |
export function isPlainObject(obj) {
return obj ? typeof obj === 'object' &&
Object.getPrototypeOf(obj) === Object.prototype : false;
}
// damn it JS
export function clone(coll) {
return JSON.parse(JSON.stringify(coll));
}
// export function eq(a, b) {
// return JSON.stringify(a) === JSON.stringify(b);
// }... | bradparks/react-motion___react_animation_library_from_cheng_lou_sprint_todo_animation | src/utils.js | JavaScript | mit | 2,822 |
var React = require('react'),
TypeField = require('./TypeField')
;
/**
* Component to add fields to an Object or Array.
* @param {FreezerNode} root The parent to add the attribute.
* @param {string} name Optional. If provided, the attribute added will have that key (arrays).
* Otherwis... | evansolomon/react-json | src/FieldAdder.js | JavaScript | mit | 2,620 |
'use strict';
angular.module('cleanUI', [
'ngRoute',
'cleanUI.controllers'
])
.config(['$locationProvider', '$routeProvider',
function($locationProvider, $routeProvider) {
/////////////////////////////////////////////////////////////
// SYSTEM
$routeProvider.when('/', {redirectTo: ... | mhbpcuiaba/servicedesk | src/client/assets/common/js/version_angular/app.js | JavaScript | mit | 8,996 |
/*jshint multistr:true*/
var appModule = require('./helpers/app-module');
function assertHTMLMatches(assert, actualHTML, expectedHTML) {
assert.ok(actualHTML.match(expectedHTML), actualHTML + " matches " + expectedHTML);
}
appModule("App Boot");
QUnit.test("App boots and routes to a URL", function(assert) {
this... | Krasnyanskiy/ember.js | tests/node/app-boot-test.js | JavaScript | mit | 3,694 |
/** @license Material-UI v5.0.0-alpha.14
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/* eslint-disable import/export */
import * as colors from './colors';
export { colors };
export * from './styles';
export * from './utils';
expor... | cdnjs/cdnjs | ajax/libs/material-ui/5.0.0-alpha.14/modern/index.js | JavaScript | mit | 11,307 |
Meteor.publish("tweets", function (options, searchString) {
if(!searchString){
searchString = '';
}
var searchFor = { '$regex' : '.*' + searchString || '' + '.*', '$options' : 'i' };
return Tweets.find({
$and:[
{
$or:[
{
$and:[
{public: true},
... | damirkusar/generator-catena-angular-meteor-material | generators/demo-module/templates/app/server/tweets.js | JavaScript | mit | 559 |
import {initializePAL, isInitialized} from 'aurelia-pal';
import {_PLATFORM} from './platform';
import {_FEATURE} from './feature';
import {_DOM} from './dom';
// DOM polyfills
// Actually inlined by our build because of build/paths.js but `import "m"` is not properly removed!?
// import './console';
// import './custo... | jods4/pal-browser | src/index.js | JavaScript | mit | 1,137 |
(function(){
var targetButtonSelector = '#copy-clipboard-btn'
var clipboard = new Clipboard(targetButtonSelector);
var copyError = function(e) {
var key;
if (/Mac/i.test(navigator.userAgent)) {
key = '⌘';
} else {
key = 'Ctrl';
}
$(e.trigge... | samteezy/snappass-heroku | snappass/static/snappass/scripts/clipboard_button.js | JavaScript | mit | 768 |
function findServers(timeoutMs, callback) {
var dgram = require('dgram');
var PORT = 7359;
var MULTICAST_ADDR = "255.255.255.255";
var servers = [];
var client;
try {
client = dgram.createSocket({ type: 'udp4', reuseAddr: true });
} catch (err) {
callback(JSON.stringify(ser... | KeyserSoze1/emby-theater-electron | serverdiscovery/serverdiscovery-native.js | JavaScript | gpl-2.0 | 2,137 |
/*
Highcharts JS v9.3.2 (2021-11-29)
Highcharts Drilldown module
Author: Torstein Honsi
License: www.highcharts.com/license
*/
'use strict';(function(c){"object"===typeof module&&module.exports?(c["default"]=c,module.exports=c):"function"===typeof define&&define.amd?define("highcharts/modules/drilldown",["highch... | OHSU-FM/reindeer | vendor/assets/javascripts/highcharts/modules/drilldown.js | JavaScript | gpl-2.0 | 12,334 |
var disappeardelay=250 //menu disappear speed onMouseout (in miliseconds)
var enableanchorlink=0 //Enable or disable the anchor link when clicked on? (1=e, 0=d)
var hidemenu_onclick=1 //hide menu when user clicks within menu? (1=yes, 0=no)
/////No further editting needed
var ie5=document.all
var ns6=document.getElem... | Wikicrimes/WikiCrimesOpenSource | target/test-classes/scriptsOriginal/anylink.js | JavaScript | gpl-2.0 | 3,504 |
// This file is part of Vidyamantra - http:www.vidyamantra.com/
/**@Copyright 2014 Vidyamantra Edusystems. Pvt.Ltd.
* @author Suman Bogati <http://www.vidyamantra.com>
*/
(
function(window) {
var vcan = window.vcan;
/**
* TODO this object has some methods
* through which the ... | vidyamantra/whiteboard | src/interact.js | JavaScript | gpl-3.0 | 3,651 |