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 |
|---|---|---|---|---|---|
/**
* @package https://raw.github.com/caolan/async/master/package.json
*
* @src https://github.com/caolan/async/raw/master/lib/async.js
* @min https://raw.github.com/caolan/async/master/dist/async.min.js
*/
define('#{{id}}', [], function(require, exports, module) {
/*{{code}}*/
});
| allanfish/facetime-demo | oatos_project/oatos_web/oatos_web/src/main/webapp/assets/js/sea/modules/async/transport.js | JavaScript | mit | 289 |
var stream = require('stream');
var util = require('util');
function copyArray(input) {
var output = new Array(input.length);
for (var i = 0, l = input.length; i < l; i++) {
output[i] = input[i];
}
return output;
}
function Startpoint(input, options) {
if (!(this instanceof Startpoint)) return new Star... | AndreasMadsen/startpoint | startpoint.js | JavaScript | mit | 1,935 |
//////////////////////////////////////////////////////////////////////////////////
// //
//////////////////////////////////////////////////////////////////////////////////
tQuery.Mesh.registerInstance('setBasicMaterial', function(opts){
var material = tQuery.createMeshBasicMaterial(opts);
this.material( mat... | creatologist/sandbox-js | threeJS/tquery/js/plugins/materials/tquery.meshbasicmaterial.js | JavaScript | mit | 2,501 |
(function () {
'use strict';
/*
* Generic service to return all available menu items for main level navigation.
*/
angular.module('frontend.core.layout')
.factory('layoutService', layoutService);
layoutService.$inject = [];
function layoutService() {
var service = {};
service.collapsedB... | strapi/strapi-generate-admin | files/api/admin/public/src/core/layout/layout.service.js | JavaScript | mit | 1,021 |
'use strict';
angular.module('retrospectApp')
.filter('role', function () {
return function (items, role) {
var filtered = [];
angular.forEach(items, function (item) {
if (item.role === role) {
filtered.push(item);
}
}... | MrFjellstad/retrospectacular | static/app/scripts/filters/boardFilters.js | JavaScript | mit | 520 |
/**
* A dumb in-memory data store. Do not use in production.
* Only for demo purposes.
* @param {Object} cache
*/
var InMemoryDataAdapter = function(cache){
// `stores` all data
this.cache = cache || {};
};
/**
* Get the data specified by the id
* @param {String/Number} id ID for the requested data
* @pa... | invrs/diffsync | src/adapter.js | JavaScript | mit | 692 |
//! moment.js locale configuration
//! locale : Armenian [hy-am]
//! author : Armendarabyan : https://github.com/armendarabyan
;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined'
&& typeof require === 'function' ? factory(require('../moment')) :
typeof define === 'f... | swayok/PeskyCMF | npm/dist/packed/js/locale/hy_HY.js | JavaScript | mit | 4,921 |
'use strict';
// Setting up route
angular.module('core',['users']).config(['$stateProvider', '$urlRouterProvider',
function($stateProvider, $urlRouterProvider) {
// Redirect to home view when route not found
$urlRouterProvider.otherwise('/');
// Home state routing
$stateProvider.
state('home', {
url: '/... | Musicamise/musicamise-cli | public/modules/core/config/core.client.routes.js | JavaScript | mit | 2,884 |
// abc_tunebook.js: splits a string representing ABC Music Notation into individual tunes.
// Copyright (C) 2010 Paul Rosen (paul at paulrosen dot net)
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the... | gnavalesi/abcjs | api/abc_tunebook.js | JavaScript | mit | 8,109 |
'use strict';
/**
* Module dependencies
*/
var angular = require('angular');
module.exports = angular
.module('common', [
require('./libs').name,
require('./ui').name,
require('./util').name
]);
| RasmusTG/ionic-webpack | app/common/index.js | JavaScript | mit | 217 |
module.exports={A:{A:{"2":"H D G E A B FB"},B:{"33":"C p z J L N I"},C:{"2":"0 2 3 4 5 6 8 9 aB F K H D G E A B C p z J L N I O P Q R S T U V W X Y Z a c d e f g h i j k l m n o M q r s t u v w x y CB AB YB SB"},D:{"1":"0 3 5 6 8 9 x y CB AB MB cB GB b HB IB JB KB","2":"2 F K H D G E A B C p z J L N I O P Q R S T U W X... | stephaniejn/stephaniejn.github.io | node_modules/caniuse-lite/data/features/text-size-adjust.js | JavaScript | mit | 868 |
'use strict';
function ClientProxy(serverProxy) {
this.serverProxy = serverProxy;
}
ClientProxy.prototype.forwardMessage = function forwardMessage(message) {
this.serverProxy.forwardMessage(message);
};
module.exports = ClientProxy;
| OSMeteor/expressjs-metrics | lib/client.proxy.js | JavaScript | mit | 240 |
$('#results-found').html("<%= escape_javascript(render('results_found')) %>")
$('#search-results').html("<%= escape_javascript(render('search_results')) %>");
// Need to report search to google here too
// Send ping to GA
ga('send', 'pageview', '/results/?q=<%= params[:q] %>');
Helpy.ready();
Helpy.track();
| pravanthi/helpy_support | app/views/result/index.js | JavaScript | mit | 311 |
import Tooltip from './src/tooltip.vue';
export default Tooltip; | xiayuxiaoyan/xcui | src/components/tooltip/index.js | JavaScript | mit | 65 |
(function(window) {
"use strict";
/**
* Polyfilling missing features from ES5 and selected features from ES6.
* Some of these are implemented weakly and should be used with caution
* (See Map, Set and WeakMap).
* TODO: Remove Set, Map and WeakMap!
* TODO: Object.is and friends
*/
(function polyfilla() {
/**
... | wunderbyte/spiritual-edb | test/setup/spiritual-gui.js | JavaScript | mit | 300,304 |
/* eslint-env jest */
import { join } from 'path'
import fs from 'fs-extra'
import {
renderViaHTTP,
findPort,
launchApp,
killApp,
nextBuild,
nextStart,
} from 'next-test-utils'
let app
let appPort
const appDir = join(__dirname, '../')
function runTests() {
describe('first-line hashbang (#!) parse', () ... | azukaru/next.js | test/integration/hashbang/test/index.test.js | JavaScript | mit | 1,338 |
/*
This software is covered by CKEditor Commercial License. Usage without proper license is prohibited.
Copyright (c)2003 - 2015, CKSource - Frederico Knabben.All rights reserved.
*/
CKEDITOR.lang['ko']={
"undo": {
"redo": "다시 실행",
"undo": "실행 취소"
},
"toolbar": {
"toolbarCollapse": "도구 모음 축소",
"t... | Adoxio/xRM-Portals-Community-Edition | Samples/MasterPortal/js/ckeditor/lang/ko.js | JavaScript | mit | 21,303 |
var webpack = require("webpack");
var path = require("path");
module.exports = {
entry: __dirname + "/src",
output: {
path: __dirname + "/dist",
filename: "react-smart-app-banner-bundle.js",
library: ['ReactSmartAppBanner'],
libraryTarget: 'umd'
},
module: {
loaders: [
{
te... | team-magneto/react-smart-app-banner | webpack.config.js | JavaScript | mit | 858 |
{
"type": "FeatureCollection",
"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } },
"features": [
{ "type": "Feature", "properties": { "Incident number": 132440160, "Date": "9\/1\/2013", "Time": "10:56 PM", "Police District": 5, "Offense 1": "ROBBERY", "Address": "2362 N WEIL ST", "Loca... | marquettecomputationalsocialscience/clusteredcrimemaps | individual_work/marielle/KMeans/datamound/data_2013-robbery_sep.js | JavaScript | mit | 202,827 |
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//---------------------------------------------------------... | Microsoft/ChakraCore | test/es6module/bug_OS12095746_mod0.js | JavaScript | mit | 396 |
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
* @flow
* @emails oncall+relay
*/
// flowlint ambiguous-object-type:error
'use strict';
const RelayNetwork = requ... | josephsavona/relay | packages/relay-runtime/store/__tests__/RelayModernEnvironment-ExecuteMutationWithGlobalInvalidation-test.js | JavaScript | mit | 10,957 |
var Harness = Siesta.Harness.Browser.ExtJS;
Harness.configure({
title : 'Awesome Test Suite',
testClass : Your.Test.Class,
preload : [
"http://cdn.sencha.io/ext/gpl/4.2.0/resources/css/ext-all.css",
"http://cdn.sencha.io/ext/gpl/4.2.0/ext-all-debug.js"
]
});
Harness.star... | arthurakay/AppInspector | app/test/siesta-2.0.5-lite/examples/023-extjs-grid/index.js | JavaScript | mit | 1,025 |
'use strict';
var Registry = require('./Registry');
/*
* Simple factory implementation.
*
* @class Factory
* @extends Registry
* @memberof module:util
*/
function Factory() {
Factory.super.call(this);
}
Factory.Prototype = function() {
/**
* Create an instance of the clazz with a given name.
*
* ... | abhaga/substance | util/Factory.js | JavaScript | mit | 879 |
var template = require("./templates/stats.hbs")
, CountsView = require("./Counts")
/*, FeedView = require("./Feed")*/;
module.exports = Backbone.Marionette.LayoutView.extend({
//--------------------------------------
//+ PUBLIC PROPERTIES / CONSTANTS
//--------------------------------------
className: "... | danzajdband/hackdash | client/app/views/Home/Stats.js | JavaScript | mit | 3,512 |
import React from 'react';
import transitions from '../styles/transitions';
function getStyles(props, context) {
const {inkBar} = context.muiTheme;
return {
root: {
left: props.left,
width: props.width,
bottom: 0,
display: 'block',
backgroundColor: props.color || inkBar.backgroun... | skarnecki/material-ui | src/Tabs/InkBar.js | JavaScript | mit | 1,118 |
/*
* @name 노래
* @frame 720, 430
* @description 노래를 재생하세요.
* <p><em><span class="small"> 로컬 프로젝트에서 이 예제를 실행하려면,
* <a href="http://p5js.org/reference/#/libraries/p5.sound">p5.Sound 라이브러리</a>.
* </em>를 추가해야 됩니다.</p>
*/
// MIDI 음계의 음표들
let notes = [ 60, 62, 64, 65, 67, 69, 71];
let index = 0;
let song = [
{ note... | processing/p5.js-website | src/data/examples/ko/90_Hello_P5/07_song.js | JavaScript | mit | 3,103 |
(function($){
if($('#easy-watermark-autoadd').attr('checked'))
$('.auto-add-options').show();
checkedAllPostTypes();
$('#easy-watermark-autoadd').change(function(){
var checked = $(this).attr('checked');
if(checked)
$('.auto-add-options').show();
else
$('.auto-add-options').hide();
});
$('#ew-sel... | mahmudbekstudio/shod | wp-content/plugins/easy-watermark/js/easy-watermark.js | JavaScript | gpl-2.0 | 3,926 |
function tfield_enable_field(form_name, field) {
try{ $('form[name='+form_name+'] [name='+field+']').attr('readonly', false); } catch (e) { }
try{ $('form[name='+form_name+'] [name='+field+']').removeClass('tfield_disabled').addClass('tfield'); } catch (e) { }
}
function tfield_disable_field(form_name, fie... | andermall/tcc | lib/adianti/include/tfield/tfield.js | JavaScript | gpl-2.0 | 686 |
/**
* @file
* Global utilities.
*
*/
(function($, Drupal) {
'use strict';
Drupal.behaviors.bootstrap_barrio_subtheme = {
attach: function(context, settings) {
var position = $(window).scrollTop();
$(window).scroll(function () {
if ($(this).scrollTop() > 50) {
$('body').addCla... | drupalportugal/drupal.pt-code | docroot/themes/custom/drupalpt/js/global.js | JavaScript | gpl-2.0 | 767 |
function hideNavbar(fullscreen) {
// do nothing if not in full screen mode
if (!$('#filter-fullscreen').is(':checked') && fullscreen !== 1) {
return;
}
// change ID of main container (to change applied CSS rules)
$("#content").attr('id', 'content_fullscreen');
// hide some elements
... | mudler/openQA | assets/javascripts/fullscreen.js | JavaScript | gpl-2.0 | 1,274 |
angular.module('moonlight.services', []);
angular.module('moonlight.services')
.factory('phonegapReady', function() {
return function (fn) {
var queue = [];
var impl = function () {
queue.push(Array.prototype.slice.call(arguments));
};
document.addEventListener('deviceready', func... | JesseScott/moonlight | moonlight/www/js/services.js | JavaScript | gpl-2.0 | 1,352 |
/*
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... | xstory61/server | scripts/portal/rienTutor7.js | JavaScript | gpl-2.0 | 1,285 |
// ** I18N
// Calendar ES (spanish) language
// Author: Mihai Bazon, <mihai_bazon@yahoo.com>
// Updater: Servilio Afre Puentes <servilios@yahoo.com>
// Updated: 2004-06-03
// Encoding: utf-8
// Distributed under the same terms as the calendar itself.
// For translators: please use UTF-8 if possible. We stro... | violetasdev/gefad_desarollo | estilo/calendario/calendar-es.js | JavaScript | gpl-2.0 | 4,068 |
var job_templates_url;
var job_group_id;
var user_is_admin;
var editor;
function setupJobTemplates(url, id) {
job_templates_url = url;
job_group_id = id;
$.ajax(url + "?group_id=" + id).done(loadJobTemplates);
}
function loadJobTemplates(data) {
var mediagroups = {};
var groups = [];
$.each(da... | lnussel/openQA | assets/javascripts/job_templates.js | JavaScript | gpl-2.0 | 18,152 |
/**
GaiaEHR (Electronic Health Records)
Copyright (C) 2013 Certun, LLC.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
... | chithubco/doctorapp | app/store/patient/PatientsXrayCtOrders.js | JavaScript | gpl-3.0 | 884 |
if (typeof (Wicket) == "undefined") {
Wicket = {};
}
Wicket.QTree = {}
function buildQTree(id, options) {
Wicket.QTree[id] = this;
}
Wicket.QTree.refreshTree = function(treeId) {
$("#" + treeId).jstree('refresh', -1);
}
Wicket.QTree.buildTree = function(treeId, jsonUrl) {
$("#" + treeId).jstree({
"json_dat... | apruden/onyx | onyx-modules/quartz/quartz-core/src/main/resources/org/obiba/onyx/quartz/editor/questionnaire/tree/QuestionnaireTreePanel.js | JavaScript | gpl-3.0 | 3,865 |
addLibrary('mediaHosts', 'eroshare', {
domains: ['eroshare.com'],
logo: '//eroshare.com/favicon.ico',
detect: href => (/^https?:\/\/(?:www\.)?eroshare\.com\/((i\/)?[a-z0-9]{8})/i).exec(href),
handleLink(elem, [, hash]) {
elem.type = 'IFRAME';
elem.setAttribute('data-embed', `//eroshare.com/embed/${hash}`);
el... | gavin19/Reddit-Enhancement-Suite | lib/modules/hosts/eroshare.js | JavaScript | gpl-3.0 | 408 |
// extends src/node-box-native-view.js
$(function(){
var template = '<div class="info" />';
Iframework.NativeNodes["subgraph"] = Iframework.NodeBoxNativeView.extend({
template: _.template(template),
info: {
title: "subgraph",
description: "extend me"
},
initializeCategory: function()... | woylaski/notebook | web/iframework-master/src/nodes/subgraph.js | JavaScript | gpl-3.0 | 342 |
Ext.define('MyApp.registration.UserFormPanel', {
extend : 'Ext.form.Panel',
alias : 'widget.MyApp.registration.UserFormPanel',
bodyStyle : 'padding: 10px; background-color: #DCE5F0; border-left: none;',
defaultType : 'textfield',
defaults : {
anchor : '-10',
labe... | ModusCreateOrg/extjs-in-action-examples | examples/ch01/loader/MyApp/registration/UserFormPanel.js | JavaScript | gpl-3.0 | 949 |
// |reftest| pref(javascript.options.xml.content,true)
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* 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://mozil... | cledoux/cmps530 | js/src/tests/js1_7/geniter/regress-352605.js | JavaScript | mpl-2.0 | 1,021 |
OC.L10N.register(
"files_versions",
{
"Could not revert: %s" : "No fue posible revertir: %s",
"Versions" : "Versiones",
"Failed to revert {file} to revision {timestamp}." : "Falla al revertir {archivo} a revisión {timestamp}.",
"_%n byte_::_%n bytes_" : ["%n byte","%n bytes"],
"Restore" : "R... | pixelipo/server | apps/files_versions/l10n/es_MX.js | JavaScript | agpl-3.0 | 607 |
/*
* ADL Designer
* Copyright (c) 2013-2014 Marand d.o.o. (www.marand.com)
*
* This file is part of ADL2-tools.
*
* ADL2-tools is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of... | lonangel/adl-designer | designer/src/main/webapp/lib/codemirror-5.1/mode/shell/shell.js | JavaScript | agpl-3.0 | 4,453 |
// grab the things we need
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
// create a schema
var subscriberSchema = new Schema({
email: String,
created_at: Date
});
// on every save, add the date
subscriberSchema.pre('save', function(next) {
// get the current date
var currentDate = new... | MartinMalinda/autora | landing-page/models/subscriber.js | JavaScript | agpl-3.0 | 689 |
openerp.tg_pos_debt_notebook = function(instance){ //module is instance.point_of_sale
var module = instance.point_of_sale;
var _t = instance.web._t;
var PosModelSuper = module.PosModel;
module.PosModel = module.PosModel.extend({
initialize: function(session, attributes) {
var partne... | Endika/pos-addons | tg_pos_debt_notebook/static/src/js/tg_pos.js | JavaScript | lgpl-3.0 | 9,251 |
angular.module('statistics')
.factory('barChart', ['$rootScope', function($rootScope) {
var that = {};
that.draw = function(specs) {
$(specs.id).highcharts({
chart: {
width: 800,
height: 400,
type: 'column',
... | idear1203/onboard | frontend/kernel/src/main/resources/static/js/ng-modules/statistics/bar-factory.js | JavaScript | apache-2.0 | 1,694 |
// Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es5id: 15.4.4.16-3-1
description: Array.prototype.every - value of 'length' is undefined
---*/
var accessed = false;
function callbackfn(val, idx, obj) {
... | m0ppers/arangodb | 3rdParty/V8/V8-5.0.71.39/test/test262/data/test/built-ins/Array/prototype/every/15.4.4.16-3-1.js | JavaScript | apache-2.0 | 587 |
/*
* Copyright 2016 IBM Corp.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not us... | EclairJS/eclairjs-nashorn | src/main/resources/eclairjs/ml/feature/StopWordsRemover.js | JavaScript | apache-2.0 | 6,145 |
/*
* Firebase Rules test simulator.
*
* Copyright 2015 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE... | dreadjr/bolt | lib/simulator.js | JavaScript | apache-2.0 | 8,527 |
Ext.util.DelayedTask=function(f,e,a){var h=null,g,b;var c=function(){var d=new Date().getTime();if(d-b>=g){clearInterval(h);h=null;f.apply(e,a||[])}};this.delay=function(i,k,j,d){if(h&&i!=g){this.cancel()}g=i;b=new Date().getTime();f=k||f;e=j||e;a=d||a;if(!h){h=setInterval(c,g)}};this.cancel=function(){if(h){clearInter... | Ariah-Group/Continuity | src/main/webapp/javascripts/ext/build/util/DelayedTask-min.js | JavaScript | apache-2.0 | 337 |
var util = require('util'),
events = require('events');
exports.version = '0.0.6';
var Poolr = function (poolSize, context) {
events.EventEmitter.call(this);
this.ctx = context;
this.poolSize = poolSize || 1;
this.queue = [];
this.runningJobs = 0;
this.throttled = false;
};
exports.creat... | enyojs/enyo-1.0 | support/enyo-compress/node_modules/poolr/lib/poolr.js | JavaScript | apache-2.0 | 2,226 |
/* 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 writing, software
* distributed... | dbmalkovsky/flowable-engine | modules/flowable-ui/flowable-ui-admin-frontend/src/main/resources/static/admin/scripts/content-item-controllers.js | JavaScript | apache-2.0 | 2,445 |
function AppliedValueConstructor$jsint(tipo,$$targs$$,that) {
if (!$$targs$$.Type$AppliedValueConstructor)$$targs$$.Type$AppliedValueConstructor=$$targs$$.Type$ValueConstructor;
$init$AppliedValueConstructor$jsint();
if (that===undefined)that=new AppliedValueConstructor$jsint.$$;
set_type_args(that,$$targs$$);
... | unratito/ceylon.language | runtime-js/jsint/AppliedValueConstructor.js | JavaScript | apache-2.0 | 455 |
// Copyright 2014 Samsung Electronics Co., Ltd.
//
// 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 la... | LeeHayun/jerryscript | tests/jerry-test-suite/15/15.05/15.05.04/15.05.04.07/15.05.04.07-001.js | JavaScript | apache-2.0 | 650 |
var ProgressBar = require('progress-bar'),
bar = ProgressBar.create(process.stdout),
progress = -1;
// Dye the bar green :) and pad percentage to a length of 3 with zeroes.
bar.format = '\033[32m$bar;\033[m $percentage,3:0;% loaded.';
bar.symbols.loaded = '\u2605'; // Black star
bar.symbols.notLoaded = '\u2606'; ... | vperrinfr/FB_Bot_Interact | node_modules/progress-bar/tests/reverse-green-stars.js | JavaScript | apache-2.0 | 535 |
import {CSS} from '../../../build/amp-story-hint-1.0.css';
import {
EmbeddedComponentState,
StateProperty,
UIType,
getStoreService,
} from './amp-story-store-service';
import {LocalizedStringId} from '#service/localization/strings';
import {Services} from '#service';
import {createShadowRootWithStyle} from './u... | jpettitt/amphtml | extensions/amp-story/1.0/amp-story-hint.js | JavaScript | apache-2.0 | 8,021 |
import {Model} from 'backbone';
import {protoprop} from '../../decorators';
export default class SettingsModel extends Model {
@protoprop
defaults = {
language: 'en',
testCaseSorting: {
field: 'index',
order: 'asc'
},
sidebarCollapsed: false,
visi... | allure-framework/allure1 | allure-report-face/src/data/settings/SettingsModel.js | JavaScript | apache-2.0 | 871 |
/*jshint strict: false */
////////////////////////////////////////////////////////////////////////////////
/// @brief querying and managing collections
///
/// @file
///
/// DISCLAIMER
///
/// Copyright 2014 ArangoDB GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you... | CoDEmanX/ArangoDB | js/actions/_api/collection/app.js | JavaScript | apache-2.0 | 60,041 |
/**
* @fileoverview Rule to flag use of comma operator
* @author Brandon Mills
*/
"use strict";
//------------------------------------------------------------------------------
// Requirements
//------------------------------------------------------------------------------
const astUtils = require("../util/ast-ut... | Khan/khan-linter | node_modules/eslint/lib/rules/no-sequences.js | JavaScript | apache-2.0 | 3,972 |
// Copyright 2014-present runtime.js project 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 applicab... | SpaceboyRoss01/PeabodyOS | src/system/node_modules/runtimejs/js/core/stdio/default.js | JavaScript | apache-2.0 | 1,391 |
//// [commentsInheritance.ts]
/** i1 is interface with properties*/
interface i1 {
/** i1_p1*/
i1_p1: number;
/** i1_f1*/
i1_f1(): void;
/** i1_l1*/
i1_l1: () => void;
// il_nc_p1
i1_nc_p1: number;
i1_nc_f1(): void;
i1_nc_l1: () => void;
p1: number;
f1(): void;
l1: ... | thr0w/Thr0wScript | tests/baselines/reference/commentsInheritance.js | JavaScript | apache-2.0 | 7,747 |
(function () {
'use strict';
angular.module('exceptionless.release-notification', [
'exceptionless.refresh'
])
.directive('releaseNotification', [function() {
return {
restrict: 'E',
templateUrl: "components/release-notification/release-notification-directive.tpl.html",
controller: ['... | kidaa/Exceptionless.UI | src/components/release-notification/release-notification-directive.js | JavaScript | apache-2.0 | 654 |
/// Copyright (c) 2009 Microsoft Corporation
///
/// 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 conditions and
/// ... | hnafar/IronJS | Src/Tests/ietestcenter/chapter15/15.4/15.4.4/15.4.4.21/15.4.4.21-9-c-i-23.js | JavaScript | apache-2.0 | 2,615 |
import React from 'react';
import ReactDOM from 'react-dom';
import { seafileAPI } from './utils/seafile-api';
import { siteRoot, gettext } from './utils/constants';
import SharedFileView from './components/shared-file-view/shared-file-view';
import SharedFileViewTip from './components/shared-file-view/shared-file-view... | miurahr/seahub | frontend/src/shared-file-view-spreadsheet.js | JavaScript | apache-2.0 | 2,841 |
Ext.namespace('Kwc.Directories.List.ViewMap');
Kwc.Directories.List.ViewMap.renderedMaps = [];
Kwc.Directories.List.ViewMap.renderMap = function(map) {
if (Kwc.Directories.List.ViewMap.renderedMaps.indexOf(map) != -1) return;
Kwc.Directories.List.ViewMap.renderedMaps.push(map);
var mapContainer = new Ext.... | Sogl/koala-framework | Kwc/Directories/List/ViewMap/Component.js | JavaScript | bsd-2-clause | 2,695 |
import _curry2 from "./internal/_curry2.js";
/**
* Returns whether or not an object or its prototype chain has a property with
* the specified name
*
* @func
* @memberOf R
* @since v0.7.0
* @category Object
* @sig s -> {s: x} -> Boolean
* @param {String} prop The name of the property to check for.
* @param {O... | ChromeDevTools/devtools-frontend | node_modules/ramda/es/hasIn.js | JavaScript | bsd-3-clause | 886 |
// Generated by IcedCoffeeScript 1.7.1-c
(function() {
var Env, Level, Package, bold_red, colors, default_levels, init, repeat, _package,
__bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; },
__slice = [].slice;
colors = require('colors');
bold_red = function(x) {
retur... | substack/keybase-client | node_modules/iced-logger/index.js | JavaScript | bsd-3-clause | 5,143 |
var { Seq } = require('../../');
var markdown = require('./markdown');
function markdownDocs(defs) {
markdownTypes(defs, []);
function markdownTypes(typeDefs, path) {
Seq(typeDefs).forEach((typeDef, typeName) => {
var typePath = path.concat(typeName);
markdownDoc(
typeDef.doc,
{ t... | maxehnert/immutable-js | pages/lib/markdownDocs.js | JavaScript | bsd-3-clause | 1,358 |
pageflow.SelectInputView = Backbone.Marionette.ItemView.extend({
mixins: [pageflow.inputView],
template: 'pageflow/ui/templates/inputs/select_input',
events: {
'change': 'save'
},
ui: {
select: 'select',
input: 'select'
},
initialize: function() {
if (this.options.collection) {
t... | grgr/pageflow | app/assets/javascripts/pageflow/ui/views/inputs/select_input_view.js | JavaScript | mit | 4,164 |
'use strict';
/**
* @ngdoc directive
* @name ng.directive:ngSwitch
* @restrict EA
*
* @description
* The ngSwitch directive is used to conditionally swap DOM structure on your template based on a scope expression.
* Elements within ngSwitch but without ngSwitchWhen or ngSwitchDefault directives will be preserve... | yyx990803/angular.js | src/ng/directive/ngSwitch.js | JavaScript | mit | 6,653 |
/* vim: set fileencoding=cp932 ai noet ts=4 sw=4 sts=4: */
/* mi: charset=Shift_JIS */
// RsypÉXîñð|bvAbv·é
function Invite(title, url, host, bbs, key, resnum)
{
var msg;
var winWidth = 500;
var winHeight = 100;
var taCols = 64;
var taRows = 3;
var msg = '';
if (host && bbs && key && resnum... | killer4989/p2-php | rep2/js/invite.js | JavaScript | mit | 1,823 |
import React from "react"
class IndexComponent extends React.Component {
render() {
const data = this.props.data.allLettersCsv.edges
return (
<div>
<table>
<thead>
<tr>
<th>Letter</th>
<th>ASCII Value</th>
</tr>
</thead>
... | mickeyreiss/gatsby | examples/using-csv/src/pages/index.js | JavaScript | mit | 804 |
'use strict';
module.exports = function() {
return Math.random() > 0.5;
};
| whitlockjc/json-schema-faker | lib/types/boolean.js | JavaScript | mit | 78 |
var themes = process.env.THEMES;
module.exports = function(name) {
var darkness = "light";
if (themes.dark.indexOf(name) !== -1) darkness = "dark";
return darkness;
}
| Randykerley/me | extension/src/json-viewer/theme-darkness.js | JavaScript | mit | 174 |
import { BOOLEAN_LITERAL } from 'config/types';
export default function readBooleanLiteral ( parser ) {
var remaining = parser.remaining();
if ( remaining.substr( 0, 4 ) === 'true' ) {
parser.pos += 4;
return {
t: BOOLEAN_LITERAL,
v: 'true'
};
}
if ( remaining.substr( 0, 5 ) === 'false' ) {
parser.... | aliprogrammer69/ractive | src/parse/converters/expressions/primary/literal/readBooleanLiteral.js | JavaScript | mit | 403 |
import {Entity} from '../../../src/entity';
import {resource} from '../../../src/decorator/resource';
import {endpoint} from '../../../src/decorator/endpoint';
@resource()
@endpoint('sx/alternative')
export class WithEndpoint extends Entity {
}
| doktordirk/aurelia-orm | test/resources/entity/with-endpoint.js | JavaScript | mit | 247 |
/*
* 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/recoveryServicesSiteRecoveryManagement/lib/models/vmmToVmmNetworkMappingSettings.js | JavaScript | mit | 1,515 |
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import ReduxPromise from "redux-promise";
import App from './components/app';
import reducers from './reducers';
const createStoreWithMiddleware = applyMiddleware(... | TylerFoss/weather-app | src/index.js | JavaScript | mit | 492 |
/*
* bootstrap-table - v1.6.0 - 2015-05-05
* https://github.com/wenzhixin/bootstrap-table
* Copyright (c) 2015 zhixin wen
* Licensed MIT License
*/
!function(a){"use strict";a.fn.bootstrapTable.locales["ru-RU"]={formatLoadingMessage:function(){return"Пожалуйста, подождите, идёт загрузка..."},formatRecordsPerPage:functi... | DANA-Laboratory/rfpcRequests | app/public/bower_components/bootstrap-table/docs/dist/locale/bootstrap-table-ru-RU.min.js | JavaScript | mit | 846 |
// Check for the name of the naturaldocs binary
var fs = require('fs');
if (fs.existsSync("/usr/bin/naturaldocs")) {
naturaldocs = "/usr/bin/naturaldocs";
} else if (fs.existsSync("/usr/lib/bin/natural_docs")) {
naturaldocs = "/usr/lib/bin/natural_docs";
} else {
naturaldocs = "NaturalDocs";
}
module.expor... | minddistrict/strophejs | Gruntfile.js | JavaScript | mit | 5,324 |
import { module } from 'qunit'
import startApp from '../helpers/start-app'
import destroyApp from '../helpers/destroy-app'
export default function (name, options = {}) {
module(name, {
beforeEach () {
this.application = startApp()
if (options.beforeEach) {
options.beforeEach.apply(this, argu... | dollarshaveclub/ember-uni-form | tests/helpers/module-for-acceptance.js | JavaScript | mit | 499 |
/*!
* jQuery JavaScript Library v1.8.0 -deprecated,-ajax,-ajax/jsonp,-ajax/script,-ajax/xhr,-effects,-dimensions
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2012 jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date... | eric-seekas/jquery-builder | dist/1.8.0/jquery-ajax-deprecated-dimensions-effects.js | JavaScript | mit | 204,014 |
[
{
"type": 5,
"instance": 222222,
"filtered": 1,
"foreignid": 777,
"data1": "This is data one",
"data2": "This is data two",
"data3": "This is data three"
},
{
"type": 5,
"instance": 333333,
"filtered": 1,
"foreignid": 777,
"data1": "Second 777 object",
"data2": "Thi... | johnrees/Rhombus | src/test/resources/TestObjects.js | JavaScript | mit | 694 |
var request = require('request')
var semver = require('semver')
var chalk = require('chalk')
var packageConfig = require('../package.json')
module.exports = function (done) {
// Ensure minimum supported node version is used
if (!semver.satisfies(process.version, packageConfig.engines.node)) {
return console.lo... | yhtml5/YHTML5-CLI | packages/yhtml5-cli/demo/lib/check-version.js | JavaScript | mit | 1,033 |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: >
If thisArg is not null(defined) the called function is passed
ToObject(thisArg) as the this value
es5id: 15.3.4.4_A5_T2
description: thisArg is boolean true
---*/
v... | PiotrDabkowski/Js2Py | tests/test_cases/built-ins/Function/prototype/call/S15.3.4.4_A5_T2.js | JavaScript | mit | 733 |
//make a call to FB, we need request
var config = require('../services/config.js');
var createSendToken = require('../services/jwt.js');
var request = require('request');
var qs = require('querystring');
var User = require('../models/user.server.model.js');
module.exports = function(req, res) {
// need two URLS. The... | jonkvix/jousting | server/routes/facebookRoutes.js | JavaScript | mit | 1,795 |
/**
* @fileoverview Disallow the use of process.exit()
* @author Nicholas C. Zakas
*/
"use strict";
//------------------------------------------------------------------------------
// Requirements
//------------------------------------------------------------------------------
var eslint = require("../../../lib/es... | wbecker/eslint | tests/lib/rules/no-process-exit.js | JavaScript | mit | 1,447 |
module.exports={A:{A:{"2":"gB","4":"A B","8":"K D G E"},B:{"1":"M H I","4":"1 C d J"},C:{"4":"0 1 2 3 5 6 7 8 9 F N K D G E A B C d J M H I O P Q R S T U V W X Y Z a b c e f g h i j k l m n o L q r s t u v w x y z GB AB CB DB","8":"dB EB XB WB"},D:{"1":"2 3 8 9 AB CB DB QB iB KB IB LB MB NB OB","4":"0 1 5 6 7 F N K D G... | jameshupp/jameshupp.github.io | node_modules/caniuse-lite/data/features/forms.js | JavaScript | mit | 926 |
/* */
(function(process) {
'use strict';
var assign = require('./Object.assign');
var warning = require('fbjs/lib/warning');
function deprecated(fnName, newModule, newPackage, ctx, fn) {
var warned = false;
if (process.env.NODE_ENV !== 'production') {
var newFn = function() {
process.env.... | nayashooter/ES6_React-Bootstrap | public/jspm_packages/npm/react@0.14.7/lib/deprecated.js | JavaScript | mit | 685 |
interface Thing {
name: string;
};
interface User extends Thing {
age: number;
}
export default function demo (input: User): User {
return input;
} | codemix/babel-plugin-typecheck | test/fixtures/interface-extends.js | JavaScript | mit | 155 |
(function(name, definition) {
if (typeof define === 'function') { // AMD
define(definition);
} else if (typeof module !== 'undefined' && module.exports) { // Node.js
module.exports = definition();
} else { // Browser
var theModule = definition(),
global = this,
old = global[name];
theM... | jsphkhan/calculate-size | src/calculate-size.js | JavaScript | mit | 1,631 |
describe('id', function() {
beforeEach(function() {
$([
'<form class="form-horizontal" id="idForm">',
'<div class="form-group">',
'<select class="form-control" name="country">',
'<option value="BA">Bosnia and Herzegovina</option>',
... | tlan16/sushi-co | web/protected/classes/BPCPage/bootstrapValidator/test/spec/validator/id.js | JavaScript | mit | 18,403 |
"use strict"
var ObjectId = require("mongodb").ObjectId;
require("mongodb-toolkit");
var DLModels = require("dl-models");
var generateCode = require("../../utils/code-generator");
var map = DLModels.map;
var WeeklyPlan = DLModels.garmentMasterPlan.WeeklyPlan;
var WeeklyPlanItem = DLModels.garmentMasterPlan.WeeklyPlanI... | danliris/dl-module | src/managers/garment-master-plan/weekly-plan-manager.js | JavaScript | mit | 15,858 |
'use strict';
angular.module('tag-list-directive', [])
.directive('tagList', function(){
return {
restrict: 'E',
templateUrl: 'tag/tag-list-directive.html',
controller: 'TagController',
};
});
| xgin/docker-registry-frontend | app/tag/tag-list-directive.js | JavaScript | mit | 224 |
/*!
* Tippy.js v3.3.0
* (c) 2017-2018 atomiks
* MIT
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global.tippy = factory());
}(this, (function () { 'use strict';
var version... | sufuf3/cdnjs | ajax/libs/tippy.js/3.3.0/tippy.js | JavaScript | mit | 138,355 |
define(['jquery', 'lacuna', 'template'], function($, Lacuna, Template) {
function DefaultBuilding() {
var scope = this;
scope.getTabs = function() {
return [];
};
scope.addEvents = function(vBuilding, url) {
};
}
return new DefaultBuilding();
});
| RedOrion/Lacuna-Web-Client-jQuery | src/buildingType/defaultBuilding.js | JavaScript | mit | 317 |
/*!
* jQuery JavaScript Library v2.0.2 -wrap,-ajax,-ajax/script,-ajax/jsonp,-ajax/xhr,-effects,-offset,-deprecated
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/lice... | michael829/jquery-builder | dist/2.0.2/jquery-ajax-deprecated-effects-offset-wrap.js | JavaScript | mit | 187,825 |
pageflow.EntryData = pageflow.Object.extend({
getThemingOption: function(name) {
throw 'Not implemented';
},
getPageConfiguration: function(permaId) {
throw 'Not implemented';
},
getPagePosition: function(permaId) {
throw 'Not implemented';
},
getChapterConfiguration: function(id) {
thr... | tf/pageflow-dependabot-test | app/assets/javascripts/pageflow/entry_data.js | JavaScript | mit | 1,857 |
/*
* Copyright © 2014 NoNumber All Rights Reserved
* License http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
*/
if(typeof window["nnToggler"]=="undefined"){window.addEvent("domready",function(){if(document.getElements(".nntoggler").length)nnToggler=new nnToggler;else(function(){if(document.getElements(".nntoggler")... | networksoft/seekerplus2.com | media/nnframework/js/toggler.min.js | JavaScript | gpl-2.0 | 5,039 |
/**
* The external dependencies.
*/
import React from 'react';
import PropTypes from 'prop-types';
import { setStatic } from 'recompose';
/**
* The internal dependencies.
*/
import Field from 'fields/components/field';
import { enhance } from 'fields/components/radio';
import { TYPE_RADIO_IMAGE } from 'fields/cons... | Apiki/gb-plugin-api | vendor/htmlburger/carbon-fields/assets/js/fields/components/radio-image/index.js | JavaScript | gpl-2.0 | 1,757 |
/*!
* jQuery UI 1.8.2
*
* Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
*
* http://docs.jquery.com/UI
*/
(function(c){c.ui=c.ui||{};if(!c.ui.version){c.extend(c.ui,{version:"1.8.2",plugin:{add:function(a,b,d){a=c.... | regend/witure | web/js/jQuery/jquery-ui-1.8.2.custom.min.js | JavaScript | gpl-2.0 | 161,038 |