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 |
|---|---|---|---|---|---|
/**
* Redux Checkbox
* Dependencies : jquery
* Feature added by : Dovy Paukstys
* Date : 17 June 2014
*/
/*global redux_change, wp, redux*/
(function( $ ) {
"use strict";
redux.field_objects = redux.field_objects || {};
redux.field_objects.checkbox = redux.field_objects.chec... | giventadevelop/gabon-project | wp-content/wp-content/themes/veal/assets/frameworks/redux/admin/redux-framework/ReduxCore/inc/fields/checkbox/field_checkbox.js | JavaScript | gpl-2.0 | 1,612 |
if ( 'undefined' !== typeof(jQuery.fn.bxSlider) ) {
jQuery( '.bxslider' ).each( function () {
var $slider = jQuery( this );
$slider.bxSlider( $slider.data( 'settings' ) );
} );
}
if ( 'undefined' !== typeof(window.Swiper) ) {
jQuery( '.swiper-container' ).each( function () {
var $this = jQuery( this ),
my_... | sniezekjp/prod-fs | wp-content/plugins/twoot-toolkit/js_composer/assets/js/lib/deprecated.js | JavaScript | gpl-2.0 | 2,077 |
"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 Observable_1 = require('../Observable');
var... | evandor/skysail-webconsole | webconsole.client/client/dist/lib/rxjs/observable/FromEventObservable.js | JavaScript | apache-2.0 | 3,992 |
(function(d){function g(a){var b=a||window.event,i=[].slice.call(arguments,1),c=0,h=0,e=0;a=d.event.fix(b);a.type="mousewheel";if(a.wheelDelta)c=a.wheelDelta/120;if(a.detail)c=-a.detail/3;e=c;if(b.axis!==undefined&&b.axis===b.HORIZONTAL_AXIS){e=0;h=-1*c}if(b.wheelDeltaY!==undefined)e=b.wheelDeltaY/120;if(b.wheelDeltaX!... | shampeak/GracePHP | wwwroot/phpMyAdmin/js/jquery/jquery.mousewheel.js | JavaScript | mit | 919 |
/**
* LegacyInput.js
*
* Copyright 2009, Moxiecode Systems AB
* Released under LGPL License.
*
* License: http://tinymce.moxiecode.com/license
* Contributing: http://tinymce.moxiecode.com/contributing
*/
tinymce.onAddEditor.add(function(tinymce, ed) {
var filters, fontSizes, dom, settings = ed.settings;
if ... | blackstark/site | www/sugar/include/javascript/tiny_mce/classes/LegacyInput.js | JavaScript | gpl-2.0 | 1,471 |
'use strict';
var ensureString = require('../../object/validate-stringifiable-value');
module.exports = function (search) {
var string = ensureString(this), count = 0, index = 0;
search = ensureString(search);
if (!search) throw new TypeError("Search string cannot be empty");
while (true) {
index = string.inde... | kevinmora94/proyectoDrupal | web/themes/custom/proyectofinal/node_modules/es5-ext/string/#/count.js | JavaScript | gpl-2.0 | 425 |
/*!
* Bootstrap-select v1.12.4 (http://silviomoreto.github.io/bootstrap-select)
*
* Copyright 2013-2017 bootstrap-select
* Licensed under MIT (https://github.com/silviomoreto/bootstrap-select/blob/master/LICENSE)
*/
(function (root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Regist... | parammehta/TravLendar | www/bower_components/bootstrap-select/dist/js/i18n/defaults-ja_JP.js | JavaScript | apache-2.0 | 1,259 |
// Licensed to the Software Freedom Conservancy (SFC) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The SFC licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you m... | rmadziyauswa/ChordProgressions | public/node_modules/selenium-webdriver/testing/assert.js | JavaScript | mit | 12,157 |
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'table', 'vi', {
border: 'Kích thước đường viền',
caption: 'Đầu đề',
cell: {
menu: 'Ô',
insertBefore: 'Chèn ô Phía trước',
insertAfter: 'Chèn... | siscia/jsdelivr | files/ckeditor/4.3.0/plugins/table/lang/vi.js | JavaScript | mit | 2,708 |
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'table', 'ug', {
border: 'گىرۋەك',
caption: 'ماۋزۇ',
cell: {
menu: 'كاتەكچە',
insertBefore: 'سولغا كاتەكچە قىستۇر',
insertAfter: 'ئوڭغا كاتەك... | abishekrsrikaanth/jsdelivr | files/ckeditor/4.3.0/plugins/table/lang/ug.js | JavaScript | mit | 3,338 |
// Generated by CoffeeScript 1.8.0
/*
Copyright (c) 2014 clowwindy
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,... | magicae/poi-nwjs | node_modules/shadowsocks/lib/shadowsocks/local.js | JavaScript | mit | 13,255 |
'use strict';
angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
function getDecimals(n) {
n = n + '';
var i = n.indexOf('.');
return (i == -1) ? 0 : n.length - i - 1;
}
function getVF(n, opt_pre... | LearnNavi/Naranawm | www/assets/library/angular-1.6.5/i18n/angular-locale_rof-tz.js | JavaScript | agpl-3.0 | 2,948 |
'use strict';
angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
$provide.value("$locale", {
"DATETIME_FORMATS": {
"AMPMS": [
"AM",
"PM"
],
"DAY": [
"domingo",
"seg... | kldesigns/admin-auth | www/js/Scripts/i18n/angular-locale_pt-mz.js | JavaScript | gpl-3.0 | 1,983 |
var m1 = require("ref/m1");
var m2 = require("../outputdir_module_multifolder_ref/m2");
exports.a1 = 10;
var c1 = (function () {
function c1() {
}
return c1;
})();
exports.c1 = c1;
exports.instance1 = new c1();
function f1() {
return exports.instance1;
}
exports.f1 = f1;
exports.a2 = m1.m1... | wangyanxing/TypeScript | tests/baselines/reference/projectOutput/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputFile/node/test.js | JavaScript | apache-2.0 | 441 |
export { default } from './DialogTitle'; | pcclarke/civ-techs | node_modules/@material-ui/core/esm/DialogTitle/index.js | JavaScript | mit | 40 |
/**
* Copyright 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.
*
*
*/
'use st... | puyanLiu/LPYFramework | 前端练习/autoFramework/webpack-demo3/node_modules/react/lib/getNextDebugID.js | JavaScript | apache-2.0 | 437 |
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2015 Photon Storm Ltd.
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
/**
* Connects two bodies at given offset points, letting them rotate relative to each other around this point.
* The pivo... | andrelavru/Resource_phaser | src/physics/p2/RevoluteConstraint.js | JavaScript | mit | 2,304 |
/*
* Copyright (c) 2013 The Chromium Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
NaClTerm.prefix = 'lua'
NaClTerm.nmf = '//storage.googleapis.com/gonacl/demos/publish/234230_dev/lua/lua.nmf'
window.onload = function() {
l... | mkaluza/external_chromium_org | native_client_sdk/src/gonacl_appengine/static/lua/lua.js | JavaScript | bsd-3-clause | 4,223 |
(function($) {
/**
* Attach this editor to a target element.
*/
Drupal.wysiwyg.editor.attach.markitup = function(context, params, settings) {
$('#' + params.field, context).markItUp(settings);
// Adjust CSS for editor buttons.
$.each(settings.markupSet, function (button) {
$('.' + settings.nameSpace + ' .... | chris-inform/smdc | sites/all/modules/wysiwyg/editors/js/markitup.js | JavaScript | gpl-2.0 | 1,029 |
define([
"../core",
"../var/support"
], function( jQuery, support ) {
(function() {
// Minified: var b,c,d,e,f,g, h,i
var div, style, a, pixelPositionVal, boxSizingReliableVal,
reliableHiddenOffsetsVal, reliableMarginRightVal;
// Setup
div = document.createElement( "div" );
div.innerHTML = " <link/><table><... | Zx12/zx12.github.io | zswipe/bower_components/jquery-legacy/src/css/support.js | JavaScript | mit | 4,856 |
;(function ($, window, document, undefined) {
'use strict';
Foundation.libs = Foundation.libs || {};
Foundation.libs.orbit = {
name: 'orbit',
version: '4.1.0',
settings: {
timer_speed: 10000,
animation_speed: 500,
bullets: true,
stack_on_small: true,
container_class: ... | HealingOverTime/DevSite | wp-content/themes/spine/foundation/javascripts/foundation/foundation.orbit.js | JavaScript | gpl-2.0 | 14,666 |
/*! t3 v 1.1.1*/
/*!
Copyright 2015 Box, Inc. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law o... | jdh8/cdnjs | ajax/libs/t3js/1.1.1/t3.js | JavaScript | mit | 32,432 |
require('./angular-locale_uz-arab-af');
module.exports = 'ngLocale';
| DamascenoRafael/cos482-qualidade-de-software | www/src/main/webapp/bower_components/angular-i18n/uz-arab-af.js | JavaScript | mit | 69 |
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
/**
* Supported keybindings:
* Too many to list. Refer to defaultKeyMap below.
*
* Supported Ex commands:
* Refer to defaultExCommandMap below.
*
* Registers: unnamed, -, a-z, A-Z, ... | AfrikaBurn/Main | web/libraries/codemirror/keymap/vim.js | JavaScript | gpl-2.0 | 202,494 |
module.exports = require('../conforms');
| migua1204/jikexueyuan | 极客学院/极客学院首页/jkxy/node_modules/grunt-legacy-util/node_modules/lodash/fp/conforms.js | JavaScript | apache-2.0 | 41 |
/*!
* https://github.com/es-shims/es5-shim
* @license es5-shim Copyright 2009-2014 by contributors, MIT License
* see https://github.com/es-shims/es5-shim/blob/master/LICENSE
*/
// vim: ts=4 sts=4 sw=4 expandtab
//Add semicolon to prevent IIFE from being passed as argument to concated code.
;
// UMD (Universal M... | fishead/yanus | yanus/static/bower_components/es5-shim/es5-shim.js | JavaScript | lgpl-3.0 | 50,774 |
// Copyright 2013 The Closure Library Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless requ... | Serard/cmsulysse | web/js/verifphone/goog/closure-library-master/closure/goog/vec/vec3f.js | JavaScript | lgpl-3.0 | 13,113 |
/**
* @fileOverview GridFS is a tool for MongoDB to store files to the database.
* Because of the restrictions of the object size the database can hold, a
* facility to split a file into several chunks is needed. The {@link GridStore}
* class offers a simplified api to interact with files while managing the
* chun... | jackTheRipper/chat_nodejs | www/node_modules/mongodb/lib/mongodb/gridfs/gridstore.js | JavaScript | apache-2.0 | 53,068 |
define("ace/theme/idle_fingers",["require","exports","module","ace/lib/dom"], function(require, exports, module) {
exports.isDark = true;
exports.cssClass = "ace-idle-fingers";
exports.cssText = ".ace-idle-fingers .ace_gutter {\
background: #3b3b3b;\
color: rgb(153,153,153)\
}\
.ace-idle-fingers .ace_print-margin {\
w... | nikste/visualizationDemo | zeppelin-web/bower_components/ace-builds/src/theme-idle_fingers.js | JavaScript | apache-2.0 | 2,521 |
'use strict';
angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
$provide.value("$locale", {
"DATETIME_FORMATS": {
"AMPMS": [
"AM",
"PM"
],
"DAY": [
"dimanche",
"lu... | unamanic/VerbalTouch | www/js/angular.js/i18n/angular-locale_fr-gp.js | JavaScript | mit | 2,197 |
(function () {
// notequalto extra validators
window.ParsleyConfig = window.ParsleyConfig || {};
window.ParsleyConfig.validators = window.ParsleyConfig.validators || {};
// Greater than validator
window.ParsleyConfig.validators.notequalto = {
fn: function (value, requirement) {
return value !== ($(requirement).l... | krasnyuk/e-liquid-MS | wwwroot/assets/js/parsleyjs/src/extra/validator/notequalto.js | JavaScript | mit | 395 |
/**
* Copyright 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.
*
*
*/
'use st... | puyanLiu/LPYFramework | 前端练习/autoFramework/webpack-demo3/node_modules/react/lib/ReactPropTypesSecret.js | JavaScript | apache-2.0 | 442 |
"use strict";
exports.__esModule = true;
exports.getBindingIdentifiers = getBindingIdentifiers;
// istanbul ignore next
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key... | yuyang545262477/Resume | 项目三jQueryMobile/node_modules/babel-core/lib/types/retrievers.js | JavaScript | mit | 2,342 |
/*
* /MathJax/jax/output/SVG/fonts/TeX/AMS/Regular/GeneralPunctuation.js
*
* Copyright (c) 2009-2013 The MathJax Consortium
*
* Part of the MathJax library.
* See http://www.mathjax.org for details.
*
* Licensed under the Apache License, Version 2.0;
* you may not use this file except in compliance wi... | branch14/mathjax-rails | vendor/mathjax-MathJax-727332c/jax/output/SVG/fonts/TeX/AMS/Regular/GeneralPunctuation.js | JavaScript | mit | 735 |
'use strict';
/**
* Add querySelectorAll() to jqLite.
*
* jqLite find() is limited to lookups by tag name.
* TODO This will change with future versions of AngularJS, to be removed when this happens
*
* See jqLite.find - why not use querySelectorAll? https://github.com/angular/angular.js/issues/3586
* See feat(j... | swm93/bugtracker | vendor/assets/javascripts/angular-ui-select.js | JavaScript | mit | 18,477 |
ReactIntlMixin.__addLocaleData({"locale":"nso","pluralRuleFunction":function (n) {n=Math.floor(n);if(n>=0&&n<=1)return"one";return"other";},"fields":{"second":{"displayName":"Second","relative":{"0":"now"},"relativeTime":{"future":{"other":"+{0} s"},"past":{"other":"-{0} s"}}},"minute":{"displayName":"Minute","relative... | gaearon/cdnjs | ajax/libs/react-intl/1.0.0-rc-3/locale-data/nso.js | JavaScript | mit | 978 |
/**
* Module dependencies.
*/
var _ = require('lodash');
var dotenv = require('dotenv');
var path = require('path');
var fs = require('fs');
var DEFAULT_ENV_FILE = 'default.env';
var USER_ENV_FILE = '.env';
module.exports = function(oars) {
function Env() {
this.load = function(cb) {
// default env file
... | Evilcome/oars | lib/app/env/index.js | JavaScript | isc | 884 |
// load the configuration settings
var config = require('./config');
var self = {};
// the log singleton
var logObject = function() {
if ( logObject.prototype._singletonInstance ) {
return logObject.prototype._singletonInstance;
}
logObject.prototype._singletonInstance = this;
self = this;
... | krkfrmn/routerjs | lib/log.js | JavaScript | isc | 658 |
import * as Constants from '../constants';
export default function(parent, startVertex, endVertex) {
const startCoord = startVertex.geometry.coordinates;
const endCoord = endVertex.geometry.coordinates;
// If a coordinate exceeds the projection, we can't calculate a midpoint,
// so run away
if (startCoord[1... | mapbox/mapbox-gl-draw | src/lib/create_midpoint.js | JavaScript | isc | 959 |
// not actually mocking wotblitz; providing a single instance, mimicking the bot code
const wotblitz = require('wotblitz')();
exports.commands = {
client: {
user: {
id: '0101',
username: 'testbot'
}
},
wotblitz: wotblitz
};
exports.createMessage = function(content, author, mentions) {
if (mentions && !(... | CodeMan99/blitzbot | test/mocks/index.js | JavaScript | isc | 678 |
'use strict';
module.exports = geojsonvt;
var convert = require('./convert'), // GeoJSON conversion and preprocessing
transform = require('./transform'), // coordinate transformation
clip = require('./clip'), // stripe clipping algorithm
wrap = require('./wrap'), // date line proce... | anandthakker/geojson-vt | src/index.js | JavaScript | isc | 7,896 |
'use strict';
var Trunc = require('lodash.trunc');
function capture(fn) {
var oldLog = console.log;
var oldWarn = console.warn;
var oldError = console.error;
console.log = function() {
fn('log', arguments);
oldLog.apply(console, arguments);
};
console.warn = function() {
... | matthewtoast/runiq | interpreter/console.js | JavaScript | isc | 1,370 |
function sanitize(string) {
return string.replace(/[^\x00-\xFFF]|[\r\n]/g, '');
}
module.exports = sanitize;
| burninggarden/pirc | lib/utility/sanitize.js | JavaScript | isc | 113 |
var qunit = require("qunit");
homebridge = require("../../node_modules/homebridge/lib/api.js");
qunit.options.coverage = { dir: "/tmp/" };
qunit.run({
code : "index.js",
tests : [
'switchBinary',
'issue-48.js',
'issue-69.js',
'issue-72.js',
'issue-70.js',
'update-without-change.js'
].map... | SphtKr/homebridge-zway | tests/js/runner.js | JavaScript | isc | 369 |
var HashTree = require('../../lib/hash-tree'),
path = require('path');
describe('Hash Tree', function() {
it('computes hashes', function( done ) {
HashTree(path.resolve(__dirname, '../')).computeHashes(function( err, nodes ) {
if (err) {
return done(err);
}
assert.property(nodes, 'un... | Bajix/broccoli-live-reload | test/unit/hash-tree.js | JavaScript | isc | 1,887 |
/// <reference path="typings/tsd.d.ts"/>
var through = require('through');
var DependencyResolver = require('dependency-resolver');
var path = require('path');
function getFileReferences(contents) {
var regex = 'reference path="(.+)"';
var matches = contents.match(new RegExp(regex, 'g'));
if (!matches) {
... | finalclass/gulp-ts-order | build/index.js | JavaScript | isc | 1,072 |
const os = require("os")
module.exports = {
args: [
{name: "name", message: "The source file's name"},
],
files: ({name}) => [
{
name: `${name}.c`,
content: ``
},
{
name: `${name}.h`,
content: `
#ifndef ${name.const... | herrmanno/tpl | assets/examples/c/file.js | JavaScript | isc | 435 |
'use strict';
module.exports = function(config) {
config.set({
files: [
'https://code.jquery.com/jquery-3.1.1.min.js',
'https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.6.1/angular.min.js',
'https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.6.1/angular-route.min.js',
'https://cdnjs.c... | ksmai/voting-app | karma.local.conf.js | JavaScript | isc | 786 |
import parent from '../render/dom/parent'
import { property } from '../render/static'
const injectable = {}
export default injectable
if (typeof window === 'undefined') {
Object.defineProperty(global.Element.prototype, 'value', {
configurable: true,
get () { return this.getAttribute('value') },
set (va... | vigour-io/brisky-render | src/property/attr.js | JavaScript | isc | 4,521 |
import { ipcRenderer } from 'electron'
import {
ADD_REQUEST,
ADD_RESPONSE,
UPDATE_FILTER,
GET_HTTP_MESSAGE_DETAILS_SUCCESS,
TOGGLE_FILTER_INPUT
} from '../../constants/actionTypes'
import {
REQUEST_HTTP_MESSAGE_DETAILS,
HTTP_MESSAGE_DETAILS,
HTTP_MESSAGE_REQUEST,
REQUEST_HTTP_MESSAGE_REQUEST
} from '.... | niklasi/halland-proxy | src/renderer/actions/index.js | JavaScript | isc | 1,782 |
var glob = require('glob')
module.exports = function globTests() {
return glob.sync('./test/spec/**/*.spec.{js,jsx}')
}
| qmmr/react-movies | gulp/utils/globTests.js | JavaScript | isc | 122 |
'use strict'
var _url = document.createElement('a')
module.exports = function (url) {
_url.href = url
return {
hash: _url.hash,
href: _url.href,
urlpath: _url.pathname,
search: _url.search,
host: _url.hostname,
port: _url.port
}
}
| vigour-io/router | lib/parse/parse.js | JavaScript | isc | 262 |
var eos = require('end-of-stream')
module.exports = each
function each (stream, fn, cb) {
var waiting = false
var error = null
var ended = false
stream.on('readable', onreadable)
read(null)
if (cb) eos(stream, {readable: true, writable: false}, done)
return stream
function done (err) {
error = e... | akileez/toolz | src/stream/each.js | JavaScript | isc | 671 |
const readline = require('readline');
const Spinner = function (text = '%s') {
if ('string' == typeof text) {
text = { text };
}
this._text = text.text || '';
this._list = text.spinners || function (
spin = (t) => ['|', '/', '-', '\\'][t % 4], list = []
) {
for (let n = 0; n ... | dizmo/yeoman-generator-dizmo | generators/app/templates/gulp/tools/cli-spinner.js | JavaScript | isc | 1,411 |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Tiles = void 0;
var tile_size_1 = require("./tile-size");
var tile_sizes_1 = require("./tile-sizes");
var Tiles = /** @class */ (function () {
function Tiles() {
// #region Properties
this.showTiles = true;
... | ardimedia/angular-portal-azure | angular-portal-azure-2019-09a/ClientApp/projects/angular-portal-azure/src/lib/domain/tiles.js | JavaScript | isc | 1,457 |
function getTypes (types) {
return function (raw) {
return types[raw.type]
}
}
module.exports = getTypes
| mmckegg/observ-graph | lib/get-types.js | JavaScript | isc | 114 |
'use strict'
let gulp = require("gulp");
let sourcemaps = require("gulp-sourcemaps");
let babel = require("gulp-babel");
let watch = require('gulp-watch');
let changed = require('gulp-changed');
let nodemon = require('gulp-nodemon');
let plumber = require('gulp-plumber');
let path = require('path');
let demon;
gulp.... | sdk-group/iris-service-sound-conjunct | gulpfile.js | JavaScript | isc | 1,893 |
'use strict';
/**
* Returns the result of applying concat to the result of applying a function to values.
*
* @param {array} vals - an array of values
* @param {function} fn
* @param {object} ctx
*
* @return {array}
*/
module.exports = function mapconcat(vals, fn, ctx) {
return Array.prototype.concat.apply([... | landau/mapconcat | index.js | JavaScript | isc | 346 |
export const ADD_REQUEST = 'ADD_REQUEST'
export const ADD_RESPONSE = 'ADD_RESPONSE'
export const GET_HTTP_MESSAGE_DETAILS_SUCCESS = 'GET_HTTP_MESSAGE_DETAILS_SUCCESS'
export const UPDATE_FILTER = 'UPDATE_FILTER'
export const TOGGLE_FILTER_INPUT = 'TOGGLE_FILTER_INPUT'
| niklasi/halland-proxy | src/constants/actionTypes.js | JavaScript | isc | 269 |
// We need to import the CSS so that webpack will load it.
// The MiniCssExtractPlugin is used to separate it out into
// its own CSS file.
import "../css/app.css"
// webpack automatically bundles all modules in your
// entry points. Those entry points can be configured
// in "webpack.config.js".
//
// Import deps wit... | imprest/mgp | assets/js/app.js | JavaScript | mit | 1,650 |
var gulp = require('gulp');
var mocha = require('gulp-mocha');
var eslint = require('gulp-eslint');
var istanbul = require('gulp-istanbul');
var formatter = require('eslint-friendly-formatter');
var lint = ['gulpfile.js', 'index.js', 'utils.js'];
gulp.task('coverage', function() {
return gulp.src(lint.concat(['!gul... | doowb/github-content | gulpfile.js | JavaScript | mit | 891 |
/**
* 分类栏条目
*/
import React, { Component, PropTypes } from 'react';
import classnames from 'classnames';
import { Link } from 'react-router';
export default class CategoryBar extends Component {
render(){
const { text , active , link ,...other } = this.props;
return (
<li {...other}>
... | BSFullStack/isomorphic-redux-app | src/common/components/topic/CategoryItem.js | JavaScript | mit | 485 |
/* Project architecture can be changed if the project grows - instead of using 'type' oriented
* architecture, i.e. to have directories such as 'controllers', 'services' etc.,
* we can use 'feature' oriented structure, where each feature has its own
* directory with all the needed components, e.g. feature for 'login... | mihailgaberov/address-book | src/scripts/app.js | JavaScript | mit | 1,389 |
version https://git-lfs.github.com/spec/v1
oid sha256:8e85cd0bba914ed57ac03ce72804dbe6e83dbef37296bdcacb969c811c7aeecd
size 1568
| yogeshsaroya/new-cdnjs | ajax/libs/timelinejs/2.29.0/js/locale/fr.js | JavaScript | mit | 129 |
//getter methods
console.log("Syntax: ");
console.log("The get syntax binds an object property \n to a function that will be called when that property is looked up.");
console.log("{get prop() { ... } }");
console.log("{get [expression]() { ... } }");
// prop: The name of the property to bind to the given function.
/... | niksolaz/Learning-Javacript | javascript/object/getter.js | JavaScript | mit | 1,726 |
const AstNode = require('./ast-node');
class ForLoopBodyWithValue extends AstNode {
type() {
return 'for_loop_body_with_value';
}
/**
* @param {ParseContext} context
* @return {AstNodeParseResult}
*/
parse(context) {
const tm = context.sourceTextManager();
tm.whitespace();
const v = ... | smori1983/javascript-smodules | src/ast-node/for-loop-body-with-value.js | JavaScript | mit | 618 |
// task browserSync
const gulp = require('gulp');
const config = require('../gulp.config');
const path = require('path');
const browserSync = require('browser-sync').create();
const browserSyncTask = () => {
browserSync.init(config.tasks.browserSync);
let watchableTasks = [
'scripts',
'html',
... | Erichain/sales-taxes-demo | gulpfile.js/tasks/browser-sync.js | JavaScript | mit | 1,419 |
var hoverZoomPlugins = hoverZoomPlugins || [];
hoverZoomPlugins.push({
name:'YouTube',
prepareImgLinks:function (callback) {
var res = [],
repl = 'http://i1.ytimg.com/vi/$1/0.jpg';
function decodeQueryString(queryString) {
var keyValPairs = queryString.split("&"), param... | extesy/hoverzoom | plugins/youtube_a.js | JavaScript | mit | 5,026 |
import _ from 'lodash'
export const composite = (commands) => {
if (!Array.isArray(commands)) { return commands; }
if (commands.length === 1) { return commands[0]; }
return {
'composite': _.chain(commands).reduce((o, v, idx) => { o[idx] = v; return o; }, {}).value()
};
};
export const addElement = (json) ... | zhuj/mentha-web-archimate | archimate-frontend/src/main/javascript/actions/model.api.js | JavaScript | mit | 2,220 |
const Program = require('../models/Program'),
Campus = require('../models/Campus'),
fixtures = require('node-mongoose-fixtures');
/**
* GET /
* Home page.
*/
exports.index = (req, res) => {
//load programs
Program.find({}, (err, programs) => {
if(err) return console.error(err);
res.render('home... | hect1c/front-end-test | controllers/home.js | JavaScript | mit | 369 |
var relationsMapper = require('./map_relations');
var Promise = require('bluebird');
var DEFAULT_LIST_RELATIONS = require('./constants').LIST_RELATIONS;
var DEFAULT_ITEM_LIST = require('./constants').ITEM_TYPE_LIST;
var SAMPLE_DATA = require('./data-demo');
var CLOUD_TOPIC_PREFIX = require('./topics_constants').CLOU... | feedhenry-raincatcher/raincatcher-demo-cloud | lib/app/admin/data-reset/create.js | JavaScript | mit | 2,496 |
'use strict';
var fs = require('fs'),
request = require('request'),
wikiParser = require('./wikiparser'),
_ = require('lodash');
var fns = {
getSlugNameFor: function(str) {
var slug = str.replace(/\s+/g, '-').toLowerCase();
return slug;
},
extendWithJSONs: function(series) {
for (var se... | nagy-tamas/series-fanatic | lib/utils.js | JavaScript | mit | 3,231 |
'use strict';
const _ = require('lodash');
const Parse = require('../lib/parse');
const Account = Parse.Object.extend('account');
const querystring = require('querystring');
module.exports = app => {
/**
* 用户相关
*/
class UserService extends app.Service {
constructor(ctx) {
super(ctx);
t... | winiceo/pm_pmker | app/service/user.js | JavaScript | mit | 8,127 |
/*
* The MIT License (MIT)
* Copyright (c) 2016 Jim Liu
*
* 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... | liu1084/jim-blog | src/main/resources/static/app/libs/angular-ui/modules/directives/mask/test/maskSpec.js | JavaScript | mit | 2,668 |
var log = console.log
, Alice = require( '../' )
, ed = Alice()
, path = null
;
// same edge
ed.add( 1, 2 );
ed.add( 2, 1, true );
ed.add( 1, 2, true );
// vertex loop
ed.add( 2, 2 );
ed.cut( 2, 2 );
// same edge
ed.add( 2, 1, true );
ed.cut( 1, 2 );
ed.add( 1, 2 );
ed.cut( 2, 1 );
// add some edges... | rootslab/alice | example/alice-cycle-example.js | JavaScript | mit | 819 |
(function () {
'use strict';
var $$compile = null,
$$rootScope = null,
scope = null;
describe('minItems validation directive', function () {
beforeEach(function () {
module('dynamic-forms');
inject(function ($compile, $rootScope) {
$$rootSc... | wbreza/angular-dynamic-forms | test/directives/minItemsDirective.spec.js | JavaScript | mit | 2,727 |
'use strict';
/**
* Scales an image or video to fill the screen in one dimension, preserving its
* aspect ratio.
*
* Serves as a polyfill for the CSS object-fit: contain property if it is not
* supported (mostly for IE).
*
* Should be applied to an <img> or <video> tag or a <div ng-bind-html> that
* will load ... | dbow/angular-multimedia | components/mediacontain/mediacontain-directive.js | JavaScript | mit | 5,153 |
(function(module){
'use strict';
//this comment set up here to turn off eslint warnings about unused vars
/*global issues issueView helpers d3Chart:true*/
//set up constructor for easier use of data
function RepoIssue (opts){
this.repoOwner = opts.html_url.split('/')[3];
this.repoName = opts.html_... | JudyVue/Open-Issues-Github- | model/issue-request.js | JavaScript | mit | 2,338 |
import { combineReducers } from 'redux';
import graph from './graph';
export default combineReducers({
graph
});
| skortchmark9/reselect-tools | extension/app/reducers/index.js | JavaScript | mit | 116 |
const PlotCard = require('../../plotcard');
const GameActions = require('../../GameActions');
class ThePrinceWhoCameTooLate extends PlotCard {
setupCardAbilities(ability) {
this.action({
title: 'Search your deck',
phase: 'standing',
handler: context => {
... | ystros/throneteki | server/game/cards/15-DotE/ThePrinceWhoCameTooLate.js | JavaScript | mit | 1,165 |
/**
* A simple styled li element
*/
import styled from 'styled-components';
const Li = styled.li`
`;
export default Li;
| on3iro/Gloomhaven-scenario-creator | src/components/Li/index.js | JavaScript | mit | 128 |
/**
* Async is a utility module which provides straight-forward, powerful functions
* for working with asynchronous JavaScript. Although originally designed for
* use with [Node.js](http://nodejs.org) and installable via
* `npm install --save async`, it can also be used directly in the browser.
* @module async
*/... | rlugojr/async | lib/index.js | JavaScript | mit | 7,885 |
!function(a){"function"==typeof define&&define.amd?define(a):a()}(function(){var a="";return window.location.origin||(""!==window.location.port&&(a=":"),window.location.origin=window.location.protocol+"//"+window.location.hostname+a+window.location.port),{}}); | UseAllFive/polyfillLocationOrigin | dist/polyfillLocationOrigin.min.js | JavaScript | mit | 260 |
var http = require("http").createServer(handler); // handler will be the function with req, res as in previous example, just separated
var io = require("socket.io").listen(http); // socket.io for permanent connection between server and client
var fs = require("fs"); // variable fo "file system", i.e. fs
var firmata = r... | cubkiller/cps-iot | Example19.js | JavaScript | mit | 7,021 |
var gulp = require('gulp');
var phpspec = require('gulp-phpspec');
var run = require('gulp-run');
var plumber = require('gulp-plumber');
var notify = require('gulp-notify');
gulp.task('test', function() {
gulp.src('spec/**/*.php')
.pipe(run('clear'))
.pipe(phpspec('', { 'verbose': 'v', notify: true... | kriskbx/mikado | Gulpfile.js | JavaScript | mit | 749 |
export const selectGallery = (gallery) => ({
type: 'SELECT_GALLERY',
gallery
})
| DwightBe/Portfolio-2017 | app/actions/index.js | JavaScript | mit | 84 |
// moment.js locale configuration
// locale : tibetan (bo)
// author : Thupten N. Chakrishar : https://github.com/vajradog
(function (factory) {
if (typeof define === 'function' && define.amd) {
define(['../moment'], factory); // AMD
} else if (typeof exports === 'object') {
module.exports = fa... | turbobabr/sketch-devtools | client-src/bower_components/moment/locale/bo.js | JavaScript | mit | 4,589 |
/**
* Created by JinWYP on 7/27/16.
*/
var expect = require('chai').expect;
var colorConverter = require('../../../business-libs/colorConverter');
describe('Color Code Converter', function() {
describe('RGB to Hex conversion', function() {
it('converts the basic colors', function() {
va... | jinwyp/expressjs-demo | backend/src/test/unit/business-libs/colorConverter.js | JavaScript | mit | 1,126 |
/*jslint node: true*/
/*jslint nomen: true*/
"use strict";
var
React = require('react'),
ActionBindingMixin = require('../mixins/ActionBindingMixin'),
serialize = require('form-serialize');
module.exports = React.createClass({
mixins: [ActionBindingMixin],
render: function () {
return React.createEle... | ilkkahanninen/vuo-react | components/form.js | JavaScript | mit | 579 |
var Easel = require('easel');
var app = new Easel();
app.server.start();
| jeremyworboys/easel | bin/scaffold/new/index.js | JavaScript | mit | 76 |
/* eslint-env mocha, jest */
import getActualComponentFactory from '../../lib/testUtils';
import Task from '../Task';
const defaultProps = {
index: 0,
color: 'red',
text: 'a cool task',
estimation: '60',
due: '',
repeat: '',
done: false,
onRequestDo() {},
onRequestDelete() {},
onRequestSnackbar() ... | mkermani144/wanna | src/Task/__tests__/Task.spec.js | JavaScript | mit | 4,118 |
import React from 'react'
import { ScrollView, StyleSheet, View } from 'react-native'
import { Video as ExpoVideo } from 'expo'
import VideoPlayer from '@expo/videoplayer'
import { Ionicons } from '@expo/vector-icons'
import PropTypes from 'prop-types'
import { Colors } from 'constants'
const styles = StyleSheet.crea... | nattatorn-dev/expo-with-realworld | components/Video.js | JavaScript | mit | 1,684 |
import Ember from 'ember';
import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';
import page from '../../../pages/components/kinetic-form/radios';
import sinon from 'sinon';
const { run, set, get } = Ember;
moduleForComponent('kinetic-form/radios', 'Integration | Compon... | funnelcloudinc/ember-kinetic-form | tests/integration/components/kinetic-form/radios-test.js | JavaScript | mit | 2,398 |
// Copyright 2012 Ofir Picazo. All Rights Reserved.
/**
* @fileoverview Foundation object, fill one per suit to complete the game.
*
* @author ofirpicazo@gmail.com (Ofir Picazo)
*/
goog.provide('solitario.game.Foundation');
goog.require('goog.dom.dataset');
goog.require('solitario.game.Card');
goog.require('soli... | ofirpicazo/solitario | src/solitario/game/foundation.js | JavaScript | mit | 2,440 |
(function() {
"use strict";
define(
function() {
var interactiveToolConfig = new function() {
var self = this;
//This is the default value for the textbox that holds the value of the number of units to buffer in the buffering tool
self.def... | AZMAG/map-DemographicRegional | src/app/config/interactiveToolConfig.js | JavaScript | mit | 2,798 |
module.exports.generator = function () {
// This should return a new bite code in the form of a String
}
| RhodesHvZ/node-hivemind | lib/bite_codes.js | JavaScript | mit | 108 |
export const encodeArrayForUrl = (values) => {
const encodedValues = values.map(encodeURIComponent)
return encodedValues.join(',')
}
export const getArrayFromUrlParam = (urlParam) => {
const encodedValues = urlParam.split(',')
return encodedValues.map(decodeURIComponent)
}
export const buildQueryForUrl = (fil... | bourbest/keeptrack | client/services/url-utils.js | JavaScript | mit | 920 |
import defaultCardConfig from '../defaultCardConfig';
/**
* Maps room to limited set of properties for export (room as file download).
*
* @param room
* @return {undefined|{stories: *, exportedAt: number, roomId}}
*/
export function mapRoomExportDto(room) {
if (!room) {
return undefined;
}
return {
... | Zuehlke/poinz | server/src/restApi/dtoMapper.js | JavaScript | mit | 2,886 |
//9.2.1
//Pseudocode -------------------------------------------
//create function to make a new list,
// that takes a string and split it and create a object with the splited words
//go through each element inside the object
//display the list
//create a function that adds an item with quantity to the list.
//if the ... | schaui6/phase-0 | week-9/review.js | JavaScript | mit | 5,356 |
import chalk from 'chalk'
import moment from 'moment'
import Table from 'cli-table'
import bugger from 'debug'
const debug = bugger('todo:util')
/**
* Format console.log calls for readability and structure
* @param {String} data message to be logged
*/
function log(data) {
let time = moment().format('MM/DD hh:m... | Aweary/node-todo | src/lib/util.js | JavaScript | mit | 1,067 |