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 |
|---|---|---|---|---|---|
import { complement } from 'ramda';
import isSet from './isSet';
/**
* Checks if value is complement of `Set` object.
*
* @func isNotSet
* @memberOf RA
* @category Type
* @since {@link https://char0n.github.io/ramda-adjunct/2.27.0|v2.27.0}
* @sig * -> Boolean
* @param {*} val The value to test
* @return {boo... | char0n/ramda-adjunct | src/isNotSet.js | JavaScript | bsd-3-clause | 596 |
var listworkslip = function(){
/* END SCREEN SEARCH */
var change_branch_search = function(){
$('#selectBranch').off('change').on('change', function(){
load_ss_search();
});
};
var load_ss_search = function(){
var param = {
branch_id: $('#selectBranch').va... | huylv-hust/ws | backend/web/js/module/listworkslip.js | JavaScript | bsd-3-clause | 3,486 |
import { h } from 'preact';
import PropTypes from 'prop-types';
import Header from '../Header';
import './styles.css';
const ClosedState = props => (
<Header chatOpen={props.chatOpen} toggleChat={() => props.toggleChat(true)} />
);
ClosedState.defaultProps = {
chatOpen: false,
};
ClosedState.propTypes = {
to... | minimalchat/mnml-client | src/components/ClosedState/index.js | JavaScript | bsd-3-clause | 417 |
/* jshint esnext: true */
/* jshint node: true */
"use strict";
let winston = require('winston');
winston.emitErrs = true;
let logger = new winston.Logger({
transports: [
new winston.transports.File({
level: 'info',
filename: './logs/all-logs.log',
handleExceptions: true... | biolab-unige/migrate-utils | logger.js | JavaScript | bsd-3-clause | 780 |
/*
Copyright (c) 2011, Claus Augusti <claus@formatvorlage.de>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list ... | juxtapos/Rain | lib/htmlrenderer.js | JavaScript | bsd-3-clause | 7,524 |
var cdb = require('cartodb.js');
var template = require('./guessing-toggler.tpl');
/**
* Manages if upcoming import should guess or not.
* Expected to be rendered in the footer of a create dialog.
*/
module.exports = cdb.core.View.extend({
events: {
'click .js-toggle': '_toggle'
},
initialize: function... | codeandtheory/cartodb | lib/assets/javascripts/cartodb3/components/modals/add-layer/footer/guessing-toggler-view.js | JavaScript | bsd-3-clause | 1,490 |
import React from 'react'
import { Layout, Menu, Icon } from 'antd';
const { Header, Sider, Content } = Layout;
import style from './style.css'
class Application extends React.Component {
state = {
collapsed: true,
};
toggle = () => {
this.setState({
collapsed: !this.state.collapsed,
});
}
... | zsl99a/localjs-store | src/containers/_Layout/index.js | JavaScript | bsd-3-clause | 1,699 |
#!/usr/bin/env node
var cli = require('cli'),
path = require('path'),
server = require('../lib/');
cli.enable('help', 'version');
var meta = require(path.join('../package.json'));
cli.parse({
modules: ['m', 'Comma separated list of modules to cover. (overides meta)', 'string'],
upstream: ['u', 'Prov... | davglass/yui-coverage | bin/cli.js | JavaScript | bsd-3-clause | 672 |
$(document).on('click', '.viewModal', function() {
var url = $(this).attr('data-url');
$.get(url, function(r){
$('#popup').modal('show');
$('.modal-content').html(r);
});
return false;
});
$(document).on('click','.js-exit',function(){
$.ajax({
url: 'site/logout',
... | hunterex68/code | backend/web/js/script.js | JavaScript | bsd-3-clause | 555 |
var shell = require('..');
var assert = require('assert'),
fs = require('fs');
shell.config.silent = true;
shell.rm('-rf', 'tmp');
shell.mkdir('tmp');
//
// Invalids
//
'hello world'.to();
assert.ok(shell.error());
assert.equal(fs.existsSync('/asdfasdf'), false); // sanity check
'hello world'.to('/asdfasdf/fi... | jcoreio/shelljs | test/to.js | JavaScript | bsd-3-clause | 785 |
#!/usr/bin/env node
process.stdin.resume();
process.stdin.setEncoding('utf8');
var util = require('util');
process.stdin.on('data', function (text) {
console.log('received data:', util.inspect(text));
if(text === 'quit\n') {
done();
}
});
function done() {
console.log('Now that process.stdin is paused, t... | talapus/Node | Streams/userInputStream.js | JavaScript | bsd-3-clause | 366 |
describe("module:ng.filter:date",function(){var a;beforeEach(function(){a=browser.rootEl,browser.get("./examples/example-example53/index.html")}),it("should format date",function(){expect(element(by.binding("1288323623006 | date:'medium'")).getText()).toMatch(/Oct 2\d, 2010 \d{1,2}:\d{2}:\d{2} (AM|PM)/),expect(element(... | infrabel/docs-gnap | node_modules/gnap-theme-gnap-angular/js/angular/docs/ptore2e/example-example53/jqlite_test.min.js | JavaScript | bsd-3-clause | 822 |
importScripts('/resources/testharness.js');
importScripts('/resources/testharness-helpers.js');
test(function() {
assert_own_property(self, 'SyncManager', 'SyncManager needs to be exposed as a global.');
assert_will_be_idl_attribute(registration, 'syncManager', 'syncManager needs to be exposed on the registrat... | kurli/blink-crosswalk | LayoutTests/http/tests/background_sync/resources/interfaces-worker.js | JavaScript | bsd-3-clause | 1,514 |
'use strict';
const common = require('../common');
const assert = require('assert');
const fs = require('fs');
const spawn = require('child_process').spawn;
// Fails with EINVAL on SmartOS, EBUSY on Windows, EBUSY on AIX.
if (common.isSunOS || common.isWindows || common.isAix) {
common.skip('cannot rmdir current wor... | RPGOne/Skynet | node-master/test/parallel/test-cwd-enoent-repl.js | JavaScript | bsd-3-clause | 871 |
//adds the resource to umbraco.resources module:
angular.module('umbraco.resources').factory('mediaContentUsageResource',
function ($q, $http) {
return {
getMediaContentUsage: function (id) {
return $http({
url: "backoffice/Chalmers/MediaContentUsageApi/GetMe... | hfea/Website-Public | Source/HFEA.Website/App_plugins/MediaContentUsage/mediacontentusage.resource.js | JavaScript | bsd-3-clause | 467 |
$(function() {
$(".bt").click(function() {
$(".front").toggleClass("flipped");
});
});
$(function() {
$(".bt1").click(function() {
$(".front2").toggleClass("flipped");
});
});
$(function() {
$(".bt2").click(function() {
$(".front3").toggleClass("flipped");
});
}); | ellisonbg/jupyter.github.io | js/architecture.js | JavaScript | bsd-3-clause | 276 |
const request = require('request');
const shaidkit = require('shaidkit');
const config = require('../../../settings.js');
const app = require('../app');
const flow = app.locals.flow;
const flame = app.locals.flame;
//a constant that informs the policy server the maximum number of apps returned at once from SHAID
const... | renonick87/sdl_server | app/v1/shaid/index.js | JavaScript | bsd-3-clause | 3,672 |
'use strict';
angular.module('searchApp')
.directive('gridView', [ 'SolrService', 'ImageService', '$window', function (SolrService, ImageService, $window) {
return {
templateUrl: 'views/grid-view.html',
restrict: 'E',
scope: {
'docs': '='
},
link: function postLink(scope, ... | MLR-au/esrc-search | app/scripts/directives/grid-view.js | JavaScript | bsd-3-clause | 876 |
System.config({
"transpiler": "babel",
"babelOptions": {
"optional": [
"runtime"
]
},
"paths": {
"*": "*.js",
"github:*": "jspm_packages/github/*.js",
"npm:*": "jspm_packages/npm/*.js"
}
});
System.config({
"map": {
"babel": "npm:babel-core@5.6.17",
"babel-runtime": "npm:b... | biojs/biojs3-jspm-example | config.js | JavaScript | bsd-3-clause | 1,742 |
import * as types from '../actionTypes'
import { merge } from 'ramda'
const initialState = {
error: null,
ids: [],
isFetching: false
}
const countries = (state = initialState, action) => {
switch (action.type) {
case types.FETCH_COUNTRIES:
return merge(state, {
isFetching: true
})
case types... | emoriarty/podcaster | src/reducers/countries.js | JavaScript | bsd-3-clause | 617 |
var Component = require("montage/ui/component").Component,
Promise = require("montage/core/promise").Promise,
application = require("montage/core/application").application,
//This will be re-factored
AuthorizationManager = require("logic/service/authorization-manager").AuthorizationManager;
/**
* @cl... | montagestudio/montage-data | ui/authorization-manager-panel.reel/authorization-manager-panel.js | JavaScript | bsd-3-clause | 1,822 |
var classtracer_1_1_printer_container =
[
[ "PrinterContainer", "classtracer_1_1_printer_container.html#a8eaff2f80853bb41a4c32b21e8ac3ec5", null ],
[ "PrinterContainer", "classtracer_1_1_printer_container.html#a8dc111440ee3cbf4fa97590dc71cd373", null ],
[ "~PrinterContainer", "classtracer_1_1_printer_contai... | mensinda/tracer | docs/html/classtracer_1_1_printer_container.js | JavaScript | bsd-3-clause | 1,105 |
(function(b){function o(a){var c=a.data;a.isDefaultPrevented()||(a.preventDefault(),b(this).ajaxSubmit(c))}function s(a){var c=a.target,g=b(c);if(!g.is(":submit,input:image")){c=g.closest(":submit");if(0===c.length)return;c=c[0]}var f=this;f.clk=c;"image"==c.type&&(void 0!==a.offsetX?(f.clk_x=a.offsetX,f.clk_y=a.offset... | daejunpark/jsaf | tests/html_tests/websitesource/82,adf.ly/test_files/jquery.form.min.js | JavaScript | bsd-3-clause | 12,768 |
function shadeColor(color, percent, rgb) {
if (color == null) {
console.error("Null color is getting passed to darken");
}
var R = parseInt(color.substring(1, 3), 16);
var G = parseInt(color.substring(3, 5), 16);
var B = parseInt(color.substring(5, 7), 16);
R = parseInt((R * (100 + percent)) / 100);
... | nteract/nteract.io | common/colors.js | JavaScript | bsd-3-clause | 2,308 |
var Route = {
//-- Var to enable routes
'active' : false,
//-- Init list coords
'systems' : [],
//-- Route list
'list' : [],
/**
* Initialize the systems list for coordinates check
*
* @param {Int} Unique ID for the route
* @param {JSON} A JSon list of points
*/
'initRoute' : functi... | ZNS/EliteTracker | ZNS.EliteTracker/Content/ed3d/js/components/route.class.js | JavaScript | bsd-3-clause | 3,135 |
// DATA_TEMPLATE: js_data
oTest.fnStart( "aoColumns.iDataSort" );
$(document).ready( function () {
/* Should know that sorting already works by default from other tests, so we can jump
* right in here
*/
var oTable = $('#example').dataTable( {
"aaData": gaaData,
"aoColumns": [
null,
{ "iDataSort": 4 },... | Darkdion/bkt | backend/web/gentelella/js/datatables/unit_testing/tests_onhold/2_js/aoColumns.iDataSort.js | JavaScript | bsd-3-clause | 2,459 |
// Filename: views/albums/list
define([
'jquery',
'underscore',
'backbone',
'models/album',
// Using the Require.js text! plugin, we are loaded raw text
// which will be used as our views primary template
'text!templates/albums/delete.html',
'helpers/view',
], function ($, _, Backbone, A... | denisura/zfAlbum | public/js/views/albums/delete.js | JavaScript | bsd-3-clause | 1,509 |
import firebase from '@firebase/app';
import { Logger, LogLevel as LogLevel$1 } from '@firebase/logger';
import * as tslib_1 from 'tslib';
import { __extends, __awaiter, __generator } from 'tslib';
import { XhrIo, EventType, ErrorCode, createWebChannelTransport, WebChannel } from '@firebase/webchannel-wrapper';
import ... | PolymerLabs/arcs-live | concrete-storage/node_modules/@firebase/firestore/dist/index.esm.js | JavaScript | bsd-3-clause | 982,331 |
var gulp = require("gulp");
var fs = require("fs");
var rimraf = require("rimraf");
var plumber = require("gulp-plumber");
var rename = require("gulp-rename");
var ejs = require("gulp-ejs");
var typescript = require("gulp-typescript");
var runSequence = require("run-sequence");
var merge = require("event-stream").merge... | Tatamo/freecivcalc2 | gulpfile.js | JavaScript | bsd-3-clause | 1,413 |
$(document).ready(function(){
$.fn.hoverSprite = function(thisItem){
$(this).each(function(e){
var item =$(this),
srcItem,
widthItem,
heightItem,
imgItem = item.find("img"),
idPage,
MSIE = ($.browser.msie) && ($.browser.version <= 8);
if(thisItem.onLoadWebSite == false || thisItem... | mohamedbenatti/doratelecom | public/js/hoverSprite.js | JavaScript | bsd-3-clause | 2,255 |
jQuery(document).ready(function ($) {
// Update text on Tshirt -- applly event on keyup
$('#designtext').keyup(function(){
var text = $(this).val().replace(/\r\n|\r|\n/g,"<br />");
$('.text p').html(text);
});
// ON click on the new text button : clone N... | jinnykoo/wuyisj.com | sites/sandbox/public/static/wuyi/js/design.js | JavaScript | bsd-3-clause | 9,535 |
/*
* JavaScript tracker core for Snowplow: payload.js
*
* Copyright (c) 2014 Snowplow Analytics Ltd. All rights reserved.
*
* This program is licensed to you under the Apache License Version 2.0,
* and you may not use this file except in compliance with the Apache License Version 2.0.
* You may obtain a copy of... | YieldifyLabs/snowplow-javascript-tracker | core/lib/payload.js | JavaScript | bsd-3-clause | 2,802 |
// Copyright (c) 2015 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.
/**
* @implements {UI.ContextFlavorListener}
* @unrestricted
*/
Sources.JavaScriptBreakpointsSidebarPane = class extends UI.ThrottledWidget {
cons... | youtube/cobalt | third_party/devtools/front_end/sources/JavaScriptBreakpointsSidebarPane.js | JavaScript | bsd-3-clause | 10,919 |
// Copyright 2014 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.
import * as Common from '../common/common.js';
import * as FormatterModule from '../formatter/formatter.js';
import * as UI from '../ui/ui.js';
import * a... | endlessm/chromium-browser | third_party/devtools-frontend/src/front_end/sources/ScriptFormatterEditorAction.js | JavaScript | bsd-3-clause | 4,481 |
import createVisual, {visuals} from './base';
import warn from '../utils/warn';
export default createVisual('container', {
initialise () {
this.live = [];
if (this.visualParent) this.visualParent.live.push(this);
},
draw (fetchData) {
if (this.drawing) {
warn(`${this.... | quantmind/d3-visualize | src/core/container.js | JavaScript | bsd-3-clause | 752 |
var searchData=
[
['quadrenderer_2ecpp',['QuadRenderer.cpp',['../_quad_renderer_8cpp.html',1,'']]],
['quadrenderer_2eh',['QuadRenderer.h',['../_quad_renderer_8h.html',1,'']]],
['quaternion_2eh',['Quaternion.h',['../_quaternion_8h.html',1,'']]]
];
| puretekniq/batterytech | doc/BatteryTech SDK/doxygen/html/search/files_71.js | JavaScript | bsd-3-clause | 253 |
/**
*
* Pulls a file from the device.
*
* @param {String} path device path to file
*
* @see https://github.com/appium/appium/blob/master/docs/en/appium-bindings.md#pull-file
* @type appium
*
*/
module.exports = function pullFileFromDevice(pathOnDevice) {
/*!
* make sure that callback contains chai... | slukashuk/blog-client | node_modules/webdriverio/lib/protocol/pullFileFromDevice.js | JavaScript | isc | 598 |
import test from 'tape';
import stub from 'sinon/lib/sinon/stub'; // avoid babel-register-related error by importing only stub
import featuresAt from '../src/lib/features_at';
function createMockContext() {
return {
options: {},
map: {
queryRenderedFeatures: stub().returns([{
type: 'Feature',
... | mapbox/mapbox-gl-draw | test/features_at.test.js | JavaScript | isc | 2,766 |
/* IMPORTANT
* This snapshot file is auto-generated, but designed for humans.
* It should be checked into source control and tracked carefully.
* Re-generate by setting TAP_SNAPSHOT=1 and running tests.
* Make sure to inspect the output below. Do not ignore changes!
*/
'use strict'
exports[`test/config-override.j... | bcoe/nyc | tap-snapshots/test-config-override.js-TAP.test.js | JavaScript | isc | 1,133 |
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ re... | kimamula/ts-transformer-keys | examples/webpack/ts-loader.js | JavaScript | mit | 4,144 |
const fs = require('fs')
const debug = require('debug')
const glob = require('glob')
const path = require('path')
const YAML = require('yaml')
const should = require('should/as-function')
const fixtures = require('../fixtures')
const options = require('../../src/cli/options')
const index = require('../../src/index')
c... | thumbsup/thumbsup | test/integration/integration-test.js | JavaScript | mit | 2,065 |
'use strict';
module.exports = exports = handle_gyp_opts;
const versioning = require('./versioning.js');
const napi = require('./napi.js');
/*
Here we gather node-pre-gyp generated options (from versioning) and pass them along to node-gyp.
We massage the args and options slightly to account for differences in what... | kipid/blog | nodejs/node.js-mysql-1/node_modules/@mapbox/node-pre-gyp/lib/util/handle_gyp_opts.js | JavaScript | mit | 3,447 |
// flow-typed signature: e0974d6c2c04803a78c4faa3e848c72a
// flow-typed version: 34fbdaa6f3/bluebird_v3.x.x/flow_>=v0.70.x
type Bluebird$RangeError = Error;
type Bluebird$CancellationErrors = Error;
type Bluebird$TimeoutError = Error;
type Bluebird$RejectionError = Error;
type Bluebird$OperationalError = Error;
type ... | lbryio/lbry-app | flow-typed/npm/bluebird_v3.x.x.js | JavaScript | mit | 10,504 |
import React, { Component } from 'react';
export default class WeekHeader extends Component {
render() {
return (
<div className='week-header'>
<span>Sun</span>
<span>Mon</span>
<span>Tue</span>
<span>Wed</span>
<span>Thu</span>
<span>Fri</span>
<spa... | Jguardado/ComponentBase | src/components/DataPicker/WeekHeader.js | JavaScript | mit | 359 |
/**
* @Author: dixiao
* @Date: 2016/3/16.
*
*/
function startMove(obj, json, fnEnd) {
if (obj.timer) {
clearInterval(obj.timer);
}
obj.timer = setInterval(function() {
doMove(obj, json, fnEnd);
}, 10);
var oDate = new Date();
if (oDate.getTime() - obj.lastMove > 30) {
... | ralcen/ralcen.github.io | demo/01/move.js | JavaScript | mit | 1,479 |
"use strict";
module.exports = CSSselect;
var Pseudos = require("./lib/pseudos.js"),
DomUtils = require("domutils"),
findOne = DomUtils.findOne,
findAll = DomUtils.findAll,
getChildren = DomUtils.getChildren,
removeSubsets = DomUtils.removeSubsets,
falseFunc = requ... | yomolify/cc-server | node_modules/pretty-error/node_modules/renderkid/node_modules/css-select/index.js | JavaScript | mit | 1,667 |
/*
*
* Blockstrap v0.6.0.1
* http://blockstrap.com
*
* Designed, Developed and Maintained by Neuroware.io Inc
* All Work Released Under MIT License
*
*/
(function($)
{
var templates = {};
var template_data = {};
templates.bootstrap = function(type)
{
var snippet = $.fn.bloc... | blockstrap/blockstrap.github.io | demo/blockstrap/js/modules/templates.js | JavaScript | mit | 14,906 |
import React, { Component } from 'react';
export default class NotFoundContainer extends Component {
render() {
return (<div>
<h2>
ページが見つかりません。
</h2>
</div>);
}
}
| ShotaOd/dabunt | carbon-sample-v2/src/main/javascript/spa/src/error/NotFoundContainer.js | JavaScript | mit | 220 |
'use strict';
/**
* Dependencies
*/
const isNumber = require('./is-number');
/**
* isNumber()
*/
describe('isNumber()', () => {
it('should consider numbers a number', () => {
expect(isNumber(1)).to.be.true();
expect(isNumber(500)).to.be.true();
expect(isNumber(0)).to.be.true();
expect(isNumber(-... | meanie/express-seed | app/validators/is-number.spec.js | JavaScript | mit | 1,040 |
var shell = require("shelljs");
module.exports = function(callback){
var cb = callback ? function(code, output){
if(code !== 0){
callback(new Error("command exited with code: " + code + " output: " + output));
}
callback(null, output.trim());
} : undefined;
if(cb){
shell.exec("hostname -f"... | jcodling/node-OPC-UA-server | node_modules/node-opcua/node_modules/fqdn/index.js | JavaScript | mit | 434 |
export default {
API_URL: 'http://localhost:5001/api'
} | jcnavarro/rateflicks | Rate.UI/app/constants.js | JavaScript | mit | 59 |
var DysLexer = require('./dyslexer');
fs = require('fs');
var LeftHandScope = require('./scopes/left'),
RightHandScope = require('./scopes/right'),
DataScope = require('./scopes/data'),
CommentScope = require('./scopes/comment'),
RootScope = require('./scopes/root'),
Renderer = require('./render/noflo'),
... | nodule/socket.io-client | node_modules/dyslexer/ATTIC/parser.js | JavaScript | mit | 1,680 |
(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.Buffer = f()}}... | brollb/deepforge | src/plugins/common/lib/buffer.js | JavaScript | mit | 47,174 |
/**
* Copyright (c) 2015 Tiinusen
*
* Many thanks to Cake Software Foundation, Inc. (http://cakefoundation.org)
* This was inspired by http://cakephp.org CakePHP(tm) Project
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE
* Redistributions of fil... | cakejs/cakejs | src/Database/Type/JsonType.js | JavaScript | mit | 982 |
/**
* Adds support for a "hover" event. The event provides a convenience wrapper
* for subscribing separately to mouseenter and mouseleave. The signature for
* subscribing to the event is</p>
*
* <pre><code>node.on("hover", overFn, outFn);
* node.delegate("hover", overFn, outFn, ".filterSelector");
* Y.on("hov... | inikoo/fact | libs/yui/yui3-gallery/src/gallery-patch-330-event-hover/js/patch.js | JavaScript | mit | 2,059 |
var gulp = require('gulp');
var runSequence = require('run-sequence');
var to5 = require('gulp-babel');
var paths = require('../paths');
var compilerOptions = require('../babel-options');
var assign = Object.assign || require('object.assign');
var through2 = require('through2');
var concat = require('gulp-concat');
var... | hitesh97/animator-velocity | build/tasks/build.js | JavaScript | mit | 2,272 |
// Generated by CoffeeScript 1.3.3
(function() {
var hash, hashTimer, rooter,
__hasProp = {}.hasOwnProperty,
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.protot... | wearefractal/rooter | rooter.js | JavaScript | mit | 3,584 |
// if exports is an array, it will be the same like loading multiple files...
//module.exports = require('cqrs-saga').defineSaga({// event to match..
module.exports = require('../../../../').defineSaga({// event to match...
name: 'orderConfirmed', // optional, default is file name without extension
aggregate: 'orde... | togusafish/adrai-_-node-cqrs-saga | test/integration/fixture/order/orderConfirmed.js | JavaScript | mit | 801 |
/*
* --
*/
$(function(){
module("kb-swipe");
test('externalized in jquery object', function(){
ok($.fn.swipe, 'swipe method is defined');
});
test('should be defined on jquery object', function(){
ok($(document.body).swipe, 'swipe method is defined');
});
test('should return element', function(){
... | ustyme/kuba-bootstrap | js/general/tests/unit/t-swipe.js | JavaScript | mit | 513 |
var express = require("express");
var router = express.Router();
router.get("/", function(req, res, next) {
req.flash("success", "회원가입이 성공적으로 되었습니다.");
req.flash("error", "비밀번호가 올바르지 않습니다.");
return res.redirect("/flash/result/");
});
router.get("/result", function(req, res, next) {
return res.json(req.flas... | dobestan/nodejs-101 | koscom/2nd/expressServer/routes/flash.js | JavaScript | mit | 718 |
'use strict';
var _ = require('lodash');
/**
* Definition constructor
* @param {Object} meta meta infos like: { name: 'name' }
* @constructor
*/
function Definition (meta) {
if (!this.name && meta && meta.name) {
this.name = meta.name;
}
this.options = {};
this.definitions = {
command: {
i... | tachikomapocket/adrai-_-node-cqrs-saga | lib/definitionBase.js | JavaScript | mit | 2,387 |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
$(window).scroll(function(){
if ($(this).scrollTop() > 50){
$('#header').css('transition','all 300ms');
$('#heade... | aleanalisis/aac | web/bundles/aacuser/js/scrollFunction.js | JavaScript | mit | 1,910 |
Package.describe({
name: 'rocketchat:oembed',
version: '0.0.1',
summary: 'Message pre-processor that insert oEmbed widget in template',
git: '',
});
Package.onUse(function(api) {
api.use([
'http',
'templating',
'ecmascript',
'konecty:change-case',
'rocketchat:lib',
]);
api.addFiles('client/baseWidget... | pkgodara/Rocket.Chat | packages/rocketchat-oembed/package.js | JavaScript | mit | 1,440 |
/*global window */
var FlowCalculator = require('./flowCalculator');
module.exports = VideoFlow;
/**
* A high level interface to capture optical flow from the <video> tag.
* The API is symmetrical to webcamFlow.js
*
* Usage example:
* var flow = new VideoFlow();
*
* // Every time when optical flow is calcula... | nintendops/nintendops.github.io | src/videoFlow.js | JavaScript | mit | 3,431 |
import cs from '../services/CommunicationService'
const Utils = {
getId: ()=>"id_"+new Date().valueOf(),
}
export default Utils; | coolshare/ReactReduxPattern | src/common/Utils.js | JavaScript | mit | 133 |
const { isString } = require('lodash')
const getNextPath = (step, requestBody) => {
if (step.nextPath) {
return isString(step.nextPath) ? step.nextPath : step.nextPath(requestBody)
}
}
module.exports = {
getNextPath,
}
| uktrade/data-hub-fe-beta2 | src/modules/form/helpers.js | JavaScript | mit | 231 |
/*
* Markdown is a named function that will parse markdown syntax
* @param {String} msg - The message html
*/
import { Meteor } from 'meteor/meteor';
import { Random } from 'meteor/random';
import s from 'underscore.string';
import { settings } from '../../../../settings';
const parseNotEscaped = function(msg, mes... | 4thParty/Rocket.Chat | app/markdown/lib/parser/original/markdown.js | JavaScript | mit | 4,377 |
if (sails.services.passport) {
module.exports = sails.services.passport;
} else {
var path = require('path');
var url = require('url');
var passport = require('passport');
var _ = require('lodash');
/**
* Passport Service
*
* A painless Passport.js service for your Sails app that is guaranteed to
... | tjwebb/sails-auth | api/services/passport.js | JavaScript | mit | 12,572 |
var fs = require('fs');
var path = require('path');
var net = require('net');
var test = require('tap').test;
var exampleConfig = require('./spec_server');
var ICAPServer = require('..').ICAPServer;
var datePattern = /Date\:\s*\w+,\s+\d{1,2}\s+\w+\s+\d{4}\s+\d{2}:\d{2}:\d{2}\s+GMT/g;
var dateReplace = 'Date: ' + (new ... | unmarshal/nodecap | test/spec_helpers.js | JavaScript | mit | 2,289 |
const Namespace = require("./namespace");
const _ = require("lodash");
module.exports = function(options) {
const emitter = this;
options = _.defaults(options, {
fast: false,
defaultNamespace: "default",
stats: false,
id: Math.random()
});
this._id = options.id;
this.namespaces = {};
this.namespaces[... | RedFoxCode/redbat | src/eventemitter.js | JavaScript | mit | 1,927 |
// @tag core
/**
* @class Ext.GlobalEvents
*/
Ext.define('Ext.overrides.GlobalEvents', {
override: 'Ext.GlobalEvents',
/**
* @event resumelayouts
* Fires after global layout processing has been resumed in {@link
* Ext.Component#resumeLayouts}.
*/
/**
* @event mousedown
* A... | devmaster-terian/hwt-backend | gestion/recurso/framework/ext-5.1.3/overrides/GlobalEvents.js | JavaScript | mit | 2,163 |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
/*
* Mapping from Unicode codepoints to X11/RFB keysyms
*
* This file was automatically generated from keysymdef.h
* DO NOT EDIT!
*/
/* Functions at the bottom */
var codepoints = {
0x0100: 0x03c0, // XK_Amacron
0x0101: 0x0... | OSC/ood-dashboard | public/noVNC-1.0.0/core/input/keysymdef.js | JavaScript | mit | 25,459 |
/**
* @class Ext.ux.upload.DD
* @extends Ext.ux.upload.Basic
*
* @author Sebastian Widelak (c) 2013
*/
Ext.define('Ext.ux.upload.DD', {
requires: ['Ext.ux.upload.transport.Xhr'],
extend: 'Ext.util.Observable',
transport: null,
config: {
id: null,
directMethod: null,
url: nul... | devjseu/Ext-JS-4-Drag-Drop-Upload | src/ux/upload/DD.js | JavaScript | mit | 4,484 |
(function() {
var _tagRegexes = [
Template.REGEX_FOREACH,
Template.REGEX_RENDER,
Template.REGEX_INCLUDE
];
function SimpleTemplateViewProvider(viewResolver) {
this.viewResolver = viewResolver || null;
viewResolver = null;
}
SimpleTemplateViewProvider.prototype.createTemplate = function createTemplate(name, sour... | gburghardt/bloodhound | src/bloodhound/view_providers/simple_template_view_provider.js | JavaScript | mit | 866 |
(function() {
const {
CHANGE_TITLE,
CHANGE_TO_DATE,
CHANGE_FROM_DATE,
CHANGE_VIEW,
CHANGE_LAYOUT,
TOGGLE_COMPLETED_TASKS,
TOGGLE_EVENTS_SHOW,
TOGGLE_TASKS_SHOW,
TOGGLE_TASKS_WITH_NO_DUE_DATE,
LOAD_INITIAL_STATE
} = window.__action_constants__;
window.__redux_reducer__ = (s... | arshdkhn1/gsoc17-convert-xul-to-html | src/pages/calendar-print-dialog/reducer.js | JavaScript | mit | 2,532 |
/* eslint class-methods-use-this: "off" */
import { getCourseId, getAssessmentId, getSubmissionId } from 'lib/helpers/url-helpers';
import BaseAssessmentAPI from '../../Base';
export default class ScribingsAPI extends BaseAssessmentAPI {
/**
* Updates a Scribble
*/
update(answerId, data) {
return this.ge... | cysjonathan/coursemology2 | client/app/api/course/Assessment/Submission/Answer/Scribing.js | JavaScript | mit | 574 |
window.main = new (function(){
window.$ = window.jQuery = require('jquery');
this.modal = require('./main.modal.js');
})();
| tomk79/passiflora | src/common/scripts/main.js | JavaScript | mit | 128 |
/*! SWFMini - a SWFObject 2.2 cut down version for webshims
*
* based on SWFObject v2.2 <http://code.google.com/p/swfobject/>
is released under the MIT License <http://www.opensource.org/licenses/mit-license.php>
*/
var swfmini = function() {
var wasRemoved = function(){webshims.error('This method was removed f... | fashionsun/webshim | src/shims/combos/1.js | JavaScript | mit | 30,653 |
'use strict';
const config = require('./config');
module.exports = function(app) {
if (!config.isDev) {
return;
}
const webpack = require('webpack');
const webpackConfig = require('../webpack.config');
const webpackDevMiddleware = require('koa-webpack-dev-middleware');
app.use(webpackDevMiddleware(... | leemony/app-inspector | lib/webpack-dev-middleware.js | JavaScript | mit | 404 |
function LOG(text) {
var t = "";
if (typeof text == 'object' && text !== null) {
for (var a in text) {
t += a+': ';
try { t += text[a]; } catch (e) { t += 'err'; }
t += "\n";
}
} else {
t = text;
}
var consoleService = Components.classes["... | gaborgulyas/tracemail | src/tracemail_1.1_TB/content/ip.js | JavaScript | mit | 3,277 |
/**
* Copyright 2015 aixigo AG
* Released under the MIT license.
* http://laxarjs.org/license
*/
( function( global ) {
'use strict';
global.laxarSpec = {
title: 'AxPopupWidget Specification',
tests: [
'ax-popup-widget.spec'
],
requireConfig: {}
};
} )( this );
| jpommerening/ax-popup-widget | spec/spec_runner.js | JavaScript | mit | 308 |
J3D.Time = {}
J3D.Time.time = 0;
J3D.Time.startTime = 0;
J3D.Time.lastTime = 0;
J3D.Time.deltaTime = 0;
J3D.Time.tick = function() {
var tn = new Date().getTime();
if (J3D.Time.startTime == 0) J3D.Time.startTime = tn;
if (J3D.Time.lastTime != 0) J3D.Time.deltaTime = tn - J3D.Time.lastTime;
J3D.Time.last... | toshok/echojs | test/ios-test-es6/j3d/src/util/Time.js | JavaScript | mit | 724 |
{
function compile(template, options) {
var finalOptions = Object.create(baseOptions);
var errors = [];
var tips = [];
finalOptions.warn = function(msg, tip) {
(tip ? tips : errors).push(msg);
};
if (options) {
if (options.modules) {
finalOptions.modules = (baseOptions.mo... | stas-vilchik/bdd-ml | data/8997.js | JavaScript | mit | 1,028 |
/**
* Created by tvaisanen on 12/24/17.
*/
| tvaisanen/embeddedGraphWidget | proto_v0.04/js/components/nodeForm/test.js | JavaScript | mit | 45 |
// @flow
import { describe, it } from 'flow-typed-test';
import React from 'react';
import { useStore } from 'react-redux';
describe('useStore', () => {
type Action = { type: 'SOME_ACTION' };
type State = { state: string };
// ReduxStore should be imported from 'redux' but we can't do this with this
// test ... | splodingsocks/FlowTyped | definitions/npm/react-redux_v7.x.x/flow_v0.89.x-v0.103.x/test_useStore.js | JavaScript | mit | 1,336 |
module.exports = {
before(client, callback) {
client.globals.calls++;
callback();
},
beforeEach(client, callback) {
client.globals.calls++;
callback();
},
demoTest(client) {
client.url('http://localhost')
.assert.elementPresent('#weblogin')
.assert.elementPresent('#badElement... | beatfactor/nightwatch | test/sampletests/withfailures/sample.js | JavaScript | mit | 709 |
version https://git-lfs.github.com/spec/v1
oid sha256:16e5b686ba13dab5a393effaf179a6382877bb8e2a24eb23938f54afb25761b2
size 812
| yogeshsaroya/new-cdnjs | ajax/libs/mathjax/2.2/jax/output/NativeMML/config.js | JavaScript | mit | 128 |
module.exports = function(sequelize, DataTypes) {
var AutomatedSearchConfig = sequelize.define('automatedSearchConfig', {
id: {
type: DataTypes.INTEGER(11),
allowNull: false,
primaryKey: true,
autoIncrement: true
},
subtitlesEnabled: {
type: DataTypes.BOOLEAN,
allowNul... | dfernandezm/commands-api | models/automatedSearchConfig.js | JavaScript | mit | 1,875 |
// Copyright 2011 Mark Cavage <mcavage@gmail.com> All rights reserved.
var Constants = require('./constants');
var HttpCodes = require('./http_codes');
var RestCodes = require('./rest_codes');
module.exports = {
/**
*
* @param {Object} options:
* - httpCode {Number} HTTP Status code.
*... | isaacs/node-restify | lib/error.js | JavaScript | mit | 1,493 |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } }... | bengimbel/Solstice-React-Contacts-Project | node_modules/react-icons/lib/md/exposure-minus-1.js | JavaScript | mit | 1,123 |
'use strict';
describe('Controller: AddNewCtrl', function () {
// load the controller's module
beforeEach(module('projectApp'));
var AddNewCtrl, scope;
// Initialize the controller and a mock scope
beforeEach(inject(function ($controller, $rootScope) {
scope = $rootScope.$new();
AddNewCtrl = $cont... | luixaviles/javascript-test-automation-angular | project/client/app/add-new/add-new.controller.spec.js | JavaScript | mit | 448 |
'use strict';
var path = require('path');
var strings = require('../../resources/');
var format = require('stringformat');
var builtin = {
basic: {
validate: function(authConfig){
var isValid = authConfig.username && authConfig.password;
return {
isValid: isValid,
message: isVali... | matteofigus/oc | registry/domain/authentication.js | JavaScript | mit | 1,242 |
{
"name": "commas.js",
"url": "https://github.com/harmankang/commas.js.git"
}
| bower/components | packages/commas.js | JavaScript | mit | 82 |
// flow-typed signature: 9de1b343002a7ea8b78f6077056226a0
// flow-typed version: <<STUB>>/husky_v^0.14.3/flow_v0.94.0
/**
* This is an autogenerated libdef stub for:
*
* 'husky'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* commun... | lbryio/lbry-app | flow-typed/npm/husky_vx.x.x.js | JavaScript | mit | 2,338 |
angular.module('schemaForm').directive('schemaValidate', ['sfValidator', '$parse', 'sfSelect',
function(sfValidator, $parse, sfSelect) {
return {
restrict: 'A',
scope: false,
// We want the link function to be *after* the input directives link function so we get access
// the parsed value... | DanielSchaffer/angular-schema-form | src/directives/schema-validate.js | JavaScript | mit | 6,121 |
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var browserProvidersConf = require('./browser-providers.conf.js');
var internalAngularReporter = require('./tools/ka... | dtoroshin/n2oDoc | karma-js.conf.js | JavaScript | mit | 4,287 |
exports.config = {
specs: [
'./*.spec.js',
],
baseUrl: 'http://localhost:3000'
};
| pmfarnsw/portfolioWebsite | e2e-tests/protractor.conf.js | JavaScript | mit | 99 |
/* globals SCUDS */
sc_require('storage/adapter');
/**
* Storage adapter for DOM storage.
*
* @extends SCUDS.LocalStorageAdapter
* @author Mike Ball
* @author Sean Eidemiller
*
* @version 0.1
*/
SCUDS.DOMStorageAdapter = SCUDS.LocalStorageAdapter.extend(
/** @scope SCUDS.DOMStorageAdapter.prototype */ {
... | sakinijino/irich-data-access-extension | demos/todos-portable/frameworks/local/storage/dom.js | JavaScript | mit | 6,887 |
Meteor.methods({
foo: function() {
console.log(Math.PI);
}
});
| uTool-io/meteor-hackathon-2015 | src/app/server/methods/contacts.js | JavaScript | mit | 71 |
import expect from 'expect';
import { createRedux } from '../src';
import * as helpers from './_helpers';
const { defaultText, todoActions, todoStore } = helpers;
const { addTodo } = todoActions;
describe('createRedux', () => {
let redux;
beforeEach(() => {
redux = createRedux({ todoStore });
});
it('s... | aaronjensen/redux | test/createRedux.spec.js | JavaScript | mit | 1,621 |