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
616729f152d9f513bf02ad3b0f41a21fbc89761a
lib/instagram.js
lib/instagram.js
var config = { clientId: '', clientSecret: '', hashTag: 'ruisrock2014' } var getIg = function(){ var ig = require('instagram-node').instagram(); ig.use({ client_id: config.clientId, client_secret: config.clientSecret}); return ig; } var parseIgMediaObject = function(media){ return { link...
var config = { clientId: '', clientSecret: '', hashTag: 'ruisrock2014' } var getIg = function(){ var ig = require('instagram-node').instagram(); ig.use({ client_id: config.clientId, client_secret: config.clientSecret}); return ig; } var parseIgMediaObject = function(media){ return { link...
Send 500 every now and then
Send 500 every now and then
JavaScript
mit
futurice/festapp-server,futurice/sec-conference-server,0is1/festapp-server,futurice/sec-conference-server
a5f3d39929b4886ae28711d607c05275bfab74ca
dev/_/components/js/comparisonSetCollection.js
dev/_/components/js/comparisonSetCollection.js
AV.ComparisonSetCollection = Backbone.Collection.extend({ url: AV.URL('set.json'), updateURL: function() { this.url = AV.URL('set.json'); } });
AV.ComparisonSetCollection = Backbone.Collection.extend({ url: AV.URL('set'),//'.json'), updateURL: function() { this.url = AV.URL('set');//'.json'); } });
Remove .json from the set url
Remove .json from the set url
JavaScript
bsd-3-clause
Swarthmore/juxtaphor,Swarthmore/juxtaphor
98148ba689955cd9f07a55e6360207f613ceb6aa
gest.js
gest.js
#! /usr/bin/env node const args = require('./args') // TODO const path = require('path') const { graphql: config } = require(path.join(process.cwd(), 'package.json')) const { sendQuery, readFile, checkPath, REPL } = require('./src/api') const { pullHeaders, colorResponse } = require('./src/util') args .option('heade...
#! /usr/bin/env node const args = require('./args') // TODO const path = require('path') const { sendQuery, readFile, checkPath, REPL } = require('./src/api') const { pullHeaders, colorResponse } = require('./src/util') args .option('header', 'HTTP request header') .option('baseUrl', 'Base URL for sending HTTP req...
Add error handling to chekcing package.json
Add error handling to chekcing package.json
JavaScript
mit
mfix22/graphicli
c488bae8b97a3a9207d1aa0bbea424c92d493df0
lib/handlers/providers/index.js
lib/handlers/providers/index.js
"use strict"; var Anyfetch = require('anyfetch'); module.exports.get = function get(req, res, next) { var anyfetchClient = new Anyfetch(req.accessToken.token); anyfetchClient.getDocuments({ fields: 'facets.providers' }, function updated(err, anyfetchRes) { if(!err) { var providers = anyfetchRes.bod...
"use strict"; var Anyfetch = require('anyfetch'); module.exports.get = function get(req, res, next) { var anyfetchClient = new Anyfetch(req.accessToken.token); anyfetchClient.getDocuments({ fields: 'facets.providers' }, function updated(err, anyfetchRes) { if(!err) { var providers = anyfetchRes.bod...
Fix for missing providers length
Fix for missing providers length
JavaScript
mit
AnyFetch/companion-server
521c7e73b09e71d34d8966f35952cb26ce010bd0
src/nih_wayfinding/app/scripts/views/routing/directions/row-detail-directive.js
src/nih_wayfinding/app/scripts/views/routing/directions/row-detail-directive.js
(function () { 'use strict'; /* ngInject */ function RowDetail($compile) { // TODO: Animate the row appearing var template = [ '<tr ng-show="visible"><td colspan="2">', '<ul class="list-unstyled">', '<li ng-repeat="feature in item.directions....
(function () { 'use strict'; /* ngInject */ function RowDetail($compile) { // TODO: Animate the row appearing var template = [ '<div class="block" ng-show="visible">', '<ul class="list-unstyled">', '<li ng-repeat="feature in item.directions.f...
Move step-by-step direction details into element
Move step-by-step direction details into element
JavaScript
apache-2.0
azavea/nih-wayfinding,azavea/nih-wayfinding
fea9882a1d77bae8f5710c79af3cd17677e97345
client/js/helpers/rosetexloader.js
client/js/helpers/rosetexloader.js
'use strict'; /** * @note Returns texture immediately, but doesn't load till later. */ var ROSETexLoader = {}; ROSETexLoader.load = function(path, callback) { var tex = DDS.load(path, function() { if (callback) { callback(); } }); tex.minFilter = tex.magFilter = THREE.LinearFilter; return tex; ...
'use strict'; /** * @note Returns texture immediately, but doesn't load till later. */ var ROSETexLoader = {}; ROSETexLoader.load = function(path, callback) { var tex = DDS.load(path, function() { if (callback) { callback(); } }); tex.minFilter = tex.magFilter = THREE.LinearFilter; tex.path = p...
Set .path in dds textures for debugging.
Set .path in dds textures for debugging.
JavaScript
agpl-3.0
brett19/rosebrowser,Jiwan/rosebrowser,exjam/rosebrowser,exjam/rosebrowser,Jiwan/rosebrowser,brett19/rosebrowser
4505a470372a5d4df66d6945039000a3da9f0358
006.js
006.js
var _ = require('lazy.js'); var square = function square (n) { return Math.pow(n, 2); }; var sum = function sum (n, m) { return n + m; }; var sumOfSquares = function sumOfSquares (range) { return range.map(square).reduce(sum); }; var squareOfSum = function squareOfSum (range) { return square(range.reduce(su...
Add initial global JS solution for problem 6
Add initial global JS solution for problem 6
JavaScript
mit
jrhorn424/euler,jrhorn424/euler
659234ef7c0c6efd14be14997ddd7d2e97a3d385
closure/goog/disposable/idisposable.js
closure/goog/disposable/idisposable.js
// Copyright 2011 The Closure Library Authors. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless requ...
// Copyright 2011 The Closure Library Authors. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless requ...
Allow object literals to be IDisposable
Allow object literals to be IDisposable RELNOTES[INC]: goog.disposable.IDisposable is now @record ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=129902477
JavaScript
apache-2.0
redforks/closure-library,redforks/closure-library,redforks/closure-library,redforks/closure-library
bb6c53c86c6f9aabf70fd3cd70a885f2083ed790
app.js
app.js
'use strict'; /** * Imports. */ const express = require('express'); /** * Initialize Express. */ const app = express(); // Setup locals variable in config/index.js. app.locals = require('./config'); // Configure express app based on local configuration. app.set('env', app.locals.express.env); /** * Routing. ...
'use strict'; /** * Imports. */ const express = require('express'); const http = require('http'); /** * Initialize Express. */ const app = express(); // Setup locals variable in config/index.js. app.locals = require('./config'); // Configure express app based on local configuration. app.set('env', app.locals.ex...
Print actual port number in server init log
Print actual port number in server init log
JavaScript
mit
DoSomething/blink,DoSomething/blink
650756852a9ff4011afe2e662495066fdce079e8
app.js
app.js
#!/usr/bin/env node /* * SQL API loader * =============== * * node app [environment] * * environments: [development, test, production] * */ var _ = require('underscore'); // sanity check arguments var ENV = process.argv[2]; if (ENV != 'development' && ENV != 'production' && ENV != 'test') { console.error("\n./app ...
#!/usr/bin/env node /* * SQL API loader * =============== * * node app [environment] * * environments: [development, test, production] * */ var _ = require('underscore'); // sanity check arguments var ENV = process.argv[2]; if (ENV != 'development' && ENV != 'production' && ENV != 'test') { console.error("\n./app ...
Use a default base_url when not specified in config file
Use a default base_url when not specified in config file Also report the base_url at startup
JavaScript
bsd-3-clause
calvinmetcalf/CartoDB-SQL-API,dbirchak/CartoDB-SQL-API,calvinmetcalf/CartoDB-SQL-API,calvinmetcalf/CartoDB-SQL-API,CartoDB/CartoDB-SQL-API,dbirchak/CartoDB-SQL-API,dbirchak/CartoDB-SQL-API,CartoDB/CartoDB-SQL-API,calvinmetcalf/CartoDB-SQL-API,dbirchak/CartoDB-SQL-API
61eb38969435727ff074b1a95253b577c88c4dfb
common/endpoints/endpoints.service.js
common/endpoints/endpoints.service.js
export default [ 'config', 'hs.common.laymanService', function (config, laymanService) { const me = this; function getItemsPerPageConfig(ds) { return angular.isDefined(ds.paging) && angular.isDefined(ds.paging.itemsPerPage) ? ds.paging.itemsPerPage : config.dsPaging || 20; ...
export default [ 'config', 'hs.common.laymanService', function (config, laymanService) { const me = this; function getItemsPerPageConfig(ds) { return angular.isDefined(ds.paging) && angular.isDefined(ds.paging.itemsPerPage) ? ds.paging.itemsPerPage : config.dsPaging || 20; ...
Correct adding of statusmanager to endpoints
Correct adding of statusmanager to endpoints
JavaScript
mit
hslayers/hslayers-ng,hslayers/hslayers-ng,hslayers/hslayers-ng,hslayers/hslayers-ng
c320a3d7430bf3242bd9147ba7c6e95b09c45e52
src/constants.js
src/constants.js
'use strict'; const isClipMediaRef = { $not: { startTime: 0, endTime: null } } const isClipMediaRefWithTitle = { $not: { startTime: 0, endTime: null }, $not: { title: null }, $not: { title: '' } } module.exports = { isClipMediaRef: isClipMediaRef, isClipMediaRefWithTitle: ...
'use strict'; const isClipMediaRef = { $not: { startTime: 0, endTime: null } } const isClipMediaRefWithTitle = { $not: { startTime: 0, endTime: null }, $and: { $not: { title: null } }, $and: { $not: { title: '' } } } module.exports = { isClipMediaRef: isC...
Fix broken isClipMediaRefWithTitle for real this time (I think)
Fix broken isClipMediaRefWithTitle for real this time (I think)
JavaScript
agpl-3.0
podverse/podverse-web,podverse/podverse-web,podverse/podverse-web,podverse/podverse-web
c3352aa312e75183b629c3fb7b5948ccf4c2d080
spec/javascripts/reports/components/modal_open_name_spec.js
spec/javascripts/reports/components/modal_open_name_spec.js
import Vue from 'vue'; import Vuex from 'vuex'; import component from '~/reports/components/modal_open_name.vue'; import { mountComponentWithStore } from 'spec/helpers/vue_mount_component_helper'; describe('Modal open name', () => { const Component = Vue.extend(component); let vm; const store = new Vuex.Store({...
import Vue from 'vue'; import Vuex from 'vuex'; import component from '~/reports/components/modal_open_name.vue'; import { mountComponentWithStore } from 'spec/helpers/vue_mount_component_helper'; Vue.use(Vuex); describe('Modal open name', () => { const Component = Vue.extend(component); let vm; const store = ...
Add missing Vue.use in test
Add missing Vue.use in test
JavaScript
mit
stoplightio/gitlabhq,stoplightio/gitlabhq,mmkassem/gitlabhq,stoplightio/gitlabhq,mmkassem/gitlabhq,mmkassem/gitlabhq,stoplightio/gitlabhq,mmkassem/gitlabhq
0aeefb8fb3b8e58f7312323aab397f622b251013
tests/local_protractor.conf.js
tests/local_protractor.conf.js
exports.config = { // Locally, we should just use the default standalone Selenium server // In Travis, we set up the Selenium serving via Sauce Labs // Tests to run specs: [ './protractor/**/*.spec.js' ], // Capabilities to be passed to the webdriver instance // For a full list of available capabili...
exports.config = { // Locally, we should just use the default standalone Selenium server // In Travis, we set up the Selenium serving via Sauce Labs // Tests to run specs: [ './protractor/**/*.spec.js' ], // Capabilities to be passed to the webdriver instance // For a full list of available capabili...
Change e2e tests back to running on Chrome
Change e2e tests back to running on Chrome
JavaScript
mit
denisKaranja/angularfire,douglascorrea/angularfire,jamestalmage/angularfire,fbentz/angularfire,fbentz/angularfire,FirebaseExtended/angularfire,FirebaseExtended/angularfire,nbr1ninrsan2/angularfire,bpietravalle/angularfire,FirebaseExtended/angularfire,yoda-yoda/angularfire,cesarmarinhorj/angularfire,bpietravalle/angular...
06cea187980cd50fd4699e689b4191ffb2a4d9fc
src/modules/__specs__/AppView.spec.js
src/modules/__specs__/AppView.spec.js
/*eslint-disable max-nested-callbacks*/ import React from 'react'; import {shallow} from 'enzyme'; import {describe, it} from 'mocha'; import {expect} from 'chai'; import Spinner from 'react-native-gifted-spinner'; import AppView from '../AppView'; describe('<AppView />', () => { describe('isReady', () => { it...
/*eslint-disable max-nested-callbacks*/ import React from 'react'; import {shallow} from 'enzyme'; import {describe, it} from 'mocha'; import {expect} from 'chai'; import {ActivityIndicator} from 'react-native'; import AppView from '../AppView'; describe('<AppView />', () => { describe('isReady', () => { it('sh...
Fix AppView test to render activity indicator
Fix AppView test to render activity indicator
JavaScript
mit
WWCJSBoulder/DWClient,justinhaaheim/empower-app,BrianJVarley/simple-offset-pro,salokas/barcodebar,ming-cho/react-native-demo,AcademyPgh/Y1S2-ReplayFX-Schedule,keyifadami/CrewCrossCheck,mandlamag/ESXApp,ming-cho/react-native-demo,yogakurniawan/phoney-mobile,mandlamag/ESXApp,apoi/kahvi,WWCJSBoulder/DWClient,chriswohlfart...
e986ee873dd62c0c333aa7530a1753cef09af39f
chartflo/templates/dashboards/app.js
chartflo/templates/dashboards/app.js
function loadDashboard(page, dashboard) { var url = "/dashboards/page/"+dashboard+"/"+page+"/"; console.log("Getting", url); var spinner = '<div class="text-center" style="width:100%;margin-top:5em;opacity:0.6">'; spinner = spinner + '<i class="fa fa-spinner fa-spin fa-5x fa-fw"></i>\n</div>'; $("#content").html(s...
function loadDashboard(page, dashboard, destination) { var url = "/dashboards/page/"+dashboard+"/"+page+"/"; console.log("Getting", url); var spinner = '<div class="text-center" style="width:100%;margin-top:5em;opacity:0.6">'; spinner = spinner + '<i class="fa fa-spinner fa-spin fa-5x fa-fw"></i>\n</div>'; if ( de...
Improve the js pages loading function
Improve the js pages loading function
JavaScript
mit
synw/django-chartflo,synw/django-chartflo,synw/django-chartflo
5deb018244d0a06f6d3feccb21b1c0e26864321d
app/controllers/application.js
app/controllers/application.js
import Em from 'ember'; import { task, timeout } from 'ember-concurrency'; const { computed } = Em; var applicationController = Em.Controller.extend({ activeNote: null, hideSidePanel: false, init: function() { Em.run.scheduleOnce('afterRender', () => { $('body div').first().addClass('app-container');...
import Em from 'ember'; import { task, timeout } from 'ember-concurrency'; const { computed } = Em; var applicationController = Em.Controller.extend({ activeNote: null, hideSidePanel: false, init: function() { Em.run.scheduleOnce('afterRender', () => { $('body div').first().addClass('app-container');...
Include a `signOut` action. Make `deleteNote` an e-c task. ES6-ify some function syntax.
Include a `signOut` action. Make `deleteNote` an e-c task. ES6-ify some function syntax.
JavaScript
mit
ddoria921/Notes,ddoria921/Notes
82544193853cd0988ee2536d134d1fa451d8fbb4
day3/solution.js
day3/solution.js
let input = require("fs").readFileSync("./data").toString(); let santaPosition = [0, 0]; let roboSantaPosition = [0, 0]; let uniqueSantaPositions = []; function updateUniquePositions() { if (uniqueSantaPositions.indexOf(santaPosition.toString()) === -1) { uniqueSantaPositions.push(santaPosition.toString()); } ...
let input = require("fs").readFileSync("./data").toString(); let santaPosition = [0, 0]; let roboSantaPosition = [0, 0]; let uniqueSantaPositions = []; function updateUniquePositions() { let santaPositionStr = santaPosition.toString(); let roboSantaPositionStr = roboSantaPosition.toString(); if (uniqueSantaPosit...
Move toString conversions to only happen once.
Move toString conversions to only happen once.
JavaScript
mit
Mark-Simulacrum/advent-of-code-2015,Mark-Simulacrum/advent-of-code-2015,Mark-Simulacrum/advent-of-code-2015,Mark-Simulacrum/advent-of-code-2015
1856ce1b2b89d3d708f38e7bde323446864646c9
js/game.js
js/game.js
class Dice extends React.Component { constructor() { super(); this.state = { value: '', words: this.parseInput(decodeURIComponent(location.search.substring(5))), div: document.createElement("div") }; this.handleChange = this.handleChange.bind(this); this.handleSubmit = this.handleS...
class Dice extends React.Component { constructor() { super(); this.state = { words: this.parseInput(decodeURIComponent(location.search.substring(5))), div: document.createElement("div") }; this.handleSubmit = this.handleSubmit.bind(this); } parseInput(input) { return input.split('\...
Add function to append img on the page
Add function to append img on the page
JavaScript
mit
testlnord/wurfelspiel,testlnord/wurfelspiel,testlnord/wurfelspiel
dbe567f5ce926657ecca94b48ab32666777ecffd
app/js/app.js
app/js/app.js
var app = angular.module('plugD', [ 'angularUtils.directives.dirPagination' ]); app.controller("PluginController",function(){ }); app.directive("pluginList", ['$http',function($http){ return { restrict:"E", templateUrl:"partials/plugin-list.html", controller: function($http){ ...
var app = angular.module('plugD', [ 'angularUtils.directives.dirPagination' ]); app.controller("PluginController",function(){ }); app.directive("pluginList", ['$http',function($http){ return { restrict:"E", templateUrl:"partials/plugin-list.html", controller: function($http){ ...
Use inner data array of response
Use inner data array of response
JavaScript
bsd-2-clause
vivekkrish/jbrowse-registry,GMOD/jbrowse-registry,vivekkrish/jbrowse-registry,vivekkrish/jbrowse-registry,GMOD/jbrowse-registry,GMOD/jbrowse-registry,GMOD/jbrowse-registry
212033e54f0d4729b0ade59aaaad19074b388cc0
server/main.js
server/main.js
import { Meteor } from 'meteor/meteor'; import { handleMigration } from './migrations'; Meteor.startup(() => { handleMigration(); });
import { Meteor } from 'meteor/meteor'; import { handleMigration } from './migrations'; import '/imports/minutes'; import '/imports/meetingseries'; Meteor.startup(() => { handleMigration(); });
Fix meteor method not found error by initializing meteor methods on the server
Fix meteor method not found error by initializing meteor methods on the server
JavaScript
mit
RobNeXX/4minitz,Huggle77/4minitz,RobNeXX/4minitz,RobNeXX/4minitz,4minitz/4minitz,Huggle77/4minitz,4minitz/4minitz,Huggle77/4minitz,4minitz/4minitz
08517b8cc97af75922ad40704fc333bdd0cba5fa
test/src/main.js
test/src/main.js
requirejs.config({ baseUrl: 'test', paths: { pvcf: '../../lib/pvcf', when: '../test/vendor/when/when', node: '../test/vendor/when/node', callbacks: '../test/vendor/when/callbacks' } }); requirejs(['pvcf'], function run(pvcf) { var definitions = pvcf.definitions; var ...
requirejs.config({ baseUrl: 'test', paths: { pvcf: '../../lib/pvcf', when: '../test/vendor/when/when', node: '../test/vendor/when/node', callbacks: '../test/vendor/when/callbacks' } }); requirejs(['pvcf'], function run(pvcf) { var definitions = pvcf.definitions; var...
Extend initialize layer by pattern manager.
Extend initialize layer by pattern manager.
JavaScript
mit
rootsher/pvcf,rootsher/pvcf,rootsher/pvcf
3f90b18a50479eff488ee86fa64a2cc0412716b9
http/code.js
http/code.js
var runScraper = function() { $(this).attr('disabled', true) $(this).addClass('loading').html('Scraping&hellip;') var stocks = $('#stocks_input').val() var escaped_stocks = scraperwiki.shellEscape(stocks) scraperwiki.exec('python tool/pandas_finance.py ' + escaped_stocks, getStocksSuccess) } var getStocksSuc...
var param_from_input = function(css) { return scraperwiki.shellEscape($(css).val()) } var runScraper = function() { $(this).attr('disabled', true) $(this).addClass('loading').html('Scraping&hellip;') var stocks = param_from_input('#stocks_input') var start_date = param_from_input('#start-date') var end_d...
Send command with date range from web UI.
Send command with date range from web UI.
JavaScript
agpl-3.0
scraperwiki/stock-tool,scraperwiki/stock-tool
a8cb21f70f884c5b854b54f1de85d993ef687aaf
index.ios.js
index.ios.js
let React = require('react-native'); let { AppRegistry, StyleSheet, Text, View, StatusBarIOS } = React; class Meowth extends React.Component { componentWillMount() { StatusBarIOS.setStyle('light-content'); } render() { return ( <View style={styles.container}> <Text style={styles....
let React = require('react-native'); let FreshSetup = require('./src/FreshSetup'); let { AppRegistry, NavigatorIOS, StatusBarIOS, StyleSheet, } = React; class Meowth extends React.Component { componentWillMount() { StatusBarIOS.setStyle('light-content'); } render() { return ( <NavigatorIOS...
Add router navigation Externalise main component to a separate file
Add router navigation Externalise main component to a separate file
JavaScript
apache-2.0
yrezgui/meowth-ios
8f17182642f52022ed2664f7232dac5218302e02
gateways/paypal_express/script.js
gateways/paypal_express/script.js
(function() { /***********************************************************/ /* Handle Proceed to Payment /***********************************************************/ jQuery(function() { jQuery(document).on('proceedToPayment', function(event, ShoppingCart) { if (ShoppingCart.gateway...
(function() { /***********************************************************/ /* Handle Proceed to Payment /***********************************************************/ jQuery(function() { jQuery(document).on('proceedToPayment', function(event, ShoppingCart) { if (ShoppingCart.gateway...
Use new structure for 2.0
Use new structure for 2.0
JavaScript
mit
flaviocopes/grav-plugin-shoppingcart-paypal,flaviocopes/grav-plugin-shoppingcart-paypal
495d7a008b1621531cdf39f2d74ac22aee42deac
both/routes/authenticated.js
both/routes/authenticated.js
const authenticatedRoutes = FlowRouter.group({ name: 'authenticated' }); authenticatedRoutes.route( '/', { name: 'index', action() { BlazeLayout.render( 'default', { yield: 'index' } ); } }); authenticatedRoutes.route( '/dashboard', { name: 'dashboard', action() { BlazeLayout.render( 'default', { ...
const authenticatedRoutes = FlowRouter.group({ name: 'authenticated' }); authenticatedRoutes.route( '/', { name: 'index', action() { BlazeLayout.render( 'default', { yield: 'index' } ); } }); authenticatedRoutes.route( '/dashboard', { name: 'dashboard', action() { BlazeLayout.render( 'default', { ...
Refactor wish-detail -> wish, added new route: wishNew.
Refactor wish-detail -> wish, added new route: wishNew.
JavaScript
mit
lnwKodeDotCom/WeWish,lnwKodeDotCom/WeWish
d0c02bdfc462c2f8bc748e44ce3f5d4552fc58db
background.js
background.js
chrome.webRequest.onBeforeRequest.addListener( (details) => { chrome.tabs.sendMessage(details.tabId, { content: "message" }, () => {}); const startTime = new Date().getTime(); let randNumber; while ((new Date().getTime() - startTime) < 5000) { /* prevent errors on empt...
chrome.webRequest.onBeforeRequest.addListener( (details) => { chrome.tabs.sendMessage(details.tabId, { content: "message" }, () => {}); const startTime = new Date().getTime(); let randNumber; while ((new Date().getTime() - startTime) < 5000) { /* prevent errors on empt...
Add new one site to filter
Add new one site to filter
JavaScript
mit
VladReshet/no-ads-forever
ff72938231c463ff7d6ac0eb0b38c229f06e6246
components/Cards/PlaceListingCard/PlaceListingCard.js
components/Cards/PlaceListingCard/PlaceListingCard.js
import React, { PropTypes } from 'react'; import DestinationListingCard from '../DestinationListingCard/DestinationListingCard'; import Badge from '../../Badge/Badge'; import css from './PlaceListingCard.css'; const PlaceListingCard = (props) => { const { name, location, spaceDetail, ...rest, } =...
import React, { PropTypes } from 'react'; import DestinationListingCard from '../DestinationListingCard/DestinationListingCard'; import Badge from '../../Badge/Badge'; import css from './PlaceListingCard.css'; const PlaceListingCard = (props) => { const { name, location, spaceDetail, placeBadgeText...
Allow place badge text to be localised
Allow place badge text to be localised
JavaScript
mit
NGMarmaduke/bloom,appearhere/bloom,NGMarmaduke/bloom,rdjpalmer/bloom,appearhere/bloom,rdjpalmer/bloom,appearhere/bloom,rdjpalmer/bloom,NGMarmaduke/bloom
2eacea5fc28a1edb0cc18319a32267cd6841aa7e
src/handler.js
src/handler.js
'use strict'; const dirs = { M1A: 'M1 → Kabaty', M1B: 'M1 → Młociny', M2A: 'M2 → Dworzec Wileński', M2B: 'M2 → Rondo Daszyńskiego', }; export default { onGetSchedules: function(res) { print( res.schedule.reduce( getDirections, dirs)); }, }; function print(dirs) { console.log( 'di...
'use strict'; const dirs = { M1A: 'M1 → Kabaty', M1B: 'M1 → Młociny', M2A: 'M2 → Dworzec Wileński', M2B: 'M2 → Rondo Daszyńskiego', }; export default { onGetSchedules: function(res) { print( res.schedule.reduce( getDirections, dirs)); }, }; function print(dirs) { console.log( 'di...
Add a trailing semicolon to the output
Add a trailing semicolon to the output
JavaScript
isc
stasm/get-ztm-dirs
b33be185ba08eef310536b73278aec60a1a3c3db
test/mock-xhr.js
test/mock-xhr.js
function MockXHR() { this.method = null this.url = null this.data = null this.headers = {} this.readyState = 0 this.status = 0 this.responseText = null } MockXHR.responses = {} MockXHR.prototype.open = function(method, url) { this.method = method this.url = url } MockXHR.prototype.setRequestHeader ...
function MockXHR() { this.method = null this.url = null this.data = null this.headers = {} this.readyState = 0 this.status = 0 this.responseText = null } MockXHR.responses = {} MockXHR.prototype.open = function(method, url) { this.method = method this.url = url } MockXHR.prototype.setRequestHeader ...
Throw instead of console for linter
Throw instead of console for linter
JavaScript
mit
github/include-fragment-element,github/include-fragment-element
dccdf983e68961fd3cd6d87bd207dc7deb02086b
app/assets/javascripts/tinymce/plugins/uploadimage/plugin.js
app/assets/javascripts/tinymce/plugins/uploadimage/plugin.js
(function() { tinymce.PluginManager.requireLangPack('uploadimage'); tinymce.create('tinymce.plugins.UploadImage', { UploadImage: function(ed, url) { var form, iframe, win, editor = ed; function showDialog() { this.win = editor.windowManager.open({ width: 350 + parseInt(editor.get...
(function() { tinymce.PluginManager.requireLangPack('uploadimage'); tinymce.create('tinymce.plugins.UploadImage', { UploadImage: function(ed, url) { var form, iframe, win, editor = ed; function showDialog() { this.win = editor.windowManager.open({ width: 350 + parseInt(editor.get...
Use the default TinyMCE4 image icon
Use the default TinyMCE4 image icon
JavaScript
mit
dancingbytes/tinymce-rails-imageupload,CraigJZ/tinymce-rails-imageupload-1,dancingbytes/tinymce-rails-imageupload,PerfectlyNormal/tinymce-rails-imageupload,PerfectlyNormal/tinymce-rails-imageupload,PerfectlyNormal/tinymce-rails-imageupload,ekubal/tinymce-rails-imageupload,ekubal/tinymce-rails-imageupload,ekubal/tinymce...
1ff8ffaf7cc89670e9aa35745f52a605157bc934
build/webpack.config.js
build/webpack.config.js
/** * ownCloud - Music app * * This file is licensed under the Affero General Public License version 3 or * later. See the COPYING file. * * @author Pauli Järvinen <pauli.jarvinen@gmail.com> * @copyright 2020 Pauli Järvinen * */ const path = require('path'); const MiniCssExtractPlugin = require('mini-css-extr...
/** * ownCloud - Music app * * This file is licensed under the Affero General Public License version 3 or * later. See the COPYING file. * * @author Pauli Järvinen <pauli.jarvinen@gmail.com> * @copyright 2020 Pauli Järvinen * */ const path = require('path'); const MiniCssExtractPlugin = require('mini-css-extr...
Configure webpack so that `eval` is not used in the development mode
Configure webpack so that `eval` is not used in the development mode Using eval is not allowed by the CSP of newer Nextcloud versions.
JavaScript
agpl-3.0
paulijar/music,owncloud/music,owncloud/music,paulijar/music,paulijar/music,owncloud/music,paulijar/music,owncloud/music,owncloud/music,paulijar/music
d6ed0c7bc74b83ea46887c1afa1da3fd0f7f2481
client/packages/core-app-worona/src/app/settings-app-extension-worona/selectorCreators/index.js
client/packages/core-app-worona/src/app/settings-app-extension-worona/selectorCreators/index.js
import { find } from 'lodash'; export const getSettings = namespace => state => state.settings.collection[namespace]; export const getSetting = (namespace, setting) => state => state.settings.collection[namespace][setting]; export const getSettingById = _id => state => find(state.settings.collection, it => it._id ==...
import { find } from 'lodash'; export const getSettings = namespace => state => state.settings.collection[namespace]; export const getSetting = (namespace, setting) => state => state.settings.collection[namespace][setting]; export const getSettingsById = _id => state => find(state.settings.collection, item => ite...
Add getSettingById and fix getSettingsById.
Add getSettingById and fix getSettingsById.
JavaScript
mit
worona/worona-app,worona/worona-app
e3fde9655ce25219938afcb8d6aa056adbf1c545
src/components/QuestionForm.js
src/components/QuestionForm.js
import React, {Component} from 'react' import Field from './Field.js' import Select from './Select.js' import Input from './Input.js' import Label from './Label.js' export default class QuestionForm extends Component { handleChange = e => { const {name, value} = e.target this.props.onChange({ [name]: ...
import React, {Component} from 'react' import Field from './Field.js' import Select from './Select.js' import Input from './Input.js' import Label from './Label.js' export default class QuestionForm extends Component { handleChange = e => { const {name, value} = e.target this.props.onChange({ [name]: ...
Add question title and guidance title fields.
Add question title and guidance title fields.
JavaScript
mit
ONSdigital/eq-author,ONSdigital/eq-author,ONSdigital/eq-author
b0b117554055bb0452c02955965627b00841ca94
packages/strapi-plugin-content-type-builder/admin/src/containers/FormModal/utils/reservedNames.js
packages/strapi-plugin-content-type-builder/admin/src/containers/FormModal/utils/reservedNames.js
const JS_BUILT_IN_OBJECTS = [ 'object', 'function', 'boolean', 'symbol', 'error', 'infinity', 'number', 'math', 'date', ]; const RESERVED_NAMES = ['admin', 'series', 'file', ...JS_BUILT_IN_OBJECTS]; export default RESERVED_NAMES;
const JS_BUILT_IN_OBJECTS = [ 'boolean', 'date', 'error', 'function', 'infinity', 'map', 'math', 'number', 'object', 'symbol', ]; const RESERVED_NAMES = [ 'admin', 'series', 'file', 'news', ...JS_BUILT_IN_OBJECTS, ]; export default RESERVED_NAMES;
Add map and series to RESERVED_NAMES
Add map and series to RESERVED_NAMES
JavaScript
mit
wistityhq/strapi,wistityhq/strapi
f9f8f7103cef43417a246414c311b2bcdad686c3
src/framework/util/util.js
src/framework/util/util.js
export function attemptChangeName(obj, name) { if (!canRedefineValue(obj, 'name')) { return; } Object.defineProperty(obj, 'name', { value: name, }); } export function canRedefineValue(obj, property) { const descriptor = Object.getOwnPropertyDescriptor(obj, property); return descriptor.configurabl...
export function attemptChangeName(obj, name) { if (!canRedefineValue(obj, 'name')) { return; } Object.defineProperty(obj, 'name', { value: name, }); } export function canRedefineValue(obj, property) { const descriptor = Object.getOwnPropertyDescriptor(obj, property); return descriptor.configurable...
Rename generic methods to use generic names
Rename generic methods to use generic names
JavaScript
mit
foobarhq/reworkjs,reworkjs/reworkjs,reworkjs/reworkjs,reworkjs/reworkjs,foobarhq/reworkjs
9c2f44c60b714ac83ba3a1ca38c0898d4d37e07a
src/helpers.js
src/helpers.js
export function isImage(file) { if (file.type.split('/')[0] === 'image') { return true; } } export function convertBytesToMbsOrKbs(filesize) { let size = ''; // I know, not technically correct... if (filesize >= 1000000) { size = (filesize / 1000000) + ' megabytes'; } else if (f...
export function isImage(file) { if (file.type.split('/')[0] === 'image') { return true; } } export function convertBytesToMbsOrKbs(filesize) { let size = ''; if (filesize >= 1048576) { size = (filesize / 1048576) + ' megabytes'; } else if (filesize >= 1024) { size = (filesiz...
Use binary system instead of decimal for size error
:bug: Use binary system instead of decimal for size error
JavaScript
mit
Yuvaleros/material-ui-dropzone
594b03ceb00f0ac76ad015a7380a4c9f23903f50
lib/__tests__/ActionCable-test.js
lib/__tests__/ActionCable-test.js
import React from 'react'; import { shallow } from 'enzyme'; import { expect } from 'chai'; import { ActionCableProvider, ActionCable } from '../index'; test('ActionCable render without children', () => { const node = shallow( <ActionCableProvider> <ActionCable /> </ActionCableProvider> ); expect(...
import React from 'react'; import { shallow } from 'enzyme'; import { expect } from 'chai'; import Provider, { ActionCableProvider, ActionCable } from '../index'; test('ActionCable render without children', () => { const node = shallow( <ActionCableProvider> <ActionCable /> </ActionCableProvider> ); ...
Add test for default exporting ActionCableProvider
Add test for default exporting ActionCableProvider
JavaScript
mit
cpunion/react-actioncable-provider
6f9dcc82d086a79e173338007f984570cfdc3185
webpack.rules.js
webpack.rules.js
module.exports = [ { test: /\.jsx?/, exclude: /node_modules/, loader: 'babel-loader', }, { test: /\.css$/, use: [ 'style-loader', 'css-loader' ] }, ];
module.exports = [ { test: /\.jsx?/, exclude: /node_modules/, loader: 'babel-loader', }, { test: /\.css$/, use: [ { loader: 'style-loader', }, { loader: 'css-loader', options: { localIdentName: 'rat-[name]_[local]', }, }, ] ...
Use more descriptive class names
Use more descriptive class names This will make it easier to add custom styling on top of the default one.
JavaScript
mit
trotzig/react-available-times,trotzig/react-available-times
8067e9fc0de92888653237558213ab8c9298a99b
lib/constants.js
lib/constants.js
'use strict'; var path = require('path'); // #ARCHIVE:0 Eliminate unused config options id:1203 var DEFAULT_EXCLUDE_PATTERN = "^(node_modules|bower_components|\\.imdone|target|build|dist|logs)[\\/\\\\]?|\\.(git|svn|hg|npmignore)|\\~$|\\.(jpg|png|gif|swp|ttf|otf)$"; var CONFIG_DIR = ".imdone"; module.exports = { CONF...
'use strict'; var path = require('path'); // #ARCHIVE:0 Eliminate unused config options id:1203 var DEFAULT_EXCLUDE_PATTERN = "^(node_modules|bower_components|\\.imdone|target|build|dist|logs)[\\/\\\\]?|\\.(git|svn|hg|npmignore)|\\~$|\\.(jpg|png|gif|swp|ttf|otf)$"; var CONFIG_DIR = ".imdone"; module.exports = { CONF...
Change keepEmptyPriority default to true
Change keepEmptyPriority default to true
JavaScript
mit
imdone/imdone-core,imdone/imdone-core
4accf166520646369b2f3e2b2ecf7ee3a158ff0a
client/react/src/App.js
client/react/src/App.js
import React, { Component } from 'react'; import './App.css'; import Table from './Table'; class App extends Component { constructor () { super(); const ws = new WebSocket('ws://localhost:42745/websocket') this.state = { ws: ws } ws.onopen = () => console.log("OPENED") }; login = (even...
import React, { Component } from 'react'; import './App.css'; import Table from './Table'; class App extends Component { constructor () { super(); let ws_url = process.env.REACT_APP_WS_URL if (!ws_url) { const proto = (location.protocol === "https:")? "wss://" : "ws://" ws_url = proto + loc...
Make the WS URL configurable
Make the WS URL configurable Also store it outside of the state.
JavaScript
mit
KenMacD/tarabish,KenMacD/tarabish,KenMacD/tarabish,KenMacD/tarabish
ef05e8d694820d3638a01139320d447deb335918
resources/assets/js/util/url.js
resources/assets/js/util/url.js
import { router, stringifyQuery, parseQuery } from '../router'; const defaultQuery = { 'x-access-from': 'ui' }; function normalize(url) { const urlLocation = new URL(url, /^\//.test(url) ? location.origin : undefined); const query = { ...parseQuery(urlLocation.search), ...defaultQuery, ...
import { router, stringifyQuery, parseQuery } from '../router'; const defaultQuery = { 'x-access-from': 'ui' }; function normalize(url) { const urlLocation = /^\//.test(url) ? new URL(url, location.origin) : new URL(url); const query = { ...parseQuery(urlLocation.search), ....
Fix URL type error on safari
Fix URL type error on safari
JavaScript
mit
code16/sharp,code16/sharp,code16/sharp
2a4ec61b2b04c3a548c30a2fb993964aaeff7c34
lib/run-sagas.js
lib/run-sagas.js
module.exports = function runSagas(routes, dispatch, props, sagaMiddleware) { return Promise.all( routes .filter(function(route) { var sagasToRun; return route.component && (sagasToRun = route.component.sagasToRun) && typeof sagasToRun === 'function'; }) .map(function(rou...
module.exports = function runSagas(routes, dispatch, props, sagaMiddleware) { return Promise.all( routes .filter(function(route) { var sagasToRun; return route.component && (sagasToRun = route.component.sagasToRun) && typeof sagasToRun === 'function'; }) .map(function(rou...
Fix to use vanilla JS.
Fix to use vanilla JS.
JavaScript
mit
heroku/create-render-4r
67fc0a2b92f49250b14562a04539b775f0d55cc4
spec/javascripts/ci_variable_list/native_form_variable_list_spec.js
spec/javascripts/ci_variable_list/native_form_variable_list_spec.js
import $ from 'jquery'; import setupNativeFormVariableList from '~/ci_variable_list/native_form_variable_list'; describe('NativeFormVariableList', () => { preloadFixtures('pipeline_schedules/edit.html.raw'); let $wrapper; beforeEach(() => { loadFixtures('pipeline_schedules/edit.html.raw'); $wrapper = $...
import $ from 'jquery'; import setupNativeFormVariableList from '~/ci_variable_list/native_form_variable_list'; describe('NativeFormVariableList', () => { preloadFixtures('pipeline_schedules/edit.html.raw'); let $wrapper; beforeEach(() => { loadFixtures('pipeline_schedules/edit.html.raw'); $wrapper = $...
Check for secret_key and secret_value in CI Variable native list js spec
Check for secret_key and secret_value in CI Variable native list js spec
JavaScript
mit
iiet/iiet-git,jirutka/gitlabhq,jirutka/gitlabhq,axilleas/gitlabhq,iiet/iiet-git,dreampet/gitlab,axilleas/gitlabhq,dreampet/gitlab,dreampet/gitlab,jirutka/gitlabhq,mmkassem/gitlabhq,iiet/iiet-git,stoplightio/gitlabhq,iiet/iiet-git,axilleas/gitlabhq,axilleas/gitlabhq,dreampet/gitlab,mmkassem/gitlabhq,stoplightio/gitlabhq...
683e4c5056eacf561e69835c5531b5411df3fb66
prolific.tcp/tcp.argv.js
prolific.tcp/tcp.argv.js
/* ___ usage ___ en_US ___ usage: prolific tcp <options> -u, --url <string> The URL of the logging destination. -r, --rotate <number> Reopen TCP connection after specified number of bytes. --help Display this message. ___ $ ___ en_US ___ _...
/* ___ usage ___ en_US ___ usage: prolific tcp <options> -u, --url <string> The URL of the logging destination. -r, --rotate <number> Reopen TCP connection after specified number of bytes. --help Display this message. ___ $ ___ en_US ___ _...
Add flag for new module loader.
Add flag for new module loader.
JavaScript
mit
bigeasy/prolific,bigeasy/prolific
f24f92487abf2529faea31622f33c8a656530f24
src/utilities/NumbersHelper.js
src/utilities/NumbersHelper.js
/** * Formats a number to the American `1,000.00` format * * @param {number|string} number The value to format * @return {string} The formatted number */ export default function numberWithCommas(number) { const parts = number.toString().split('.'); parts[0] = parts[0].replace(/\B(?=(\d{3})+(?!\d))/g, ','); r...
/** * Formats numbers */ export default class NumbersHelper { /** * Formats a number to the American `1,000.00` format * @param {number|string} number The value to format * @return {string} The formatted number */ static numberWithCommas = (number, hideRemainderIfZero) => { const parts = number.to...
Format the new numbers helper
Format the new numbers helper
JavaScript
mit
HarvestProfit/harvest-profit-ui
b268949468a4f32677dfeca0d1a8da19f8ad39a9
lib/index.js
lib/index.js
import apiClient from 'api-client'; import loader from 'loader'; const init = (apikey, security) => { const client = apiClient.init(apikey, security); return { getSecurity() { return client.getSecurity(); }, setSecurity(sec) { return client.setSecurity(sec); }, pick(options) { ...
import apiClient from 'api-client'; import loader from 'loader'; const init = (apikey, security, cname) => { const client = apiClient.init(apikey, security, cname); return { getSecurity() { return client.getSecurity(); }, setSecurity(sec) { return client.setSecurity(sec); }, pick(op...
Add cname option to init wrapper
Add cname option to init wrapper
JavaScript
mit
filestack/filestack-js,filestack/filestack-js
802d6bb7174eb2d444246ffb0523e7c6c45a83c3
lib/index.js
lib/index.js
"use strict"; const path = require("path"); const rollup = require("rollup"); function createPreprocessor(options, preconfig, basePath, logger) { const cache = new Map(); const log = logger.create("preprocessor.rollup"); return async function preprocess(original, file, done) { try { const config = Ob...
"use strict"; const path = require("path"); const rollup = require("rollup"); function createPreprocessor(options, preconfig, basePath, logger) { const cache = new Map(); const log = logger.create("preprocessor.rollup"); return async function preprocess(original, file, done) { const location = path.relativ...
Add more info log output
Add more info log output Partial reimplementation of #39
JavaScript
mit
showpad/karma-rollup-preprocessor,jlmakes/karma-rollup-preprocessor,jlmakes/karma-rollup-preprocessor
7b9e2f1fc757c941b87ad9f3107b09796f4fac21
src/utils/init-autoplay.js
src/utils/init-autoplay.js
/** * handle autoplay * * @param {element} slideTo slide to frame function * @param {element} options slider options */ export default function initAutoplay (slide, options) { let autoplayTime = (typeof options.autoplay === 'number') ? options.autoplay : 3000; let onAutoplayStart = window.setInt...
/** * handle autoplay * * @param {element} slideTo slide to frame function * @param {element} options slider options */ export default function initAutoplay (slide, options) { let autoplayTime = (typeof options.autoplay === 'number') ? options.autoplay : 3000; let onAutoplayStart = window.setInt...
Fix Autoplay diretion in case of RTL
Fix Autoplay diretion in case of RTL
JavaScript
mit
AmitM30/basic-swiper,AmitM30/basic-swiper
1af1be4cad8db37e096724d0f2c666bd860b330f
local-cli/runMacOS/findXcodeProject.js
local-cli/runMacOS/findXcodeProject.js
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @flow */...
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @flow */...
Remove typescript, as it is not compiled by rnpm
Remove typescript, as it is not compiled by rnpm
JavaScript
mit
ptmt/react-native-macos,ptmt/react-native-macos,ptmt/react-native-macos,ptmt/react-native-macos,ptmt/react-native-macos,ptmt/react-native-macos,ptmt/react-native-macos,ptmt/react-native-macos
0d67458b71a5cbb7127d455bcc993fd1a0b2e969
test/crypto.js
test/crypto.js
const assert = require('assert'); const { crypto, config } = require('./config'); describe("WebCrypto", () => { it("get random values", () => { var buf = new Uint8Array(16); var check = new Buffer(buf).toString("base64"); assert.notEqual(new Buffer(crypto.getRandomValues(buf)).toString("ba...
const assert = require('assert'); const { crypto, config } = require('./config'); describe("WebCrypto", () => { it("get random values", () => { var buf = new Uint8Array(16); var check = new Buffer(buf).toString("base64"); assert.notEqual(new Buffer(crypto.getRandomValues(buf)).toString("ba...
Update - cannot open 2 session
Update - cannot open 2 session
JavaScript
mit
PeculiarVentures/node-webcrypto-p11,PeculiarVentures/node-webcrypto-p11
8487e1f2ae9532bfc58d1aceaf27aaf95b37fb72
website/app/application/core/projects/project/files/file-edit-controller.js
website/app/application/core/projects/project/files/file-edit-controller.js
(function (module) { module.controller("FilesEditController", FilesEditController); FilesEditController.$inject = ['file']; /* @ngInject */ function FilesEditController(file) { var ctrl = this; ctrl.file = file; } }(angular.module('materialscommons')));
(function (module) { module.controller("FileEditController", FileEditController); FileEditController.$inject = ['file']; /* @ngInject */ function FileEditController(file) { var ctrl = this; ctrl.file = file; } }(angular.module('materialscommons')));
Change name of controller to match file.
Change name of controller to match file.
JavaScript
mit
materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org
e746455d849e06f7c8b59bf097631a78da53a2ff
spec/paths/approved_invoice.js
spec/paths/approved_invoice.js
'use strict'; module.exports = { 'get': { 'description': 'This endpoint returns information about invoices that have been approved. The response includes basic details of each invoice, such as sender and receiver information.', 'responses': { '200': { 'description': 'An...
'use strict'; module.exports = { 'get': { 'description': 'This endpoint returns information about invoices that have been approved. The response includes basic details of each invoice, such as sender and receiver information.', 'responses': { '200': { 'description': 'An...
Disable POST approved invoice for now
Disable POST approved invoice for now Need to rethink this. Looks like some dependency change (swagger-tools) broke this. Anyway, there should be a way to transform drafts into approved into paid. Maybe single endpoint would do.
JavaScript
mit
bebraw/react-crm-backend,koodilehto/koodilehto-crm-backend
474163478d11e839b493417b584e16a80a1559d1
src/routes/user/component/indexRoute/__tests__/WrapperUserIndexPage-test.js
src/routes/user/component/indexRoute/__tests__/WrapperUserIndexPage-test.js
import chai, { expect } from 'chai'; import mockery from 'mockery'; import dirtyChai from 'dirty-chai'; chai.use(dirtyChai); import { shallow } from 'enzyme'; import React from 'react'; describe('WrapperUserIndexPage', () => { beforeEach(() => { mockery.enable({ warnOnReplace: false, warnOnUnregist...
import chai, { expect } from 'chai'; import mockery from 'mockery'; import dirtyChai from 'dirty-chai'; chai.use(dirtyChai); import { shallow } from 'enzyme'; import React from 'react'; describe('WrapperUserIndexPage', () => { beforeEach(() => { mockery.enable({ warnOnReplace: false, warnOnUnregist...
Update wrapper user index route tests.
Update wrapper user index route tests.
JavaScript
mit
retaxJS/retax-seed
c1221144279bffcfd8f21b1cd3116dd40ac6253d
server/updaters/mainUpdater.js
server/updaters/mainUpdater.js
'use strict'; var tablesUpdater = require('./tablesUpdater'); var resultsUpdater = require('./resultsUpdater'); var tournamentsUpdater = require('./tournamentsUpdater'); var groupsUpdater = require('./groupsUpdater'); var scorersUpdater = require('./scorersUpdater'); var assistsUpdater = require('./assistsUpdat...
'use strict'; var tablesUpdater = require('./tablesUpdater'); var resultsUpdater = require('./resultsUpdater'); var tournamentsUpdater = require('./tournamentsUpdater'); // var groupsUpdater = require('./groupsUpdater'); var scorersUpdater = require('./scorersUpdater'); var assistsUpdater = require('./assistsUp...
Disable groups update until next year
Disable groups update until next year
JavaScript
apache-2.0
Softcadbury/FootballDashboard,Softcadbury/DashboardFootball,Softcadbury/DashboardFootball,Softcadbury/football-peek,Softcadbury/FootballDashboard
ccddceeef4ca5bf1208c2873b4775aac0994f00e
aura-components/src/test/components/lockerTest/secureNavigatorTest/secureNavigatorTestController.js
aura-components/src/test/components/lockerTest/secureNavigatorTest/secureNavigatorTestController.js
({ testPropertiesExposed: function(cmp) { var testUtils = cmp.get("v.testUtils"); ["appCodeName", "appName", "appVersion", "cookieEnabled", "geolocation", "language", "onLine", "platform", "product", "userAgent"].forEach(function(name) { testUtils.assertTrue(name in win...
({ testPropertiesExposed: function(cmp) { var testUtils = cmp.get("v.testUtils"); ["appCodeName", "appName", "appVersion", "cookieEnabled", "geolocation", "language", "onLine", "platform", "product", "userAgent"].forEach(function(name) { testUtils.assertTrue(name in win...
Fix case sensitivity issue in test
Fix case sensitivity issue in test @bug W-3021252@ @rev cheng@
JavaScript
apache-2.0
badlogicmanpreet/aura,madmax983/aura,madmax983/aura,forcedotcom/aura,madmax983/aura,forcedotcom/aura,badlogicmanpreet/aura,forcedotcom/aura,madmax983/aura,forcedotcom/aura,badlogicmanpreet/aura,badlogicmanpreet/aura,badlogicmanpreet/aura,madmax983/aura,forcedotcom/aura,madmax983/aura,badlogicmanpreet/aura
acedb6440d409145dce37b61a9dea76eebb05172
src/Oro/Bundle/UIBundle/Resources/public/js/extend/bootstrap/bootstrap-typeahead.js
src/Oro/Bundle/UIBundle/Resources/public/js/extend/bootstrap/bootstrap-typeahead.js
define(function(require) { 'use strict'; var $ = require('jquery'); require('bootstrap'); /** * This customization allows to define own focus, click, render, show, lookup functions for Typeahead */ var Typeahead; var origTypeahead = $.fn.typeahead.Constructor; var origFnTypeahead...
define(function(require) { 'use strict'; var $ = require('jquery'); require('bootstrap'); /** * This customization allows to define own functions for Typeahead */ var Typeahead; var origTypeahead = $.fn.typeahead.Constructor; var origFnTypeahead = $.fn.typeahead; Typeahead =...
Add validation functionality to RuleEditorComponent - temp commit (polish of suggestion output)
BB-4210: Add validation functionality to RuleEditorComponent - temp commit (polish of suggestion output)
JavaScript
mit
orocrm/platform,orocrm/platform,orocrm/platform
c594979d9be6b93542095108b04a723501ca9e12
tests/index.js
tests/index.js
const assert = require('assert') const Application = require('spectron').Application describe('application launch', function () { this.timeout(10000) beforeEach(function () { this.app = new Application({ path: __dirname + '/../node_modules/.bin/electron', args: [__dirname + '/../app/main/index.js'...
const assert = require('assert') const Application = require('spectron').Application describe('application launch', function () { this.timeout(10000) beforeEach(function () { this.app = new Application({ path: require('electron'), args: [__dirname + '/../app/main/index.js'] }) return this....
Use the standard method to get the electron app location
Use the standard method to get the electron app location As per the guidance at https://github.com/electron-userland/electron-prebuilt programmatic usage acquires the path to electron by require('electron')
JavaScript
apache-2.0
brainwane/zulip-electron,steele/zulip-electron,zulip/zulip-desktop,brainwane/zulip-electron,zulip/zulip-electron,zulip/zulip-electron,zulip/zulip-electron,brainwane/zulip-electron,steele/zulip-electron,zulip/zulip-desktop,steele/zulip-electron,zulip/zulip-desktop,zulip/zulip-desktop
fc6cb30f7323e35be709e3ad591bbb136f0ef5df
webpack.config.babel.js
webpack.config.babel.js
import path from 'path'; import HtmlWebpackPlugin from 'webpack-html-plugin'; import webpack from 'webpack'; const array = (target) => target.filter((item) => item); export default ({dev, prod}) => ({ entry: array([ dev && 'react-hot-loader/patch', 'babel-polyfill', './src/', ]), o...
import path from 'path'; import HtmlWebpackPlugin from 'webpack-html-plugin'; import webpack from 'webpack'; /** removes empty items from array */ const array = (target) => target.filter((item) => item); /** removes empty properties from object */ const object = (target) => Object.keys(target).filter((key) => target[...
Remove empty properties from object
Remove empty properties from object
JavaScript
mit
tomvej/redux-starter,tomvej/redux-starter
47f7ac51444b54d4790586950832632fbdf30612
build/connect.js
build/connect.js
const rewrite = require('connect-modrewrite'); const serveIndex = require('serve-index'); const serveStatic = require('serve-static'); module.exports = function (grunt) { return { livereload: { options: { hostname : '127.0.0.1', port : 443, ...
const rewrite = require('connect-modrewrite'); const serveIndex = require('serve-index'); const serveStatic = require('serve-static'); module.exports = function (grunt) { return { livereload: { options: { hostname : '0.0.0.0', port : 443, ...
Allow Local LAN devices to access the livereload machine
Allow Local LAN devices to access the livereload machine
JavaScript
apache-2.0
binary-static-deployed/binary-static,4p00rv/binary-static,kellybinary/binary-static,ashkanx/binary-static,binary-com/binary-static,binary-static-deployed/binary-static,kellybinary/binary-static,binary-static-deployed/binary-static,4p00rv/binary-static,kellybinary/binary-static,negar-binary/binary-static,ashkanx/binary-...
911ba266f0f5fd01c9c66948dad967af27edbc1b
website/src/app/global.services/store/state-store.service.js
website/src/app/global.services/store/state-store.service.js
import MCStoreBus from './mcstorebus'; class StateStoreService { /*@ngInject*/ constructor() { this.states = {}; this.bus = new MCStoreBus(); } updateState(key, value) { this.states[key] = angular.copy(value); let val = angular.copy(this.states[key]); this.bus.f...
import MCStoreBus from './mcstorebus'; class StateStoreService { /*@ngInject*/ constructor() { this.states = {}; this.bus = new MCStoreBus(); } updateState(key, value) { this.states[key] = angular.copy(value); let val = this.states[key]; this.bus.fireEvent(key, ...
Make contract that client needs to copy or not change value
Make contract that client needs to copy or not change value
JavaScript
mit
materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org
aeab0f4207efb2c2880552d7994077bf453f8099
bin/sass-lint.js
bin/sass-lint.js
#!/usr/bin/env node 'use strict'; var program = require('commander'), meta = require('../package.json'), lint = require('../index'); var detects, formatted, configPath, ignores, configOptions = {}; program .version(meta.version) .usage('[options] <pattern>') .option('-c, --config [path]...
#!/usr/bin/env node 'use strict'; var program = require('commander'), meta = require('../package.json'), lint = require('../index'); var configPath, ignores, configOptions = {}; var detectPattern = function (pattern) { var detects, formatted; detects = lint.lintFiles(pattern, configOptions...
Allow multiple paths for CLI
Allow multiple paths for CLI Resolves #60
JavaScript
mit
skovhus/sass-lint,DanPurdy/sass-lint,srowhani/sass-lint,flacerdk/sass-lint,Snugug/sass-lint,joshuacc/sass-lint,Dru89/sass-lint,MethodGrab/sass-lint,sasstools/sass-lint,bgriffith/sass-lint,sktt/sass-lint,alansouzati/sass-lint,ngryman/sass-lint,zallek/sass-lint,sasstools/sass-lint,benthemonkey/sass-lint,carsonmcdonald/sa...
edb1532478facc1b121c52d1bad2ed361d669232
plugins/ember.js
plugins/ember.js
/** * Ember.js plugin * * Patches event handler callbacks and ajax callbacks. */ ;(function(window, Raven, Ember) { 'use strict'; // quit if Ember isn't on the page if (!Ember) { return; } var _oldOnError = Ember.onerror; Ember.onerror = function EmberOnError(error) { Raven.captureException(error); if...
/** * Ember.js plugin * * Patches event handler callbacks and ajax callbacks. */ ;(function(window, Raven, Ember) { 'use strict'; // quit if Ember isn't on the page if (!Ember) { return; } var _oldOnError = Ember.onerror; Ember.onerror = function EmberOnError(error) { Raven.captureException(error); if...
Include context in RSVP handler.
Include context in RSVP handler.
JavaScript
bsd-3-clause
iodine/raven-js,clara-labs/raven-js,grelas/raven-js,malandrew/raven-js,chrisirhc/raven-js,eaglesjava/raven-js,hussfelt/raven-js,getsentry/raven-js,Mappy/raven-js,getsentry/raven-js,eaglesjava/raven-js,housinghq/main-raven-js,danse/raven-js,getsentry/raven-js,iodine/raven-js,getsentry/raven-js,benoitg/raven-js,grelas/ra...
8f4a856c5f8fb1fd6c90dbf64a73760b7f5e5016
ember/ember-cli-build.js
ember/ember-cli-build.js
/* global require, module */ var EmberApp = require('ember-cli/lib/broccoli/ember-app'); module.exports = function(defaults) { var vendorFiles = {}; if (EmberApp.env() !== 'test') { vendorFiles['jquery.js'] = null; } var app = new EmberApp(defaults, { storeConfigInMeta: false, fingerprint: { ...
/* global require, module */ var EmberApp = require('ember-cli/lib/broccoli/ember-app'); module.exports = function(defaults) { var vendorFiles = {}; if (EmberApp.env() !== 'test') { vendorFiles['jquery.js'] = null; } var app = new EmberApp(defaults, { storeConfigInMeta: false, fingerprint: { ...
Use minified "remarkable" version in production
Use minified "remarkable" version in production
JavaScript
agpl-3.0
skylines-project/skylines,Harry-R/skylines,kerel-fs/skylines,Harry-R/skylines,Harry-R/skylines,Turbo87/skylines,Turbo87/skylines,skylines-project/skylines,shadowoneau/skylines,kerel-fs/skylines,kerel-fs/skylines,RBE-Avionik/skylines,skylines-project/skylines,RBE-Avionik/skylines,shadowoneau/skylines,RBE-Avionik/skyline...
ba19c41de3da74bf26f76a435bc412f43b5631d5
migrations/20161117225616_index.js
migrations/20161117225616_index.js
exports.up = (knex, Promise) => Promise.all([ knex.schema.createTable('users', table => { table.uuid('id') .primary() .defaultTo(knex.raw('uuid_generate_v4()')); table.string('username', 20) .unique(); table.string('password'); table.float('saldo'...
exports.up = (knex, Promise) => Promise.all([ knex.schema.createTable('users', table => { table.uuid('id') .primary() .defaultTo(knex.raw('uuid_generate_v4()')); table.string('username', 20) .notNullable() .unique(); table.string('password') ...
Remove transactionTypes table and specify column nullablility
Remove transactionTypes table and specify column nullablility
JavaScript
mit
majori/piikki
e583d332d04d6fa45e387525793d6f120ee7dcd4
packages/@sanity/default-layout/src/components/DefaultLayoutRouter.js
packages/@sanity/default-layout/src/components/DefaultLayoutRouter.js
import React from 'react' import DefaultLayout from './DefaultLayout' import {Router, Route, NotFound, Redirect} from 'router:@sanity/base/router' import locationStore from 'datastore:@sanity/base/location' import SanityIntlProvider from 'component:@sanity/base/sanity-intl-provider' class DefaultLayoutRouter extends R...
import React from 'react' import DefaultLayout from './DefaultLayout' import {Router, Route, NotFound, Redirect} from 'router:@sanity/base/router' import locationStore from 'datastore:@sanity/base/location' import SanityIntlProvider from 'component:@sanity/base/sanity-intl-provider' import LoginWrapper from 'component:...
Put loginwrapper inside main router
Put loginwrapper inside main router
JavaScript
mit
sanity-io/sanity,sanity-io/sanity,sanity-io/sanity,sanity-io/sanity
d69c40a6ced3b25a582b093dae6ab07d738947f4
public/scripts/ui.js
public/scripts/ui.js
define(['views/user/login', 'views/user/signup', 'views/header', 'views/order/vl_orders'], function (UserLogin, UserSignup, HeaderView, OrdersView) { var Ui = {}; var loginView = new UserLogin() var signupView = new UserSignup() var headerView = new HeaderView({el: '#header'}) var ordersView = n...
define([ 'backbone', 'api', 'collections/c_orders', 'views/user/login', 'views/user/signup', 'views/header', 'views/order/vl_orders'], function (Backbone, Api, CollectionOrder, UserLogin, UserSignup, HeaderView, OrdersView) { var Ui = {}; var loginView = new UserLogin() var s...
Use convenience localStorage functions from Backbone Use Backbone collection to fetch orders Added new error function to Ui Fix parameters for event callbacks
Use convenience localStorage functions from Backbone Use Backbone collection to fetch orders Added new error function to Ui Fix parameters for event callbacks
JavaScript
apache-2.0
neich/nodebb,neich/nodebb,neich/nodebb
9a46fd4a6a7bbc408f258a23b141f44297b853d0
packages/zent/src/design/stripUUID.js
packages/zent/src/design/stripUUID.js
import has from 'lodash/has'; import isPlainObject from 'lodash/isPlainObject'; import isArray from 'lodash/isArray'; const UUID_KEY_PATTERN = /__.+uuid__/i; export default function stripUUID(value) { if (isPlainObject(value)) { // eslint-disable-next-line for (const key in value) { if (has(value, key...
import has from 'lodash/has'; import isPlainObject from 'lodash/isPlainObject'; import isArray from 'lodash/isArray'; const UUID_KEY_PATTERN = /__.+uuid__/i; const OLD_KEY = 'zent-design-uuid'; export default function stripUUID(value) { if (isPlainObject(value)) { // eslint-disable-next-line for (const key ...
Add compatibility to old uuid key
Add compatibility to old uuid key
JavaScript
mit
youzan/zent,youzan/zent,youzan/zent,youzan/zent
5caa4281c7f5e1bace711f95fe91d8edbb2fb194
test/js/fixtures/common.js
test/js/fixtures/common.js
// We use factories for the models we want to test so just set // empty fixtures here to keep the DS.FixtureAdapter quiet App.CurrentUser.FIXTURES = []; App.WallPost.FIXTURES = []; App.ProjectPhase.FIXTURES = []; App.TaskSearch.FIXTURES = []; App.Organization.FIXTURES = []; App.Project.FIXTURES = []; App.TaskFile.FIXT...
// We use factories for the models we want to test so just set // empty fixtures here to keep the DS.FixtureAdapter quiet App.CurrentUser.FIXTURES = []; App.WallPost.FIXTURES = []; App.ProjectPhase.FIXTURES = []; App.TaskSearch.FIXTURES = []; App.Organization.FIXTURES = []; App.Project.FIXTURES = []; App.TaskFile.FIXT...
Remove PartnerOrg Fixture from tests.
Remove PartnerOrg Fixture from tests. PartenrOrg are moved to 1%
JavaScript
bsd-3-clause
onepercentclub/bluebottle,jfterpstra/bluebottle,jfterpstra/bluebottle,onepercentclub/bluebottle,onepercentclub/bluebottle,jfterpstra/bluebottle,onepercentclub/bluebottle,jfterpstra/bluebottle,onepercentclub/bluebottle
6359226476d6724133863ec9a806d70c2ceaadb1
routes/socket.js
routes/socket.js
/* * Socket.io Communication */ // module dependencies var crypto = require('crypto'); // variable declarations var socketCodes = {}; module.exports = function(socket) { // establish connection socket.emit('pair:init', {}); // receive device type socket.on('pair:deviceType', function(data) { // if dev...
/* * Socket.io Communication */ // module dependencies var crypto = require('crypto'); // variable declarations var socketCodes = {}; module.exports = function(socket) { // establish connection socket.emit('pair:init', {}); // pair mobile and PC // Reference: http://blog.artlogic.com/2013/06/21/phone-to-b...
Add comments to pairing section
Add comments to pairing section
JavaScript
mit
drejkim/multi-screen-demo,drejkim/multi-screen-demo,drejkim/multi-screen-demo
dfaf7349385de1877225c2662b3a6fe83a7b2e23
public/script.js
public/script.js
'use strict'; /* * Tanura demo app. * * This is the main script of the app demonstrating Tanura's features. */ /** * Bootstrapping routine. */ window.onload = () => { console.log("Tanura demo."); }
'use strict'; /* * Tanura demo app. * * This is the main script of the app demonstrating Tanura's features. */ /** * Bootstrapping routine. */ window.onload = () => { console.log("Initializing Tanura..."); tanura.init({audio: true, video: true}); }
Update the demo to use tanura.init().
Update the demo to use tanura.init().
JavaScript
agpl-3.0
theOtherNuvanda/Tanura,theOtherNuvanda/Tanura,theOtherNuvanda/Tanura
e1795c6888e4a26bb563623da18217b5c6096e0d
website/src/app/project/experiments/experiment/components/tasks/mc-experiment-task-details.component.js
website/src/app/project/experiments/experiment/components/tasks/mc-experiment-task-details.component.js
angular.module('materialscommons').component('mcExperimentTaskDetails', { templateUrl: 'app/project/experiments/experiment/components/tasks/mc-experiment-task-details.html', controller: MCExperimentTaskDetailsComponentController, bindings: { task: '=' } }); /*@ngInject*/ function MCExperimentTa...
angular.module('materialscommons').component('mcExperimentTaskDetails', { templateUrl: 'app/project/experiments/experiment/components/tasks/mc-experiment-task-details.html', controller: MCExperimentTaskDetailsComponentController, bindings: { task: '=' } }); /*@ngInject*/ function MCExperimentTa...
Return if note is null.
Return if note is null.
JavaScript
mit
materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org
2bb4efab77c87ffd6c395c77d00b7890542d0630
test/editor.js
test/editor.js
var confy = require('../index'); var testCase = require('nodeunit').testCase; confy.configFile = __dirname + '/.confy'; confy.clean(); process.ENV.EDITOR = __dirname + '/editorcmd'; module.exports = testCase({ setUp: function (callback) { confy.clean(); callback(); }, tearDown: function (callback) { ...
var confy = require('../index'); var testCase = require('nodeunit').testCase; confy.configFile = __dirname + '/.confy'; confy.clean(); process.env.EDITOR = __dirname + '/editorcmd'; module.exports = testCase({ setUp: function (callback) { confy.clean(); callback(); }, tearDown: function (callback) { ...
Fix process.ENV is not supported v0.6.x
Fix process.ENV is not supported v0.6.x
JavaScript
mit
hokaccha/node-confy
be3e67e981125cb4e835abedc87df3c693152a2c
src/query/NicknameQuery.js
src/query/NicknameQuery.js
import { db, Rat } from '../db' import Query from './index' /** * A class representing a rat query */ class NicknameQuery extends Query { /** * Create a sequelize rat query from a set of parameters * @constructor * @param params * @param connection */ constructor (params, connection) { super(...
import { db, Rat } from '../db' import Query from './index' /** * A class representing a rat query */ class NicknameQuery extends Query { /** * Create a sequelize rat query from a set of parameters * @constructor * @param params * @param connection */ constructor (params, connection) { super(...
Remove some lingering citext stuff from nickname query
Remove some lingering citext stuff from nickname query
JavaScript
bsd-3-clause
FuelRats/api.fuelrats.com,FuelRats/api.fuelrats.com,FuelRats/api.fuelrats.com
d2dde55619473b30dd16fd2276e81977dffd5593
src/rar-file/rar-stream.js
src/rar-file/rar-stream.js
//@flow import {Readable} from 'stream'; import RarFileChunk from './rar-file-chunk'; export default class RarStream extends Readable { _rarFileChunks: RarFileChunk[]; _byteOffset: number = 0; constructor(...rarFileChunks: RarFileChunk[]){ super(); this._next(rarFileChunks); } pushData(stream: Rea...
//@flow import {Readable} from 'stream'; import RarFileChunk from './rar-file-chunk'; export default class RarStream extends Readable { constructor(...rarFileChunks: RarFileChunk[]){ super(); this._next(rarFileChunks); } pushData(stream: Readable, chunk: ?(Buffer | string)) : ?boolean { if (!super....
Remove class state from RarStream
Remove class state from RarStream
JavaScript
mit
1313/rar-stream
6e2d7b798504d57c549e3e3750d88e0785f70f71
src/components/WeaveElement.js
src/components/WeaveElement.js
import React, { Component } from 'react'; import '../styles/WeaveElement.css'; class WeaveElement extends Component { constructor() { super(); this.state = {red: false}; this.handleClick = this.handleClick.bind(this); } render() { const style = this.state.red ? "WeaveElement redWeaveEleme...
import React, { Component } from 'react'; import '../styles/WeaveElement.css'; class WeaveElement extends Component { constructor() { super(); this.handleClick = this.handleClick.bind(this); } componentState() { const row = this.props.row; const col = this.props.col; const weaves = this.prop...
Add method componentState and remove inner state
Add method componentState and remove inner state
JavaScript
mit
nobus/weaver,nobus/weaver
7fd8521156a34ddee04f150548e00838561aa97c
src/components/common/index.js
src/components/common/index.js
export { Avatar } from './Avatar'; export Button from './Button'; export FloatingAction from './FloatingAction'; export FullScreenTextArea from './FullScreenTextArea'; export Icon from './Icon'; export User from './User';
export { Avatar } from './Avatar'; export Button from './Button'; export FullScreenTextArea from './FullScreenTextArea'; export Icon from './Icon'; export User from './User';
Remove floating action from export
Remove floating action from export
JavaScript
mit
tobycyanide/felony,tobycyanide/felony,henryboldi/felony,henryboldi/felony
6ca61608e8bed65e03d59b224af62e312dcd1626
generators/gulp/index.js
generators/gulp/index.js
'use strict'; var yeoman = require('yeoman-generator'); module.exports = yeoman.generators.Base.extend({ initializing: function() { this.option('gh_page_type', { type: String, required: true, desc: 'Github page type (user or project)' }); this._set_branch_option(); }, _set_branch_o...
'use strict'; var yeoman = require('yeoman-generator'); module.exports = yeoman.generators.Base.extend({ initializing: function() { this.option('gh_page_type', { type: String, required: true, desc: 'Github page type (user, organization, or project)' }); this._set_branch_option(); }, ...
Adjust gulp generator to support github orgs
Adjust gulp generator to support github orgs
JavaScript
mit
gjeck/generator-jekyll-ghpages,gjeck/generator-jekyll-ghpages,gjeck/generator-jekyll-ghpages
297a346983d1353b4eaa82ca25cfae88a2eed208
app/js/directives/morph_form.js
app/js/directives/morph_form.js
annotationApp.directive('morphForm', function() { return { restrict: 'E', scope: true, templateUrl: 'templates/morph_form.html' }; });
"use strict"; annotationApp.directive('morphForm', function() { return { restrict: 'E', scope: true, templateUrl: 'templates/morph_form.html' }; });
Use strict in morphForm directive
Use strict in morphForm directive
JavaScript
mit
PonteIneptique/arethusa,latin-language-toolkit/arethusa,Masoumeh/arethusa,alpheios-project/arethusa,alpheios-project/arethusa,alpheios-project/arethusa,Masoumeh/arethusa,fbaumgardt/arethusa,latin-language-toolkit/arethusa,PonteIneptique/arethusa,fbaumgardt/arethusa,fbaumgardt/arethusa
1646d23736e1f9fb7125136ed2ed934556d197d0
Build/Config.js
Build/Config.js
// Project configuration. var pkg = require("../package"); module.exports = { "package" : pkg, "paths" : { "private": "Resources/Private", "public": "Resources/Public", }, "Sass" : { "sassDir" : "Resources/Private/Sass", "cssDir" : "Resources/Public/Stylesheets" }, "JavaScripts" : { "devDir" : "Res...
// Project configuration. var pkg = require("../package"); module.exports = { "package" : pkg, "paths" : { "private": "Resources/Private", "public": "Resources/Public", }, "Sass" : { "sassDir" : "Resources/Private/Sass", "cssDir" : "Resources/Public/Stylesheets" }, "JavaScripts" : { "devDir" : "Res...
Simplify the grunt 'packageIsDefault' check
[MISC] Simplify the grunt 'packageIsDefault' check
JavaScript
mit
t3b/t3b_template,t3b/t3b_template,t3b/t3b_template,t3b/t3b_template,t3b/t3b_template
ca1b5aa9ad844425fe7efae1d1cf03ff97125a5b
server/database/index.js
server/database/index.js
import Sequelize from 'sequelize' import logger from '../helpers/logger' import config from './config' const { url, dialect } = config[process.env.NODE_ENV] export default new Sequelize(url, { logging: msg => { logger.debug(msg) }, dialect, operatorsAliases: false, // @TODO Remove this option in sequeliz...
import Sequelize from 'sequelize' import config from './config' import logger from '../helpers/logger' const { url, dialect } = config[process.env.NODE_ENV] export default new Sequelize(url, { dialect, logging: msg => { logger.debug(msg) }, })
Remove unneded database options after upgrading to Sequelize 5
Remove unneded database options after upgrading to Sequelize 5
JavaScript
agpl-3.0
adzialocha/hoffnung3000,adzialocha/hoffnung3000
85acc479edf0d08bd3216b4a0b36748117670dc1
source/popup/js/index.js
source/popup/js/index.js
import { placeStylesheet } from "../../common/styles"; window.Buttercup = { fetchArchives: function() { return new Promise(function(resolve, reject) { let timeout = setTimeout(() => reject(new Error("Timed-out getting archive list")), 200); chrome.runtime.sendMessage({ command: "ge...
import { placeStylesheet } from "../../common/styles"; window.Buttercup = { fetchArchives: function() { return new Promise(function(resolve, reject) { let timeout = setTimeout(() => reject(new Error("Timed-out getting archive list")), 200); chrome.runtime.sendMessage({ command: "ge...
Increase timeout for locking archives
Increase timeout for locking archives
JavaScript
mit
perry-mitchell/buttercup-chrome,perry-mitchell/buttercup-chrome,buttercup-pw/buttercup-browser-extension,buttercup-pw/buttercup-browser-extension
58d921e92620f220dc73d49792f791add873caaf
packages/test-in-browser/package.js
packages/test-in-browser/package.js
Package.describe({ summary: "Run tests interactively in the browser", version: '1.0.6' }); Package.onUse(function (api) { // XXX this should go away, and there should be a clean interface // that tinytest and the driver both implement? api.use('tinytest'); api.use('bootstrap@1.0.1'); api.use('underscore'...
Package.describe({ summary: "Run tests interactively in the browser", version: '1.0.6', documentation: null }); Package.onUse(function (api) { // XXX this should go away, and there should be a clean interface // that tinytest and the driver both implement? api.use('tinytest'); api.use('bootstrap@1.0.1');...
Test in browser doesn't need docs right now
Test in browser doesn't need docs right now Conflicts: packages/test-in-browser/package.js
JavaScript
mit
mauricionr/meteor,jenalgit/meteor,shmiko/meteor,vacjaliu/meteor,iman-mafi/meteor,papimomi/meteor,chasertech/meteor,jagi/meteor,vjau/meteor,framewr/meteor,vacjaliu/meteor,daltonrenaldo/meteor,chengxiaole/meteor,dev-bobsong/meteor,EduShareOntario/meteor,stevenliuit/meteor,allanalexandre/meteor,shrop/meteor,Prithvi-A/mete...
47e48049229d5393c024c0b742bd8511693d5e09
static/js/share-buttons.js
static/js/share-buttons.js
// https://github.com/kni-labs/rrssb var popupCenter = function(url, title, w, h) { // Fixes dual-screen position Most browsers Firefox var dualScreenLeft = window.screenLeft !== undefined ? window.screenLeft : screen.left; var dualScreenTop = window.screenTop !== undefined ? ...
// https://github.com/kni-labs/rrssb var popupCenter = function(url) { var w = 580; var h = 470; // Fixes dual-screen position Most browsers Firefox var dualScreenLeft = window.screenLeft !== undefined ? window.screenLeft : screen.left; var dualScreenTop = window.screenTop...
Remove title w and h params in popupCenter
Remove title w and h params in popupCenter
JavaScript
mit
DeveloperDavo/learnitmyway,DeveloperDavo/learnitmyway
875e1aa44952cd946e739b9ffa52cae074ded129
documentation/more/classes.js
documentation/more/classes.js
noUiSlider.create(slider, { start: 80, range: { min: 0, max: 100 }, cssPrefix: 'noUi-', // defaults to 'noUi-', cssClasses: { // Full list of classnames to override. // Does NOT extend the default classes. // Have a look at the source for the full, current lis...
noUiSlider.create(slider, { start: 80, range: { min: 0, max: 100 }, cssPrefix: 'noUi-', // defaults to 'noUi-', cssClasses: { // Full list of classnames to override. // Does NOT extend the default classes. // Have a look at the source for the full, current lis...
Remove dead link to full list of class names
Remove dead link to full list of class names
JavaScript
mit
leongersen/noUiSlider,leongersen/noUiSlider,leongersen/noUiSlider,leongersen/noUiSlider
2e66a868619fd017b1e409da3b60c750ac7e4960
providers/oauth/oauth.identity.js
providers/oauth/oauth.identity.js
/*globals chrome,console */ /*jslint indent:2,browser:true, node:true */ var PromiseCompat = require('es6-promise').Promise; var oAuthRedirectId = "freedom.oauth.redirect.handler"; var ChromeIdentityAuth = function() { "use strict"; }; ChromeIdentityAuth.prototype.initiateOAuth = function(redirectURIs, continuatio...
/*globals chrome,console */ /*jslint indent:2,browser:true, node:true */ var PromiseCompat = require('es6-promise').Promise; var oAuthRedirectId = "freedom.oauth.redirect.handler"; var ChromeIdentityAuth = function() { "use strict"; }; ChromeIdentityAuth.prototype.initiateOAuth = function(redirectURIs, continuatio...
Remove superfluous check in core.oauth
Remove superfluous check in core.oauth
JavaScript
apache-2.0
freedomjs/freedom-for-chrome,freedomjs/freedom-for-chrome,freedomjs/freedom-for-chrome,freedomjs/freedom-for-chrome
1b273af40df9a093271b2d21cebcc545f2f55dce
string/palindrome-check.js
string/palindrome-check.js
// Program to determine if string is a palindrome function checkPalindrome(str) { // identify non-alphanumeric characters through regular expression var regEx = /[^A-Za-z0-9]/g; // lower case all characters in string and remove all non-alphanumeric characters var lowCaseReg = str.toLowerCase().replace(regEx, '')...
// Program to determine if string is a palindrome function checkPalindrome(str) { // identify non-alphanumeric characters through regular expression var regEx = /[^A-Za-z0-9]/g; // lower case all characters in string and remove all non-alphanumeric characters var lowCaseReg = str.toLowerCase().replace(regEx, '')...
Add test cases to check for palindrome in string function
Add test cases to check for palindrome in string function
JavaScript
mit
derekmpham/interview-prep,derekmpham/interview-prep
e91dc89930431c8c79a02d3adb1a136ea55b4665
client/app/services/services.js
client/app/services/services.js
angular.module('cat-buddy.services', []) .factory('Animals', function($http) { var getAllFromInternetByZipCode = function(animalName, zipCode, offset) { offset = offset || 0; return $http({ method: 'GET', url: 'http://api.petfinder.com/pet.find', data: { key: PETFINDER_API_KEY, //to ...
angular.module('cat-buddy.services', []) .factory('Animals', function($http) { var getAllFromInternetByZipCode = function(animalName, zipCode, count, offset) { offset = offset || 0; return $http({ method: 'GET', url: 'http://api.petfinder.com/pet.find', data: { key: PETFINDER_API_KEY...
Remove magic number for "count" in get requests
Remove magic number for "count" in get requests
JavaScript
mit
reinaisnothere/mvp,reinaisnothere/mvp
c53adcb912b3a370556f6e078968d954d46b1f7f
modules/orders/client/controllers/recipt.client.controller.js
modules/orders/client/controllers/recipt.client.controller.js
(function() { 'use strict'; angular .module('orders') .controller('ReciptController', ReciptController); ReciptController.$inject = ['$scope', 'OrdersService', '$stateParams', '$location']; function ReciptController($scope, OrdersService, $stateParams, $location) { var vm = this; vm.order = {...
(function() { 'use strict'; angular .module('orders') .controller('ReciptController', ReciptController); ReciptController.$inject = ['$timeout', '$state', '$scope', 'OrdersService', '$stateParams', '$location']; function ReciptController($timeout, $state,$scope, OrdersService, $stateParams, $location...
Add method to go back after print in the recipt page
Add method to go back after print in the recipt page
JavaScript
mit
JavaScriptAcademy/oneStep,JavaScriptAcademy/oneStep,JavaScriptAcademy/oneStep
c9a809bbc3edc47377a42b10efdfbf32158268dd
gulp/download-locales.js
gulp/download-locales.js
var downloadLocales = require('webmaker-download-locales'); var glob = require('glob'); var fs = require('fs-extra'); // Which languages should we pull down? // Don't include en-US because that's committed into git already var supportedLanguages = ['id', 'en_CA', 'es_CL', 'fr', 'nl', 'es_MX', 'cs', 'sv', 'bn_BD', 'sw'...
var downloadLocales = require('webmaker-download-locales'); var glob = require('glob'); var fs = require('fs-extra'); // Which languages should we pull down? // Don't include en-US because that's committed into git already var supportedLanguages = ['id', 'en_CA', 'es_CL', 'fr', 'nl', 'es_MX', 'cs', 'sv', 'bn_BD', 'sw'...
Enable other locales that fully translated on Transifex
Enable other locales that fully translated on Transifex
JavaScript
mpl-2.0
k88hudson/webmaker-android,gvn/webmaker-android,mozilla/webmaker-android,secretrobotron/webmaker-android,adamlofting/webmaker-android,j796160836/webmaker-android,alicoding/webmaker-android,secretrobotron/webmaker-android,vazquez/webmaker-android,alanmoo/webmaker-android,bolaram/webmaker-android,bolaram/webmaker-android...
21fe3174410756b25281bed5a446516f2c053016
node_modules/hotCoreErrorProtocol/lib/hotCoreErrorProtocol.js
node_modules/hotCoreErrorProtocol/lib/hotCoreErrorProtocol.js
"use strict"; var dummy , hotplate = require('hotplate') , path = require('path') ; // exports.sendResponse = function(method, res, obj){ exports.sendResponse = function(res, obj, status){ var status; var isOK; status = status || 200; isOK = (status >= 200 && status < 300) || // allow any 2XX error c...
"use strict"; var dummy , hotplate = require('hotplate') , path = require('path') ; // exports.sendResponse = function(method, res, obj){ exports.sendResponse = function(res, obj, status){ var status; var isOK; status = status || 200; isOK = (status >= 200 && status < 300) || // allow any 2XX error c...
Update to latest Express API
Update to latest Express API
JavaScript
mit
shelsonjava/hotplate,mercmobily/hotplate,mercmobily/hotplate,shelsonjava/hotplate
3b0492386a595331d147c2a1e5f3748c1e0963c3
src/index.js
src/index.js
import { join } from 'path' import buildWebpackConfig from './config/build-webpack-config' import buildKarmaConfig from './config/build-karma-config' import startDevelop from './action/start-develop' import runTest from './action/run-test' import install from './action/install' import json from './util/json' export d...
import { join } from 'path' import { statSync } from 'fs' import buildWebpackConfig from './config/build-webpack-config' import buildKarmaConfig from './config/build-karma-config' import startDevelop from './action/start-develop' import runTest from './action/run-test' import install from './action/install' import json...
Fix check that would crash if folder didn’t contain a package.json file
Fix check that would crash if folder didn’t contain a package.json file
JavaScript
mit
saguijs/sagui,saguijs/sagui
f4955e86bb284b7111c71f8a9f270da7c8818c15
src/index.js
src/index.js
export default class UserLocation { constructor({ apiKey, cacheTtl = 604800, // 7 days fallback = 'exact', // If IP-based geolocation fails specificity = 'general', }) { let coordsLoaded = false; const coords = { latitude: null, longitude: null, accuracy: null, }; ...
export default class UserLocation { constructor({ apiKey = null, cacheTtl = 604800, // 7 days fallback = 'exact', // If IP-based geolocation fails specificity = 'general', }) { let coordsLoaded = false; const coords = { latitude: null, longitude: null, accuracy: null, ...
Add a check to ensure apiKey is included in config when using GeoCarrot’s GeoIP lookup.
Add a check to ensure apiKey is included in config when using GeoCarrot’s GeoIP lookup.
JavaScript
apache-2.0
kevinsmith/user-location
7ce25e9c841a98ac2d428a6d7e1a70015e890349
src/index.js
src/index.js
'use strict'; import backbone from 'backbone'; import _ from 'underscore'; class Person extends backbone.Model { getFullName() { return this.get('firstName') + ' ' + this.get('lastName'); } } // Using benmccormick's suggestion // for decorators to apply properties to class // before instantiation // ht...
'use strict'; import backbone from 'backbone'; import _ from 'underscore'; class Person extends backbone.Model { getFullName() { return this.get('firstName') + ' ' + this.get('lastName'); } } // Using benmccormick's suggestion // for decorators to apply properties to class // before instantiation // ht...
Move model to this.model in constructor
Move model to this.model in constructor
JavaScript
mit
andrewrota/backbone-with-es6-classes,andrewrota/backbone-with-es6-classes
c45f77f19e84ad54d70574b019198dd9a9fc43f8
test/vue-countdown.spec.js
test/vue-countdown.spec.js
import Vue from 'vue'; import Countdown from '../src/vue-countdown'; import {getVM} from './helpers'; describe('Vue countdown component', () => { it('sets passed label correctly', () => { const vm = getVM(Countdown, { propsData: { message: 'Boom' } }); ...
import Vue from 'vue'; import Countdown from '../src/vue-countdown'; import {getVM} from './helpers'; describe('Vue countdown component', () => { it('sets passed label correctly', () => { const vm = getVM(Countdown, { propsData: { message: 'Boom' } }); ...
Add test for time-expire event when timer finishes
Add test for time-expire event when timer finishes
JavaScript
mit
maksimovicdanijel/vue-countdown,maksimovicdanijel/vue-countdown
39430a54cdcac3cae01fb49c54b4e81f66303522
commands/kill.js
commands/kill.js
'use strict'; const CommandUtil = require('../src/command_util').CommandUtil; const l10nFile = __dirname + '/../l10n/commands/kill.yml'; const _ = require('../src/helpers'); const l10n = require('../src/l10n')(l10nFile); const util = require('util'); exports.command = (rooms, items, players, npcs, Commands) => { r...
'use strict'; const CommandUtil = require('../src/command_util').CommandUtil; const l10nFile = __dirname + '/../l10n/commands/kill.yml'; const _ = require('../src/helpers'); const l10n = require('../src/l10n')(l10nFile); const util = require('util'); exports.command = (rooms, items, players, npcs, Commands) => { r...
Remove unneeded console logs, improve messaging to player.
Remove unneeded console logs, improve messaging to player.
JavaScript
mit
seanohue/ranviermud,seanohue/ranviermud,shawncplus/ranviermud
959b28ea1da440d8c71e9d739c2ea099721f5de4
app/routes/seq.js
app/routes/seq.js
import Ember from 'ember'; export default Ember.Route.extend({ model(params) { return this.store.find('seq', params.lang + "-" + params.seq).then( (model) => model, (error) => null); }, afterModel(model) { this._super(model); if(Ember.isEmpty(model)) { this.notifier.error("No such w...
import Ember from 'ember'; import ENV from '../config/environment'; export default Ember.Route.extend({ model(params) { const key = params.lang + "-" + params.seq; const _this = this; return Ember.$.getJSON(ENV.api + "/seqs/" + key).then( (data) => { _this.store.pushPayload('wordset', data)...
Set up the controller after a route change wrt editing
Set up the controller after a route change wrt editing
JavaScript
mit
wordset/wordset-ui,BryanCode/wordset-ui,wordset/wordset-ui,wordset/wordset-ui,BryanCode/wordset-ui,BryanCode/wordset-ui
af52d32fe73ba180ef6975edff4ef04c42e5149b
scripts/cd-server.js
scripts/cd-server.js
// Continuous delivery server const { spawn } = require('child_process') const { resolve } = require('path') const { createServer } = require('http') const { urlencoded } = require('body-parser') const hostname = '127.0.0.1' const port = 80 const server = createServer((req, res) => { const { headers, method, url } =...
// Continuous delivery server const { spawn } = require('child_process') const { resolve } = require('path') const { createServer } = require('http') const { urlencoded } = require('body-parser') const hostname = '127.0.0.1' const port = 80 const server = createServer((req, res) => { const { headers, method, url } =...
Fix typo in CD server.
Fix typo in CD server.
JavaScript
mit
jsonnull/jsonnull.com,jsonnull/jsonnull.com,jsonnull/jsonnull.com
3c71fc5e7e9c146b0ac59eb792bca74a0c52a0d0
app/views/room.js
app/views/room.js
const h = require('virtual-dom/h'); module.exports = function (data) { const {gameID, game} = data; return h('div', {className: 'room'}, [ game.playing ? null : h('form', {method: 'post', action: `/${gameID}`}, [ h('button', {type: 'button', id: 'min'}, '-'), h('input', {type: 'number', name: 'max-...
const h = require('virtual-dom/h'); module.exports = function (data) { const {gameID, game} = data; return h('div', {className: 'room'}, [ game.playing ? null : h('form', {method: 'post', action: `/${gameID}`}, [ h('input', {type: 'number', name: 'max-score', min: '1', value: game.maxScore}), h('bu...
Remove + / - buttons
Remove + / - buttons
JavaScript
mit
rijkvanzanten/luaus
9c0c8362aeb27327a1c5747d51e9e87a7497e73f
src/browser_app_skeleton/src/js/app.js
src/browser_app_skeleton/src/js/app.js
/* eslint no-console:0 */ // RailsUjs is *required* for links in Lucky that use DELETE, POST and PUT. import RailsUjs from "rails-ujs"; // Turbolinks is optional. Learn more: https://github.com/turbolinks/turbolinks/ import Turbolinks from "turbolinks"; RailsUjs.start(); Turbolinks.start();
/* eslint no-console:0 */ // RailsUjs is *required* for links in Lucky that use DELETE, POST and PUT. // Though it says "Rails" it actually works with any framework. import RailsUjs from "rails-ujs"; // Turbolinks is optional. Learn more: https://github.com/turbolinks/turbolinks/ import Turbolinks from "turbolinks"; ...
Clarify how to attach events and RailsUjs
Clarify how to attach events and RailsUjs
JavaScript
mit
luckyframework/cli,luckyframework/cli,luckyframework/cli