commit
stringlengths
40
40
old_file
stringlengths
4
264
new_file
stringlengths
4
264
old_contents
stringlengths
0
3.26k
new_contents
stringlengths
1
4.43k
subject
stringlengths
15
624
message
stringlengths
15
4.7k
lang
stringclasses
3 values
license
stringclasses
13 values
repos
stringlengths
5
91.5k
561fae2e6e5786c8e885e0ff9e6ac10ecc606b94
api/models/Event.js
api/models/Event.js
/** * Event.js * * @description :: TODO: You might write a short summary of how this model works and what it represents here. * @docs :: http://sailsjs.org/#!documentation/models */ module.exports = { autoWatch: false, autosubscribe: [], attributes: { room: {model: 'room', required: true...
/** * Event.js * * @description :: TODO: You might write a short summary of how this model works and what it represents here. * @docs :: http://sailsjs.org/#!documentation/models */ module.exports = { autoWatch: false, autosubscribe: [], attributes: { room: {model: 'room', required: true...
Check to make sure haunt hasn't started before starting it.
Check to make sure haunt hasn't started before starting it.
JavaScript
mit
wallaceicy06/Betrayal,wallaceicy06/Betrayal,wallaceicy06/Betrayal
20894c85aea4ea577dd5c5566dd30d7f9acabf8b
server/api/index.js
server/api/index.js
const express = require('express'); const pg = require('pg'); const router = express.Router(); // SSL must be used to connect to the DB const DB_URL = process.env.DATABASE_URL + '?ssl=true'; router.get('/db', (req, res) => { pg.connect(DB_URL, (err, client, done) => { if (err) { console.error(err); ...
const express = require('express'); const pg = require('pg'); const router = express.Router(); // SSL must be used to connect to the DB const DB_URL = process.env.DATABASE_URL + '?ssl=true'; // A catch-all error function generateGenericError() { return { title: "Server Error", description: "There was an er...
Add route to retrieve a single test resource
Add route to retrieve a single test resource Also make API a bit more robust
JavaScript
mit
jmeas/moolah,jmeas/moolah,jmeas/finance-app,jmeas/finance-app
447a892ba1c6f4b6c6d50a0ca94b041a1eccc3e2
src/comanche.js
src/comanche.js
const Hooter = require('hooter') const EVENTS = [ ['init', 'sync'], ['start', 'sync'], ['execute', 'async'], ['execute.batch', 'async'], ['execute.one', 'async'], ['execute.handle', 'async'], ['error', 'sync'], ] module.exports = function comanche(args, plugins) { let lifecycle = new Hooter() if ...
const Hooter = require('hooter') const EVENTS = [ ['init', 'sync'], ['start', 'sync'], ['execute', 'async'], ['execute.batch', 'async'], ['execute.one', 'async'], ['execute.handle', 'async'], ['error', 'sync'], ] module.exports = function comanche(args, plugins) { let lifecycle = new Hooter() if ...
Make every plugin receive a bound version of the lifecycle
Make every plugin receive a bound version of the lifecycle
JavaScript
isc
alex-shnayder/comanche
26179d2b79fd1eba4a9db10cb4a5ce615f6b6c51
src/vendor/core/dom/isNode.js
src/vendor/core/dom/isNode.js
/** * Copyright 2013-2014 Facebook, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
/** * Copyright 2013-2014 Facebook, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
Test that Node is a function before using instanceof on it
Test that Node is a function before using instanceof on it
JavaScript
bsd-3-clause
S0lahart-AIRpanas-081905220200-Service/react,ArunTesco/react,RReverser/react,skyFi/react,billfeller/react,reggi/react,zigi74/react,pandoraui/react,dmitriiabramov/react,jeromjoy/react,nhunzaker/react,ashwin01/react,it33/react,ZhouYong10/react,tomv564/react,orzyang/react,atom/react,arasmussen/react,eoin/react,jmacman007/...
1407ea164be846b079933809649ed8e2f375ae89
src/utils/index.js
src/utils/index.js
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ // @flow /** * Firefox has issues switching quickly between fill style colors, as the CSS color * is fully parse...
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ // @flow /** * Firefox has issues switching quickly between fill style colors, as the CSS color * is fully parse...
Remove outdated comment in FastFillStyle
Remove outdated comment in FastFillStyle
JavaScript
mpl-2.0
mstange/cleopatra,devtools-html/perf.html,devtools-html/perf.html,mstange/cleopatra
2fcd149b6418298ed41be1bb5167ceca681426a1
test/docstrings.js
test/docstrings.js
Date; //doc: Creates JavaScript Date instances which let you work with dates and times. new Date; //doc: Creates JavaScript Date instances which let you work with dates and times. var myalias = Date; myalias; //doc: Creates JavaScript Date instances which let you work with dates and times. // This is variable foo. v...
Date; //doc: Creates JavaScript Date instances which let you work with dates and times. new Date; //doc: Creates JavaScript Date instances which let you work with dates and times. var myalias = Date; myalias; //doc: Creates JavaScript Date instances which let you work with dates and times. // This is variable foo. v...
Check `o.name` docstring ("doc:" was omitted from comment test)
Check `o.name` docstring ("doc:" was omitted from comment test)
JavaScript
mit
emacsmirror/tern,neoclide/tern,neoclide/tern,emallson/tern,neoclide/tern,jgiles/tern,othree/tern,rustemferreira/tern,ryanstewart/tern,marijnh/tern,talyian/tern,ternjs/tern,anandthakker/tern,talyian/tern,talyian/tern,adrianton3/tern,MarcelGerber/tern,messfairy/tern,cdosborn/tern,angelozerr/tern,mcanthony/tern,pombredann...
8ca59435d4e2827171d3428db821da6e70111139
examples/books-AMD/app/views.js
examples/books-AMD/app/views.js
/*global define:false */ define(["underscore", "backbone"], function (_, Backbone) { "use strict"; var views = { BookListItem: Backbone.View.extend({ tagName: 'li', template: _.template("<a href='/#book-details/<%-id%>'><%-title%></a>"), initialize: ...
/*global define:false */ define(["underscore", "backbone"], function (_, Backbone) { "use strict"; var views = { BookListItem: Backbone.View.extend({ tagName: 'li', template: _.template("<a href='/#book-details/<%-id%>'><%-title%></a>"), initialize: ...
Insert missing line break at end-of-file
Insert missing line break at end-of-file
JavaScript
mit
biril/backbone-faux-server
f8a02fad40dde2daa0600e17e3a44dc132b2981c
src/regex/index.js
src/regex/index.js
var main = require('./main'); var extend = require('extend'); var defaultOptions = { definitions: false, quotes: '"' }; module.exports = function (data, options) { var regexOptions = options.parserConfig.regex || {}; var finalOptions = extend(options, regexOptions); var migrated = main(data.toString(), final...
var main = require('./main'); var extend = require('extend'); var defaultOptions = { definitions: false, quotes: '"' }; module.exports = function (data, options) { options = options || {}; options.parserConfig = options.parserConfig || {}; var regexOptions = options.parserConfig.regex || {}; var finalOpti...
Fix options argument in regex parser
Fix options argument in regex parser
JavaScript
mit
apsdehal/qunit-migrate
12d843dc88533f6db7b43bb72d654053a57ca307
test/mysql.test.js
test/mysql.test.js
var assert = require('assert'), Lapidus = require('../index.js'), spawnSync = require('child_process').spawnSync, fs = require('fs'); describe('MySQL', function () { var output; before(function(done) { output = spawnSync('node', ['index.js', '-c', './test/config/lapidus.json'], {timeout: 1...
var assert = require('assert'), Lapidus = require('../index.js'), spawnSync = require('child_process').spawnSync, fs = require('fs'); describe('MySQL', function () { var output; before(function(done) { output = spawnSync('node', ['index.js', '-c', './test/config/lapidus.json'], { timeout: ...
Increase timeout to see if it fixes invalid packet sequence in Travis
Increase timeout to see if it fixes invalid packet sequence in Travis
JavaScript
mit
JarvusInnovations/lapidus
5f98bffa11b065ac1b075d30b0ce5be2fe453a2b
app/scripts/main.js
app/scripts/main.js
(function(window, document, undefined) { "use strict"; require.config({ paths: { // Libraries "jquery": "../../libraries/jquery/jquery", "hljs": "../../libraries/highlightjs/highlight.pack", // /Libraries // Application "app": "app", // /Application }, shim: ...
require.config({ paths: { // Libraries "jquery": "../../libraries/jquery/jquery", "hljs": "../../libraries/highlightjs/highlight.pack", // /Libraries }, shim: { } }); require(["jquery", "app"], function( $, App) { var app = App.create({ name: "voxel", useHighlight: true }); ...
Remove IIFE and app module path.
Remove IIFE and app module path.
JavaScript
mit
rishabhsrao/voxel,rishabhsrao/voxel,rishabhsrao/voxel
c90523eae80f211105fd7e2905a549455a544716
src/firewyrm.js
src/firewyrm.js
if (typeof define !== 'function') { var define = require('amdefine')(module); } define(['./deferred', './tools'], function(Deferred, tools) { return { asVal: asVal, create: create }; function create(wyrmhole, mimetype, args) { var send = Deferred.fn(wyrmhole, 'sendMessage'); ...
if (typeof define !== 'function') { var define = require('amdefine')(module); } define(['./deferred', './tools'], function(Deferred, tools) { return { asVal: asVal, create: create }; function create(wyrmhole, mimetype, args) { var send = Deferred.fn(wyrmhole, 'sendMessage'); ...
Make queenling.destroy non-writable, non-enumerable, non-configurable
Make queenling.destroy non-writable, non-enumerable, non-configurable
JavaScript
mit
gradecam/firewyrm-js,gradecam/firewyrm-js
c6856449d0b69e0199e842458028d04f51668e36
src/components/NotFoundPage.js
src/components/NotFoundPage.js
import React from 'react'; import Image from './Image'; import { Link } from 'react-router'; const NotFoundPage = () => { const locations = [ 'Sahasrahla\'s pocket', 'sick kid\'s bed', 'Hera basement', 'king\'s tomb' ]; const location = locations[Math.floor(Math.random() * (locations.length))];...
import React from 'react'; import Image from './Image'; import { Link } from 'react-router'; const NotFoundPage = () => { const sahanames = [ 'sahasralah', 'sabotaging', 'sacahuista', 'sacahuiste', 'saccharase', 'saccharide', 'saccharify', 'saccharine', 'saccharins', 'sacerdotal', 'sackcloths', 'salmonella'...
Add Sahasrahla's nicknames to the 404 page
Add Sahasrahla's nicknames to the 404 page
JavaScript
mit
easymac/alttp-map-tracker,easymac/alttp-map-tracker
381b357f0bf25d9f345f70d3b8c55a16e4fac166
src/components/html-message.js
src/components/html-message.js
/* global React */ /* jslint esnext:true */ import escape from '../escape'; import IntlMixin from '../mixin'; function escapeProps(props) { return Object.keys(props).reduce(function (escapedProps, name) { var value = props[name]; // TODO: Can we force string coersion here? Or would that not be ne...
/* global React */ /* jslint esnext:true */ import escape from '../escape'; import IntlMixin from '../mixin'; function escapeProps(props) { return Object.keys(props).reduce(function (escapedProps, name) { var value = props[name]; // TODO: Can we force string coersion here? Or would that not be ne...
Add support for configured tagName to HTMLMessage
Add support for configured tagName to HTMLMessage
JavaScript
bsd-3-clause
btd/react-intl,ryan1234/react-intl,btd/react-intl,CumpsD/react-intl,Jonekee/react-intl,hukka/react-intl,keppelen/react-intl,keppelen/react-intl,ryan1234/react-intl,mattikl/react-intl,ericf/react-intl,CumpsD/react-intl,baer/react-intl,tsironis/react-intl,Vungle/react-intl,mattikl/react-intl,tsironis/react-intl,tsironis/...
28de0bd2815c0abe4a9cef56d4707f78ede3ee1f
client/app/app.js
client/app/app.js
// we don't need to use a variable // or the from keyword when importing a css/styl file // thanks the the styles loader it gets added as a // <style> tag in the head by default but can be changed import 'normalize.css'; import {appDirective} from './app.directive'; // the angular libs are just common js // and therefo...
// we don't need to use a variable // or the from keyword when importing a css/styl file // thanks the the styles loader it gets added as a // <style> tag in the head by default but can be changed import 'normalize.css'; import {appDirective} from './app.directive'; // the angular libs are just common js // and therefo...
Add a service to get the posts
Add a service to get the posts
JavaScript
mit
kbeloborodko/angular-blog,kbeloborodko/angular-blog
49f8abc62323c6384345e370a5330e477cc1eb64
src/action-types.js
src/action-types.js
// This function generates the five statuses from a single CRUD action. // For instance, you'd probably pass "CREATE", "READ", "UPDATE", or "DELETE" // as `crudAction`. const mapConstant = (resourceName, crudAction) => ({ [`${crudAction}_${resourceName}`]: `${crudAction}_${resourceName}`, [`${crudAction}_${resource...
// This function generates the five statuses from a single CRUD action. // For instance, you'd probably pass "CREATE", "READ", "UPDATE", or "DELETE" // as `crudAction`. const mapConstant = (crudAction) => ({ [`${crudAction}_RESOURCES`]: `${crudAction}_RESOURCES`, [`${crudAction}_RESOURCES_SUCCEED`]: `${crudAction}_...
Simplify action type generation code
Simplify action type generation code
JavaScript
mit
jmeas/resourceful-redux,jmeas/resourceful-redux
98e25d04c5fd4541a66cae07fe8043ba5605676a
express/models/rule_parser.js
express/models/rule_parser.js
// L-System Rule Parser function RuleParser(str) { this.str = str; this.rules = {}; this.parse = function() { var c, d; var env = 0; var rule_str; var variable; for (var i = 0; i < this.str.length; i++) { c = this.str[i]; if (i > 0) { d = this.str[i-1]; } else { d = null;...
// L-System Rule Parser function RuleParser(str) { this.str = str; this.rules = {}; this.parse = function() { var c, d; var env = 0; var rule_str; var variable; var variable_regex = /[A-Z]/; var control_regex = /[\+-\[\]]/; for (var i = 0; i < this.str.length; i++) { c = this....
Fix rule parser to allow certain rules
Fix rule parser to allow certain rules Specifically, rules that have control characters as their "variable" (thse should always be "constant" rules). An example is (+ -> +).
JavaScript
bsd-3-clause
dwjackson/html_fractals
e68591417bc299995bdb41e50dc1e6e67995e9a7
blocks/sms/index.js
blocks/sms/index.js
module.exports = { className: 'sms', template: require('./index.html'), data: { name: 'SMS', icon: '/images/blocks_sms.png', attributes: { value: { label: 'Phone #', type: 'string', value: '+18005555555' }, ...
module.exports = { className: 'sms', template: require('./index.html'), data: { name: 'SMS', icon: '/images/blocks_sms.png', attributes: { value: { label: 'Phone #', type: 'string', value: '+18005555555' }, ...
Use standard sms: format rather than MozActivity for SMS brick.
Use standard sms: format rather than MozActivity for SMS brick.
JavaScript
mpl-2.0
rodmoreno/webmaker-android,codex8/webmaker-app,bolaram/webmaker-android,gvn/webmaker-android,mozilla/webmaker-android,adamlofting/webmaker-android,alanmoo/webmaker-android,secretrobotron/webmaker-android,thejdeep/webmaker-app,bolaram/webmaker-android,mozilla/webmaker-android,k88hudson/webmaker-android,k88hudson/webmake...
1be130e89f07ac9d28ddc133ba9f7d335e4e83e5
src/ext/Function.js
src/ext/Function.js
/* ================================================================================================== Lowland - JavaScript low level functions Copyright (C) 2012 Sebatian Fastner ================================================================================================== */ /** * #require(ext.sugar.Object) ...
/* ================================================================================================== Lowland - JavaScript low level functions Copyright (C) 2012 Sebatian Fastner ================================================================================================== */ /** * #require(ext.sugar.Object) ...
Rename delay to lowDelay as original name conflicts with Prototype
Rename delay to lowDelay as original name conflicts with Prototype
JavaScript
mit
fastner/lowland,fastner/lowland
cee19b9e8c5c9f3901aa061c066cffe8d37bb88a
app/controllers/patient-view.js
app/controllers/patient-view.js
var express = require('express'); var router = express.Router(); var pipe = require('../transformers/pipe'); router.post('/\\$cds-hook', function(req, res, next) { var context = { requestParams: req.query || {}, language: "fi", nation: "fi", cards: ["reminders", "guidelink", "cmrli...
var express = require('express'); var router = express.Router(); var pipe = require('../transformers/pipe'); router.post('/\\$cds-hook', function(req, res, next) { var context = { requestParams: req.query || {}, language: "en_US", nation: "US", cards: ["reminders", "guidelink", "cm...
Change language to en_US for patient view API
Change language to en_US for patient view API
JavaScript
mit
ebmeds/ebmeds-fhir,ebmeds/ebmeds-fhir
e4445e5850d68d02059c3280fe29aa1f70690a1b
config/express.js
config/express.js
'use strict'; // Initialize express. const config = {}; // Port config.port = process.env.LISTEN_PORT || 5050; module.exports = config;
'use strict'; // Initialize express. const config = {}; // Port config.port = process.env.PORT || 5050; module.exports = config;
Use PORT env variable for compatibility with Heroku
Use PORT env variable for compatibility with Heroku
JavaScript
mit
DoSomething/blink,DoSomething/blink
8a841f7c7501c9085f32a3c08c448f6f102737d2
test/await-test.js
test/await-test.js
require('buster').spec.expose(); var expect = require('buster').expect; var await = require('../lib/combinators/await').await; var observe = require('../lib/combinators/observe').observe; var Stream = require('../lib/Stream'); var resolve = require('../lib/promises').Promise.resolve; var sentinel = { value: 'sentinel...
require('buster').spec.expose(); var expect = require('buster').expect; var await = require('../lib/combinators/await').await; var delay = require('../lib/combinators/timed').delay; var observe = require('../lib/combinators/observe').observe; var reduce = require('../lib/combinators/reduce').reduce; var Stream = requi...
Test that await preserves event order
Test that await preserves event order
JavaScript
mit
mostjs/core,mostjs/core,axefrog/most,axefrog/core,nissoh/core,cujojs/most
5d667bf9f7df2f07ec3bac215e23f5621efe739b
app/scripts/src/content/item.js
app/scripts/src/content/item.js
'use strict'; /* This was necessary to priorize Star Wars: The Clone Wars (2008) over Star Wars: Clone Wars (2003). I left this object because it could be useful for other movies/shows */ var fullTitles = { 'Star Wars: The Clone Wars': '"Star Wars: The Clone Wars"', 'The Office (U.S.)': 'The Office (US)', 'The...
'use strict'; /* This was necessary to priorize Star Wars: The Clone Wars (2008) over Star Wars: Clone Wars (2003). I left this object because it could be useful for other movies/shows */ var fullTitles = { 'Star Wars: The Clone Wars': '"Star Wars: The Clone Wars"', 'The Office (U.S.)': 'The Office (US)', 'The...
Add Young and Hungry and The 100 to fullTitles search
Add Young and Hungry and The 100 to fullTitles search
JavaScript
mit
MrMamen/traktflix,tegon/traktflix,tegon/traktflix,MrMamen/traktflix
da8c91153b1eb24b14927ad8b49f4ebf5465340d
test/karma.conf.js
test/karma.conf.js
module.exports = function (config) { var CI = process.env.CI; config.set({ basePath: '..', frameworks: ['mocha', 'chai'], browsers: CI ? ['PhantomJS'] : ['Chrome', 'Firefox', 'IE'], files: [ 'http://jdataview.github.io/dist/jdataview.js', 'dist/browser/jbinary.js', 'test/karma.mocha.conf.js', 'te...
module.exports = function (config) { var CI = process.env.CI; config.set({ basePath: '..', frameworks: ['mocha', 'chai'], browsers: CI ? ['PhantomJS', 'Firefox'] : ['Chrome', 'Firefox', 'IE'], files: [ 'http://jdataview.github.io/dist/jdataview.js', 'dist/browser/jbinary.js', 'test/karma.mocha.conf....
Include Firefox for CI testing.
Include Firefox for CI testing.
JavaScript
mit
dark5un/jBinary,jDataView/jBinary,dark5un/jBinary,npmcomponent/jDataView-jBinary
edf7ecdcc5d6a2bd6268be7b9bf213edb4baa9ca
jest/moveSnapshots.js
jest/moveSnapshots.js
const fs = require('fs') const glob = require('glob') const outputDirectory = [process.env.CIRCLE_ARTIFACTS, 'snapshots'] .filter(x => x) .join('/') const createDir = dir => { const splitPath = dir.split('/') splitPath.reduce((path, subPath) => { if (!fs.existsSync(path)) { console.log(`Create direc...
const fs = require('fs') const glob = require('glob') const outputDirectory = [process.env.$CIRCLE_ARTIFACTS, 'snapshots'] .filter(x => x) .join('/') const createDir = dir => { const splitPath = dir.split('/') splitPath.reduce((path, subPath) => { if (!fs.existsSync(path)) { console.log(`Create dire...
Fix CircleCI artifacts env path
Fix CircleCI artifacts env path
JavaScript
mit
Ciunkos/ciunkos.com
8f290015079b2c2dcf46077afc75c19b6dad655c
src/notifiers/slack/webtask.js
src/notifiers/slack/webtask.js
'use strict'; var util = require('util'); /** * @param {secret} SLACK_WEBHOOK_URL * @param {secret} SLACK_CHANNEL_NAME */ module.exports = function(ctx, cb) { var params = ctx.body; if (!ctx.secrets.SLACK_WEBHOOK_URL || !ctx.secrets.SLACK_CHANNEL_NAME) { return cb(new Error('"SLACK_WEBHOOK_URL" an...
'use strict'; const assert = require('assert'); const util = require('util'); /** * @param {secret} SLACK_WEBHOOK_URL * @param {secret} SLACK_CHANNEL_NAME * @param JSON body * * body: [{name: 'GitHub', accounts: ['john', 'mark']}] */ module.exports = (ctx, cb) => { assert(ctx.secrets.SLACK_CHANNEL_NAME, '...
Update Slack notifier to use new data format.
Update Slack notifier to use new data format.
JavaScript
mit
radekk/webtask-mfa-monitor,radekk/webtask-tfa-monitor,radekk/mfa-monitor
ea2f8dce2e4c331f69aaca71823e12593ad25d6f
ui/main.js
ui/main.js
// Blank the document so the 404 page doesn't show up visibly. document.documentElement.style.display = 'none'; // Can't use DOMContentLoaded, calling document.write or document.close inside it from // inside an extension causes a crash. onload = function() { document.write("<!DOCTYPE html><script src='" + resolv...
// Blank the document so the 404 page doesn't show up visibly. document.documentElement.style.display = 'none'; // Can't use DOMContentLoaded, calling document.write or document.close inside it from // inside an extension causes a crash. onload = function() { document.write( "<!DOCTYPE html>" + "<...
Add a meta viewport. The app doesn't quite look right on mobile, but at least this paves the way.
Add a meta viewport. The app doesn't quite look right on mobile, but at least this paves the way.
JavaScript
bsd-3-clause
esprehn/chromium-codereview,esprehn/chromium-codereview
6b3018fdece04e9c8328a4609ab34c20ad012598
test/karma.conf.js
test/karma.conf.js
module.exports = function (config) { config.set({ frameworks: ['browserify', 'mocha'], reporters: ['mocha'], preprocessors: { 'build/karma.js': ['browserify'] }, browserify: { debug: true }, client: { mocha: { timeout: 10000 } }, files: ['build/karma.js'], colors: true, singleRun: true...
module.exports = function (config) { config.set({ frameworks: ['browserify', 'mocha'], reporters: ['mocha'], preprocessors: { 'build/karma.js': ['browserify'] }, browserify: { debug: true }, client: { mocha: { timeout: 30000 } }, files: ['build/karma.js'], colors: true, singleRun: true...
Increase timeout for Travis test
Increase timeout for Travis test
JavaScript
bsd-3-clause
jupyter/jupyter-js-services,jupyterlab/services,blink1073/services,blink1073/jupyter-js-services,minrk/jupyter-js-services,jupyter/jupyter-js-services,blink1073/jupyter-js-services,blink1073/services,blink1073/services,minrk/jupyter-js-services,blink1073/jupyter-js-services,blink1073/services,jupyterlab/services,jupyte...
7f4821f63a9eb0679191b0cae6057b62ec4b0572
src/vdom/dom.js
src/vdom/dom.js
function createElement (el) { const realNode = document.createElement(el.tagName); if (el.attributes) { for (let a = 0; a < el.attributes.length; a++) { const attr = el.attributes[a]; const name = attr.name; const value = attr.value; if (!value) { continue; } if (n...
function createElement (el) { const realNode = document.createElement(el.tagName); if (el.attributes) { for (let a = 0; a < el.attributes.length; a++) { const attr = el.attributes[a]; const name = attr.name; const value = attr.value; if (!value) { continue; } if (n...
Add event automation for on prefixes.
Add event automation for on prefixes.
JavaScript
mit
skatejs/dom-diff
9eb190f80faceee9a431925207049fcbc5cf0a38
src/react-web3/Web3Provider.js
src/react-web3/Web3Provider.js
import React, { Component } from 'react'; import PropTypes from 'prop-types' class Web3Provider extends Component { render() { if (window.web3) { return this.props.children } return <this.props.web3UnavailableScreen /> } getChildContext() { return { web3: window.web3 } } } We...
import React, { Component } from 'react' import PropTypes from 'prop-types' import Web3 from 'web3' const ONE_SECOND = 1000; class Web3Provider extends Component { constructor(props, context) { super(props, context) this.state = { selectedAccount: null } this.web3 = null this.interval = ...
Add onChangeAccount callback and selectedAccount context variable
Add onChangeAccount callback and selectedAccount context variable
JavaScript
mit
oraclesorg/ico-wizard,oraclesorg/ico-wizard,oraclesorg/ico-wizard
9790f7aa9215185dbec94f20187962e0bb0af7b6
app/card/card_service.js
app/card/card_service.js
app.service("cardService", function() { this.getCardUrl = function(name) { return "http://gatherer.wizards.com/Pages/Card/Details.aspx?name=" + name; }; this.getCardImage = function(name) { return "http://gatherer.wizards.com/Handlers/Image.ashx?name=" + name + "&type=card&.jpg"; }; });
app.service("cardService", function() { this.getCardUrl = function(name) { name = this.sanitizeName_(name); return "http://gatherer.wizards.com/Pages/Card/Details.aspx?name=" + name; }; this.getCardImage = function(name) { name = this.sanitizeName_(name); return "http://gatherer.wizards.com/Han...
Fix card image/links that have Æ in the name
Fix card image/links that have Æ in the name
JavaScript
mit
kevinpang/edhrec-site
63d03c065b816bedace4756350fa4c49b6da18b1
test/message.js
test/message.js
var test = require('tape') var error = require('../') test('message', function(t) { t.plan(3) var MyError = error('MyError') t.equals(MyError().name, 'MyError', 'name should be correct') t.equals(MyError('rawr').message, 'rawr', 'message should be correct') t.equals(MyError('meh').stack.split('\n')[0], 'MyE...
var test = require('tape') var error = require('../') test('message', function(t) { t.plan(3) var MyError = error('MyError') t.equals(MyError().name, 'MyError', 'name should be correct') t.equals(MyError('rawr').message, 'rawr', 'message should be correct') try { throw new MyError('meh') } catch (er...
Throw the error so IE sets the stack property
Throw the error so IE sets the stack property
JavaScript
mit
andrezsanchez/custom-error
8efe68d397b3416d196009178e26c46194c81b27
tests/test.config.circle-ci.js
tests/test.config.circle-ci.js
module.exports = { store_url: 'http://localhost:8080', account_user: 'test:tester', account_password: 'testing', account_name: 'AUTH_test', container_name: 'test_container', object_name: 'test_object', segment_container_name: 'segment_test_container', segment_object_name: 'segment_test_o...
module.exports = { store_url: 'http://localhost:8080', account_user: 'test', account_password: 'testing', account_name: 'tester', container_name: 'test_container', object_name: 'test_object', segment_container_name: 'segment_test_container', segment_object_name: 'segment_test_object', ...
Fix circleci test config file
Fix circleci test config file
JavaScript
mit
Tezirg/os2
b5a5dcf506c4be39afdc9a9a0700272f9807efaf
test/unit/index.js
test/unit/index.js
const testsContext = require.context('./specs', true, /\.spec$/); testsContext.keys().forEach(testsContext); const srcContext = require.context('../../src', true, /^\/(?!index(\.js)?$)/); srcContext.keys().forEach(srcContext);
// mock passive event listener support and upsupport (() => { const originAddListener = window.addEventListener; let flag; window.addEventListener = (...args) => { // try to read passive property and only read once time if it is accessible if (!flag && args[2] && args[2].passive) { flag = false; ...
Improve unit tests for passive event support logic
Improve unit tests for passive event support logic
JavaScript
mit
PeachScript/vue-infinite-loading,PeachScript/vue-infinite-loading
7aafe74a946594994027c6439c18135291aad82d
lib/tape/test.js
lib/tape/test.js
'use strict'; // MODULES // var test = require( 'tape' ); var lib = require( './../lib' ); // TESTS // test( 'main export is a function', function test( t ) { t.ok( typeof lib === 'function', 'main export is a function' ); t.end(); });
'use strict'; // MODULES // var tape = require( 'tape' ); var lib = require( './../lib' ); // TESTS // tape( 'main export is a function', function test( t ) { t.ok( typeof lib === 'function', 'main export is a function' ); t.end(); });
Update tape template so that tape is assigned to a variable of the same name
Update tape template so that tape is assigned to a variable of the same name
JavaScript
mit
kgryte/test-snippet
d3589b80adc8d1f358e297d880cf6404bae469c8
lib/ui/events.js
lib/ui/events.js
exports = module.exports = function (UI) { var setHistoryHeight = function () { // Set the history component dynamic height UI.components.history.height = UI.screen.height - UI.components.input.height; }; UI.screen.on('prerender', function () { setHistoryHeight(); }); UI.screen.on('resize', fun...
exports = module.exports = function (UI) { var setHistoryHeight = function () { // Set the history component dynamic height UI.components.history.height = UI.screen.height - UI.components.input.height; }; UI.screen.on('prerender', function () { setHistoryHeight(); }); UI.screen.on('resize', fun...
Add vi scrolling keys to scrolling key-binding
Add vi scrolling keys to scrolling key-binding
JavaScript
mit
KillerDesigner/gitter-cli,RodrigoEspinosa/gitter-cli,leohmoraes/gitter-cli,Acidburn0zzz/gitter-cli,juliosueiras/gitter-cli
49078f5d1c8bfd2510ba39414279dd1756dff22e
js/templates.js
js/templates.js
var Templates = {}; Templates.ItemListingTemplate = _.template('\ <div class="item media">\ <img class="pull-left" src="<%= imageUrl %>" />\ <div class="media-body">\ <h3 class="media-heading"><%= name %></h3>\ <div class="item-location"><strong>Location:</strong> <%= location %></div>\ <div class="item-...
var Templates = {}; Templates.ItemListingTemplate = _.template('\ <div class="item media">\ <img class="pull-left" src="<%= imageUrl %>" />\ <div class="media-body">\ <h3 class="media-heading"><%= name %></h3>\ <div class="item-location"><span class="glyphicon glyphicon-globe"></span> <%= location %></div>\...
Add icons to item template.
Add icons to item template.
JavaScript
mit
burnflare/CrowdBuy,burnflare/CrowdBuy
9d9d48d9df942fe3697726351791e3ccd02cce40
lib/dependency-theme-import.js
lib/dependency-theme-import.js
var ThemingContext = require('./ThemingContext'); var lessParser = require('./less-parser'); var logger = require('raptor-logging').logger(module); module.exports = function create(config) { return { properties: { path: 'string' }, // we don't actually produce JavaScript or CS...
var ThemingContext = require('./ThemingContext'); var lessParser = require('./less-parser'); var logger = require('raptor-logging').logger(module); module.exports = function create(config) { return { properties: { path: 'string' }, // we don't actually produce JavaScript or CS...
Store resolved path in path property (don't use separate resolvedPath property)
Store resolved path in path property (don't use separate resolvedPath property)
JavaScript
apache-2.0
lasso-js/lasso-theming
9b123e9cca657c4167d91526a768e90654b514bd
src/main.js
src/main.js
/* @flow */ import React from 'react'; import ReactDOM from 'react-dom'; import createBrowserHistory from 'history/lib/createBrowserHistory'; import { useRouterHistory } from 'react-router'; import { syncHistoryWithStore } from 'react-router-redux'; import makeRoutes from './routes'; import Root from './containers/Root...
/* @flow */ import React from 'react'; import ReactDOM from 'react-dom'; import makeRoutes from './routes'; import Root from './containers/Root'; import configureStore from './redux/configureStore'; // Create redux store and sync with react-router-redux. We have installed the // react-router-redux reducer under the ke...
Remove browser history for now
Remove browser history for now ...since it was playing up on github pages
JavaScript
mit
felixSchl/try-neodoc,felixSchl/try-neodoc
d1e99478d6fc5b296b511e389da0352372262fa4
lib/configuration.js
lib/configuration.js
'use babel'; export default { "prerelease": { "title": "Level of prerelease", "description": "Set the level maximum to check for the libraries versions", "type": "string", "default": "stable", "enum": ["stable", "rc", "beta", "alpha", "dev"] }, "info": { "title": "Display information", ...
'use babel'; export default { "prerelease": { "title": "Level of prerelease", "description": "Set the level maximum to check for the libraries versions", "type": "string", "default": "stable", "enum": ["stable", "rc", "beta", "alpha", "dev"] }, "info": { "title": "Display information", ...
Set the default value of the checkInstalled option to false
Set the default value of the checkInstalled option to false
JavaScript
mit
kilian-ito/atom-npm-outdated
4b87a36448f78a70138dcd8110074ac518fb9dbe
lib/policies/jwt/extractors.js
lib/policies/jwt/extractors.js
const passportJWT = require('passport-jwt'); module.exports = { 'header': passportJWT.ExtractJwt.fromHeader, 'body': passportJWT.ExtractJwt.fromBodyField, 'query': passportJWT.ExtractJwt.fromUrlQueryParameter, 'authScheme': passportJWT.ExtractJwt.fromAuthHeaderWithScheme, 'authBearer': passportJWT.ExtractJwt...
const passportJWT = require('passport-jwt'); module.exports = { 'header': passportJWT.ExtractJwt.fromHeader, 'query': passportJWT.ExtractJwt.fromUrlQueryParameter, 'authScheme': passportJWT.ExtractJwt.fromAuthHeaderWithScheme, 'authBearer': passportJWT.ExtractJwt.fromAuthHeaderAsBearerToken };
Remove body as an extractor
Remove body as an extractor
JavaScript
apache-2.0
ExpressGateway/express-gateway
317c217910049983a56ea8c03c216356fb747040
lib/loggly/config.js
lib/loggly/config.js
/* * config.js: Configuration information for your Loggly account. * This information is only used for require('loggly')./\.+/ methods * * (C) 2010 Nodejitsu Inc. * MIT LICENSE * */ // // function createConfig (defaults) // Creates a new instance of the configuration // object based on default ...
/* * config.js: Configuration information for your Loggly account. * This information is only used for require('loggly')./\.+/ methods * * (C) 2010 Nodejitsu Inc. * MIT LICENSE * */ // // function createConfig (defaults) // Creates a new instance of the configuration // object based on default ...
Add support for alternate URLs for input logging (aka ec2)
Add support for alternate URLs for input logging (aka ec2)
JavaScript
mit
mavrick/node-loggly,nodejitsu/node-loggly,dtudury/node-loggly,mafintosh/node-loggly,rosskukulinski/node-loggly,freeall/node-loggly
68e60dc5b22ab3aa668ea1a841037eac10ea5987
lib/models/errors.js
lib/models/errors.js
ErrorModel = function (appId) { var self = this; this.appId = appId; this.errors = {}; this.startTime = Date.now(); } _.extend(ErrorModel.prototype, KadiraModel.prototype); ErrorModel.prototype.buildPayload = function() { var metrics = _.values(this.errors); this.startTime = Date.now(); this.errors = {...
ErrorModel = function (appId) { var self = this; this.appId = appId; this.errors = {}; this.startTime = Date.now(); } _.extend(ErrorModel.prototype, KadiraModel.prototype); ErrorModel.prototype.buildPayload = function() { var metrics = _.values(this.errors); this.startTime = Date.now(); this.errors = {...
Use e.message as error name
Use e.message as error name
JavaScript
mit
chatr/kadira,meteorhacks/kadira
906cd1da17461c8a71ecefb68462db7628224fd2
lib/ping-sys.js
lib/ping-sys.js
/** * LICENSE MIT * (C) Daniel Zelisko * http://github.com/danielzzz/node-ping * * a simple wrapper for ping * Now with support of not only english Windows. * */ //system library var sys = require('util'), cp = require('child_process'), os = require('os'); // Promise implementation var ping = require('./ping-...
'use strict'; /** * LICENSE MIT * (C) Daniel Zelisko * http://github.com/danielzzz/node-ping * * a simple wrapper for ping * Now with support of not only english Windows. * */ // Promise implementation var ping = require('./ping-promise'); // TODO: // 1. Port round trip time to this callback // 2. However, it may br...
Add TODO comment and fix warning from eslint
Add TODO comment and fix warning from eslint
JavaScript
mit
danielzzz/node-ping
902e3846be5c6c87cfec171a9ae513b7a72d72a0
list-and-run.js
list-and-run.js
'use strict'; const addLineNumbers = require('add-line-numbers'); const spawnSync = require('child_process').spawnSync; const fs = require('fs'); const path = '/tmp/te'; module.exports = function listAndRun() { var text = []; const listing = fs.readFileSync(path, 'utf8'); if (listing.length > 0) { ...
'use strict'; const addLineNumbers = require('add-line-numbers'); const spawnSync = require('child_process').spawnSync; const fs = require('fs'); const path = '/tmp/te'; module.exports = function listAndRun() { let readFileAsync = function(filename, encoding) { return new Promise(function(resolve, reject)...
Change file IO in listAndRun to be asynchronous
Change file IO in listAndRun to be asynchronous
JavaScript
mit
gudnm/te
6e2386f38b8296f00a36de7f2041a6c3c43abe9f
app/main.js
app/main.js
var counter; function setup() { var canvas = createCanvas(400, 400); canvas.parent('play'); counter = new Counter(); counter.new(); } function draw() { background(233, 0, 0); counter.draw(); } function keyTyped() { if (key === ' ') { counter.new(); } } function Counter () { ...
var counter; function setup() { var canvas = createCanvas(400, 400); canvas.parent('play'); counter = new Counter(); counter.new(); } function draw() { background(233, 0, 0); counter.draw(); } function keyTyped() { if (key === ' ') { counter.new(); } } function touchStarted()...
Add touch support for the redraw of the circles
Add touch support for the redraw of the circles
JavaScript
mit
nemesv/playfive,nemesv/playfive
bcd5517032a7e46a98f90f496967a2ce22bd3b89
webpack/modules/babelPreset.js
webpack/modules/babelPreset.js
const { isProd, isDev } = require('../env'); module.exports = (config) => { const options = { babelrc: false, compact: true, cacheDirectory: `${__dirname}/.babelCache`, presets: [ ['env', { loose: true, modules: false, exclude: ['transform-regenerator'], }], ...
const { isProd, isDev } = require('../env'); module.exports = (config) => { const options = { babelrc: false, compact: true, cacheDirectory: `${__dirname}/.babelCache`, presets: [ ['env', { loose: true, modules: false, useBuiltIns: false, exclude: ['transform-re...
Add targets option to babel configuration
Add targets option to babel configuration
JavaScript
mit
AlexMasterov/webpack-kit,AlexMasterov/webpack-kit
aa4808300be58b9508178b2b7ede4212eb86ac13
lib/store-init.js
lib/store-init.js
var SimpleStore = require('fh-wfm-simple-store'), config = require('./config.js'); /** * Creates and initializes a store to be used by the app modules. * @param {String} dataSetId String used as an identifier for the store * @param {Object|null} seedData Object to be saved in the store initially * @param {Obj...
var SimpleStore = require('fh-wfm-simple-store'), config = require('./config.js'); /** * Creates and initializes a store to be used by the app modules. * @param {String} dataSetId String used as an identifier for the store * @param {Object|null} seedData Object to be saved in the store initially * @param {Obj...
Initialize array store with an empty array
Initialize array store with an empty array
JavaScript
mit
feedhenry-raincatcher/raincatcher-demo-cloud
3ccbabddc220088addfe6b059a4468ba96c2a09c
www/js/fonts.js
www/js/fonts.js
var urls = [ 'http://s.npr.org/templates/css/fonts/GothamSSm.css', 'http://s.npr.org/templates/css/fonts/Gotham.css' ]; if (window.location.protocol == "https:") { urls = [ 'https://secure.npr.org/templates/css/fonts/GothamSSm.css', 'https://secure.npr.org/templates/css/fonts/Gotham.css' ...
var urls = [ 'http://s.npr.org/templates/css/fonts/GothamSSm.css', 'http://s.npr.org/templates/css/fonts/Gotham.css', 'http://s.npr.org/templates/css/fonts/Knockout.css' ]; if (window.location.protocol == "https:") { urls = [ 'https://secure.npr.org/templates/css/fonts/GothamSSm.css', '...
Add Knockout to font loader
Add Knockout to font loader
JavaScript
mit
nprapps/austin,nprapps/austin,nprapps/austin,nprapps/austin
5a2a56e4b6a678ae96fe4b377c0d7922e0963118
test/libs/utils/metadata.spec.js
test/libs/utils/metadata.spec.js
'use strict'; // Load chai const chai = require('chai'); const expect = chai.expect; // Load our module const utils = require('../../../app/libs/utils'); describe('Function "metadata"', () => { it('should export a function', () => { expect(utils.metadata).to.be.a('function'); }); });
'use strict'; // Load requirements const path = require('path'); // Load chai const chai = require('chai'); const expect = chai.expect; chai.use(require('chai-as-promised')); // Load our module const utils = require('../../../app/libs/utils'); describe('Function "metadata"', () => { it('should export a function'...
Add test coverage to utils metadata
Add test coverage to utils metadata
JavaScript
apache-2.0
transmutejs/core
e58037f834b0b34c01456d9e01fa493955e3665b
.template-lintrc.js
.template-lintrc.js
/* eslint-env node */ 'use strict'; module.exports = { extends: 'recommended', rules: { 'html-comments': false } };
/* eslint-env node */ 'use strict'; module.exports = { extends: 'recommended', rules: { 'no-html-comments': false } };
Fix deprecated template lint runle
Fix deprecated template lint runle
JavaScript
mit
jelhan/ember-bootstrap,kaliber5/ember-bootstrap,jelhan/ember-bootstrap,kaliber5/ember-bootstrap
fb815f7573e040d032b894069e10fb4e0a61dd42
.eslintrc.js
.eslintrc.js
module.exports = { 'env': { 'browser': true, 'es6': true, 'node': true, }, 'extends': [ 'eslint:recommended', 'plugin:react/recommended', 'plugin:import/errors', 'plugin:import/warnings', ], 'installedESLint': true, 'parserOptions': { 'ecmaVersion': 7, 'ecmaFeatures': { ...
module.exports = { 'env': { 'browser': true, 'es6': true, 'node': true, }, 'extends': [ 'eslint:recommended', 'plugin:react/recommended', 'plugin:import/errors', 'plugin:import/warnings', ], 'installedESLint': true, 'parserOptions': { 'ecmaVersion': 7, 'ecmaFeatures': { ...
Update eslint for es6 import
Update eslint for es6 import
JavaScript
mit
poooi/plugin-battle-detail
3497efd63d2c0af9ffa99c67a4b33cf60988da1b
providers/nmea0183-signalk.js
providers/nmea0183-signalk.js
/* * Copyright 2014-2015 Fabian Tollenaar <fabian@starting-point.nl> * * 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...
/* * Copyright 2014-2015 Fabian Tollenaar <fabian@starting-point.nl> * * 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...
Add try-catch as safeguard against potentionally misbehaving parser
Add try-catch as safeguard against potentionally misbehaving parser
JavaScript
apache-2.0
lsoltero/signalk-server-node,SignalK/signalk-server-node,SignalK/signalk-server-node,sbender9/signalk-server-node,jaittola/signalk-server-node,webmasterkai/signalk-server-node,sbender9/signalk-server-node,jaittola/signalk-server-node,SignalK/signalk-server-node,mauroc/signalk-oauth-node,sbender9/signalk-server-node,mau...
370f817c0f879093557c98091c3bdc7207ebad25
server/startup.js
server/startup.js
Meteor.startup(function () { Meteor.call("lightstreamerConnect") Restivus.configure({ useAuth: true, prettyJson: true }); Restivus.addCollection(isslocation, { excludedEndpoints: ['put', 'post', 'delete', 'deleteAll'] }); });
Meteor.startup(function () { Meteor.call("lightstreamerConnect") Restivus.configure({ useAuth: false, prettyJson: true }); Restivus.addRoute('isslocation/latest', {authRequired: false}, { get: function(){ var positionx = isslocation.findOne({type: 'positionx'},{sort: {time : -1}}); var p...
Add latest data API endpoint
Add latest data API endpoint
JavaScript
mit
slashrocket/stationstream,slashrocket/stationstream
d9ece655ddd7df695ef2a2087971f691e77ec84a
routes/index.js
routes/index.js
//get index require('./../config'); async=require('async'); var bitcoin=require('bitcoin').bitcoin; var knex=require('knex').knex; //var bookshelf=require('bookshelf').bookshelf; exports.index = function(req, res){ testnet: async.parallel({ testnet: function(callback){ bitcoin.getInfo(function(e, info){ ...
//get index require('./../config'); var Promise = require("bluebird"); var bitcoin=require('bitcoin').bitcoin; var knex=require('knex').knex; Promise.promisifyAll(require('bitcoin').Client.prototype); //var bookshelf=require('bookshelf').bookshelf; exports.index = function(req, res){ var info = bitcoin.getInfoAsync...
Change to using promisify instead of async for better code and easy error handling
Change to using promisify instead of async for better code and easy error handling
JavaScript
bsd-2-clause
Earlz/d4btc
c22cd7328d458b2d307095bf44b5557bbccf881f
routes/users.js
routes/users.js
var express = require('express'); var router = express.Router(); /* GET users listing. */ router.get('/', function(req, res, next) { res.send('respond with a resource'); }); module.exports = router;
var express = require('express'); var withConnection = require('../lib/withConnection'); var router = express.Router(); /* GET users listing. */ router.get('/', function(req, res, next) { res.send('respond with a resource'); }); router.post('/authenticate', function(req, res, next) { var user; var data = { emai...
Add authenticate endpoint (but not actually authenticating yet)
Add authenticate endpoint (but not actually authenticating yet)
JavaScript
mit
getfretless/tracker-serverjs,getfretless/tracker-serverjs
9ecea827bb974b789e7a171b1682059de2cf572b
lib/joiless.js
lib/joiless.js
var isFunction = require('lodash.isfunction'); var joi = require('joi'); var pc = require('pascal-case'); /* Public */ function attach(schema) { var attachments = {}; schema && schema._inner && schema._inner.children && schema._inner.children.forEach(function (child) { attachments[pc(child.key)] = { ...
var isFunction = require('lodash.isfunction'); var joi = require('joi'); var pc = require('pascal-case'); /* Public */ function attach(schema) { var attachments = {}; schema && schema._inner && schema._inner.children && schema._inner.children.forEach(function (child) { attachments[pc(child.key)] = { ...
Fix an issue with parameter validation
Fix an issue with parameter validation
JavaScript
mit
zackehh/joiless
a1c28dd59d5f156a58629be110bb823d978e3db4
frontend/src/Lists/ListsView.js
frontend/src/Lists/ListsView.js
import React, { Component } from "react"; import styled from "styled-components"; import { Row, RowContent, ColumnContainer } from "../SharedComponents.js"; import Loading from "../loading.js"; import List from "./List.js"; import CreateList from "./CreateList.js"; import Notes from "./Notes.js"; class ListsView ex...
import React, { Component } from "react"; import styled from "styled-components"; import { Row, RowContent, ColumnContainer } from "../SharedComponents.js"; import Loading from "../loading.js"; import List from "./List.js"; import CreateList from "./CreateList.js"; import Notes from "./Notes.js"; class ListsView ex...
Make Lists view mobile friendly
Make Lists view mobile friendly
JavaScript
mit
Tejpbit/talarlista,Tejpbit/talarlista,Tejpbit/talarlista
5408e47e50289815efbd9ea491e83f9452136f4b
examples/benchmark1-NGX.js
examples/benchmark1-NGX.js
/* * Copyright (C) DreamLab Onet.pl Sp. z o. o. * * 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, me...
/* * Copyright (C) DreamLab Onet.pl Sp. z o. o. * * 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, me...
Update example for NGINX parser
Update example for NGINX parser
JavaScript
mit
DreamLab/node-uriparser,DreamLab/node-uriparser,DreamLab/node-uriparser,DreamLab/node-uriparser
c2562990cb077bdf7f2dbb9f5fedb9fd446a05e5
scripts/ayuda.js
scripts/ayuda.js
document.getElementById("ayuda").setAttribute("aria-current", "page"); var aside = document.getElementById("complementario"); var form = document.createElement("FORM"); var p = document.createElement("P"); var label = document.createElement("LABEL"); label.setAttribute("for", "repo"); t = document.createTextNode("cue...
document.getElementById("ayuda").setAttribute("aria-current", "page"); var aside = document.getElementById("complementario"); var form = document.createElement("FORM"); var p = document.createElement("P"); var label = document.createElement("LABEL"); label.setAttribute("for", "repo"); t = document.createTextNode("cue...
Add type attribute set to button
Add type attribute set to button
JavaScript
mit
nvdaes/nvdaes.github.io,nvdaes/nvdaes.github.io
d33efd6901b5a54c10da2630bb5fda11ae3391bf
src/validators/record_type_txt.js
src/validators/record_type_txt.js
'use strict'; const Hoek = require('hoek'); const Joi = require('joi'); const recordBase = require('./record_base'); module.exports = Hoek.clone(recordBase).keys({ record_type: Joi.string().valid('TXT').required(), text_content: Joi.string().required() });
'use strict'; const Hoek = require('hoek'); const Joi = require('joi'); const recordBase = require('./record_base'); module.exports = Hoek.clone(recordBase).keys({ record_type: Joi.string().valid('TXT').required(), // Allowed in TXT records are ASCII letters, plus a selected set of // symbols, which translates ...
Whitelist for characters in TXT records
Whitelist for characters in TXT records
JavaScript
isc
mikl/edzif-validator
c7d9c51fc1728c01eadf48be2ed559da0b133076
client-vendor/after-body/jquery.event.clickConfirmed/jquery.event.clickConfirmed.js
client-vendor/after-body/jquery.event.clickConfirmed/jquery.event.clickConfirmed.js
/* * Author: CM */ (function($) { $.event.special.clickConfirmed = { bindType: "click", delegateType: "click", settings: { message: 'Please Confirm' }, handle: function(event) { var $this = $(this); var activateButton = function() { $this.addClass('confirmClick'); $this.attr('title', $....
/* * Author: CM */ (function($) { $.event.special.clickConfirmed = { bindType: "click", delegateType: "click", settings: { message: 'Please Confirm' }, handle: function(event) { var $this = $(this); var deactivateTimeout = null; var activateButton = function() { $this.addClass('confirmCl...
Store timeoutId in local variable
Store timeoutId in local variable
JavaScript
mit
alexispeter/CM,christopheschwyzer/CM,cargomedia/CM,cargomedia/CM,christopheschwyzer/CM,fvovan/CM,cargomedia/CM,njam/CM,fvovan/CM,fauvel/CM,christopheschwyzer/CM,njam/CM,fvovan/CM,vogdb/cm,fauvel/CM,mariansollmann/CM,vogdb/cm,alexispeter/CM,njam/CM,zazabe/cm,cargomedia/CM,christopheschwyzer/CM,vogdb/cm,vogdb/cm,njam/CM,...
a581d98fce6f891d0f78e1ab3dcff70b851d9d55
server/router.js
server/router.js
const express = require('express'); const router = express.Router(); const authController = require('./authController'); const locationsController = require('./locationsController'); const locationTypeController = require('./locationTypeController'); const happyHoursController = require('./happyHoursController'); ro...
const express = require('express'); const router = express.Router(); const authController = require('./authController'); const locationsController = require('./locationsController'); const locationTypeController = require('./locationTypeController'); const happyHoursController = require('./happyHoursController'); ro...
Add GET location by ID route.
Add GET location by ID route.
JavaScript
mit
the-oem/happy-hour-power,the-oem/happy-hour-power
cb927bcf825de717db3a331ab5357c1e95cdbbec
src/Versioning.js
src/Versioning.js
let path = require('path'); let Manifest = require('./Manifest'); let objectValues = require('lodash').values; class Versioning { /** * Create a new Versioning instance. * * @param {object} manifest */ constructor(manifest) { this.manifest = manifest; this.files = []; }...
let path = require('path'); let Manifest = require('./Manifest'); let objectValues = require('lodash').values; class Versioning { /** * Create a new Versioning instance. * * @param {object} manifest */ constructor(manifest) { this.manifest = manifest; this.files = []; }...
Fix record function returning this
Fix record function returning this
JavaScript
mit
JeffreyWay/laravel-mix
b8d08b990108cf42f22e2a196007d99ea34282e4
tests/integration/components/attributes-test.js
tests/integration/components/attributes-test.js
import { moduleForComponent, test } from 'ember-qunit'; import Component from '@ember/component'; import hbs from 'htmlbars-inline-precompile'; moduleForComponent('attributes', 'Integration | Component | attributes', { integration: true, beforeEach() { this.register('component:x-foo', Component.extend()); }...
import { moduleForComponent, test } from 'ember-qunit'; import Component from '@ember/component'; import hbs from 'htmlbars-inline-precompile'; moduleForComponent('attributes', 'Integration | Component | attributes', { integration: true, }); test('it works when component has no existing attribute bindings', functio...
Add basic sanity test for both scenarios.
Add basic sanity test for both scenarios.
JavaScript
mit
mmun/ember-component-attributes,mmun/ember-component-attributes
efdd8855715caf469a9423c2dddc90523e6104c6
src/ol/source/VectorEventType.js
src/ol/source/VectorEventType.js
/** * @module ol/source/VectorEventType */ /** * @enum {string} */ export default { /** * Triggered when a feature is added to the source. * @event module:ol/source/Vector.VectorSourceEvent#addfeature * @api */ ADDFEATURE: 'addfeature', /** * Triggered when a feature is updated. * @event m...
/** * @module ol/source/VectorEventType */ /** * @enum {string} */ export default { /** * Triggered when a feature is added to the source. * @event module:ol/source/Vector.VectorSourceEvent#addfeature * @api */ ADDFEATURE: 'addfeature', /** * Triggered when a feature is updated. * @event m...
Correct documented event names for VectorSourceEvent
Correct documented event names for VectorSourceEvent
JavaScript
bsd-2-clause
ahocevar/ol3,oterral/ol3,ahocevar/openlayers,stweil/openlayers,adube/ol3,adube/ol3,stweil/openlayers,ahocevar/openlayers,bjornharrtell/ol3,ahocevar/openlayers,stweil/ol3,ahocevar/ol3,oterral/ol3,adube/ol3,stweil/ol3,openlayers/openlayers,ahocevar/ol3,openlayers/openlayers,stweil/ol3,oterral/ol3,openlayers/openlayers,bj...
64b61935b843fd6245495699bfee732ab228a50c
prolific.executable/header.js
prolific.executable/header.js
const { Staccato } = require('staccato') module.exports = async function (input) { const staccato = new Staccato(input) let accumulator = Buffer.alloc(0) for (;;) { const buffer = await staccato.readable.read() if (buffer == null) { return null } accumulator = Bu...
const { Staccato } = require('staccato') module.exports = async function (input) { const staccato = new Staccato(input) let accumulator = Buffer.alloc(0) for (;;) { const buffer = await staccato.readable.read() if (buffer == null) { return null } accumulator = Bu...
Replace socket destroy with Staccato unlisten.
Replace socket destroy with Staccato unlisten.
JavaScript
mit
bigeasy/prolific,bigeasy/prolific
c80e93c106619ce86eae908e32f1382f666f5c48
rollup.config.js
rollup.config.js
// @flow import babel from "rollup-plugin-babel"; import commonjs from "rollup-plugin-commonjs"; import fs from "fs"; import pascalCase from "pascal-case"; import resolve from "rollup-plugin-node-resolve"; import pkg from "./package.json"; const plugins = { babel: babel({ exclude: "node_modules/**", runtim...
// @flow import babel from "rollup-plugin-babel"; import commonjs from "rollup-plugin-commonjs"; import fs from "fs"; import pascalCase from "pascal-case"; import resolve from "rollup-plugin-node-resolve"; import uglify from "rollup-plugin-uglify"; import {minify} from "uglify-es"; import pkg from "./package.json"; ...
Set up uglify plugin and sourcemaps
build(rollup): Set up uglify plugin and sourcemaps
JavaScript
mit
jumpn/utils-composite,jumpn/utils-composite
7480df0fd6a00c11045cf0c1523610e611606cfa
test/fixtures/hard/indentation.js
test/fixtures/hard/indentation.js
import styled from 'styled-components' // None of the below should throw indentation errors const Comp = () => { const Button = styled.button` color: blue; ` return Button } const Comp2 = () => { const InnerComp = () => { const Button = styled.button` color: blue; ` return Button } ...
import styled, { keyframes } from 'styled-components' // None of the below should throw indentation errors const Comp = () => { const Button = styled.button` color: blue; ` return Button } const Comp2 = () => { const InnerComp = () => { const Button = styled.button` color: blue; ` retu...
Move wrongly linted animation to hard tests
Move wrongly linted animation to hard tests
JavaScript
mit
styled-components/stylelint-processor-styled-components
867f920794bbfff30901a187ad39296893df5b59
generators/travis/index.js
generators/travis/index.js
'use strict'; var generators = require('yeoman-generator'); var extend = require('deep-extend'); module.exports = generators.Base.extend({ constructor: function () { generators.Base.apply(this, arguments); this.option('coveralls', { required: false, defaults: false, desc: 'Use React syntax...
'use strict'; var generators = require('yeoman-generator'); var extend = require('deep-extend'); module.exports = generators.Base.extend({ constructor: function () { generators.Base.apply(this, arguments); this.option('coveralls', { required: false, defaults: false, desc: 'Use React syntax...
Fix script addition to package.son
Fix script addition to package.son
JavaScript
mit
dmarchena/generator-node-test
82c98e5bc76ab1235c070e7253acb616e91f4dd7
pwm.js
pwm.js
/* pwm Password Manager Copyright Owen Maule 2015 o@owen-m.com https://github.com/owenmaule/pwm License: GNU Affero General Public License v3 This program 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 Soft...
/* pwm Password Manager Copyright Owen Maule 2015 o@owen-m.com https://github.com/owenmaule/pwm License: GNU Affero General Public License v3 This program 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 Soft...
Copy debug alerts to browser console if flag set
Copy debug alerts to browser console if flag set
JavaScript
agpl-3.0
owenmaule/pwm,owenmaule/pwm
657eb96720524a1ee4656f7bf3889cba05ef2f62
lib/assets/seeders/skeleton.js
lib/assets/seeders/skeleton.js
'use strict'; module.exports = { up: function (queryInterface, Sequelize) { /* Add altering commands here. Return a promise to correctly handle asynchronicity. Example: return queryInterface.bulkInsert('Person', [{ name: 'John Doe', isBetaMember: false }]); */ ...
'use strict'; module.exports = { up: function (queryInterface, Sequelize) { /* Add altering commands here. Return a promise to correctly handle asynchronicity. Example: return queryInterface.bulkInsert('Person', [{ name: 'John Doe', isBetaMember: false }], {}); ...
Add options object to seed template
[Changed] Add options object to seed template
JavaScript
mit
xpepermint/cli,martinLE/cli,Americas/cli,Americas/cli,Americas/cli,martinLE/cli,cogpie/cli,sequelize/cli,sequelize/cli,martinLE/cli,brad-decker/cli,sequelize/cli,brad-decker/cli,brad-decker/cli,timrourke/cli
09e4dca1919431a57d7c767cdc35826c9b58f59a
addon/components/rl-dropdown-toggle.js
addon/components/rl-dropdown-toggle.js
import Ember from 'ember'; export default Ember.Component.extend({ classNames: ['rl-dropdown-toggle'], tagName: 'button', attributeBindings: ['type'], type: 'button', targetObject: function () { return this.get('parentView'); }.property('parentView'), action: 'toggleDropdown', click: function...
import Ember from 'ember'; export default Ember.Component.extend({ classNames: ['rl-dropdown-toggle'], tagName: 'button', attributeBindings: ['type'], type: function () { return this.get('tagName') === 'button' ? 'button' : null; }.property('tagName'), targetObject: function () { return this.ge...
Add type=button only for button tagged dropdown toggles (not for eg. a tags)
Add type=button only for button tagged dropdown toggles (not for eg. a tags)
JavaScript
mit
RSSchermer/ember-rl-dropdown,RSSchermer/ember-rl-dropdown
2c54da703ecbab8c03498b08230ac803bf099249
src/files/scripts/disqus.js
src/files/scripts/disqus.js
var disqus_shortname = 'jtwebman'; (function () { 'use strict'; var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js'; (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appe...
var disqus_shortname = 'jtwebman'; (function () { 'use strict'; var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js'; dsq.setAttribute('data-cfasync', 'false'); (document.getElementsByTagName('head')[0] || d...
Add cloudflare Rocket Fix Try 1
Add cloudflare Rocket Fix Try 1
JavaScript
mit
jtwebman/jtwebman
406d0c78c8112f464f05951c2182833c6ae566c9
src/data/post.js
src/data/post.js
'use strict'; import { importEntities, validateEntities } from './base'; import { schema } from '../schema/post'; export function importData (entries, space, contentType, data) { validateEntities(data.posts || [], 'post', schema()); return importEntities(...arguments, 'post', mapData); } function mapData (post) ...
'use strict'; import { importEntities, validateEntities } from './base'; import { schema } from '../schema/post'; export function importData (entries, space, contentType, data) { validateEntities(data.posts || [], 'post', schema()); return importEntities(...arguments, 'post', mapData); } function mapData (post) ...
Fix handling of undefined tags
Fix handling of undefined tags
JavaScript
mit
sdepold/contentful-blog-importer
20390640e1ba92f6bd52ce14b9e06f0dd241badc
apis/reports.es6.js
apis/reports.es6.js
import BaseAPI from './base.es6.js'; import Report from '../models/report.es6.js'; export default class Reports extends BaseAPI { model = Report; move = this.notImplemented('move'); copy = this.notImplemented('copy'); get = this.notImplemented('get'); put = this.notImplemented('put'); patch = this.notImpl...
import BaseAPI from './base.es6.js'; import Report from '../models/report.es6.js'; export default class Reports extends BaseAPI { model = Report; move = this.notImplemented('move'); copy = this.notImplemented('copy'); get = this.notImplemented('get'); put = this.notImplemented('put'); patch = this.notImpl...
Make Reports return a promise as expected
Make Reports return a promise as expected
JavaScript
mit
reddit/node-api-client,reddit/snoode
02b45d28bfec3ab4573762aeb6813ded9e9e0286
lib/post_install.js
lib/post_install.js
// adapted based on rackt/history (MIT) // Node 0.12+ var execSync = require('child_process').execSync; var stat = require('fs').stat; function exec(command) { execSync(command, { stdio: [0, 1, 2] }); } stat('dist-modules', function(error, stat) { if (error || !stat.isDirectory()) { exec('npm i babel');...
// adapted based on rackt/history (MIT) // Node 0.12+ var execSync = require('child_process').execSync; var stat = require('fs').stat; function exec(command) { execSync(command, { stdio: [0, 1, 2] }); } stat('dist-modules', function(error, stat) { if (error || !stat.isDirectory()) { exec('npm i babel@5....
Install Babel 5 on postinstall
Install Babel 5 on postinstall Babel 6 will fail.
JavaScript
mit
austinsc/react-gooey,austinsc/react-gooey
ec77870dcd8bc0286dded116a04b44ee0f910f39
app/controllers/application.js
app/controllers/application.js
import Ember from 'ember'; export default Ember.Controller.extend({ session: Ember.inject.service(), actions: { login () { var lockOptions = { allowedConnections: [ 'Username-Password-Authentication', ], autoclose: true, allowLogin: true, allowSignUp: fal...
import Ember from 'ember'; export default Ember.Controller.extend({ session: Ember.inject.service(), actions: { login () { var lockOptions = { allowedConnections: [ 'Default', ], autoclose: true, allowLogin: true, allowSignUp: false, rememberLastL...
Change configuration on production Auth0
Change configuration on production Auth0
JavaScript
bsd-2-clause
barberscore/barberscore-web,barberscore/barberscore-web,barberscore/barberscore-web
18913df91f33250f01da3a178f8816cca7d13db4
src/js/helpers/JSONPUtil.js
src/js/helpers/JSONPUtil.js
import Q from "q"; const JSONPUtil = { /** * Request JSONP data * * @todo: write test to verify this util is working properly * * @param {string} url * @returns {Q.promise} promise */ request(url) { var deferred = Q.defer(); var callback = `jsonp_${Date.now().toString(16)}`; var sc...
const JSONPUtil = { /** * Request JSONP data * * @todo: write test to verify this util is working properly * * @param {string} url * @returns {Promise} promise */ request(url) { return new Promise(function (resolve, reject) { var callback = `jsonp_${Date.now().toString(16)}`; va...
Use es6 promises instead of Q
Use es6 promises instead of Q
JavaScript
apache-2.0
cribalik/marathon-ui,cribalik/marathon-ui,mesosphere/marathon-ui,mesosphere/marathon-ui
89fdc37d358e0a2c15d6b75d7a40d9dd8f19e977
tools/deploy.js
tools/deploy.js
/** * React Static Boilerplate * https://github.com/koistya/react-static-boilerplate * Copyright (c) Konstantin Tarkus (@koistya) | MIT license */ import GitRepo from 'git-repository'; import task from './lib/task'; // TODO: Update deployment URL const remote = { name: 'github', url: 'git@github.com:nelseric/...
/** * React Static Boilerplate * https://github.com/koistya/react-static-boilerplate * Copyright (c) Konstantin Tarkus (@koistya) | MIT license */ import GitRepo from 'git-repository'; import task from './lib/task'; // TODO: Update deployment URL const remote = { name: 'github', url: 'git@github.com:nelseric/...
Deploy to my account gh page
Deploy to my account gh page
JavaScript
mit
nelseric/fhack-yo
83cdb77f02cc4c98d7882468580abb001441d6e6
src/modules/rooms/routes.js
src/modules/rooms/routes.js
(function (angular) { 'use strict'; angular.module('birdyard.rooms') .config(['$routeProvider', function ($routeProvider) { $routeProvider.when('/rooms/c/everything', { controller: 'roomsController', templateUrl: 'modules/rooms/views/rooms.html' }); $routeProvid...
(function (angular) { 'use strict'; angular.module('birdyard.rooms') .config(['$routeProvider', function ($routeProvider) { $routeProvider.when('/rooms/c/everything', { controller: 'roomsController', templateUrl: 'modules/rooms/views/rooms.html' }); $routeProvid...
Make "new room" page an authenticated route
Make "new room" page an authenticated route
JavaScript
mit
birdyard/birdyard,birdyard/birdyard,bebopchat/bebop,robotnoises/bebop,bebopchat/bebop,robotnoises/bebop
99d6b09e651738e29e1f373093f3653043b65573
src/node_main.js
src/node_main.js
var sys = require('sys'), fs = require('fs'), path = require('path'), optparse = require('optparse'); function Options(argv){ var switches = [ [ '--encoding', 'Specify encoding (default: utf8)'], ['-h', '--help', 'Shows help sections'] ]; var parser = new optparse.OptionParser(swit...
var sys = require('sys'), fs = require('fs'), path = require('path'), optparse = require('optparse'); function Options(argv){ var switches = [ [ '--encoding', 'Specify encoding (default: utf8)'], ['-h', '--help', 'Shows help sections'] ]; var parser = new optparse.OptionParser(swit...
Print stacktrace when Biwa crashes in node.js.
Print stacktrace when Biwa crashes in node.js.
JavaScript
mit
biwascheme/biwascheme.github.io,yhara/biwascheme,biwascheme/biwascheme.github.io,biwascheme/biwascheme,biwascheme/biwascheme,biwascheme/biwascheme,yhara/biwascheme
0eefb282ca8a8eddacca6c55c77d1abd51cdb2b2
spec/api-deprecations-spec.js
spec/api-deprecations-spec.js
const assert = require('assert') const deprecations = require('electron').deprecations describe('deprecations', function () { beforeEach(function () { deprecations.setHandler(null) process.throwDeprecation = true }) it('allows a deprecation handler function to be specified', function () { var messag...
const assert = require('assert') const deprecations = require('electron').deprecations describe('deprecations', function () { beforeEach(function () { deprecations.setHandler(null) process.throwDeprecation = true }) it('allows a deprecation handler function to be specified', function () { var messag...
Test no handler via call to deprecate.log
Test no handler via call to deprecate.log
JavaScript
mit
kcrt/electron,the-ress/electron,brave/electron,thomsonreuters/electron,miniak/electron,renaesop/electron,tonyganch/electron,brave/muon,brave/electron,gerhardberger/electron,voidbridge/electron,MaxWhere/electron,rajatsingla28/electron,noikiy/electron,jhen0409/electron,gabriel/electron,thompsonemerson/electron,rreimann/e...
f6465abae47d69e2941e9640930a9e6d13035679
spec/unpoly/framework_spec.js
spec/unpoly/framework_spec.js
const u = up.util const $ = jQuery describe('up.framework', function() { describe('JavaScript functions', function() { describe('up.framework.isSupported', function() { it('returns true on a supported browser', function() { expect(up.framework.isSupported()).toBe(true) }) it('return...
const u = up.util const $ = jQuery describe('up.framework', function() { describe('JavaScript functions', function() { describe('up.framework.isSupported', function() { it('returns true on a supported browser', function() { expect(up.framework.isSupported()).toBe(true) }) it('return...
Fix spec leaving browser in mocked quirks mode
Fix spec leaving browser in mocked quirks mode
JavaScript
mit
unpoly/unpoly,unpoly/unpoly,unpoly/unpoly
72d6339df3fce22422bec835bddbc9e3efb47cb4
simpleshelfmobile/_attachments/code/views/PageView.js
simpleshelfmobile/_attachments/code/views/PageView.js
/** * Page view constructor * Handles all jQuery Mobile setup for any sub-classed page. */ define([ "backbone" ], function(Backbone) { var PageView = Backbone.View.extend({ tagName: "div", isInDOM: false, _name: null, getName: function() { return this._name; ...
/** * Page view constructor * Handles all jQuery Mobile setup for any sub-classed page. */ define([ "backbone" ], function(Backbone) { var PageView = Backbone.View.extend({ tagName: "div", isInDOM: false, _name: null, getName: function() { return this._name; ...
Switch to toJSON to pull data from models
Switch to toJSON to pull data from models Allows for simpler customization of data.
JavaScript
agpl-3.0
tephyr/simpleshelf,tephyr/simpleshelf,tephyr/simpleshelf,tephyr/simpleshelf
fc41731cd9c82b44d7cb9c6dce0bd33596bba2c7
src/bootstrap/package-json.js
src/bootstrap/package-json.js
import { join } from 'path' import json from '../util/json' const saguiScripts = { 'start': 'npm run develop', 'test': 'sagui test', 'test-watch': 'sagui test --watch', 'develop': 'sagui develop', 'build': 'sagui build', 'dist': 'NODE_ENV=production sagui dist' } export default function (projectPath) { ...
import { join } from 'path' import json from '../util/json' const saguiScripts = { 'start': 'npm run develop', 'test': 'NODE_ENV=test sagui test', 'test-watch': 'NODE_ENV=test sagui test --watch', 'develop': 'sagui develop', 'build': 'sagui build', 'dist': 'NODE_ENV=production sagui dist' } export default...
Add NODE_ENV on test scripts
Add NODE_ENV on test scripts
JavaScript
mit
saguijs/sagui,saguijs/sagui
7b2b8101d99f60c6b60bd04c1a290e40b6357254
noita/javascript.js
noita/javascript.js
--- --- $(document).foundation(); {% for javascript in site.noita.javascripts %} {% include javascript %} {% endfor %}
--- --- {% for javascript in site.noita.javascripts %} {% include javascript %} {% endfor %} $(document).foundation();
Move foundation start to the end
Move foundation start to the end
JavaScript
mit
remy-actual/remy-actual.github.io,rootandflow/old.rootandflow.com,thehammar/thehammar.github.io,remy-actual/remy-actual.github.io,rootandflow/old.rootandflow.com,inlandsplash/inlandsplash.github.io,rootandflow/rootandflow.github.io,inlandsplash/inlandsplash.github.io,mariagwyn/jekyll-noita,inlandsplash/inlandsplash.git...
6dee47bf20ddcbcee0e757725f300ae3ca8f91db
src/quailBuild.js
src/quailBuild.js
#!/usr/bin/env node --harmony 'use strict'; const path = require('path'); const configUtil = require('./config'); const cwd = process.cwd(); const quailCore = require(path.join(cwd, 'node_modules', '@quailjs/quail-core')); module.exports = function quailBuild () { // Get a list of assessments. configUtil.getLoca...
#!/usr/bin/env node --harmony 'use strict'; const path = require('path'); const configUtil = require('./config'); const cwd = process.cwd(); module.exports = function quailBuild () { const quailCore = require( path.join(cwd, 'node_modules', '@quailjs/quail-core') ); // Get a list of assessments. configUt...
Move the quail-core require into the build method
Move the quail-core require into the build method
JavaScript
mit
quailjs/quail-cli
5ed795207a690f729c4fa04c5894adc17f2f7bc7
src/containers/App.js
src/containers/App.js
// This file bootstraps the app with the boilerplate necessary // to support hot reloading in Redux import React, {PropTypes} from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import FuelSavingsApp from '../components/FuelSavingsApp'; import * as FuelSavingsActions from '....
// This file bootstraps the app with the boilerplate necessary // to support hot reloading in Redux import React, {PropTypes} from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import FuelSavingsApp from '../components/FuelSavingsApp'; import * as FuelSavingsActions from '....
Fix no need to always import DevTools component.
Fix no need to always import DevTools component.
JavaScript
mit
barrystaes/react-trebuchet,barrystaes/react-trebuchet
d9bbd11b08973865e288102114de7523d5f78768
packages/truffle/lib/init.js
packages/truffle/lib/init.js
var copy = require("./copy"); var path = require("path"); var temp = require("temp").track(); var Config = require("./config"); var Init = function(destination, callback) { var example_directory = path.resolve(path.join(__dirname, "..", "example")); copy(example_directory, destination, callback); } Init.sandbox =...
var copy = require("./copy"); var path = require("path"); var temp = require("temp").track(); var Config = require("./config"); var Init = function(destination, callback) { var example_directory = path.resolve(path.join(__dirname, "..", "example")); copy(example_directory, destination, callback); } Init.sandbox =...
Make Init.sandbox() take an input configuration.
Make Init.sandbox() take an input configuration.
JavaScript
mit
ConsenSys/truffle
d13199ba65acdbf7f6e2bca4f37c71958cbf349c
test/runner-core.js
test/runner-core.js
var EventEmitter = require('events').EventEmitter; var nodeunit = require('nodeunit'); var assert = require('nodeunit/lib/assert'); assert.equal = function equal(actual, expected, message) { if (actual != expected) { if (actual && actual.nodeType) { actual = actual.toString(); } if (expected && e...
var EventEmitter = require('events').EventEmitter; var nodeunit = require('nodeunit'); module.exports = function runModules(toRun) { var emitter = new EventEmitter(); process.nextTick(function () { nodeunit.runModules(toRun, { moduleStart: function (name) { emitter.emit('moduleStart', name); ...
Remove monkey patches of the unit tester
Remove monkey patches of the unit tester
JavaScript
mit
nicolashenry/jsdom,Sebmaster/jsdom,zaucy/jsdom,danieljoppi/jsdom,kesla/jsdom,tmpvar/jsdom,evdevgit/jsdom,kesla/jsdom,mbostock/jsdom,medikoo/jsdom,aduyng/jsdom,szarouski/jsdom,susaing/jsdom,beni55/jsdom,Ye-Yong-Chi/jsdom,sirbrillig/jsdom,Zirro/jsdom,Sebmaster/jsdom,evdevgit/jsdom,AVGP/jsdom,lcstore/jsdom,zaucy/jsdom,mzg...
db407b1d236f05921ada01645f025921e9ec7614
adapters/generic.js
adapters/generic.js
/** * Basic engine support. */ require('../lib/setModuleDefaults'); var config = require('config'); var engineConfig = config.engines ? config.engines : undefined; /** * Return a function that creates a plugin: */ module.exports = function(language){ return { attach: function (/* options */){ /** ...
/** * Basic engine support. */ require('../lib/setModuleDefaults'); var config = require('config'); var engineConfig = config.engines || {}; /** * Return a function that creates a plugin: */ module.exports = function(language){ return { attach: function (/* options */){ var languageConfig = engineCo...
Allow module value in config to be optional.
Allow module value in config to be optional.
JavaScript
mit
markbirbeck/adapter-template
f1007ef66ef5ffcacbc5a2b0fbbb4725bc99099b
test/test-suites.js
test/test-suites.js
window.VaadinDatePickerSuites = [ 'basic.html', 'dropdown.html', 'overlay.html', 'month-calendar.html', 'scroller.html', 'form-input.html', 'custom-input.html', 'keyboard-navigation.html', 'keyboard-input.html', 'late-upgrade.html', 'wai-aria.html' ];
const isPolymer2 = document.querySelector('script[src*="wct-browser-legacy"]') === null; window.VaadinDatePickerSuites = [ 'basic.html', 'dropdown.html', 'overlay.html', 'month-calendar.html', 'scroller.html', 'form-input.html', 'custom-input.html', 'keyboard-navigation.html', 'keyboard-input.html', ...
Exclude tests usinig importHref from Polymer 3
Exclude tests usinig importHref from Polymer 3
JavaScript
apache-2.0
vaadin/vaadin-date-picker,vaadin/vaadin-date-picker
4c9e3a410418c864ea94b509d494893bd18393bb
test/testOffline.js
test/testOffline.js
var assert = require('assert'); var fs = require('fs'); var path = require('path'); var temp = require('temp').track(); var offline = require('../lib/offline'); describe('Offline', function() { it('should create offline-worker.js in the destination directory', function() { var dir = temp.mkdirSync('tmp'); r...
var assert = require('assert'); var fs = require('fs'); var path = require('path'); var temp = require('temp').track(); var offline = require('../lib/offline'); describe('Offline', function() { it('should create offline-worker.js in the destination directory', function() { var dir = temp.mkdirSync('tmp'); r...
Test that 'offline' overwrites an already existing offline-worker.js
Test that 'offline' overwrites an already existing offline-worker.js
JavaScript
apache-2.0
mykmelez/oghliner,mozilla/oghliner,mykmelez/oghliner,mozilla/oghliner,marco-c/oghliner,marco-c/oghliner
452636534735fb807f00d73c1608f97bf40b7025
parse/public/js/MapsService.js
parse/public/js/MapsService.js
angular.module('atlasApp').service('MapsService', function( $scope, $http, LocationProvider, BusInfoProvider ) { return { /** * Initializes the Google Maps canvas */ this.initMap = function () { console.log('Initializing'); var mapOptions = { zoom: 15, center:...
angular.module('atlasApp').service('MapsService', function( $scope, $http, LocationProvider, BusInfoProvider ) { return { /** * Initializes the Google Maps canvas */ initMap: function () { console.log('Initializing'); var mapOptions = { zoom: 15, center: $scop...
Fix object notation in service
Fix object notation in service
JavaScript
mit
rice-apps/atlas,rice-apps/atlas,rice-apps/atlas
b53cc39e264405e073e842e72cb06a7d0e5726c9
app/initializers/raven-setup.js
app/initializers/raven-setup.js
/* global Raven */ import config from '../config/environment'; import Ember from 'ember'; export function initialize() { // Disable for development if (Ember.get('config.sentry.development') === true) { return; } if (!config.sentry) { throw new Error('`sentry` should be configured when not in develop...
/* global Raven */ import config from '../config/environment'; import Ember from 'ember'; export function initialize() { // Disable for development if (Ember.get(config, 'sentry.development') === true) { return; } if (!config.sentry) { throw new Error('`sentry` should be configured when not in devel...
Fix a broken Ember.get call
Fix a broken Ember.get call
JavaScript
mit
pifantastic/ember-cli-sentry,dschmidt/ember-cli-sentry,damiencaselli/ember-cli-sentry,damiencaselli/ember-cli-sentry,pifantastic/ember-cli-sentry,dschmidt/ember-cli-sentry
3c0b367aab0d2574a42897f908a57f66a41398be
app/models/user.server.model.js
app/models/user.server.model.js
/** * Created by vinichenkosa on 05.03.15. */ var mongoose = require('mongoose'); var Schema = mongoose.Schema; var UserSchema = new Schema({ firstName: String, lastName: String, email: String, username: String, password: String }); mongoose.model('User', UserSchema);
/** * Created by vinichenkosa on 05.03.15. */ var mongoose = require('mongoose'); var Schema = mongoose.Schema; var UserSchema = new Schema({ firstName: String, lastName: String, email: { type: String, index: true }, username: { type: String, trim: true, un...
Add get and set modifiers Add virtual fields
Add get and set modifiers Add virtual fields
JavaScript
mit
winechess/MEAN
49370f227a106c43129c23a6a30a91b5a82e9ad6
src/server/gqlUpdateSchema.js
src/server/gqlUpdateSchema.js
import fs from 'fs-extra'; import path from 'path'; import { mainStory, chalk } from 'storyboard'; import Promise from 'bluebird'; import * as gqlServer from './gqlServer'; const outputPath = path.join(__dirname, '../common/'); gqlServer.init(); Promise.resolve() ....
import fs from 'fs-extra'; import path from 'path'; import { addListener, mainStory, chalk } from 'storyboard'; import consoleListener from 'storyboard/lib/listeners/console'; import Promise from 'bluebird'; import * as gqlServer from './gqlServer'; addListener...
Fix update-schema JSON for Storyboard 2
Fix update-schema JSON for Storyboard 2
JavaScript
mit
guigrpa/mady,guigrpa/mady,guigrpa/mady
0d1e37a9f5b3581bea862fa2b54c554fc45d8091
src/js/api/UserAPI.js
src/js/api/UserAPI.js
import { fetchUser, fetchThreads, fetchRecommendation, fetchUserArray, fetchProfile, fetchStats, postLikeUser, deleteLikeUser, fetchMatching, fetchSimilarity } from '../utils/APIUtils'; export function getUser(login, url = `users/${login}`) { return fetchUser(url); } export function getProfile(login, url = `users...
import { fetchUser, fetchThreads, fetchRecommendation, fetchUserArray, fetchProfile, fetchStats, postLikeUser, deleteLikeUser, fetchMatching, fetchSimilarity } from '../utils/APIUtils'; export function getUser(login, url = `users/${login}`) { return fetchUser(url); } export function getProfile(login, url = `users...
Fix error in conflicted merge
QS-907: Fix error in conflicted merge
JavaScript
agpl-3.0
nekuno/client,nekuno/client
95d0ef56ecf2aa03d11b957a75bf7fadbb60bc21
src/routes/ui.js
src/routes/ui.js
'use strict' const path = require('path') const sass = require('rosid-handler-sass') const js = require('rosid-handler-js') const preload = require('../preload') const html = require('../ui/index') const index = async () => { return html() } const styles = async () => { const filePath = path.resolve(__dirname,...
'use strict' const { resolve } = require('path') const sass = require('rosid-handler-sass') const js = require('rosid-handler-js') const preload = require('../preload') const html = require('../ui/index') const optimize = process.env.NODE_ENV !== 'development' const index = async () => { return html() } const s...
Optimize SASS and JS output
Optimize SASS and JS output
JavaScript
mit
electerious/Ackee
b3e6b257a2e19d1e10cae8307a9bd673d707a104
src/lib/background.js
src/lib/background.js
/* * Copyright (c) 2014 mono * * 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, merge, publish, distr...
/* * Copyright (c) 2014 mono * * 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, merge, publish, distr...
Use active flag instead of selected flag
Use active flag instead of selected flag
JavaScript
mit
mono0x/ldr-open-in-background-tab,mono0x/ldr-open-in-background-tab