commit
stringlengths
40
40
old_file
stringlengths
4
236
new_file
stringlengths
4
236
old_contents
stringlengths
1
3.26k
new_contents
stringlengths
16
4.43k
subject
stringlengths
16
624
message
stringlengths
17
3.29k
lang
stringclasses
5 values
license
stringclasses
13 values
repos
stringlengths
5
91.5k
1c9dd302192c8842ffd760e8e1689b602b4350c4
examples/simple/webpack.config.js
examples/simple/webpack.config.js
var path = require( 'path' ); var webpack = require( 'webpack' ); module.exports = { devtool: 'cheap-module-eval-source-map', entry: [ 'webpack-hot-middleware/client', './index.jsx' ], output: { path: path.join( __dirname, 'dist' ), filename: 'bundle.js', publicPath: '/static/' }, plugins: [ new webp...
var path = require( 'path' ); var webpack = require( 'webpack' ); module.exports = { devtool: 'cheap-module-eval-source-map', entry: [ 'webpack-hot-middleware/client', './index.jsx' ], output: { path: path.join( __dirname, 'dist' ), filename: 'bundle.js', publicPath: '/static/' }, plugins: [ new webp...
Add .jsx to resolver for webpack.
Add .jsx to resolver for webpack.
JavaScript
mit
coderkevin/redux-trigger
cd9c75960c99ece71cadd691eb0297850e623a47
spec/javascripts/behaviors/autosize_spec.js
spec/javascripts/behaviors/autosize_spec.js
/* eslint-disable space-before-function-paren, no-var, comma-dangle, no-return-assign, max-len */ import '~/behaviors/autosize'; (function() { describe('Autosize behavior', function() { var load; beforeEach(function() { return setFixtures('<textarea class="js-autosize" style="resize: vertical"></texta...
import '~/behaviors/autosize'; function load() { $(document).trigger('load'); } describe('Autosize behavior', () => { beforeEach(() => { setFixtures('<textarea class="js-autosize" style="resize: vertical"></textarea>'); }); it('does not overwrite the resize property', () => { load(); expect($('te...
Remove iife and eslint disable
Remove iife and eslint disable
JavaScript
mit
mmkassem/gitlabhq,stoplightio/gitlabhq,jirutka/gitlabhq,dreampet/gitlab,jirutka/gitlabhq,mmkassem/gitlabhq,iiet/iiet-git,mmkassem/gitlabhq,axilleas/gitlabhq,dreampet/gitlab,jirutka/gitlabhq,iiet/iiet-git,dreampet/gitlab,axilleas/gitlabhq,stoplightio/gitlabhq,mmkassem/gitlabhq,iiet/iiet-git,axilleas/gitlabhq,dreampet/gi...
990f5face2b6eab527e91e98e6d20227c1673479
app/js/models/user/User.Module.js
app/js/models/user/User.Module.js
var _ = require('underscore'); var Mosaic = require('mosaic-commons'); var App = require('mosaic-core').App; var Api = App.Api; var Teleport = require('mosaic-teleport'); /** This module manages resource statistics. */ module.exports = Api.extend({ /** * Initializes internal fields. */ _initFields :...
var _ = require('underscore'); var Mosaic = require('mosaic-commons'); var App = require('mosaic-core').App; var Api = App.Api; var Teleport = require('mosaic-teleport'); /** This module manages resource statistics. */ module.exports = Api.extend({ /** * Initializes internal fields. */ _initFields :...
Add notifications for changes in the user module
Add notifications for changes in the user module
JavaScript
mit
ubimix/techonmap-v2,ubimix/techonmap-v2,ubimix/techonmap-v2
a90e96f14501c734d425dbed86ddb0e1b80b75f1
client/app/components/organization/organization.js
client/app/components/organization/organization.js
import angular from 'angular'; import uiRouter from 'angular-ui-router'; import organizationComponent from './organization.component'; import organizationDetail from './organizationDetail/organizationDetail'; require('angular-ui-grid/ui-grid.css'); //require('angular-datatables/dist/plugins/columnfilter/angular-data...
import angular from 'angular'; import uiRouter from 'angular-ui-router'; import organizationComponent from './organization.component'; import organizationDetail from './organizationDetail/organizationDetail'; require('angular-ui-grid/ui-grid.css'); //require('angular-datatables/dist/plugins/columnfilter/angular-data...
Make org a dev function for now
Make org a dev function for now
JavaScript
agpl-3.0
neteoc/neteoc-ui,neteoc/neteoc-ui,neteoc/neteoc-ui
20d9f937eec0d0e751a6d52098c3cb90d63e6cd1
test/index.js
test/index.js
import glob from 'glob'; import cssHook from 'css-modules-require-hook'; cssHook({generateScopedName: '[name]__[local]'}); glob.sync('**/*-test.js', {realpath: true, cwd: __dirname}).forEach(require);
require('css-modules-require-hook')({ generateScopedName: '[name]__[local]' }); require('glob') .sync('**/*-test.js', { realpath: true, cwd: require('path').resolve(process.cwd(), 'test') }) .forEach(require);
Use ES5 for test endpoint so there is no need for babel transform
Use ES5 for test endpoint so there is no need for babel transform
JavaScript
mit
nkbt/react-component-template
bee278faa8706fe7ebdf36a6cc48801cf0ea86b9
test/index.js
test/index.js
'use strict'; module.exports = function (t, a, d) { var invoked; a(t(function () { a(arguments.length, 0, "Arguments"); invoked = true; }), undefined, "Return"); a(invoked, undefined, "Is not run immediately"); setTimeout(function () { a(invoked, true, "Run in next tick"); d(); }, 10); };
'use strict'; module.exports = function (t, a, d) { var invoked; a(t(function () { a(arguments.length, 0, "Arguments"); invoked = true; }), undefined, "Return"); a(invoked, undefined, "Is not run immediately"); setTimeout(function () { a(invoked, true, "Run in next tick"); invoked = []; t(function () {...
Add tests for serial calls
Add tests for serial calls
JavaScript
isc
medikoo/next-tick
29f392e54a4de685118228b21c6d1312e58b9d66
test/index.js
test/index.js
var caps = require('../'); var test = require('tape'); test('works', function(t) { var TEST_ARRAY = [ ['kitten', 0.0], ['Kitten', 1 / 6.0], ['KItten', 1 / 3.0], ['KITten', 0.5], ['KITTen', 2 / 3.0], ['KITTEn', 5 / 6.0], ['KITTEN', 1.0], ['kittens ARE COOL', 7 / 16.0] ]; t.plan(TE...
var caps = require('../'); var test = require('tape'); test('works', function(t) { var TEST_ARRAY = [ ['kitten', 0.0], ['Kitten', 1 / 6.0], ['KItten', 1 / 3.0], ['KITten', 0.5], ['KITTen', 2 / 3.0], ['KITTEn', 5 / 6.0], ['KITTEN', 1.0], ['kittens ARE COOL', 7 / 16.0], ['kitteñ', 0...
Add tests for accented characters
Add tests for accented characters
JavaScript
mit
nwitch/caps-rate
5ce9c69881ea46aa6b2aa98d6d61e14fe4949f95
script.js
script.js
var html = document.getElementById("html"); var render = document.getElementById("render"); var toggle = document.getElementById("toggle"); var error = document.getElementById("error"); var code = CodeMirror.fromTextArea(document.getElementById("code"), { mode: "javascript" }); function update() { try { var e...
var html = document.getElementById("html"); var render = document.getElementById("render"); var toggle = document.getElementById("toggle"); var error = document.getElementById("error"); var code = CodeMirror.fromTextArea(document.getElementById("code"), { mode: "javascript" }); function update() { try { var e...
Use textContent instead of innerText
Use textContent instead of innerText
JavaScript
mit
nucular/xmgen,nucular/xmgen
c6ab3077925eb574062b1b9815bed6c954ab3cb6
lib/server.js
lib/server.js
const express = require('express') const fs = require('fs') const http = require('http') const https = require('https') const path = require('path') function startHttpServer(app, port) { const httpServer = http.Server(app) httpServer.listen(port, () => console.log(`Listening on HTTP port *:${port}`)) } function s...
const express = require('express') const fs = require('fs') const http = require('http') const https = require('https') const path = require('path') function startHttpServer(app, port) { const httpServer = http.Server(app) httpServer.listen(port, () => console.log(`Listening on HTTP port *:${port}`)) } function s...
Send 404 errors as JSON to keep NPM happy
Send 404 errors as JSON to keep NPM happy
JavaScript
mit
heikkipora/registry-sync,heikkipora/registry-sync,heikkipora/registry-sync
f19500f18b8f577703ce1fe0318f86308335c62e
src/components/FlightTracker/FlightsForm.js
src/components/FlightTracker/FlightsForm.js
import React from 'react' export function FlightsForm({ homeFloor, value, onChange }) { function onFlightsChanged(event) { const flights = parseFloat(event.target.value) onChange(flights) } function addFlights(flights) { onChange(value + flights) } function onAddDefaultFlights() { addFlight...
import React from 'react' export function FlightsForm({ homeFloor, value, onChange }) { function onFlightsChanged(event) { const flights = parseFloat(event.target.value) onChange(flights) } function addFlights(flights) { onChange(value + flights) } function onAddDefaultFlights() { addFlight...
Fix styling on flights form
Fix styling on flights form
JavaScript
mit
elstgav/step-up,elstgav/stair-climber,elstgav/stair-climber
42b4ff08ac63d894afdf75eee999bb763a2c5b96
src/dataset/pastedataset.js
src/dataset/pastedataset.js
'use strict'; /** * @ngdoc directive * @name vlui.directive:pasteDataset * @description * # pasteDataset */ angular.module('vlui') .directive('pasteDataset', function (Dataset, Alerts, Logger, Config, _, Papa) { return { templateUrl: 'dataset/pastedataset.html', restrict: 'E', replace: tru...
'use strict'; /** * @ngdoc directive * @name vlui.directive:pasteDataset * @description * # pasteDataset */ angular.module('vlui') .directive('pasteDataset', function (Dataset, Alerts, Logger, Config, _, dl) { return { templateUrl: 'dataset/pastedataset.html', restrict: 'E', replace: true,...
Use details parser for reading pasted data
Use details parser for reading pasted data
JavaScript
bsd-3-clause
uwdata/vega-lite-ui,vega/vega-lite-ui,uwdata/vega-lite-ui,vega/vega-lite-ui,vega/vega-lite-ui,uwdata/vega-lite-ui
16bc4ac36243d04e1dbc3e7675137cb016ed9c5e
server.js
server.js
var express = require('express'); var redis = require('ioredis'); var logger = require('morgan'); var cookieParser = require('cookie-parser'); var bodyParser = require('body-parser'); var routes = require('./routes/endpoints'); var users = require('./routes/users'); var api = express(); // var redis = new Redis('/tmp...
var express = require('express'); var redis = require('ioredis'); var path = require('path'); var logger = require('morgan'); var cookieParser = require('cookie-parser'); var bodyParser = require('body-parser'); var endpoints = require('./routes/endpoints'); var users = require('./routes/users'); var api = express();...
Add error handling, endpoints, and view engine w/ views
Add error handling, endpoints, and view engine w/ views
JavaScript
mit
nathansmyth/node-stack,nathansmyth/node-stack
f7bba22e5b5b3ee2fc1b14402f5c265a8a087170
server.js
server.js
'use strict'; // Dependencies var express = require('express'); var http = require('http'); var bodyparser = require('body-parser'); // Config var app = express(); app.use(bodyparser.json()); app.use(express.static(__dirname + (process.env.STATIC_DIR || '/build'))); // Routing require('./expressRoutes')(app); // In...
'use strict'; // Dependencies var express = require('express'); var http = require('http'); var bodyparser = require('body-parser'); // Config var app = express(); app.use(bodyparser.json()); app.use(express.static(__dirname + (process.env.STATIC_DIR || '/build'))); // Routing require('./expressRoutes')(app); // In...
Add port as an export, for testing
Add port as an export, for testing
JavaScript
mit
Localhost3000/along-the-way
25ca4515d828802927aec301c7721fe4fe294e0b
Melchior/JS/Socket.js
Melchior/JS/Socket.js
var Sockets = {} Sockets.Socket = function Socket (signal) { if(!('WebSocket' in window)) throw new Error("Websockets not supported in this browser") this.connection = io.connect('http://localhost:3001') this.signal = signal this.connection.onopen = function () { //hmmm... } this...
var Sockets = {} Sockets.Socket = function Socket (signal) { if(!('WebSocket' in window)) throw new Error("Websockets not supported in this browser") this.connection = io ? io.connect('http://localhost:3001') : new WebSocket("ws://localhost:3001") this.signal = signal this.send = this.connection.emit...
Make it less tightly coupled with socket.io
Make it less tightly coupled with socket.io
JavaScript
mit
kjgorman/melchior,kjgorman/melchior,kjgorman/melchior,kjgorman/melchior,kjgorman/melchior,kjgorman/melchior
14382c87363ebc85f58b0da4b5689f8d0f0140bd
src/util/valid-auth-type.js
src/util/valid-auth-type.js
/*global module */ module.exports = function validAuthType(type) { 'use strict'; var authTypes = ['AWS_IAM', 'NONE', 'CUSTOM']; return (authTypes.indexOf(type) >= 0); };
/*global module */ module.exports = function validAuthType(type) { 'use strict'; var authTypes = ['AWS_IAM', 'NONE', 'CUSTOM', 'COGNITO_USER_POOLS']; return (authTypes.indexOf(type) >= 0); };
Allow cognito user pool authorization
Allow cognito user pool authorization
JavaScript
mit
dhackner/claudia,dhackner/claudia
6f19117980bf8943f0c36d310e9b74466e82dc11
src/modules/search/middleware/collection.js
src/modules/search/middleware/collection.js
const { search, exportSearch } = require('../services') const { transformApiResponseToSearchCollection } = require('../transformers') function getCollection (searchEntity, entityDetails, ...itemTransformers) { return async function (req, res, next) { try { res.locals.results = await search({ search...
const { search, exportSearch } = require('../services') const { transformApiResponseToSearchCollection } = require('../transformers') function getCollection (searchEntity, entityDetails, ...itemTransformers) { return async function (req, res, next) { try { res.locals.results = await search({ search...
Remove redundant exception handling in exportCollection
Remove redundant exception handling in exportCollection
JavaScript
mit
uktrade/data-hub-fe-beta2,uktrade/data-hub-frontend,uktrade/data-hub-fe-beta2,uktrade/data-hub-frontend,uktrade/data-hub-frontend
6eae6d6034c9b3ceb6e564498d9fc0bfeb4bbc9b
src/Object.js
src/Object.js
/** * @require {core.ext.Object} * @require {core.ext.String} * @require {core.ext.Function} */ core.Class("lowland.Object", { include : [core.property.MGeneric, lowland.base.UserData, lowland.base.Events], construct : function() { lowland.base.UserData.call(this); lowland.base.Events.call(this); }...
/** * @require {core.ext.Object} * @require {core.ext.String} * @require {core.ext.Function} */ core.Class("lowland.Object", { include : [core.property.MGeneric, lowland.base.UserData, lowland.base.Events], construct : function() { lowland.base.UserData.call(this); lowland.base.Events.call(this); }...
Add warn and error to generic object
Add warn and error to generic object
JavaScript
mit
fastner/lowland,fastner/lowland
5fd9fe62dcd6e442344d202bc7d9c4fa0fea0a18
src/network.js
src/network.js
// https://en.bitcoin.it/wiki/List_of_address_prefixes module.exports = { bitcoin: { bip32: { pub: 0x0488b21e, priv: 0x0488ade4 }, pubKeyHash: 0x00, scriptHash: 0x05, wif: 0x80 }, dogecoin: { pubKeyHash: 0x30, scriptHash: 0x20, wif: 0x9e }, litecoin: { scriptHas...
// https://en.bitcoin.it/wiki/List_of_address_prefixes // Dogecoin BIP32 is a proposed standard: https://bitcointalk.org/index.php?topic=409731 module.exports = { bitcoin: { bip32: { pub: 0x0488b21e, priv: 0x0488ade4 }, pubKeyHash: 0x00, scriptHash: 0x05, wif: 0x80 }, dogecoin: { ...
Fix address prefixes, add dogecoin/litecoin BIP32 versions
Fix address prefixes, add dogecoin/litecoin BIP32 versions
JavaScript
mit
bitcoinhaber/bitcoinjs-lib,bpdavenport/bitcoinjs-lib,ptcrypto/bitcoinjs-lib,erikvold/bitcoinjs-lib,junderw/bitcoinjs-lib,BitGo/BitGoJS,p2pmining/bitcoinjs-lib,BitGo/bitcoinjs-lib,bitcoinjs/bitcoinjs-lib,visvirial/bitcoinjs-lib,visvirial/bitcoinjs-lib,habibmasuro/bitcoinjs-lib,blocktrail/bitcoinjs-lib,whitj00/opalcoinjs...
62bcabb8826bea721d9d53c6141ea2393737e90d
app/javascript/app/components/stories/stories-actions.js
app/javascript/app/components/stories/stories-actions.js
import { createAction } from 'redux-actions'; import { createThunkAction } from 'utils/redux'; const fetchStoriesInit = createAction('fetchStoriesInit'); const fetchStoriesReady = createAction('fetchStoriesReady'); const fetchStoriesFail = createAction('fetchStoriesFail'); const fetchStories = createThunkAction('fetc...
import { createAction } from 'redux-actions'; import { createThunkAction } from 'utils/redux'; const fetchStoriesInit = createAction('fetchStoriesInit'); const fetchStoriesReady = createAction('fetchStoriesReady'); const fetchStoriesFail = createAction('fetchStoriesFail'); const TAGS = ['NDC', 'ndcsdg', 'esp', 'clima...
Add filter tags to stories actions on js app
Add filter tags to stories actions on js app
JavaScript
mit
Vizzuality/climate-watch,Vizzuality/climate-watch,Vizzuality/climate-watch,Vizzuality/climate-watch
603409dc7896549d58ab36821d581820c298c7ee
assets/js/util/api.js
assets/js/util/api.js
/** * Cache data. * * Site Kit by Google, Copyright 2020 Google LLC * * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless r...
/** * Track API errors. * * Site Kit by Google, Copyright 2020 Google LLC * * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Un...
Improve track API file header.
Improve track API file header.
JavaScript
apache-2.0
google/site-kit-wp,google/site-kit-wp,google/site-kit-wp,google/site-kit-wp
7eb5153314da93c30f41e5615ea55fb672e5534e
server/app.js
server/app.js
// Server startup script // ===================== // Responsible for configuring the server, // inserting middleware, and starting the // app up. // // Note: this was written on my iPhone, please excuse typos 'use strict' let express = require('express'), exphbs = require('express-handlebars'), app = ex...
// Server startup script // ===================== // Responsible for configuring the server, // inserting middleware, and starting the // app up. // // Note: this was written on my iPhone, please excuse typos 'use strict' let express = require('express'), exphbs = require('express-handlebars'), app = ex...
Add static server middleware that is active in non-production environments only.
Add static server middleware that is active in non-production environments only.
JavaScript
mit
billpatrianakos/coverage-web,billpatrianakos/coverage-web,billpatrianakos/coverage-web
37b2967fc7523e849273d4b739184cdfc3778761
src/commands/rover/PingCommand.js
src/commands/rover/PingCommand.js
const Command = require('../Command') module.exports = class PingCommand extends Command { constructor (client) { super(client, { name: 'ping', properName: 'Ping', description: 'Ping the bot to see API latency' }) } async fn (msg) { msg.channel.send('Pinging...').then(message => { ...
const Command = require('../Command') module.exports = class PingCommand extends Command { constructor (client) { super(client, { name: 'ping', properName: 'Ping', description: 'Ping the bot to see API latency', userPermissions: [] }) } async fn (msg) { msg.channel.send('Pingi...
Allow ping command to be used by anyone
Allow ping command to be used by anyone
JavaScript
apache-2.0
evaera/RoVer
4c5679e121aa1a5c32fd18c40619df0c01c93ff5
app/config/sockjs_server.js
app/config/sockjs_server.js
(function() { 'use strict'; define(['sockjs'], function (sockjs) { var sockjs_opts = { sockjs_url: 'http://cdn.sockjs.org/sockjs-0.3.min.js' }; return sockjs.createServer(sockjs_opts); }); }());
(function() { 'use strict'; define(['sockjs'], function (sockjs) { return sockjs.createServer(); }); }());
Remove unused SockJS server-side config options
Remove unused SockJS server-side config options
JavaScript
mit
ndhoule/underscoreboard,ndhoule/underscoreboard
55dbc0efa497718406293b8d1d0165464c212413
client/src/teams/reducer.js
client/src/teams/reducer.js
import { ADD_TEAM_SUCCESS } from './actionCreators' let initialState = [ { id: 2, name: 'gym', colour: "#49078d", balance: 105463 }, { id: 1, name: 'fred', colour: "#23fe4d", balance: 105463 }, { id: 3, name: 'suup', colour: "#1fffe4", balance: 105463 } ] export default (state=initialState, action) => {...
import { ADD_TEAM_SUCCESS } from './actionCreators' const teams_in = (hash) => Object.keys(hash).map(key => hash[key]) export default (state=[], action) => { switch (action.type) { case ADD_TEAM_SUCCESS: return teams_in(action.response.teams) default: return state } }
Delete the hard-coded fake teams
Delete the hard-coded fake teams
JavaScript
mit
xpsurgery/shopping-cart,xpsurgery/shopping-cart,xpsurgery/shopping-cart
03ae44a0ef4d4c96f2578c317967bf38778f27b0
src/tracker.js
src/tracker.js
'use strict'; var trackStar = (function(){ function TrackStar() { var integrations = {}; if(!(this instanceof TrackStar)){ return new TrackStar(); } this.getIntegrations = function() { return integrations; }; this.integrate = function(integrationsObj) { if (Object.prototy...
'use strict'; var trackStar = (function(){ function TrackStar() { var integrations = {}; if(!(this instanceof TrackStar)){ return new TrackStar(); } this.getIntegrations = function() { return integrations; }; this.integrate = function(integrationsObj) { if (Object.prototy...
Make sure we're not grabbing any prototype props
Make sure we're not grabbing any prototype props Probably unnecessary, but let's be safe
JavaScript
apache-2.0
dustincoates/trackstar
20fbc6c4ccda450b31c39c739f5c438c994a67ed
src/wrapper.js
src/wrapper.js
/** Copyright (c) 2013 Jan Nicklas Released under MIT license */ /* global define: false, jQuery: true */ /* jshint sub:true */ // RequireJS amd factory // http://stackoverflow.com/questions/10918063/how-to-make-a-jquery-plugin-loadable-with-requirejs#answer-11890239 (function (factory) { 'use strict'; if (typeof...
/** Copyright (c) 2013 Jan Nicklas Released under MIT license */ /* global define: false, jQuery: true */ /* jshint sub:true */ // RequireJS amd factory // http://stackoverflow.com/questions/10918063/how-to-make-a-jquery-plugin-loadable-with-requirejs#answer-11890239 (function (factory) { 'use strict'; if (typeof...
Add the name of the included script
Add the name of the included script
JavaScript
mit
jantimon/ariaMenu,jantimon/ariaMenu
ce99af2e737a2afc6ffcb6a2c5e6869953b21757
app/javascript/modules/EmailParliament/index.js
app/javascript/modules/EmailParliament/index.js
import React, { useState } from 'react'; import classnames from 'classnames'; import { search } from './api'; import SearchByPostcode from './SearchByPostcode'; import EmailComposer from './EmailComposer'; import ComponentWrapper from '../../components/ComponentWrapper'; import { redirect } from '../../util/redirector'...
import React, { useState } from 'react'; import { render } from 'react-dom'; import classnames from 'classnames'; import { search } from './api'; import SearchByPostcode from './SearchByPostcode'; import EmailComposer from './EmailComposer'; import ComponentWrapper from '../../components/ComponentWrapper'; import { red...
Fix `render is undefined` in EmailParliament
Fix `render is undefined` in EmailParliament
JavaScript
mit
SumOfUs/Champaign,SumOfUs/Champaign,SumOfUs/Champaign,SumOfUs/Champaign,SumOfUs/Champaign
407921321c4746588b60c441f69820368ed8bee3
app/assets/scripts/components/community-card.js
app/assets/scripts/components/community-card.js
'use strict'; import React from 'react'; var CommunityCard = React.createClass({ displayName: 'CommunityCard', propTypes: { title: React.PropTypes.string, linkTitle: React.PropTypes.string, url: React.PropTypes.string, imageNode: React.PropTypes.node, children: React.PropTypes.object }, r...
'use strict'; import React from 'react'; import c from 'classnames'; var CommunityCard = React.createClass({ displayName: 'CommunityCard', propTypes: { title: React.PropTypes.string, linkTitle: React.PropTypes.string, url: React.PropTypes.string, imageNode: React.PropTypes.node, horizontal: Re...
Make community card horizontal by default
Make community card horizontal by default
JavaScript
bsd-3-clause
openaq/openaq.org,openaq/openaq.github.io,openaq/openaq.github.io,openaq/openaq.org,openaq/openaq.github.io,openaq/openaq.org
a12d5f8834dd451a6d70a3a1b9f8a60753246ce6
src/pages/Application/ApplicationDropdown.js
src/pages/Application/ApplicationDropdown.js
import React from 'react'; import { changeApplicationFieldValue } from '../../actions/application'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; const ApplicationTextField = ({changeApplicationFieldValue, field, applicationForm, disabled, isLoading, styles, options}) => ( <sel...
import React from 'react'; import { changeApplicationFieldValue } from '../../actions/application'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; const ApplicationDropdown = ({changeApplicationFieldValue, field, applicationForm, disabled, isLoading, styles, options}) => ( <sele...
Update dropdown with properr var name
Update dropdown with properr var name
JavaScript
agpl-3.0
BoilerMake/frontend,BoilerMake/frontend
0c3cf9273f3bef100484b50bbdb1968cddc06717
src/katagroup.js
src/katagroup.js
import Kata from './kata.js'; export default class KataGroup { static withKatas(groupName, rawKataItems) { var group = new KataGroup(); group.name = groupName; group.createKatas(rawKataItems); group.sortByName(); return group; } createKatas(rawKataItems) { this.katas = rawKataItems.map...
import Kata from './kata.js'; export default class KataGroup { static withKatas(groupName, rawKataItems) { var group = new KataGroup(); group.name = groupName; group.createKatas(rawKataItems); group.sortByName(); return group; } createKatas(rawKataItems) { this.katas = rawKataItems.map...
Remove unnecessary conversion, that is done now at kata creation time.
Remove unnecessary conversion, that is done now at kata creation time.
JavaScript
mit
tddbin/es6katas.org
0a643864d51d550234a6391b761512467cf44e73
src/modules/navigation/reducer.js
src/modules/navigation/reducer.js
import { isArray } from 'lodash'; import { AppNavigator } from 'DailyScrum/src/Scenes'; export default (state, action) => { const { type } = action; if (type === 'Navigation/NAVIGATE' && isRouteSameAsLastRouteFromNavigationStateSelector(state, action)) { console.warn( 'You pressed the navigation button t...
import { isArray, isEqual } from 'lodash'; import { AppNavigator } from 'DailyScrum/src/Scenes'; export default (state, action) => { const { type } = action; if (type === 'Navigation/NAVIGATE' && isRouteSameAsLastRouteFromNavigationStateSelector(state, action)) { console.warn( 'You pressed the navigation...
Fix navigating twice with params
Fix navigating twice with params
JavaScript
mit
Minishlink/DailyScrum,Minishlink/DailyScrum,Minishlink/DailyScrum,Minishlink/DailyScrum,Minishlink/DailyScrum
0a95b27d95b6310072080a41e1edcb5af75b32d1
server/routes/UserRoutes.js
server/routes/UserRoutes.js
import express from 'express'; import UserController from '../controllers/UserController'; const userRouter = express.Router(); userRouter.post('/api/user/signup', UserController.createUser()); userRouter.post('/api/user/signin', [ UserController.validateRequest(), UserController.authenticateUser() ]); userRouter....
import express from 'express'; import UserController from '../controllers/UserController'; const userRouter = express.Router(); userRouter.post('/api/user/signup', UserController.createUser()); userRouter.post('/api/user/signin', [ UserController.validateRequest(), UserController.authenticateUser() ]); userRouter....
Add endpoints to update and delete user
[feat]: Add endpoints to update and delete user
JavaScript
mit
tomipaul/PostIt,tomipaul/PostIt
c7fff6c1a91a69a54b9096d3698433abbcf2dd8e
source/main/utils/getNumberOfEpochsConsolidated.js
source/main/utils/getNumberOfEpochsConsolidated.js
// @flow import fs from 'fs'; import path from 'path'; import { appFolderPath } from '../config'; import { getNumberOfEpochsConsolidatedChannel } from '../ipc/getNumberOfEpochsConsolidated.ipc'; import type { GetNumberOfEpochsConsolidatedChannelResponse } from '../../common/ipc/api'; export const getNumberOfEpochsCons...
// @flow import fs from 'fs'; import path from 'path'; import { appFolderPath } from '../config'; import { getNumberOfEpochsConsolidatedChannel } from '../ipc/getNumberOfEpochsConsolidated.ipc'; import type { GetNumberOfEpochsConsolidatedChannelResponse } from '../../common/ipc/api'; import { environment } from '../env...
Correct path for EPOCH files in Linux
[DDW-557] Correct path for EPOCH files in Linux
JavaScript
apache-2.0
input-output-hk/daedalus,input-output-hk/daedalus,input-output-hk/daedalus,input-output-hk/daedalus,input-output-hk/daedalus,input-output-hk/daedalus
67a92bb20333d5aca9d8b02f76ba9c6d94795fd6
src/Footer.js
src/Footer.js
import React from 'react'; import './scss/footer.scss'; const Footer = () => { return ( <footer> <p>© 2016 Michael Kohler - JavaScript frontend and backend developer with a passion for Web Standards</p> </footer> ); }; export default Footer;
import React from 'react'; import './scss/footer.scss'; const Footer = () => { return ( <footer> <p>© 2016 Michael Kohler - Data accurate from 2013 onwards, before some are missing..</p> </footer> ); }; export default Footer;
Add data accuracy note in footer
Add data accuracy note in footer
JavaScript
mpl-2.0
MichaelKohler/where,MichaelKohler/where
dae0c1ce82b2c0abfde8b633728dd393b094e0c1
lib/widgets/host_details_panel.js
lib/widgets/host_details_panel.js
'use strict'; let blessed = require('blessed'); let _ = require('lodash'); let config = require('../../config/config'); module.exports = function () { let hostDetailsPanel = blessed.list({ top: 5, bottom: 5, left: '30%', tags: true, border: {type: 'line'}, keys: tr...
'use strict'; let blessed = require('blessed'); let _ = require('lodash'); let config = require('../../config/config'); module.exports = function () { let hostDetailsPanel = blessed.list({ top: 5, bottom: 5, left: '30%', tags: true, border: {type: 'line'}, keys: tr...
Fix keys case into details panel
Fix keys case into details panel
JavaScript
mit
etissieres/ssh-config-ui
a2e6df5e9dee79f636b21016c8a5b1b810679e19
consumer-ui/src/app/config/angular-translate.js
consumer-ui/src/app/config/angular-translate.js
angular.module('nnConsumerUi') .config(function($translateProvider) { $translateProvider.translations('fi', { 'REQUIRED_FIELD': 'Pakollinen kenttä', 'CHARACTERS_LEFT': 'Merkkiä jäljellä', 'CHOOSE_FILE': 'Valitse tiedosto', 'PRINT_BUTTON': 'Tulosta', 'SEND_MAIL_BUTTON': 'Lähetä sähköp...
angular.module('nnConsumerUi') .config(function($translateProvider) { $translateProvider.translations('fi', { 'REQUIRED_FIELD': 'Pakollinen kenttä', 'CHARACTERS_LEFT': 'Merkkiä jäljellä', 'CHOOSE_FILE': 'Valitse tiedosto', 'PRINT_BUTTON': 'Tulosta', 'SEND_MAIL_BUTTON': 'Lähetä sähköp...
Add missing translation to consumer-ui
Add missing translation to consumer-ui
JavaScript
mit
nordsoftware/nettineuvoja,nordsoftware/nettineuvoja,nordsoftware/nettineuvoja,nordsoftware/nettineuvoja,nordsoftware/nettineuvoja
5e456f6017c550a56d685963f007b8f73563fb57
tasks/jscs.js
tasks/jscs.js
"use strict"; var Vow = require( "vow" ); module.exports = function( grunt ) { var filter = Array.prototype.filter, JSCS = require( "./lib/jscs" ).init( grunt ); grunt.registerMultiTask( "jscs", "JavaScript Code Style checker", function() { var done = this.async(), options = this...
"use strict"; var Vow = require( "vow" ); module.exports = function( grunt ) { var filter = Array.prototype.filter, JSCS = require( "./lib/jscs" ).init( grunt ); grunt.registerMultiTask( "jscs", "JavaScript Code Style checker", function() { var done = this.async(), options = this...
Add comment for null as default value
Add comment for null as default value
JavaScript
mit
markelog/grunt-checker
5525d5f5d22faf3a65324de927de277cbb877e94
app/utils/george-foreman.js
app/utils/george-foreman.js
export default class GeorgeForeman { constructor() { } }
export default class GeorgeForeman { constructor() { this.generation = GeorgeForeman.addGeneration(); } name() { return `George Foreman ${this.formatGeneration()}`; } formatGeneration() { switch (this.generation) { case 2: return "II"; default: return ""; } } ...
Implement class/static method for George
Implement class/static method for George
JavaScript
mit
Riverside-Ruby/learning-es6,Riverside-Ruby/learning-es6
a89ea164e9bc1a883283bd9c610a8f0738c53828
Kwc/Statistics/OptBox/Component.defer.js
Kwc/Statistics/OptBox/Component.defer.js
var $ = require('jQuery'); var onReady = require('kwf/on-ready'); var cookieOpt = require('kwf/cookie-opt'); onReady.onRender('.kwcClass', function (el, config) { if (!cookieOpt.isSetOpt()) { if (config.showBanner) { setTimeout(function(){ $('body').addClass('kwfUp-showCookieBan...
var $ = require('jQuery'); var onReady = require('kwf/on-ready'); var cookieOpt = require('kwf/cookie-opt'); onReady.onRender('.kwcClass', function (el, config) { if (!cookieOpt.isSetOpt()) { if (config.showBanner) { setTimeout(function(){ $('body').addClass('kwfUp-showCookieBan...
Call resizeevent on body when cookiebanner change visibility Make it possible to change something in web after the visibility of the cookiebanner changed. For example to move fixed content, if the cookiebanner appears on top of the page.
Call resizeevent on body when cookiebanner change visibility Make it possible to change something in web after the visibility of the cookiebanner changed. For example to move fixed content, if the cookiebanner appears on top of the page.
JavaScript
bsd-2-clause
koala-framework/koala-framework,koala-framework/koala-framework
85cd4f35e321082c407bb41ab6ea6f22b7bf1017
gulpfile.js
gulpfile.js
'use strict'; var gulp = require('gulp'); var browserify = require('browserify'); var source = require('vinyl-source-stream'); var streamify = require('gulp-streamify'); var size = require('gulp-size'); var uglify = require('gulp-uglify'); var rename = require('gulp-rename'); var del = require('del'); var config = { ...
'use strict'; var gulp = require('gulp'); var browserify = require('browserify'); var source = require('vinyl-source-stream'); var streamify = require('gulp-streamify'); var size = require('gulp-size'); var uglify = require('gulp-uglify'); var rename = require('gulp-rename'); var del = require('del'); var config = { ...
Add standalone field to browserify build
Add standalone field to browserify build closes #29
JavaScript
mit
braintree/credit-card-type
9839b8526e45a1f5d8b99ffab99a37e06f3f6598
client/js/directives/header-entry-directive.js
client/js/directives/header-entry-directive.js
"use strict"; angular.module("hikeio"). directive("headerEntry", function() { return { scope: { align: "@", label: "@", url: "@" }, template: "<a href='{{url}}'>" + "<div style='float:{{align}}' >" + "<div class='header-separator' data-ng-show='align == \"right\"'></div>" + "<div ...
"use strict"; angular.module("hikeio"). directive("headerEntry", function() { return { scope: { align: "@", label: "@", url: "@" }, template: "<a href='{{url}}'>" + "<div data-ng-style='{float:align}' >" + "<div class='header-separator' data-ng-show='align == \"right\"'></div>" + ...
Use ng-style to fix header float issue on ie10.
Use ng-style to fix header float issue on ie10.
JavaScript
mit
zaknelson/hike.io,zaknelson/hike.io,zaknelson/hike.io,zaknelson/hike.io
8f4e0f16a0985578c49462475df6abf89540c673
gulpfile.js
gulpfile.js
/* * Paper.js - The Swiss Army Knife of Vector Graphics Scripting. * http://paperjs.org/ * * Copyright (c) 2011 - 2016, Juerg Lehni & Jonathan Puckey * http://scratchdisk.com/ & http://jonathanpuckey.com/ * * Distributed under the MIT license. See LICENSE file for details. * * All rights reserved. */ var gul...
/* * Paper.js - The Swiss Army Knife of Vector Graphics Scripting. * http://paperjs.org/ * * Copyright (c) 2011 - 2016, Juerg Lehni & Jonathan Puckey * http://scratchdisk.com/ & http://jonathanpuckey.com/ * * Distributed under the MIT license. See LICENSE file for details. * * All rights reserved. */ var gul...
Increase QUnit timeout to 10s, as Travis doesn't finish in time.
Increase QUnit timeout to 10s, as Travis doesn't finish in time.
JavaScript
mit
lehni/paper.js,iconexperience/paper.js,lehni/paper.js,iconexperience/paper.js,lehni/paper.js,iconexperience/paper.js
845280ecb6b8ad4c97ca248a6f7322e1fd38da25
lib/api.js
lib/api.js
var parse = require('./parse'); module.exports = function(data) { this.token = data.token; }; module.exports.prototype = { get: function() { query = parse.query(arguments); callback = parse.callback(arguments); }, post: function() { }, put: function() { }, del: function...
var parse = require('./parse'); module.exports = function(data) { this.token = data.token; }; module.exports.prototype = { get: function() { query = parse.query(arguments); callback = parse.callback(arguments); }, post: function() { query = parse.query(arguments); callb...
Add query and callback parsing to get/post/put/del
Add query and callback parsing to get/post/put/del
JavaScript
apache-2.0
phonegap/node-phonegap-build-api
1c1f3d90b4b66f335351ae4d66c86ca98cb8b339
packages/react-app-rewired/index.js
packages/react-app-rewired/index.js
const babelLoaderMatcher = function(rule) { return rule.loader && rule.loader.indexOf("babel-loader/") != -1; } const getLoader = function(rules, matcher) { var loader; rules.some(rule => { return loader = matcher(rule) ? rule : getLoader(rule.use || rule.oneOf || [], matcher); }); return l...
const path = require('path'); const babelLoaderMatcher = function(rule) { return rule.loader && rule.loader.indexOf(`babel-loader${path.sep}`) != -1; } const getLoader = function(rules, matcher) { var loader; rules.some(rule => { return loader = matcher(rule) ? rule : getLoader(rule.use || rule...
Fix plugin injection on Windows
Fix plugin injection on Windows
JavaScript
mit
timarney/react-app-rewired,timarney/react-app-rewired
893bfb091ed0e6f9f46672ca280334171098defe
src/config.js
src/config.js
let userConfig; try { userConfig = require('../config'); } catch (e) { throw new Error(`Config file could not be found or read! The error given was: ${e.message}`); } const defaultConfig = { "token": null, "mailGuildId": null, "mainGuildId": null, "logChannelId": null, "prefix": "!", "snippetPrefix":...
let userConfig; try { userConfig = require('../config'); } catch (e) { throw new Error(`Config file could not be found or read! The error given was: ${e.message}`); } const defaultConfig = { "token": null, "mailGuildId": null, "mainGuildId": null, "logChannelId": null, "prefix": "!", "snippetPrefix":...
Set greeting defaults to null
Set greeting defaults to null
JavaScript
mit
Dragory/modmailbot
13c8749224dd2d7014953acd295cb582bbefaf10
display-stats.js
display-stats.js
// ==UserScript== // @name Display Stats // @namespace https://github.com/EFox2413/initiumGrease // @version 0.1 // @description try to take over the world! // @author EFox2413 // @match https://www.playinitium.com/* // @grant none // ==/UserScript== /* jshint -W097 */ 'use strict';...
// ==UserScript== // @name Display Stats // @namespace https://github.com/EFox2413/initiumGrease // @version 0.1 // @description try to take over the world! // @author EFox2413 // @match https://www.playinitium.com/* // @match http://www.playinitium.com/* // @grant none // ==...
Add an additional match line for http
Add an additional match line for http Add an additional match line for http so the script script runs on http/s.
JavaScript
mit
EFox2413/initiumGrease
d08eeb39468740085f1488e7e031e8122dba0124
gulpfile.js
gulpfile.js
/// var pkg = require("./package.json") , gulp = require("gulp") , plumber = require("gulp-plumber") /// // Lint JS /// var jshint = require("gulp-jshint") , jsonFiles = [".jshintrc", "*.json"] , jsFiles = ["*.js", "src/**/*.js"] gulp.task("scripts.lint", function() { gulp.src([].concat(jsonFiles).concat(jsF...
/// var pkg = require("./package.json") , gulp = require("gulp") , plumber = require("gulp-plumber") /// // Lint JS /// var jshint = require("gulp-jshint") , jsonFiles = [".jshintrc", "*.json"] , jsFiles = ["*.js", "src/**/*.js"] gulp.task("scripts.lint", function() { gulp.src([].concat(jsonFiles).concat(jsF...
Add publish task (for gh-pages)
Add publish task (for gh-pages)
JavaScript
mit
MoOx/parallaxify,MoOx/parallaxify
9dc4e7c955b0252f1e5b0a89f2dc1cfbaf030088
lib/cartodb/middleware/context/db-conn-setup.js
lib/cartodb/middleware/context/db-conn-setup.js
const _ = require('underscore'); module.exports = function dbConnSetup (pgConnection) { return function dbConnSetupMiddleware (req, res, next) { const { user } = res.locals; pgConnection.setDBConn(user, res.locals, (err) => { req.profiler.done('setDBConn'); if (err) { ...
const _ = require('underscore'); module.exports = function dbConnSetup (pgConnection) { return function dbConnSetupMiddleware (req, res, next) { const { user } = res.locals; pgConnection.setDBConn(user, res.locals, (err) => { req.profiler.done('dbConnSetup'); if (err) { ...
Use the right step name for profiling
Use the right step name for profiling
JavaScript
bsd-3-clause
CartoDB/Windshaft-cartodb,CartoDB/Windshaft-cartodb,CartoDB/Windshaft-cartodb,CartoDB/Windshaft-cartodb
bdfc949f40eef5f43febb7e1fb2e53874fad399f
source/assets/javascripts/syntax-highlight.js
source/assets/javascripts/syntax-highlight.js
import hljs from 'highlight.js/lib/highlight'; import javascript from 'highlight.js/lib/languages/javascript'; import ruby from 'highlight.js/lib/languages/ruby'; import elixir from 'highlight.js/lib/languages/elixir'; import shell from 'highlight.js/lib/languages/shell'; import bash from 'highlight.js/lib/languages/ba...
import highlight from 'highlight.js/lib/highlight'; import bash from 'highlight.js/lib/languages/bash'; import css from 'highlight.js/lib/languages/css'; import elixir from 'highlight.js/lib/languages/elixir'; import html from 'highlight.js/lib/languages/html'; import javascript from 'highlight.js/lib/languages/javasc...
Add more languages to highlight
Add more languages to highlight
JavaScript
mit
rossta/rossta.github.com,rossta/rossta.github.com,rossta/rossta.github.com
c9707e7a63d446ae1c60814c705d48b604b9ddca
htteepee.js
htteepee.js
/*globals module, require*/ var stack = require('stack'), http = require('http'), _hs = http.createServer; http.createServer = function createServer () { 'use strict'; return _hs.call(http, stack.apply(stack, Array.prototype.slice.call(arguments)) ); }; http.createMiddlewareServer = funct...
/*globals module, require*/ var stack = require('stack'), http = require('http'), _hs = http.createServer; http.createServer = function createServer () { 'use strict'; return _hs.call(http, stack.apply(stack, Array.prototype.slice.call(arguments)) ); }; http.createMiddlewareServer = funct...
Change away froma accepting array to accepting arguments like our own createServer
Change away froma accepting array to accepting arguments like our own createServer
JavaScript
mit
brettz9/htteepee
c5f148c6ec29c86671471bcde50cea809479b5c6
client/app/mirage/config.js
client/app/mirage/config.js
export default function() { }
export default function() { this.get('/orders', function(db, request) { return { data: [ { id: 1, type: "order", attributes: { organizerName: "Пицца Темпо", orderTime: "14:00", moneyRequired: 300000, moneyCurrent: 100000 ...
Add test endpoint for /orders
Add test endpoint for /orders
JavaScript
mit
yandex-shri-minsk-2016/yummy-time,yandex-shri-minsk-2016/yummy-time,yandex-shri-minsk-2016/yummy-time
622c972dd4d23923b40799cf945206c0c774b5bb
helper.js
helper.js
Handlebars.registerHelper('select_box', function(field, options) { var html_options, _this = this; if (!field) { return; } if (options.hash.optionValues && options.hash.optionValues.length > 0) { optionsValues = options.hash.optionValues } else { optionsValues = _this["" + field + "Options"]();...
Handlebars.registerHelper('select_box', function(field, options) { var html_options, _this = this; if (!field) { return; } if (options.hash['class']) { html_class = " " + options.hash['class'] } else { html_class = "" } if (options.hash.optionValues && options.hash.optionValues.length > 0)...
Add support for adding classes to the select box
Add support for adding classes to the select box
JavaScript
mit
meteorclub/simple-form
4b027289b5f1aebca17f64b7fe240bfe0a0c2930
build-regular-expression.js
build-regular-expression.js
var captureDigit = '([1-9][0-9]*)' var EUCD = new RegExp( '^' + captureDigit + 'e' + optional(captureDigit + 'u') + optional(captureDigit + 'c') + optional(captureDigit + 'd') + '$') function optional(reString) { return ( '(?:' + reString + ')?' ) } process.stdout.write(( 'module.exports = ' + EUCD + '...
var captureDigit = '([1-9][0-9]*)' var regularExpression = new RegExp( '^' + captureDigit + 'e' + optional(captureDigit + 'u') + optional(captureDigit + 'c') + optional(captureDigit + 'd') + '$') function optional(reString) { return ( '(?:' + reString + ')?' ) } process.stdout.write(( 'module.exports =...
Rename variable in regular expression build script
Rename variable in regular expression build script
JavaScript
mit
kemitchell/reviewers-edition-parse.js
96d80da6ba02307d4b4c115f9f9ffea8ef998d2c
chrome-cordova/plugins/chrome-common/errors.js
chrome-cordova/plugins/chrome-common/errors.js
// Copyright (c) 2012 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. try { var runtime = require('org.chromium.runtime.runtime'); } catch(e) {} // Typical Usage: // // if (fail_condition) // return callbackWithError(...
// Copyright (c) 2012 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. try { var runtime = require('org.chromium.runtime.runtime'); } catch(e) {} // Typical Usage: // // if (fail_condition) // return callbackWithError(...
Allow setting error.code as well as error.message for callbackWithError()
Allow setting error.code as well as error.message for callbackWithError()
JavaScript
bsd-3-clause
chirilo/mobile-chrome-apps,MobileChromeApps/mobile-chrome-apps,wudkj/mobile-chrome-apps,xiaoyanit/mobile-chrome-apps,guozanhua/mobile-chrome-apps,xiaoyanit/mobile-chrome-apps,guozanhua/mobile-chrome-apps,xiaoyanit/mobile-chrome-apps,guozanhua/mobile-chrome-apps,MobileChromeApps/mobile-chrome-apps,liqingzhu/mobile-chrom...
581ca42c1e0c35fbeef9fffc501292d10e15974d
app/assets/javascripts/georgia/application.js
app/assets/javascripts/georgia/application.js
//= require jquery //= require jquery.ui.all //= require georgia/jquery.ui.touch-punch //= require jquery_ujs //= require jquery-fileupload //= require twitter/bootstrap //= require select2 //= require shadowbox //= require mousetrap //= require georgia/keybindings //= require georgia/jquery.mjs.nestedSortable //= requ...
//= require jquery //= require jquery.ui.all //= require jquery_ujs //= require jquery-fileupload //= require twitter/bootstrap //= require select2 //= require shadowbox //= require mousetrap //= require ckeditor/init //= require_tree .//ckeditor //= require handlebars.runtime //= require underscore //= require backb...
Fix double inclusion of jquery
Fix double inclusion of jquery
JavaScript
mit
georgia-cms/georgia,georgia-cms/georgia,georgia-cms/georgia
8f233b5f65981b79ef88f2c1dad315fe6e9e34d3
js/mock-sensor.js
js/mock-sensor.js
// This mock sensor implementation triggers an event with some data every once in a while var emitter = require( "events" ).EventEmitter, possibleStrings = [ "Helsinki", "Espoo", "Tampere", "Oulu", "Mikkeli", "Ii" ]; // Return a random integer between 0 and @upperLimit function randomInteger( upperLimit...
// This mock sensor implementation triggers an event with some data every once in a while var emitter = require( "events" ).EventEmitter, possibleStrings = [ "Helsinki", "Espoo", "Tampere", "Oulu", "Mikkeli", "Ii" ]; // Return a random integer between 0 and @upperLimit function randomInteger( upperLimit...
Fix mock sensor randomization code
Examples: Fix mock sensor randomization code
JavaScript
mit
zolkis/iotivity-node,zqzhang/iotivity-node,zolkis/iotivity-node,zqzhang/iotivity-node,zolkis/iotivity-node,zolkis/iotivity-node,zqzhang/iotivity-node,zqzhang/iotivity-node,zqzhang/iotivity-node,zolkis/iotivity-node
ecbb97b5d0b9698de4ceb47a94cd7499460cbf11
lib/transactional-email.js
lib/transactional-email.js
const REQUIRED_FIELDS = Object.freeze(['to']); const OPTIONAL_FIELDS = Object.freeze([ 'customer_id', 'transactional_message_id', 'message_data', 'from', 'from_id', 'reply_to', 'reply_to_id', 'bcc', 'subject', 'body', 'plaintext_body', 'amp_body', 'fake_bcc', 'hide_body', ]); module.exports...
const REQUIRED_FIELDS = Object.freeze(['to']); const OPTIONAL_FIELDS = Object.freeze([ 'customer_id', 'transactional_message_id', 'message_data', 'from', 'from_id', 'reply_to', 'reply_to_id', 'bcc', 'subject', 'body', 'plaintext_body', 'amp_body', 'fake_bcc', 'hide_body', ]); module.exports...
Fix syntax for node 10
Fix syntax for node 10
JavaScript
mit
customerio/customerio-node,customerio/customerio-node,customerio/customerio-node
0e3abf3fd573780b0898240ba06b1a19a4e2f1b4
controllers/transactions.js
controllers/transactions.js
'use strict'; var mongoose = require('mongoose'); var Transaction = require('../models/Transaction'); mongoose.Promise = global.Promise; module.exports = mongoose.connection; var index = function (req, res, next) { Transaction.find({}).exec().then(function (trans) { res.json(trans); }).catch(function(error){ ...
'use strict'; var mongoose = require('mongoose'); var Transaction = require('../models/Transaction'); mongoose.Promise = global.Promise; module.exports = mongoose.connection; var index = function (req, res, next) { Transaction.find({}).exec().then(function (trans) { res.json(trans); }).catch(function(error){ ...
Add create method in Transcation controller. -cwc
Add create method in Transcation controller. -cwc Next thing to do is add update method.
JavaScript
mit
Church-ill/project3-back,Church-ill/project3-back,Church-ill/project3-back
c2de65fb35c1e621e711527b7d2f357d1c4c3885
chat-plugins/development.js
chat-plugins/development.js
/** * Development commands plugin * * This houses the bot's development commands. * These commands should only be used if the operator knows what their doing. * * @license MIT license */ 'use strict'; exports.commands = { js: 'eval', eval: function (target, room, user, cmd) { if (!target) return Chat.send(...
/** * Development commands plugin * * This houses the bot's development commands. * These commands should only be used if the operator knows what their doing. * * @license MIT license */ 'use strict'; exports.commands = { js: 'eval', eval: function (target, room, user, cmd) { if (!target) return Chat.send(...
Enable Javascript syntax highlighting in some cmds
Enable Javascript syntax highlighting in some cmds
JavaScript
mit
panpawn/Discord-Bot
cf18968b1115f67dbb48c36834d1ba08e32aeb8d
js/nalyt.js
js/nalyt.js
$(document).ready(function(){ if (analytics) { $('a[target=_blank]').click(function (e) { var url = this.getAttribute("href") || this.getAttribute("xlink:href"); analytics.track("externalLink", {url: url}); }); window.onpopstate = function (event) { analytics.page("Slide", {url: locati...
$(document).ready(function(){ if (analytics) { $('a[target=_blank]').click(function (e) { var url = this.getAttribute("href") || this.getAttribute("xlink:href"); analytics.track("Clicked External Link", {url: url}); }); window.onpopstate = function (event) { analytics.page("Slide", {ur...
Change name of the event
Change name of the event
JavaScript
mit
cyberFund/cyberep.cyber.fund,cyberFund/cyberep.cyber.fund
202b819f2e1f1caa1c00f4503900de2ceef1d3bb
app/gbi_server/static/js/admin/create_user.js
app/gbi_server/static/js/admin/create_user.js
$(document).ready(function() { $('#verified').click(function() { if($(this).attr("checked")) { $('#activate').removeAttr('disabled'); } else { $('#activate').attr('disabled', 'disabled'); } }); $('#activate').attr('disabled', 'disabled'); });
$(document).ready(function() { $('#verified').click(function() { if($(this).attr("checked")) { $('#activate').removeAttr('disabled'); } else { $('#activate').attr('disabled', 'disabled'); } }); $('#activate').attr('disabled', 'disabled'); $('#type').change...
Hide florlp_name when type not 0
Hide florlp_name when type not 0
JavaScript
apache-2.0
omniscale/gbi-server,omniscale/gbi-server,omniscale/gbi-server
d7bfb87ea5580463c9fc058ea0718ac90a3f32f1
src/auth/authApi.service.js
src/auth/authApi.service.js
(function (angular) { 'use strict'; angular .module('movieClub.auth') .factory('authApi', authApi); function authApi($firebaseAuth, usersApi, firebaseRef) { var factory = { login: login, logout: logout, onAuth: onAuth, ...
(function (angular) { 'use strict'; angular .module('movieClub.auth') .factory('authApi', authApi); function authApi($firebaseAuth, usersApi, firebaseRef) { var factory = { login: login, logout: logout, onAuth: onAuth, ...
Use promise chaining during registration
Use promise chaining during registration
JavaScript
mit
charwking/movie-club,charwking/movie-club,charwking/movie-club
1024e5132e2f39fdaa46ee9f538046ef6e9d17ff
grunt/config/css-mqpacker.js
grunt/config/css-mqpacker.js
module.exports = function(grunt) { grunt.config('css_mqpacker', { options: { map: false, // enable/disable source maps }, main: { src: '<%= project.styles_dev %>/main.dev.css', dest: '<%= project.styles_dev %>/main.dev.css', }, mobile: { src: '<%= project.styles_dev %>/mobile.dev.css', dest: ...
module.exports = function(grunt) { grunt.config('css_mqpacker', { options: { map: false, // enable/disable source maps sort: true, }, main: { src: '<%= project.styles_dev %>/main.dev.css', dest: '<%= project.styles_dev %>/main.dev.css', }, mobile: { src: '<%= project.styles_dev %>/mobile.dev....
Add sort media queries to Grunt mqpacker config.
Add sort media queries to Grunt mqpacker config.
JavaScript
mit
jolantis/altair,jolantis/altair
e9841437c4834710354bf0c00ccf5d7c9eb8ffaa
src/components/App/index.js
src/components/App/index.js
import React from 'react' const App = () => ( <h1>Hello from React</h1> ) export default App
import React from 'react' import Counter from '../../containers/Counter' const App = () => ( <div> <Counter /> </div> ) export default App
Put the Counter into App
Put the Counter into App
JavaScript
mit
epicsharp/react-boilerplate,RSS-Dev/live-html,epicsharp/react-boilerplate,RSS-Dev/live-html
4aa4466ac5f30870be92724a571c557dc48dc4ed
src/repl/main.js
src/repl/main.js
import Repl from './Repl.html'; import examples from './examples.js'; function tryParseData ( encoded ) { try { return JSON.parse( decodeURIComponent( atob( encoded ) ) ); } catch ( err ) { return {}; } } if ( typeof svelte !== 'undefined' ) { const dataMatch = /data=(.+)$/.exec( window.location.search ); co...
import Repl from './Repl.html'; import examples from './examples.js'; function tryParseData ( encoded ) { try { return JSON.parse( decodeURIComponent( atob( encoded ) ) ); } catch ( err ) { return {}; } } if ( typeof svelte !== 'undefined' ) { const dataMatch = /data=(.+)$/.exec( window.location.search ); co...
Adjust REPL component target element
Adjust REPL component target element
JavaScript
mit
sveltejs/svelte.technology,sveltejs/svelte.technology
ec23be002f6658e2743f02a673e30cacd704b34c
src/components/Nav/index.js
src/components/Nav/index.js
import React, { Component } from 'react'; import { NavLink } from 'react-router-dom'; import nav from '../icons/nav'; import styles from './index.module.less'; export default class index extends Component { constructor() { super(); this.state = {}; } render() { const { routerData } = this.props; ...
import React, { Component } from 'react'; import { NavLink } from 'react-router-dom'; import { Tooltip } from '@uiw/core'; import nav from '../icons/nav'; import styles from './index.module.less'; export default class index extends Component { constructor() { super(); this.state = {}; } render() { co...
Modify the website nav style.
docs: Modify the website nav style.
JavaScript
mit
uiw-react/uiw,uiw-react/uiw
b0609358beb1785b07e1eb2b643a9e25a8b500a4
js/app.js
js/app.js
(function() { 'use strict'; // Model var Task = Backbone.Model.extend({ defaults: { title: 'do something!', completed: false }, validate: function (attr) { if (_.isEmpty(attr.title)) { return 'title must not be empty!'; } }, toggle: function () { this.se...
(function() { 'use strict'; // Model var Task = Backbone.Model.extend({ defaults: { title: 'do something!', completed: false } }); var task = new Task(); // View var TaskView = Backbone.View.extend({ tagName: 'li' }); var taskView = new TaskView({ model: task }); ...
Create list tag in View.
Create list tag in View.
JavaScript
mit
shgtkshruch/dotinstall-backbone
230e7fa0663afc90df0359c574309afe8d018749
app/services/interceptor/api-interceptor.service.js
app/services/interceptor/api-interceptor.service.js
(function () { 'use strict'; angular .module('doleticApp') .service('APIInterceptorService', APIInterceptorService); APIInterceptorService.$inject = ['$rootScope', '$q', 'AuthService', 'store']; function APIInterceptorService($rootScope, $q, AuthService) { var service = this; ...
(function () { 'use strict'; angular .module('doleticApp') .service('APIInterceptorService', APIInterceptorService); APIInterceptorService.$inject = ['$rootScope', '$q', 'AuthService', '$injector', 'MessageBoxService']; function APIInterceptorService($rootScope, $q, AuthService, $inje...
Add api 401 unauthorized interception and redirect to login
Add api 401 unauthorized interception and redirect to login
JavaScript
mit
JuCN/DoleticRESTClient,ETICINSATechnologies/DoleticRESTClient,nsorin/DoleticRESTClient,JuCN/DoleticRESTClient,ETICINSATechnologies/DoleticRESTClient,nsorin/DoleticRESTClient
ee03bf731294a55a6c59d567f4540dc7e8d88d16
package.js
package.js
Package.describe({ summary: "Meteor unit testing framework for packages", name: "spacejamio:munit", version: "1.0.0", git: "https://github.com/spacejamio/meteor-munit.git" }); Package.onUse(function (api, where) { api.versionsFrom('0.9.0'); api.use(["coffeescript", "underscore"]); api.use(["tiny...
Package.describe({ summary: "Meteor unit testing framework for packages", name: "spacejamio:munit", version: "1.0.0", git: "https://github.com/spacejamio/meteor-munit.git" }); Package.onUse(function (api, where) { api.versionsFrom('0.9.0'); api.use(["coffeescript", "underscore"]); api.use(["tiny...
Add version contraints for sinon and chai
Add version contraints for sinon and chai
JavaScript
mit
awatson1978/clinical-verification,practicalmeteor/meteor-munit
801a263ea3a7aac846b860b8933669a728af06d0
src/contexts/NodeContext.js
src/contexts/NodeContext.js
const {JsContext} = require('stencila') /** * A Node.js context for executing Javascript code */ class NodeContext extends JsContext {} NodeContext.spec = { name: 'NodeContext', base: 'Context', aliases: ['js', 'node'] } module.exports = NodeContext
const {JsContext} = require('stencila') /** * A Node.js context for executing Javascript code */ class NodeContext extends JsContext {} NodeContext.spec = { name: 'NodeContext', client: 'ContextHttpClient', aliases: ['js', 'node'] } module.exports = NodeContext
Switch to new spec protocol
Switch to new spec protocol
JavaScript
apache-2.0
stencila/node,stencila/node
9a7d99c50367f8b9e0fcf31d5e326ac622672850
src/shapes.js
src/shapes.js
/** * Values suitable for use within `propTypes` of components. * * @module higherform */ import { PropTypes } from 'react'; export const FormShape = PropTypes.shape({ validate: PropTypes.func, errors: PropTypes.objectOf(PropTypes.arrayOf(PropTypes.string)), }); export const FieldShape = PropTypes.object...
/** * Values suitable for use within `propTypes` of components. * * @module higherform */ import { PropTypes } from 'react'; export const FormShape = PropTypes.shape({ submit: PropTypes.func, errors: PropTypes.object, }); export const FieldShape = PropTypes.object; export const FieldsShape = PropTypes.o...
Use the Correct PropTypes for the FormShape
Use the Correct PropTypes for the FormShape
JavaScript
mit
AgencyPMG/higherform,AgencyPMG/higherform
d8c5d622facc6459b1e97f99bac8d9cc1819480f
abstract.js
abstract.js
'use strict'; var assign = require('es5-ext/object/assign') , setPrototypeOf = require('es5-ext/object/set-prototype-of') , d = require('d') , captureStackTrace = Error.captureStackTrace , AbstractError; AbstractError = function AbstractError(message/*, code, ext*/) { var ext, code; if...
'use strict'; var assign = require('es5-ext/object/assign') , setPrototypeOf = require('es5-ext/object/set-prototype-of') , d = require('d') , captureStackTrace = Error.captureStackTrace , AbstractError; AbstractError = function AbstractError(message/*, code, ext*/) { var ext, code; if...
Fix pass of arguments issue
Fix pass of arguments issue
JavaScript
mit
medikoo/error-create
b9be6a6fccd7558f3aa704972c4ac53e377c43c1
src/foam/dao/DAOProperty.js
src/foam/dao/DAOProperty.js
/** * @license * Copyright 2016 Google Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requir...
/** * @license * Copyright 2016 Google Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requir...
Fix java generatino of DAOSink.
Fix java generatino of DAOSink.
JavaScript
apache-2.0
foam-framework/foam2,jacksonic/vjlofvhjfgm,foam-framework/foam2,foam-framework/foam2,foam-framework/foam2,jacksonic/vjlofvhjfgm,foam-framework/foam2,jacksonic/vjlofvhjfgm
b8eedc06fef0a78f6d58a49c0efec766d186d67e
db/controllers/bookmarks.js
db/controllers/bookmarks.js
var Bookmark = require('../models/index.js').Bookmark; var create = function(props, callback) { Bookmark.build(props) .save() .then(function(bookmark) { callback(bookmark); }).catch(function(err) { console.log(err); }); }; var findAll = function(callback) { Bookmark.findAll().then(function(bookmar...
var Bookmark = require('../models/index.js').Bookmark; var create = function(props, callback) { Bookmark.build(props) .save() .then(function(bookmark) { callback(bookmark); }).catch(function(err) { console.log(err); }); }; var findAll = function(callback) { Bookmark.findAll().then(function(bookmar...
Improve conciseness of console.log messages
Improve conciseness of console.log messages
JavaScript
mit
francoabaroa/escape-reality,lowtalkers/escape-reality,lowtalkers/escape-reality,francoabaroa/escape-reality
02a3f5b3fb131e05b10a4dc0fe868ea28b275f61
lib/BaseObject.js
lib/BaseObject.js
module.exports = exports = function BaseObject(key, myRedis, options) { this.key = key; if (myRedis && !options) { options = myRedis; myRedis = null; } if (!options) options = {}; this.options = options; this.myRedis = myRedis; }; exports.prototype.redis = function() { return this.myRedis || re...
module.exports = exports = function BaseObject(key, myRedis, options) { this.key = key; if (myRedis && !options) { options = myRedis; myRedis = null; } if (!options) options = {}; this.options = options; this.myRedis = myRedis; }; exports.prototype.redis = function() { return this.myRedis || re...
Add clear command to base object, and simplify inspect
Add clear command to base object, and simplify inspect
JavaScript
mit
hfwang/node-redis-objects
ad002ab21ef7400ef8df3314ac739a544e1220d3
both/router/routes.js
both/router/routes.js
/*****************************************************************************/ /* Client and Server Routes */ /*****************************************************************************/ Router.configure({ layoutTemplate: 'MasterLayout', loadingTemplate: 'Loading', notFoundTemplate: 'NotFound' }); Router.rou...
/*****************************************************************************/ /* Client and Server Routes */ /*****************************************************************************/ Router.configure({ layoutTemplate: 'MasterLayout', loadingTemplate: 'Loading', notFoundTemplate: 'NotFound' }); Router.rou...
Use route whitelist method for security
Use route whitelist method for security
JavaScript
mit
bojicas/letterhead,bojicas/letterhead
cf17c59c7ad1848edd16c10cfcbf493aa6640b0f
lib/env_loader.js
lib/env_loader.js
'use strict'; var os = require('os'); var path = require('path'); var dotenv = require('dotenv'); var defaultMappings = { username: 'SCS_USERNAME', password: 'SCS_PASSWORD' }; module.exports = { /** * @param {Object} program * @param {Object} argumentMappings - optional */ loadConfig(...
'use strict'; var os = require('os'); var path = require('path'); var dotenv = require('dotenv'); var defaultMappings = { username: 'SCS_USERNAME', password: 'SCS_PASSWORD' }; module.exports = { /** * @param {Object} program * @param {Object} argumentMappings - optional */ loadConfig(...
Fix overwriting of username by passing ‘-u|—username’
Fix overwriting of username by passing ‘-u|—username’
JavaScript
mit
VIISON/scs-commander
7a25a4d2236ddc7cee625ba2137b086614bb15a6
src/main/webapp/gulpfile.js
src/main/webapp/gulpfile.js
'use strict'; var gulp = require('gulp'); var jshint = require('gulp-jshint'); var csslint = require('gulp-csslint'); gulp.task('lint', ['jshint', 'csslint']); gulp.task('jshint', function() { return gulp.src('./js/*.js') .pipe(jshint()) .pipe(jshint.reporter('jshint-stylish')); }); gulp.task('csslint', f...
// jshint ignore:start 'use strict'; var gulp = require('gulp'); var jshint = require('gulp-jshint'); var csslint = require('gulp-csslint'); gulp.task('lint', ['jshint', 'csslint']); gulp.task('jshint', function() { return gulp.src('./js/*.js') .pipe(jshint()) .pipe(jshint.reporter('checkstyle')); }); gul...
Use checkstyle output from jshint reporter
[TECG-125] Use checkstyle output from jshint reporter
JavaScript
apache-2.0
ciandt-dev/tech-gallery,ciandt-dev/tech-gallery,ciandt-dev/tech-gallery
34b352a0a6bae910dfb825ee74ec8c15848e5cfc
batch/pubsub/queue-seeker.js
batch/pubsub/queue-seeker.js
'use strict'; var QUEUE = require('../job_queue').QUEUE; function QueueSeeker(pool) { this.pool = pool; } module.exports = QueueSeeker; QueueSeeker.prototype.seek = function (callback) { var initialCursor = ['0']; var users = {}; var self = this; this.pool.acquire(QUEUE.DB, function(err, client...
'use strict'; var QUEUE = require('../job_queue').QUEUE; var MAX_SCAN_ATTEMPTS = 50; function QueueSeeker(pool) { this.pool = pool; } module.exports = QueueSeeker; QueueSeeker.prototype.seek = function (callback) { var initialCursor = ['0']; var attemps = 0; var users = {}; var self = this; ...
Use max number of attempts to scan user queues
Use max number of attempts to scan user queues
JavaScript
bsd-3-clause
CartoDB/CartoDB-SQL-API,CartoDB/CartoDB-SQL-API
41f93f380688849092f036a37a0f0a40d94ef473
test/primitives/amount.js
test/primitives/amount.js
// Import AVA import test from 'ava' // Imports import Amount from '../../src/primitives/amount' import BigNumber from 'bignumber.js' // Test data const testNumber = 78953286724 const testValue = '78953286724' /** * Value must be BigNumber. */ test('value must be BigNumber', t => { const number = 8 t.throws(()...
// Import AVA import test from 'ava' // Imports import Amount from '../../src/primitives/amount' import BigNumber from 'bignumber.js' // Test data const testNumber = 78953286724 const testValue = '78953286724' /** * Value must be BigNumber. */ test('value must be BigNumber', t => { t.throws(() => { new Amoun...
Use centralized test data for Amount tests
Use centralized test data for Amount tests
JavaScript
unlicense
jestcrows/ethtaint,jestcrows/ethtaint
c30d406e330c1c69877cd80e9f3b9ba3cdddc983
src/direct-linking/content_script/rendering.js
src/direct-linking/content_script/rendering.js
import { retryUntil } from '../utils' import { descriptorToRange, markRange } from './annotations' import styles from './styles.css' export async function highlightAnnotation({ annotation }) { // console.log('highlighting') const descriptor = annotation.anchors[0].descriptor const range = await retryUntil...
import * as AllRaven from 'raven-js' import { retryUntil } from '../utils' import { descriptorToRange, markRange } from './annotations' import styles from './styles.css' const Raven = AllRaven['default'] export async function highlightAnnotation({ annotation }) { // console.log('highlighting') await Raven.co...
Add annotation selector breacrumb for Direct Linking
Add annotation selector breacrumb for Direct Linking
JavaScript
mit
WorldBrain/WebMemex,WorldBrain/WebMemex
cf93826d032895946baf0bfc9742b45dc8623a46
test/index.js
test/index.js
// Copyright (c) 2015 Uber Technologies, Inc. // // 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...
// Copyright (c) 2015 Uber Technologies, Inc. // // 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...
Add as thrift test to suite
Add as thrift test to suite
JavaScript
mit
uber/tcurl,uber/tcurl,benfleis/tcurl,bobegir/tcurl
bd8e1369263d865f8457ef47c592876279db8be7
lib/util.js
lib/util.js
const Q = require('q'); // Regex to test if the string is likely a facebook user ID const USER_ID_REGEX = /^\d+$/; async function getFBUserInfoByID(api, id) { return await Q.nfcall(api.getUserInfo, id); } async function findFBUser(api, search_str, allowNonFriends) { let userID = search_str; // If the se...
const Q = require('q'); // Regex to test if the string is likely a facebook user ID const USER_ID_REGEX = /^\d+$/; async function getFBUserInfoByID(api, id) { return await Q.nfcall(api.getUserInfo, id); } async function findFBUser(api, search_str, allowNonFriends) { let userID = search_str; // If the se...
Fix issues with findUser refactor
Fix issues with findUser refactor
JavaScript
mit
Weetbix/facebot
a2a86fb46d2d170675dbab2145835871933bad01
common/models/user.js
common/models/user.js
'use strict'; module.exports = function(User) { if (process.env.NODE_ENV !== 'testing') { User.afterRemote('create', async (context, user) => { const options = { type: 'email', protocol: process.env.PROTOCOL || 'http', port: process.env.DISPLAY_PORT || 3000, host: process.en...
'use strict'; class StubMailer { static send(options, context, cb) { cb(null, null); } } module.exports = function(User) { User.afterRemote('create', async (context, user) => { let options = null; if (process.env.NODE_ENV === 'testing') { options = { type: 'email', from: 'test...
Use fake mailer on tests
:sparkes: Use fake mailer on tests
JavaScript
agpl-3.0
redBorder/license-manager-api
18c04888ea69acaa86bf43246a1aa135c50c03df
app/utils/query-converter.js
app/utils/query-converter.js
/* global URI */ /** * QueryConverter stores a list of string to string pairs * as a hash (Embereño for POJO) and can export that list as a JSON string, * a URL query string, or a hash. * We will use the JSON string representation as an ID for Ember Data. * To ensure a 1-1 mapping from queries to IDs, * ID repre...
/* global URI */ /** * QueryConverter stores a list of string to string pairs * as a hash (Embereño for POJO) and can export that list as a JSON string, * a URL query string, or a hash. * We will use the JSON string representation as an ID for Ember Data. * To ensure a 1-1 mapping from queries to IDs, * ID repre...
Allow method chaining in QueryConverter
Allow method chaining in QueryConverter
JavaScript
mit
UrbanCCD-UChicago/plenario-explorer,UrbanCCD-UChicago/plenario-explorer,UrbanCCD-UChicago/plenario-explorer
5554134cd1b7f4170a8f100672969ed856a3a929
src/sprites/Common/index.js
src/sprites/Common/index.js
import Phaser from 'phaser'; import { tile, nextTile, alignToGrid, pixelToTile } from '../../tiles'; import { clone } from '../../utils'; import objectPool from '../../object-pool'; import tween from './tween'; export default class extends Phaser.Image { constructor(game, x, y, sprite, frame, id, objectType) { ...
import Phaser from 'phaser'; import { tile, nextTile, alignToGrid, pixelToTile } from '../../tiles'; import { clone } from '../../utils'; import objectPool from '../../object-pool'; import tween from './tween'; export default class extends Phaser.Image { constructor(game, x, y, sprite, frame, id, objectType) { ...
Reset destroyed flag on reset
Reset destroyed flag on reset
JavaScript
mit
ThomasMays/incremental-forest,ThomasMays/incremental-forest
a896071d4c282a23662e6aa3cfcaaf4a69cb901a
test/tzset.js
test/tzset.js
var should = require('should') , time = require('../') describe('tzset()', function () { beforeEach(function () { process.env.TZ = 'UTC' }) it('should work with no arguments', function () { process.env.TZ = 'US/Pacific' time.tzset() time.currentTimezone.should.equal('US/Pacific') }) it('...
var should = require('should') , time = require('../') describe('tzset()', function () { beforeEach(function () { process.env.TZ = 'UTC' }) it('should work with no arguments', function () { process.env.TZ = 'US/Pacific' time.tzset() time.currentTimezone.should.equal('US/Pacific') }) it('...
Add a test testing some known timezone values.
Add a test testing some known timezone values.
JavaScript
mit
TooTallNate/node-time,TooTallNate/node-time,santigimeno/node-time,santigimeno/node-time,santigimeno/node-time,TooTallNate/node-time
60d2770c762811bcd21ab9324d683ea9daedb27c
_src-js/home.js
_src-js/home.js
import window from 'global/window'; import document from 'global/document'; import $ from 'jquery'; import videojs from 'video.js'; const player = window.player = videojs('preview-player', { fluid: true, plugins: { mux: { data: { property_key: 'VJSISBEST', video_title: 'The Boids!', ...
import window from 'global/window'; import document from 'global/document'; import $ from 'jquery'; import videojs from 'video.js'; const player = window.player = videojs('preview-player', { fluid: true, plugins: { mux: { data: { property_key: 'VJSISBEST', video_title: 'Disney\'s Oceans',...
Fix the title of the main video
Fix the title of the main video
JavaScript
mit
videojs/videojs.com
b6c8c4c49aa05e66504efbae37a2838ddf046564
public_records_portal/static/js/all_requests.js
public_records_portal/static/js/all_requests.js
$(document).ready(function(){ Modernizr.load({ test: Modernizr.inputtypes.date, nope: ['http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js', 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.7/jquery-ui.min.js', 'jquery-ui.css'], complete: function () { $('input[type=...
$(document).ready(function(){ Modernizr.load({ test: Modernizr.inputtypes.date, nope: ['http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js', 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.7/jquery-ui.min.js','http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.7/themes/base/jquery-ui....
Update to use correct jquery-ui.css file
Update to use correct jquery-ui.css file
JavaScript
apache-2.0
CityOfNewYork/NYCOpenRecords,CityOfNewYork/NYCOpenRecords,CityOfNewYork/NYCOpenRecords,CityOfNewYork/NYCOpenRecords,CityOfNewYork/NYCOpenRecords
e35487c6fb979c0931cd2a3505f4c9063705c702
lib/prefork.js
lib/prefork.js
var prefork = require('../build/Release/prefork').prefork, fs = require('fs'); module.exports = function (options) { options = options || {}; var outfd, errfd; if (Array.isArray(options.customFds) && options.customFds.length < 3) { options.customFds.unshift(-1); } if (options.stdout && typeof opti...
var prefork = require('../build/Release/prefork').prefork, fs = require('fs'); module.exports = function (options) { options = options || {}; var infd = -1, outfd = -1, errfd = -1, customFds; if (options.stdin && typeof options.stdin === 'string') { infd = fs.openSync(options.stdin, 'r'); } i...
Add options.stdin, clean up options logic.
[api] Add options.stdin, clean up options logic.
JavaScript
mit
AvianFlu/node-prefork,AvianFlu/node-prefork,AvianFlu/node-prefork
9b34ee7d9ab3d2cacedcf549273fbca9c6465cb3
api/test/api.js
api/test/api.js
var chai = require('chai'); var chaiHttp = require('chai-http'); var server = require('../app'); var should = chai.should(); // var expect = chai.expect; // var request = require("request"); describe("Date-a-Dog Server", function() { describe("Rest API tests", function() { it('Should return user profile for tes...
var chai = require('chai'); var chaiHttp = require('chai-http'); var server = require('../app'); var should = chai.should(); // var expect = chai.expect; // var request = require("request"); chai.use(chaiHttp); describe("Date-a-Dog Server", function() { describe("Rest API tests", function() { it('Should return...
Update to first Rest API test
Update to first Rest API test
JavaScript
mit
Date-a-Dog/Date-a-Dog,Date-a-Dog/Date-a-Dog,jammua/dog-dating-app,Date-a-Dog/Date-a-Dog
51167144a5be785042ff15a9435f6ea8c75d6c53
pages/_app.js
pages/_app.js
import '@/css/tailwind.css' import '@/css/prism.css' import { ThemeProvider } from 'next-themes' import Head from 'next/head' import siteMetadata from '@/data/siteMetadata' import Analytics from '@/components/analytics' import LayoutWrapper from '@/components/LayoutWrapper' import { ClientReload } from '@/components/...
import '@/css/tailwind.css' import '@/css/prism.css' import { ThemeProvider } from 'next-themes' import Head from 'next/head' import moment from 'moment' import siteMetadata from '@/data/siteMetadata' import Analytics from '@/components/analytics' import LayoutWrapper from '@/components/LayoutWrapper' import { Client...
Add meta version for build version
Add meta version for build version
JavaScript
mit
ravuthz/ravuthz.github.io,ravuthz/ravuthz.github.io
3eaf3d248b0118353260a4c9b2f8ecdc23fff359
test/suites/080-dataview.js
test/suites/080-dataview.js
describe('Dataview', function () { this.bail(true) this.timeout(20 * 1000) it('Switch to "Dataview" tab', function (done) { eTT().tab('Dataview').click(done) }) it('Click on second "customDataviewReference" dataview item', function (done) { eTT().dataview('customDataviewReference')...
describe('Dataview', function () { this.bail(true) this.timeout(20 * 1000) it('Switch to "Dataview" tab', function (done) { eTT().tab('Dataview').click(done) }) it('Click on second "customDataviewReference" dataview item', function (done) { eTT().dataview('customDataviewReference')...
Remove cls and swap args
Remove cls and swap args
JavaScript
mit
antonfisher/extjs-testing-tool,antonfisher/extjs-testing-tool,antonfisher/node-mocha-extjs,antonfisher/node-mocha-extjs,antonfisher/mocha-extjs,antonfisher/node-mocha-extjs,antonfisher/extjs-testing-tool,antonfisher/mocha-extjs,antonfisher/mocha-extjs
e44aba0a81f3eaef631290c10776d94d033c74d9
src/templates/interactions/interaction-list.js
src/templates/interactions/interaction-list.js
import { bindable, inject } from 'aurelia-framework'; import imagesLoaded from 'imagesloaded'; import Masonry from 'masonry-layout'; import { EventAggregator } from 'aurelia-event-aggregator'; import { RefreshView } from 'resources/messages'; @inject(EventAggregator) export class InteractionListCustomElement { @bind...
import { bindable, inject } from 'aurelia-framework'; import Masonry from 'masonry-layout'; import { EventAggregator } from 'aurelia-event-aggregator'; import { RefreshedView } from 'resources/messages'; import { Router } from 'aurelia-router'; @inject(EventAggregator, Router) export class InteractionListCustomElement...
Update interactions, removed image and added in the correct event
Update interactions, removed image and added in the correct event
JavaScript
mit
mttmccb/dark_social,mttmccb/dark_social,mttmccb/dark_social
fee15f1ba4479c2cbfa2005cea0f46bf53b9604c
src/article/TableCellNode.js
src/article/TableCellNode.js
import { XMLTextElement } from 'substance' import { TEXT } from '../kit' export default class TableCellNode extends XMLTextElement { constructor (...args) { super(...args) this.rowIdx = -1 this.colIdx = -1 } get rowspan () { return _parseSpan(this.getAttribute('rowspan')) } get colspan () ...
import { XMLTextElement } from 'substance' import { TEXT } from '../kit' export default class TableCellNode extends XMLTextElement { constructor (...args) { super(...args) this.rowIdx = -1 this.colIdx = -1 } get rowspan () { return _parseSpan(this.getAttribute('rowspan')) } get colspan () ...
Allow for inline-graphic in table cell.
Allow for inline-graphic in table cell.
JavaScript
mit
substance/texture,substance/texture
9163d9dbc4f58aefbc620934c3db961f0bbf0477
mocks/index.js
mocks/index.js
var config = require('../lib/config'), cors = require('../lib/cors'), fs = require('fs'); var paths = [], len = 0; exports.init = function() { if (config.mocksEnabled) { console.log("Mock server enabled"); var pathSource = require('./paths'); for (var name in pathSource) { ...
var config = require('../lib/config'), cors = require('../lib/cors'), fs = require('fs'); var paths = [], len = 0; exports.init = function() { if (config.mocksEnabled) { console.log("Mock server enabled"); } var pathSource = require('./paths'); for (var name in pathSource) { paths.push({...
Allow runtime toggling of mocks
Allow runtime toggling of mocks
JavaScript
mit
walmartlabs/mock-server,walmartlabs/mock-server
41e38cf5affb703233b4aa0097af8e7d10e4e817
config/deprecation-workflow.js
config/deprecation-workflow.js
/* global window */ window.deprecationWorkflow = window.deprecationWorkflow || {}; window.deprecationWorkflow.config = { workflow: [ { handler: 'silence', matchId: 'ember-metal.get-with-default' }, { handler: 'silence', matchId: 'manager-capabilities.modifiers-3-13' }, //https://github.com/emberjs/ember-rend...
/* global window */ window.deprecationWorkflow = window.deprecationWorkflow || {}; window.deprecationWorkflow.config = { workflow: [ { handler: 'silence', matchId: 'manager-capabilities.modifiers-3-13' }, //https://github.com/emberjs/ember-render-modifiers/issues/32 { handler: 'silence', matchId: 'this-prope...
Remove get with default deprecation
Remove get with default deprecation This is cleared in our app, we don't need to silence it anymore.
JavaScript
mit
jrjohnson/frontend,dartajax/frontend,ilios/frontend,ilios/frontend,dartajax/frontend,jrjohnson/frontend
af6cdec03b5ff9934466b7625e887d76f0a862ce
script.js
script.js
(() => { 'use strict'; var player = "O"; var moves = []; var winningCombos = [ ["1", "2", "3"], ["4", "5", "6"], ["7", "8", "9"], ["1", "5", "9"], ["3", "5", "7"], ["1", "4", "7"], ["2", "5", "8"], ["3", "6", "9"]]; window.play = (sq)...
(() => { 'use strict'; var player = "O"; var moves = []; var winningCombos = [ ["1", "2", "3"], ["4", "5", "6"], ["7", "8", "9"], ["1", "5", "9"], ["3", "5", "7"], ["1", "4", "7"], ["2", "5", "8"], ["3", "6", "9"]]; window.play = (sq)...
Change from map to forEach.
Change from map to forEach.
JavaScript
mit
olillevik/olillevik.github.io,olillevik/olillevik.github.io
6d0b782f76d6c05a5a2bb6c085de8a8767cf3b06
app/assets/javascripts/tenon/tenon_manifest.js
app/assets/javascripts/tenon/tenon_manifest.js
//= require jquery //= require jquery_ujs // -- Plugins, in alphabetical order //= require backstretch //= require bootstrap //= require bootstrap.collapse //= require bootstrap.modal //= require bootstrap.tabs //= require canvasjs.min //= require cocoon //= require imagesloaded //= require jquery-fileupload/basic //=...
//= require jquery //= require jquery_ujs // -- Plugins, in alphabetical order //= require backstretch //= require bootstrap //= require bootstrap.collapse //= require bootstrap.modal //= require bootstrap.tabs //= require canvasjs.min //= require cocoon //= require imagesloaded //= require jquery-fileupload/basic //=...
Call the custom tenon files
Call the custom tenon files
JavaScript
mit
factore/tenon,factore/tenon,factore/tenon,factore/tenon
0df84d28c5767cfd17c54d3eff5d338ad5c31768
src/components/status-tag.js
src/components/status-tag.js
import React from 'react'; import PropTypes from 'prop-types'; import {css} from 'react-emotion'; const wipStyle = css` background-color: tomato; color: ivory; font-variant: small-caps; line-height: 1.1; padding: 0 2px; `; const expStyle = css` background-color: deepskyblue; color: ivory; font-variant...
import React from 'react'; import PropTypes from 'prop-types'; import {css} from 'react-emotion'; const wipStyle = css` background-color: tomato; color: ivory; font-variant: small-caps; line-height: 1.1; padding: 0 2px; font-size: 12px; border-bottom: none; `; const expStyle = css` background-color: d...
Use abbr for status tags
style: Use abbr for status tags Signed-off-by: Arnau Siches <3ce1c0b0b7032cdfdae7820ed353835a9a8f94c3@digital.cabinet-office.gov.uk>
JavaScript
mit
openregister/specification