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 |
|---|---|---|---|---|---|
// Copyright 2012 Mark Cavage, Inc. All rights reserved.
var assert = require('assert');
var http = require('http');
var Logger = require('bunyan');
var mime = require('mime');
var clients = require('./clients');
var errors = require('./errors');
var plugins = require('./plugins');
var sanitizePath = require('./ut... | J22pineda/myscheduler-web | temp/node_modules/web-component-tester/node_modules/wct-local/node_modules/launchpad/node_modules/restify/lib/index.js | JavaScript | bsd-3-clause | 4,900 |
/*!
* jQuery UI Effects Transfer 1.9.1
* http://jqueryui.com
*
* Copyright 2012 jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*
* http://api.jqueryui.com/transfer-effect/
*
* Depends:
* jquery.ui.effect.js
*/
(function( $, undefined ) {
$.effects.eff... | maestrano/soplanning | www/js/jquery/ui/jquery.ui.effect-transfer.js | JavaScript | gpl-3.0 | 1,236 |
/**
* 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... | DistroScale/amphtml | ads/affiliateb.js | JavaScript | apache-2.0 | 929 |
var template = require("lodash.template");
var gutil = require("gulp-util");
var api = require("./extra_api");
var extend = require("node.extend");
var path = require("path");
"use strict";
var defaults = {
error: {
icon: path.join(__dirname, '..', 'assets', 'gulp-error.png'),
sound: 'Frog'
},
regular: ... | digisavvy/pureallex | wp-content/themes/pureallax/node_modules/gulp-notify/lib/report.js | JavaScript | gpl-2.0 | 2,766 |
var flatpickr = function (selector, config) {
'use strict';
var elements,
createInstance,
instances = [],
i;
flatpickr.prototype = flatpickr.init.prototype;
createInstance = function (element) {
if (element._flatpickr) {
element._flatpickr.destroy();
... | dc-js/cdnjs | ajax/libs/flatpickr/1.6.5/flatpickr.js | JavaScript | mit | 20,685 |
/* -*- Mode: Javascript; indent-tabs-mode:nil; js-indent-level: 2 -*- */
/* vim: set ts=2 et sw=2 tw=80: */
/*************************************************************
*
* MathJax/jax/output/SVG/jax.js
*
* Implements the SVG OutputJax that displays mathematics using
* SVG (or VML in IE) to position the char... | dongli/mathjax-rails | vendor/mathjax/unpacked/jax/output/SVG/jax.js | JavaScript | mit | 88,676 |
angular.module('ui.bootstrap.dateparser', [])
.service('dateParser', ['$locale', 'orderByFilter', function($locale, orderByFilter) {
// Pulled from https://github.com/mbostock/d3/blob/master/src/format/requote.js
var SPECIAL_CHARACTERS_REGEXP = /[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g;
this.parsers = {};
var format... | g0v/hacktabl | vendor/bower_components/angular-bootstrap/src/dateparser/dateparser.js | JavaScript | mit | 4,927 |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var docAcknowledgmentsRole = {
abstract: false,
accessibleNameRequired: false,
baseConcepts: [],
childrenPresentational: false,
nameFrom: ['author'],
props: {
'aria-describedat': null
},
relatedConcepts: [{
module: '... | grshane/monthofmud | web/themes/custom/mom/node_modules/aria-query/lib/etc/roles/dpub/docAcknowledgmentsRole.js | JavaScript | mit | 581 |
'use strict'
const fs = require('fs')
const path = require('path')
const YError = require('./yerror')
let previouslyVisitedConfigs = []
function checkForCircularExtends (path) {
if (previouslyVisitedConfigs.indexOf(path) > -1) {
throw new YError(`Circular extended configurations: '${path}'.`)
}
}
function g... | joegesualdo/dotfiles | npm-global/lib/node_modules/npm/node_modules/yargs/lib/apply-extends.js | JavaScript | mit | 1,472 |
//// [collisionSuperAndLocalVarInAccessors.ts]
var _super = 10; // No Error
class Foo {
get prop1(): number {
var _super = 10; // No error
return 10;
}
set prop1(val: number) {
var _super = 10; // No error
}
}
class b extends Foo {
get prop2(): number {
var _super = ... | progre/TypeScript | tests/baselines/reference/collisionSuperAndLocalVarInAccessors.js | JavaScript | apache-2.0 | 2,502 |
/*
*
* 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"); y... | hardikthakkar3/File-Opener | test/main.js | JavaScript | apache-2.0 | 5,140 |
/* YUI 3.9.1 (build 5852) Copyright 2013 Yahoo! Inc. http://yuilibrary.com/license/ */
YUI.add("yui-log",function(e,t){var n=e,r="yui:log",i="undefined",s={debug:1,info:1,warn:1,error:1};n.log=function(e,t,o,u){var a,f,l,c,h,p=n,d=p.config,v=p.fire?p:YUI.Env.globalEvents;return d.debug&&(o=o||"",typeof o!="undefined"&&... | berkmancenter/spectacle | web/js/app/editor/node_modules/grunt-contrib/node_modules/grunt-contrib-yuidoc/node_modules/yuidocjs/node_modules/yui/yui-log/yui-log-min.js | JavaScript | gpl-2.0 | 796 |
// (C) Copyright 2015 Martin Dougiamas
//
// 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 agre... | Nithis111/AIT | www/addons/qbehaviour/interactivecountback/handlers.js | JavaScript | apache-2.0 | 1,365 |
/*!
* vue-resource v0.9.3
* https://github.com/vuejs/vue-resource
* Released under the MIT License.
*/
'use strict';
/**
* Promises/A+ polyfill v1.1.4 (https://github.com/bramstein/promis)
*/
var RESOLVED = 0;
var REJECTED = 1;
var PENDING = 2;
function Promise$2(executor) {
this.state = PENDING;
thi... | hiscaler/mts | web/admin/js/vue/vue-resource.common.js | JavaScript | bsd-3-clause | 30,640 |
(function($)
{
"use strict";
$.SmileTrigger = $.SmileTrigger || {};
$.SmileTrigger.wp_media = $.SmileTrigger.wp_media || [];
$.SmileTrigger.media_new = function()
{
var $body = $("body");
$body.on('click', '.smile_upload_icon', $.SmileTrigger.media_new_activate );
};
//intended for zip files only. if needed... | tee26/epaper | wp-content/themes/porto/inc/plugins/Ultimate_VC_Addons/admin/js/admin-media.js | JavaScript | gpl-2.0 | 5,229 |
/*!
* inferno-server v0.7.17
* (c) 2016 Dominic Gannaway
* Released under the MIT License.
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global.InfernoServer = factory())... | tonytomov/cdnjs | ajax/libs/inferno/0.7.17/inferno-server.js | JavaScript | mit | 8,443 |
/**
* @author Prashant Sharma / spidersharma03
* @author Ben Houston / bhouston, https://clara.io
*
* This class takes the cube lods(corresponding to different roughness values), and creates a single cubeUV
* Texture. The format for a given roughness set of faces is simply::
* +X+Y+Z
* -X-Y-Z
* For every roughn... | wayne-christian/WEB-AUTH-PRESENTATIONS | webauth_stickies/plane/js/pmrem/PMREMCubeUVPacker.js | JavaScript | mit | 5,784 |
RSpec.describe("Project", function() {
var view;
var parentView = { router: {route: function(){} } };
beforeEach(function() {
view = new App.views.Project({ parent: parentView, el: $('<div><div id="tab">foo</div><div id="emptyTab"></div></div>')});
});
describe("#toggleWarning", function() {
beforeE... | sushant12/jvn | spec/javascripts/project_spec.js | JavaScript | mit | 5,094 |
'use strict';
var bind = require('./helpers/bind');
/*global toString:true*/
// utils is a library of generic helper functions non-specific to axios
var toString = Object.prototype.toString;
/**
* Determine if a value is an Array
*
* @param {Object} val The value to test
* @returns {boolean} True if value is a... | N00bface/Real-Dolmen-Stage-Opdrachten | stageopdracht/node_modules/axios/lib/utils.js | JavaScript | mit | 7,456 |
/*
CryptoJS v3.1.2 sha224-min.js
code.google.com/p/crypto-js
(c) 2009-2013 by Jeff Mott. All rights reserved.
code.google.com/p/crypto-js/wiki/License
*/
(function(){var b=CryptoJS,d=b.lib.WordArray,a=b.algo,c=a.SHA256,a=a.SHA224=c.extend({_doReset:function(){this._hash=new d.init([3238371032,914150663,812702999,414491... | Slaals/slaals.github.io | src/js/kjur-jsrsasign/ext/cj/sha224_min.js | JavaScript | mit | 521 |
/*!
* @preserve
* jquery.scrolldepth.js | v0.7.2
* Copyright (c) 2015 Rob Flaherty (@robflaherty)
* Licensed under the MIT and GPL licenses.
*/
;(function ( $, window, document, undefined ) {
"use strict";
var defaults = {
minHeight: 0,
elements: [],
percentage: true,
userTiming: true,
pi... | sashberd/cdnjs | ajax/libs/jquery-scrolldepth/0.7.2/jquery.scrolldepth.js | JavaScript | mit | 7,505 |
/* Malaysian initialisation for the jQuery UI date picker plugin. *//* Written by Mohd Nawawi Mohamad Jamili (nawawi@ronggeng.net). */jQuery(function(a){a.datepicker.regional.ms={closeText:"Tutup",prevText:"<Sebelum",nextText:"Selepas>",currentText:"hari ini",monthNames:["Januari","Februari","Mac","April","Me... | excemplify/immunoblot | web-app/jquery-ui/ui/i18n/jquery.ui.datepicker-ms.min.js | JavaScript | apache-2.0 | 801 |
// 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, modi... | BigBoss424/portfolio | v8/development/node_modules/tar-stream/node_modules/readable-stream/lib/_stream_writable.js | JavaScript | apache-2.0 | 21,821 |
(function (global, factory) {
if (typeof define === "function" && define.amd) {
define('element/locale/lv', ['module', 'exports'], factory);
} else if (typeof exports !== "undefined") {
factory(module, exports);
} else {
var mod = {
exports: {}
};
factory(mod, mod.exports);
global.EL... | zengguoyu/sample | sample-site/src/main/webapp/assets/static/element-ui/lib/umd/locale/lv.js | JavaScript | apache-2.0 | 3,172 |
CKEDITOR.plugins.setLang("find","en-ca",{find:"Find",findOptions:"Find Options",findWhat:"Find what:",matchCase:"Match case",matchCyclic:"Match cyclic",matchWord:"Match whole word",notFoundMsg:"The specified text was not found.",replace:"Replace",replaceAll:"Replace All",replaceSuccessMsg:"%1 occurrence(s) replaced.",r... | orbiten-pradeep/chesmile | webroot/dashboard/plugins/ckeditor/plugins/find/lang/en-ca.js | JavaScript | mit | 374 |
it("should handle the jade loader correctly", function() {
require("!jade?self!../_resources/template.jade")({abc: "abc"}).should.be.eql("<p>selfabc</p><h1>included</h1>");
require("../_resources/template.jade")({abc: "abc"}).should.be.eql("<p>abc</p><h1>included</h1>");
});
| quentinyang/webpack | test/cases/loaders/jade-loader/index.js | JavaScript | mit | 278 |
/*
This file is part of Ext JS 4.2
Copyright (c) 2011-2013 Sencha Inc
Contact: http://www.sencha.com/contact
GNU General Public License Usage
This file may be used under the terms of the GNU General Public License version 3.0 as
published by the Free Software Foundation and appearing in the file LICENSE included in... | filippov70/map.org | www/jslib/extjs/src/app/EventDomain.js | JavaScript | lgpl-3.0 | 11,261 |
/**
* hashgrid (jQuery version, adapters are on the way)
* http://github.com/dotjay/hashgrid
* Version 8, 06 Oct 2012
* Written by Jon Gibbins
*
* Contibutors:
* James Aitken, http://loonypandora.co.uk/
* Tom Arnold, http://www.tomarnold.de/
* Sean Coates, http://seancoates.com/
* Phil Dokas, http://jetless.o... | ramda/jsdelivr | files/hashgrid/8/hashgrid.js | JavaScript | mit | 10,278 |
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define("iview/locale", [], factory);
else if(typeof exports === 'object')
exports["iview/locale"] = factory()... | davin-bao/peanut | node_modules/iview/dist/locale/pt-PT.js | JavaScript | apache-2.0 | 5,736 |
/*!
* jQuery UI Effects Fold 1.8.24
*
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI/Effects/Fold
*
* Depends:
* jquery.effects.core.js
*/
(function( $, undefined ) {
$.effects.fold ... | SergL/aboutttango | wp-content/plugins/smartresponder-1.0/plugins/jquery-ui-1.8.24.custom/development-bundle/ui/jquery.effects.fold.js | JavaScript | gpl-2.0 | 1,907 |
export{default}from"./Radio"; | cdnjs/cdnjs | ajax/libs/material-ui/5.0.0-alpha.9/esm/Radio/index.min.js | JavaScript | mit | 29 |
// this allows you to track the selected item in an array, ghetto for now
Discourse.SelectableArray = Em.ArrayProxy.extend({
init: function() {
this.content = [];
this._super();
},
selectIndex: function(index){
this.select(this[index]);
},
select: function(selected){
_.each(this.content,fun... | fs/open-core | spec/dummy/app/assets/javascripts/discourse/models/selectable_array.js | JavaScript | gpl-2.0 | 742 |
!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?t(require("jquery")):t(window.jQuery)}(function(i){"use strict";window.XDomainRequest&&!i.support.cors&&i.ajaxTransport(function(n){var r;if(n.crossDomain&&n.async)return n.timeout&&(n.xdrTimeout=n.timeout,dele... | ajepst/XlsToEf | src/XlsToEfCore.Example/wwwroot/lib/blueimp-file-upload/js/cors/jquery.xdr-transport.min.js | JavaScript | mit | 989 |
/**
* Animate.css Utility
*
* This module is a wrapper around animate.css's CSS classes to produce animation.
* It contains options to ease common tasks, like listen to the "animationend" event with all necessary prefixes, remove the necessary class names when the animation finishes, or configure the duration of yo... | djcraft/Algotica | www/js/ink-ui.js | JavaScript | gpl-3.0 | 483,011 |
"use strict";
var s3_setup = require('../lib/util/s3_setup.js');
var assert = require('assert');
describe('s3_setup', function() {
it('should propertly detect s3 bucket and prefix', function() {
var url = "https://node-pre-gyp-tests.s3-us-west-1.amazonaws.com";
var result = {};
s3_setup.de... | rammohanmishra/DOAuth | trial/node_modules/mongoose/node_modules/bson/node_modules/bson-ext/node_modules/node-pre-gyp/test/s3_setup.test.js | JavaScript | apache-2.0 | 771 |
/*jslint strict: false*/
/*global require: false, console: false */
var http = require('http'),
host = '0.0.0.0',
port = 9320,
config;
http.createServer(function (req, res) {
req.on('end', function () {
var contents = '500 server error';
res.writeHead(500, {
'Content-Typ... | SesamTV/ChromecastCordovaExample | www/sesamcast/bower_components/requirejs/tests/browsertests/noload/server.js | JavaScript | mit | 554 |
/*
* Copyright (c) 2013 Algolia
* http://www.algolia.com/
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy,... | tmthrgd/pagespeed-libraries-cdnjs | packages/algoliasearch/2.8.6/algoliasearch.js | JavaScript | mit | 101,210 |
'use strict';
describe("animations", function() {
beforeEach(module('ngAnimate'));
beforeEach(module('ngAnimateMock'));
var element, applyAnimationClasses;
afterEach(inject(function($$jqLite) {
applyAnimationClasses = applyAnimationClassesFactory($$jqLite);
dealoc(element);
}));
it('should allow... | wangtun/angular.js | test/ngAnimate/animateSpec.js | JavaScript | mit | 54,134 |
CKEDITOR.plugins.setLang("save","ar",{toolbar:"حفظ"}); | AaronH92/mProve3.2 | www/lib/ckeditor/plugins/save/lang/ar.js | JavaScript | apache-2.0 | 60 |
CKEDITOR.plugins.setLang("colordialog","pl",{clear:"Wyczyść",highlight:"Zaznacz",options:"Opcje koloru",selected:"Wybrany",title:"Wybierz kolor"}); | AaronH92/mProve3.2 | www/lib/ckeditor/plugins/colordialog/lang/pl.js | JavaScript | apache-2.0 | 152 |
/*!
* URI.js - Mutating URLs
* IPv6 Support
*
* Version: 1.11.1
*
* Author: Rodney Rehm
* Web: http://medialize.github.com/URI.js/
*
* Licensed under
* MIT License http://www.opensource.org/licenses/mit-license
* GPL v3 http://opensource.org/licenses/GPL-3.0
*
*/
(function (root, factory) {
// http... | WebReflection/cdnjs | ajax/libs/URI.js/1.11.1/IPv6.js | JavaScript | mit | 4,585 |
/*!
* Punycode.js <http://mths.be/punycode>
* Copyright 2011 Mathias Bynens <http://mathiasbynens.be/>
* Available under MIT license <http://mths.be/mit>
*/
;(function(root) {
/**
* The `punycode` object.
* @name punycode
* @type Object
*/
var punycode,
/** Detect free variables `define`, `exports`, `... | drewfreyling/cdnjs | ajax/libs/punycode/0.2.1/punycode.js | JavaScript | mit | 13,998 |
// Define module using Universal Module Definition pattern
// https://github.com/umdjs/umd/blob/master/amdWeb.js
(function (factory) {
if (typeof define === 'function' && define.amd) {
// Support AMD. Register as an anonymous module.
// NOTE: List all dependencies in AMD style
define(['d3', 'topojson'], ... | jasdumas/jasdumas.github.io | tech-short-papers/Interactive_data_viz_comparison_files/vega-1.4.3/vega.js | JavaScript | mit | 197,131 |
(function(){tinymce.create("tinymce.plugins.ExampleDependencyPlugin",{init:function(){},getInfo:function(){return{longname:"Example Dependency plugin",author:"Some author",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/example_dependency",version:"1.0"}}}),tinymce.... | amazilla/OneCloud | onecloud/extern/libs/eyeWidgets/tiny_mce/plugins/example_dependency/editor_plugin.min.js | JavaScript | agpl-3.0 | 416 |
/*!
* Qoopido.js library v3.5.4, 2014-9-30
* https://github.com/dlueth/qoopido.js
* (c) 2014 Dirk Lueth
* Dual licensed under MIT and GPL
*/
!function(e){window.qoopido.register("polyfill/object/keys",e)}(function(){"use strict";return Object.keys||(Object.keys=function(e){if(e!==Object(e))throw new TypeError("Object.k... | vousk/jsdelivr | files/qoopido.js/3.5.4/polyfill/object/keys.js | JavaScript | mit | 447 |
/**
* `linkAssetsBuildProd`
*
* ---------------------------------------------------------------
*
* This Grunt tasklist is not designed to be used directly-- rather
* it is a helper called by the `buildProd` tasklist.
*
* For more information see:
* http://sailsjs.org/documentation/anatomy/my-app/tasks/regis... | RefrigeratorUA/GoITLib | twitter-sample/tasks/register/linkAssetsBuildProd.js | JavaScript | gpl-3.0 | 660 |
/*
YUI 3.17.1 (build 0eb5a52)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('dom-screen', function (Y, NAME) {
(function(Y) {
/**
* Adds position and region management functionality to DOM.
* @module dom
* @submodule dom-screen
* @for DO... | janpaepke/cdnjs | ajax/libs/yui/3.17.1/dom-screen/dom-screen-debug.js | JavaScript | mit | 20,978 |
"use strict";
// private
var _sSelectQuery = "SELECT id, name, url, urlembeded FROM plugin_videos_videos";
// module
module.exports = class DBPluginsVideosVideos {
constructor (db) {
this.db = db;
}
// read
lastInserted() {
let that = this;
return new Promise(function(resolve, reject) {
try... | Psychopoulet/MIA-plugin-VideosManager | database/videos.js | JavaScript | isc | 5,698 |
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.wate = f()}})(... | reissbaker/wate | build/wate.js | JavaScript | isc | 18,082 |
import mod1442 from './mod1442';
var value=mod1442+1;
export default value;
| MirekSz/webpack-es6-ts | app/mods/mod1443.js | JavaScript | isc | 76 |
var shell = require('shelljs')
shell.rm('-r', 'dist')
shell.exec('node-sass -r src/themes -o dist/themes')
shell.cp('-r', 'src/themes/assets', 'dist/themes/assets')
shell.exec('rollup -c build/rollup.config.js')
| Zulko/eagle.js | build/build.js | JavaScript | isc | 214 |
"use strict";
function add(a, b, filter) {
if (arguments.length < 2) b = 0;
console.log(a + b);
if (arguments.length < 3) filter = function(path, type) { return true; };
}
add(5);
add(10, 5); | Gi60s/IT410 | optional-args/index.js | JavaScript | isc | 208 |
import NavigationBar from './navigation-bar';
import HolidayList from './holiday-list';
export const Feed = (props) => {
// todo: derive these from dataset
const minimumDate = '2017-07-14';
const maximumDate = '2018-07-12';
let pathDate = new Date();
if (props.year && props.month && props.day) {
pathDate = n... | sturmen/national-food-today | feed.js | JavaScript | isc | 531 |
var timezoneOffset = require('./timezoneOffset')
// abbreviated time zone name or similar info
function timezoneAbbr (date) {
// Date.toString gives different results depending on the
// browser/system so we fallback to timezone offset
// chrome: 'Mon Apr 08 2013 09:02:04 GMT-0300 (BRT)'
// IE: 'Mon Apr 8 09:... | akileez/toolz | src/date/timezoneAbbr.js | JavaScript | isc | 469 |
"use strict";
var connect = require("../db");
module.exports = {
getSingle: function(email, cb) {
var queryString = "SELECT * FROM users WHERE email=($1)";
connect(function(err, client, done) {
if (err) return cb(err);
client.query(queryString, [email], function(errGet, info) {
console.log(errGet);
... | foundersandcoders/chandelier | api/models/users.js | JavaScript | isc | 444 |
var Promix = require('promix');
function getRecursiveDependenciesForFile(
file,
seen_filepaths,
parent_filepaths,
callback
) {
var filepath = file.getFilepath();
parent_filepaths.push(filepath);
function handler(error, dependencies) {
if (error) {
return void callback(error);
}
var
index ... | burninggarden/burninggarden | src/fs/bundler/javascript.js | JavaScript | isc | 8,655 |
/*
* @Author: kuychaco
* @Date: 2015-05-28 15:33:28
* @Last Modified by: Katrina Uychaco
*/
'use strict';
var Bluebird = require('bluebird');
var data = require('./data-stubs');
var ghData = Bluebird.promisifyAll(require('./github-controller'));
var controller = Bluebird.promisifyAll(require('./db-import'));
... | cwhwang1986/constellation | server/database/db.js | JavaScript | isc | 1,742 |
#!/usr/bin/env node
/**
Fixes file system permissions for all files in a directory (recursively). All folders get 0755 mask and files 0664 mask
*/
var fs = require('fs')
var dir = process.argv[2]
fs.stat(dir, function (err, stats) {
if (err) {
console.error(err)
} else {
if (!stats.isDirectory()) {
consol... | AlexYursha/fix-permissions | fix-permissions.js | JavaScript | isc | 1,251 |
import React from "react"
import ReactDOM from "react-dom"
export default class A extends React.Component {
constructor(props) {
super(props)
}
render() {
return <h1>Component A</h1>
}
} | hhhyaaon/webpack_demo | src/views/module_a/a.js | JavaScript | isc | 219 |
/* eslint-env ebdd/ebdd, node */
'use strict';
var cli = require('../tools/cli');
var assert = require('assert');
describe
(
'screw.js',
function ()
{
var childProcessExports = require('child_process');
var fs = require('fs');
var os = requir... | fasttime/JScrewIt | test/cli.spec.js | JavaScript | isc | 23,350 |
/*!
* UI development toolkit for HTML5 (OpenUI5)
* (c) Copyright 2009-2016 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
sap.ui.define(["sap/m/semantic/ShareMenuPage", "sap/m/semantic/SemanticConfiguration", "sap/m/semantic/SemanticPageRenderer", "sap/m/P... | dirga123/clr | openui5/sap/m/semantic/FullscreenPage-dbg.js | JavaScript | isc | 7,202 |
var redis = require('redis');
var config = require('../config');
var client;
exports.getClient = function() {
if (!client) {
client = redis.createClient(config.redis.port || 6379, config.redis.host || 'localhost', {
auth_pass: config.redis.pass
});
}
return client
} | freewil/sdata | db/redis.js | JavaScript | isc | 287 |
import moment from 'moment';
class Clock {
/**
* @returns {moment} moment()
*/
getNow() {
return moment();
}
}
export default new Clock; | scopevale/carpers-paradise | src/client/js/utils/Clock.js | JavaScript | isc | 169 |
/*******************************************************************************************************
* File: resolve.js
* Project: hootenanny-ui
* @author Matt Putipong - matt.putipong@radiantsolutions.com on 5/24/18
***********************************************************************************************... | ngageoint/hootenanny-ui | modules/Hoot/ui/conflicts/resolve.js | JavaScript | isc | 2,752 |
import { actionAddVertex } from '../actions/add_vertex';
import { actionChangeTags } from '../actions/change_tags';
import { actionMergeNodes } from '../actions/merge_nodes';
import { actionExtract } from '../actions/extract';
import { modeSelect } from '../modes/select';
import { osmJoinWays } from '../osm/multipolygo... | kartta-labs/iD | modules/validations/mismatched_geometry.js | JavaScript | isc | 11,465 |
function triangleOfStars(inputNumber) {
printTriangleTop(inputNumber);
printTriangleBottom(inputNumber);
function printTriangleTop(inputNumber) {
for (let i = 1; i <= inputNumber; i++) {
console.log("*".repeat(i));
}
}
function printTriangleBottom(inputNumber) {
... | i-den/SoftwareUniversity | Software University/05) JavaScript Fundamentals/06. Functions/01. Triangle of Stars.js | JavaScript | mit | 423 |
// Copyright IBM Corp. 2015. All Rights Reserved.
// Node module: strong-agent
// US Government Users Restricted Rights - Use, duplication or disclosure
// restricted by GSA ADP Schedule Contract with IBM Corp.
'use strict';
var agent = require('../agent');
var proxy = require('../proxy');
var samples = require('../s... | tsiry95/openshift-strongloop-cartridge | strongloop/node_modules/strong-agent/lib/probes/memcached.js | JavaScript | mit | 2,538 |
version https://git-lfs.github.com/spec/v1
oid sha256:5f870caeffb6decd92b5890c82dad1fda8a1224ee50eae9612b2ad8c39fd0ebc
size 8001
| yogeshsaroya/new-cdnjs | ajax/libs/jquery.lazyloadxt/0.8.11/jquery.lazyloadxt.js | JavaScript | mit | 129 |
version https://git-lfs.github.com/spec/v1
oid sha256:417aca577273db783ae14b7fc139a7a3d0365595fbcb4c403428959bf8846cdc
size 16241
| yogeshsaroya/new-cdnjs | ajax/libs/openlayers/2.11/lib/OpenLayers/Format/WFST/v1.js | JavaScript | mit | 130 |
import { combineReducers } from 'redux';
import meta from './meta';
import preview from './preview';
import annotations from './annotations';
import sourceData from './sourceData';
import sourceNodeFilter from './sourceNodeFilter';
const reducer = combineReducers({
meta,
preview,
annotations,
sourceData,
so... | toruta39/Markr | renderer/reducer/index.js | JavaScript | mit | 364 |
var dkindred;
(function (dkindred) {
var blogs;
(function (blogs) {
'use strict';
var blogsService = (function () {
function blogsService($http) {
this.$http = $http;
}
blogsService.prototype.getBlogPosts = function () {
return ... | yellownoggin/dkindred | src/client/app/blogs/blogs.service.js | JavaScript | mit | 680 |
/**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import path from 'path';
import webpack from 'webpack';... | brian-kilpatrick/react-starter-kit | tools/webpack.config.js | JavaScript | mit | 9,783 |
const { Router } = require('express');
const attachTo = (app, { users: userController }, admin) => {
const usersRouter = new Router();
usersRouter
.get('/', isLoggedIn, userController.getUsers)
.get('/:username', isLoggedIn, userController.getProfile)
.get('/:username/settings', isLogg... | TeamYAGNI/BonanzaAlgorithmsCatalogue | app/routers/users.router.js | JavaScript | mit | 649 |
/*!
* domain-middleware - lib/domain.js
* Copyright(c) 2012 fengmk2 <fengmk2@gmail.com>
* MIT Licensed
*/
"use strict";
/**
* Module dependencies.
*/
var cluster = require('cluster');
var domain = require('domain');
/**
* Domain middleware, please use with `cluster` in production env.
*
* @param {Object} ... | HabitRPG/domain-middleware | lib/domain.js | JavaScript | mit | 2,866 |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.... | qinwf-nuan/keras-js | lib/layers/convolutional/Conv3D.js | JavaScript | mit | 25,278 |
import { username, password } from '../../../LoginDetails'
// ------------------------------------
// Constants
// ------------------------------------
export const REQUEST_CONTACT = 'REQUEST_CONTACT'
export const FETCH_CONTACT = 'FETCH_CONTACT'
export const RECIEVE_CONTACT = 'RECIEVE_CONTACT'
export const SELECT_CONT... | darioml/farley-files | web/src/routes/Contacts/modules/contacts.js | JavaScript | mit | 2,081 |
'use strict';
angular.module('teamtoolApp')
.controller('HealthController', function ($scope, MonitoringService) {
$scope.updatingHealth = true;
$scope.separator = '.';
$scope.refresh = function () {
$scope.updatingHealth = true;
MonitoringService.checkHealth().then... | MilenkoBugueno/teamtool-sandbox | src/main/webapp/scripts/app/admin/health/health.controller.js | JavaScript | mit | 4,359 |
define([
'./core',
'./core/init',
'./manipulation', // clone
'./traversing' // parent, contents
], function (jQuery) {
jQuery.fn.extend({
wrapAll: function (html) {
var wrap
if (jQuery.isFunction(html)) {
return this.each(function (i) {
jQuery(this).wrapAll(html.call(this, i... | luoyjx/gaoqi-blog | public/lib/jquery/src/wrap.js | JavaScript | mit | 1,657 |
import * as apiArticle from '../../../common/api/article';
import { call, put, take } from 'redux-saga/effects'
import history from '../../../common/util/history';
import message from '../../../common/component/message';
export default {
// 获取列表
*getAdminArticle({payload}) {
try {
... | ColdXu/hblog | src/admin/store/article/action.js | JavaScript | mit | 2,277 |
import React from 'react';
import CategoryList from './CategoryList';
import Category from '../models/Category';
describe('CategoryList', () => {
it('renders CategoryList correctly', () => {
const subject = <CategoryList />;
expect(subject).toMatchSnapshot();
});
it('renders CategoryList with empty Categ... | loicbaron/nutrition | frontend/src/components/CategoryList.test.js | JavaScript | mit | 463 |
/*
* uniform-shape
* https://github.com/hisame64/uniform-shape
*
* Copyright (c) 2014 Shuji Isogai
* Licensed under the MIT license.
*/
(function($) {
// Collection method.
$.fn.uniform_shape = function() {
return this.each(function(i) {
// Do something awesome to each selected element.
$(th... | hisame64/uniform-shape | src/jquery.uniform-shape.js | JavaScript | mit | 885 |
'use strict';
var co = require('co');
var util = require('util');
var logger = require('winston');
var Table = require('cli-table2');
var api = require('../api');
var manifest = require('../manifest');
var message = require('../../../message');
var moment = require('moment');
var app = require.main.exports;
var bot =... | GeekyDeaks/discord-destinybot | bot/modules/destiny/commands/advisors.js | JavaScript | mit | 12,639 |
import React from 'react'
var Stats = React.createClass({
render: function(){
return (
<div>
<span>{this.props.subscribers}</span> subscribers. <span>{this.props.issues}</span> issues.
</div>
)
}
})
module.exports = Stats
| axcoto/rethink-weekly | client/src/js/stats.js | JavaScript | mit | 257 |
module.exports = require("./../../_gen/openfl/events/ErrorEvent"); | Gama11/openfl | lib/openfl/events/ErrorEvent.js | JavaScript | mit | 66 |
(function (winJs) {
'use strict';
var converters = {
jsonStringify: winJs.Binding.converter(function (o) {
return JSON.stringify(o);
}),
clientPhoto: winJs.Binding.converter(function (client) {
if (!client || !client.hasPhoto)
return '/images/emp... | Sigura/HabraWin | POC.Win8.1/js/converters.js | JavaScript | mit | 1,256 |
export default class Ctrl {
/** @ngInject */
constructor(Tech) {
// DI
this.Tech = Tech;
}
$onInit() {
this.Tech.getList().then(list => this.list = list);
}
}
| javascript-awesome/angular-aac-es6 | src/app/techs/components/techs/techs.controller.js | JavaScript | mit | 182 |
/*global tau */
/*jslint unparam: true */
(function(tau) {
var page,
elScroller,
list,
listHelper = [],
snapList = [],
i, len;
if (tau.support.shape.circle) {
document.addEventListener("pagebeforeshow", function (e) {
page = e.target;
elScroller = page.querySelector(".ui-scroller");
if (elScrol... | gon250/sevici-wear-app-tizen | js/circle-helper.js | JavaScript | mit | 1,051 |
require('babel-core/register');
function noop() {
return null;
}
require.extensions['.scss'] = noop;
require.extensions['.css'] = noop; | k3ira/react-flat | scripts/test/compiler.js | JavaScript | mit | 138 |
var test;
var wf = WF();
wf.CONF['ERROR'] = true;
console.log("[+] Loading app functions");
test = require('../app.builder.js');
console.log("[+] Launching app");
test.Launch(wf.Emulate.req, wf.Emulate.res);
console.log("[+] Loading fn");
test = require('../fn.builder.js');
console.log("[+] Loading host functions");
t... | seraum/outjs | base/builder/test/builder.test.js | JavaScript | mit | 553 |
export const tempdir = `${process.env.HOME}/.meepworks`;
export const repos = {
cordova: 'u9520107/meepworks-cordova-base',
isomorphic: 'u9520107/meepworks-base'
};
export const gitSettings = {
protocol: 'https://github.com'
};
export const defaultProjectType = 'isomorphic';
| u9520107/meepworks-cli | source/config.js | JavaScript | mit | 285 |
import {
updateCollections,
setCollection,
makeCollectionMember
} from '../utils/ds-collections';
import findRecordSucceeded from './find-record-succeeded';
export default function queryRecordsSucceeded(state, { type: status, meta, record: records }) {
const collectionsState = updateCollections(state, (collect... | foxnewsnetwork/ember-with-redux | addon/reducers/query-records-succeeded.js | JavaScript | mit | 524 |
/*
* Copyright (c) Michael Polyak. All rights reserved.
*/
"use strict";
const util = require("util");
const Readable = require("stream").Readable;
const operators = ["+", "-", "*", "/"];
util.inherits(Expression, Readable);
function Expression(delay)
{
Readable.call(this, {objectMode: true});
this.del... | mpolyak/ProducerConsumer | src/expression.js | JavaScript | mit | 1,216 |
function leftpad (str, len, ch) {
str = String(str);
var i = -1;
if (!ch && ch !== 0) ch = ' ';
len = len - str.length;
while (++i < len) {
str = ch + str;
}
return str;
}
| medifle/recipes | gulp-useref/app/js/a.js | JavaScript | mit | 195 |
$( document ).ready(function() {
$('.enabled-monitoring-switch').click(function(){
$.ajax({
url: '/monitor/toggle/overall',
type: 'POST',
success: function(result) {
location.reload(true);
}
});
});
$('.enabled-monitoring-map-switch').click(function(){
$.ajax({
u... | mazi-project/portal | public/js/admin_monitor.js | JavaScript | mit | 10,644 |
import baseHasIn from './_baseHasIn';
import hasPath from './_hasPath';
/**
* Checks if `path` is a direct or inherited property of `object`.
*
* @static
* @memberOf _
* @since 4.0.0
* @category Object
* @param {Object} object The object to query.
* @param {Array|string} path The path to check.
* @returns {bo... | ududsha/React-Redux-Dashboard-boilerplate | node_modules/lodash-es/hasIn.js | JavaScript | mit | 771 |
'use strict';
var express = require('express');
var http = require('http');
var logger = require('morgan');
var Path = require('path');
var request = require('request');
var cache = require('memory-cache');
var retention = 29000; // retention time for cache
var localhost = 'localhost',
pc1 = '169.254.94.120',
... | sdenier/golive | server.js | JavaScript | mit | 1,320 |
var test = require("tape");
var React = require("react");
var TestUtils = require("react-addons-test-utils");
var CheckBox = require("../lib/CheckBox");
var person = { name: "Tom", hasId: true, isActive: "TRUE" };
test("lib/CheckBox - renders", function (assert) {
var renderer = TestUtils.createRenderer();
var prop... | luispablo/react-bootstrap3-components | test/CheckBox-test.js | JavaScript | mit | 5,119 |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import i18n from '../lib/i18n';
import LoginTopBar from '../containers/LoginTopBar';
import PublicFooter from '../components/PublicFooter';
import Confirmation from '../components/Confirmation';
export class Response extends Component {... | OpenCollective/opencollective-website | frontend/src/containers/Response.js | JavaScript | mit | 1,486 |
$(document).ready(function()
{
hide_elements();
var test = true;
var bitcore = require('bitcore');
var client_port;
var gateway_port = "8080";
var gateway;
var cost;
var cost_url;
if(test)
{
client_port = "8081";
}
else
{
client_port = "8080... | adonley/BitMesh | Sources/JavaClient/resources/network/bitmesh/WebServer/Client/js/bitmesh.js | JavaScript | mit | 10,902 |
import { expect } from 'chai';
import {
REKIT_CMDS_SHOW_CMD_DIALOG,
} from 'src/features/rekit-cmds/redux/constants';
import {
showCmdDialog,
reducer,
} from 'src/features/rekit-cmds/redux/showCmdDialog';
describe('rekit-cmds/redux/showCmdDialog', () => {
it('returns correct action by showCmdDialog', () => {... | supnate/rekit-portal | tests/features/rekit-cmds/redux/showCmdDialog.test.js | JavaScript | mit | 907 |