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
9b7fc3eb72cf15798e2decd85429ae495b74700b
client/tests/end2end/protractor-sauce.config.js
client/tests/end2end/protractor-sauce.config.js
var fs = require('fs'); var specs = JSON.parse(fs.readFileSync('tests/end2end/specs.json')); var browser_capabilities = JSON.parse(process.env.SELENIUM_BROWSER_CAPABILITIES); browser_capabilities['name'] = 'GlobaLeaks-E2E'; browser_capabilities['tunnel-identifier'] = process.env.TRAVIS_JOB_NUMBER; browser_capabilities...
var fs = require('fs'); var specs = JSON.parse(fs.readFileSync('tests/end2end/specs.json')); var browser_capabilities = JSON.parse(process.env.SELENIUM_BROWSER_CAPABILITIES); browser_capabilities['name'] = 'GlobaLeaks-E2E'; browser_capabilities['tunnel-identifier'] = process.env.TRAVIS_JOB_NUMBER; browser_capabilities...
Use protractor sauceBuild parameter to mass the build number to Sauce
Use protractor sauceBuild parameter to mass the build number to Sauce
JavaScript
agpl-3.0
vodkina/GlobaLeaks,vodkina/GlobaLeaks,vodkina/GlobaLeaks,vodkina/GlobaLeaks
a4648a1b8d1641a4e48dca50ba61378d377db855
app/scripts/timetable_builder/views/TimetableView.js
app/scripts/timetable_builder/views/TimetableView.js
define(['underscore', 'backbone.marionette', './LessonView'], function(_, Marionette, LessonView) { 'use strict'; return Marionette.CollectionView.extend({ el: $('#timetable'), childView: LessonView, childViewOptions: function () { return { parentView: this, timetable: this.coll...
define(['underscore', 'backbone.marionette', './LessonView'], function(_, Marionette, LessonView) { 'use strict'; return Marionette.CollectionView.extend({ el: $('#timetable'), childView: LessonView, childViewOptions: function () { return { parentView: this, timetable: this.coll...
Store colgroup in ui hash
Store colgroup in ui hash
JavaScript
mit
zhouyichen/nusmods,chunqi/nusmods,Yunheng/nusmods,nathanajah/nusmods,chunqi/nusmods,chunqi/nusmods,nathanajah/nusmods,chunqi/nusmods,nusmodifications/nusmods,zhouyichen/nusmods,Yunheng/nusmods,mauris/nusmods,Yunheng/nusmods,zhouyichen/nusmods,nusmodifications/nusmods,mauris/nusmods,nathanajah/nusmods,nusmodifications/n...
44aa937a7747147218dbc06c7d12274dfc386330
webapp/js/scripts.js
webapp/js/scripts.js
// scripts app var app; (function(){ "use strict"; app = new ElecionesApp(); console.log(app); // load mapa $.get("img/mapaBA_SVG.txt", function(mapa){ $("#mapa_cont").html(mapa); }); $('select#opts').change(function(e){ app.change_dropdown($(this).val()); }); })();
// scripts app var app; $(function(){ "use strict"; app = new ElecionesApp(); console.log(app); // load mapa $.get("img/mapaBA_SVG.txt", function(mapa){ $("#mapa_cont").html(mapa); }); $('select#opts').change(function(e){ app.change_dropdown($(this).val()); }); });
Fix problem with anonymous function in production mode
Fix problem with anonymous function in production mode
JavaScript
mit
lanacioncom/elecciones_2015_caba,lanacioncom/elecciones_2015_caba,lanacioncom/elecciones_2015_caba,lanacioncom/elecciones_2015_caba
d503494d18b3af9df9e27ddcc8eaa4c97914e9b8
example/webpack.config.server.js
example/webpack.config.server.js
var api = require("./webpack.config.defaults") .entry("./src/server.js") // @TODO Auto-installed deps aren't in node_modules (yet), // so let's see if this is a problem or not .externals(/^@?\w[a-z\-0-9\./]+$/) // .externals(...require("fs").readdirSync("./node_modules")) .output("build/server") .target("...
var api = require("./webpack.config.defaults") .entry("./src/server.js") .externals(/^@?\w[a-z\-0-9\./]+$/) .output("build/server") .target("node") .when("development", function(api) { return api .entry({ server: [ "webpack/hot/poll?1000", "./src/server.js", ], ...
Add comment that externals RegExp does work
Add comment that externals RegExp does work
JavaScript
mit
ericclemmons/terse-webpack
9df18bb2e42506b765c21d76f93228dced3ca14b
tb_website/static/js/basic.js
tb_website/static/js/basic.js
$(document).ready(function() { $("[data-toggle=tooldesc]").data('container', 'body').tooltip({placement: 'bottom', trigger: 'manual'}); $("[data-toggle=tooltip], [data-toggle=tooltips] *").data('container', 'body').tooltip(); setInterval(function () { $('.page-loader:visible').each(function() { v...
$(document).ready(function() { setInterval(function () { $('.page-loader:visible').each(function() { var elem = this.parentElement; $(this).removeClass('page-loader'); $(this).addClass('page-loading'); var url = $(this).data('loader-url'); if (!url) { ...
Fix tooltips when lazy loading
Fix tooltips when lazy loading
JavaScript
agpl-3.0
IQSS/gentb-site,IQSS/gentb-site,IQSS/gentb-site,IQSS/gentb-site,IQSS/gentb-site,IQSS/gentb-site,IQSS/gentb-site,IQSS/gentb-site
f64fbbd2303499012ede0fdf42b6133f0bfef32d
config/regions.js
config/regions.js
'use strict' module.exports = [ { name: 'auckland', id: 1 }, { name: 'wellington', id: 15 }, { name: 'waikato', id: 14 } ]
'use strict' const auckland = { name: 'auckland', id: 1 } const wellington = { name: 'wellington', id: 15 } const waikato = { name: 'waikato', id: 14 } module.exports = [ auckland ]
Disable cities other than AKL for testing
Disable cities other than AKL for testing
JavaScript
mit
rowanoulton/rent
08a0186506afc46443f096607a861db740b89f28
client/src/app/app.js
client/src/app/app.js
angular.module('14all', ['ui.bootstrap','ngAnimate', 'auth', /* Modules */ 'manga','movie','serie','anime','game','book', '14all.templates']) .config(['RestangularProvider',function(RestangularProvider){ RestangularProvider.setRestangularFields({ id: "_id" }); Res...
angular.module('14all', ['ui.bootstrap','ngAnimate', 'auth', /* Modules */ 'manga','movie','serie','anime','game','book', '14all.templates']) .config(['RestangularProvider',function(RestangularProvider){ RestangularProvider.setRestangularFields({ id: "_id" }); Res...
Fix for Cannot read property 'excludeFinished' of null
Fix for Cannot read property 'excludeFinished' of null
JavaScript
mit
Opiskull/one4all
efccff1832c45d68b1111da230b561ece2698e54
test/bigtest/network/start.js
test/bigtest/network/start.js
/* eslint global-require: off, import/no-mutable-exports: off */ import merge from 'lodash/merge'; import flow from 'lodash/flow'; const environment = process.env.NODE_ENV || 'test'; let start = () => {}; if (environment !== 'production') { const { default: Mirage, camelize } = require('@bigtest/mirage'); const ...
/* eslint global-require: off, import/no-mutable-exports: off */ import merge from 'lodash/merge'; import flow from 'lodash/flow'; const environment = process.env.NODE_ENV || 'test'; let start = () => {}; if (environment !== 'production') { const { default: Mirage, camelize } = require('@bigtest/mirage'); const ...
Fix mirage to only use default scenario when not testing
Fix mirage to only use default scenario when not testing
JavaScript
apache-2.0
folio-org/stripes-core,folio-org/stripes-core,folio-org/stripes-core
c15a006124e6bc5dbcbf4d1e9036391cb1b9b7d0
usr/local/www/javascript/index/sajax.js
usr/local/www/javascript/index/sajax.js
function updateMeters() { x_cpu_usage(updateCPU); x_mem_usage(updateMemory); x_get_uptime(updateUptime); x_get_pfstate(updateState); window.setTimeout('updateMeters()', 1500); } function updateMemory(x) { document.getElementById("memusagemeter").value = x + '%'; document.getElementById("memwidtha").style.widt...
function updateMeters() { x_cpu_usage(updateCPU); x_mem_usage(updateMemory); x_get_uptime(updateUptime); x_get_pfstate(updateState); window.setTimeout('updateMeters()', 10000); } function updateMemory(x) { document.getElementById("memusagemeter").value = x + '%'; document.getElementById("memwidtha").style.wid...
Update time now 10 seconds.
Update time now 10 seconds.
JavaScript
apache-2.0
NOYB/pfsense,NOYB/pfsense,dennypage/pfsense,NewEraCracker/pfsense,NewEraCracker/pfsense,NewEraCracker/pfsense,ch1c4um/pfsense,BlackstarGroup/pfsense,pfsense/pfsense,ch1c4um/pfsense,jxmx/pfsense,phil-davis/pfsense,dennypage/pfsense,BlackstarGroup/pfsense,jxmx/pfsense,BlackstarGroup/pfsense,brunostein/pfsense,ptorsten/pf...
9309f7a09c8d6af2b42946378bc3d4f87b888d62
ui/src/reducers/similar.js
ui/src/reducers/similar.js
import { createReducer } from 'redux-act'; import { queryEntities, queryEntitySetEntities, fetchEntity, createEntity, updateEntity, deleteEntity, } from 'actions'; import { objectLoadStart, objectLoadError, objectLoadComplete, objectDelete, resultObjects, } from 'reducers/util'; const init...
import { createReducer } from 'redux-act'; import { querySimilar } from 'actions'; import { resultObjects } from 'reducers/util'; const initialState = {}; export default createReducer({ [querySimilar.COMPLETE]: (state, { result }) => resultObjects(state, result), }, initialState);
Fix ESLint errors and warnings
Fix ESLint errors and warnings
JavaScript
mit
alephdata/aleph,alephdata/aleph,alephdata/aleph,alephdata/aleph,alephdata/aleph
edc416dd7695afc273032209b7d7ea67abe9e7d9
lib/assets/javascripts/cartodb/common/dialogs/merge_datasets/column_merge/column_merge_model.js
lib/assets/javascripts/cartodb/common/dialogs/merge_datasets/column_merge/column_merge_model.js
var _ = require('underscore'); var cdb = require('cartodb.js'); var ChooseKeyColumnsModel = require('./choose_key_columns_model'); module.exports = cdb.core.Model.extend({ defaults: { illustrationIconType: 'IllustrationIcon--alert', icon: 'iconFont-Question', title: 'Column join', desc: 'Merge two d...
var _ = require('underscore'); var cdb = require('cartodb.js'); var ChooseKeyColumnsModel = require('./choose_key_columns_model'); module.exports = cdb.core.Model.extend({ defaults: { illustrationIconType: 'IllustrationIcon--alert', icon: 'iconFont-Question', title: 'Column join', desc: 'Merge two d...
Fix can merge check for column merge
Fix can merge check for column merge
JavaScript
bsd-3-clause
thorncp/cartodb,bloomberg/cartodb,CartoDB/cartodb,nyimbi/cartodb,nuxcode/cartodb,codeandtheory/cartodb,nuxcode/cartodb,dbirchak/cartodb,DigitalCoder/cartodb,future-analytics/cartodb,dbirchak/cartodb,thorncp/cartodb,UCL-ShippingGroup/cartodb-1,CartoDB/cartodb,bloomberg/cartodb,splashblot/dronedb,nyimbi/cartodb,dbirchak/...
c83853f0d3b12bff8ad6320e4f25b475874286e8
utils/upgrade-extracted.js
utils/upgrade-extracted.js
var async = require("async"); var mongoose = require("mongoose"); require("ukiyoe-models")(mongoose); var ExtractedImage = mongoose.model("ExtractedImage"); mongoose.connect('mongodb://localhost/extract'); mongoose.connection.on('error', function(err) { console.error('Connection Error:', err) }); mongoose.conne...
var async = require("async"); var mongoose = require("mongoose"); require("ukiyoe-models")(mongoose); var ExtractedImage = mongoose.model("ExtractedImage"); mongoose.connect('mongodb://localhost/extract'); mongoose.connection.on('error', function(err) { console.error('Connection Error:', err) }); mongoose.conne...
Make it so that you can upgrade a specific source.
Make it so that you can upgrade a specific source.
JavaScript
mit
jeresig/ukiyoe-web
5834c8958f74783422d84dc96fd9d2593dd67b83
server/server.js
server/server.js
// Load environment variables if (process.env.NODE_ENV === 'development') { require('dotenv').config({ path: './env/development.env' }); } var express = require('express'); var passport = require('passport'); var util = require('./lib/utility.js'); var app = express(); // Initial Configuration, Static Assets, & Vi...
// Load environment variables if (process.env.NODE_ENV === 'development') { require('dotenv').config({ path: './env/development.env' }); } var express = require('express'); var passport = require('passport'); var util = require('./lib/utility.js'); var app = express(); // Initial Configuration, Static Assets, & Vi...
Put back the authentication to pass Travis CI tests
Put back the authentication to pass Travis CI tests
JavaScript
mit
formidable-coffee/masterfully,chkakaja/sentimize,formidable-coffee/masterfully,chkakaja/sentimize
0e94996de971e27054747df5784e1df5270b5b60
ui/model/tests/patch_file_tests.js
ui/model/tests/patch_file_tests.js
describe("PatchFile should", function() { it("only parse positive or zero delta numbers", function() { var file = new PatchFile(); expect(file.added).toBe(0); expect(file.removed).toBe(0); file.added = 10; file.removed = 5; expect(file.added).toBe(10); expe...
describe("PatchFile should", function() { it("parse file extensions into syntax highlighting languages", function() { expect(PatchFile.computeLanguage("")).toBe(""); expect(PatchFile.computeLanguage("Document.h")).toBe("cpp"); expect(PatchFile.computeLanguage("Document.cpp")).toBe("cpp"); ...
Add a PatchFile test for parsing file extensions.
Add a PatchFile test for parsing file extensions.
JavaScript
bsd-3-clause
esprehn/chromium-codereview,esprehn/chromium-codereview
f138c95cfb0bd88b7e43683588be6dbb9122e329
src/responses.js
src/responses.js
// Copyright (c) Martin Costello, 2017. All rights reserved. // Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information. "use strict"; const responses = { noAudioPlayer: "Sorry, this application does not support audio streams.", noIntent: "Sorry, I don't unders...
// Copyright (c) Martin Costello, 2017. All rights reserved. // Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information. "use strict"; const responses = { noAudioPlayer: "Sorry, this application does not support audio streams.", noIntent: "Sorry, I don't unders...
Change the default error message
Change the default error message Make the default error message souund a bit friendlier.
JavaScript
apache-2.0
martincostello/alexa-london-travel
018b82dae4f564b74851c73f250e2a9f13b493b8
chattify.js
chattify.js
function filterF(i, el) { var pattern = /(From|To|Sent|Subject|Cc|Date):/i; return el.textContent.match(pattern); } // convert From...To... blocks into one-liners var matches = $(document).find("*").filter(filterF).get().reverse(); while (matches.length > 0) { matches[0].remove(); matches = $(document).find("...
function filterF(i, el) { var pattern = /(From|To|Sent|Subject|Cc|Date):/i; return el.textContent.match(pattern); } // convert From...To... blocks into one-liners var matches = $(document).find("*").filter(filterF).get().reverse(); while (matches.length > 0) { var parent = $(matches[0]).parent(); var localMat...
Remove From...To... tags including all content
Remove From...To... tags including all content
JavaScript
mit
kubkon/email-chattifier,kubkon/email-chattifier
3f2b4bb35d616dd548352bbdf1338ab64c1a6459
src/index.js
src/index.js
import React from 'react'; import ReactDom from 'react-dom'; import Feedy from './Components/Feedy'; import styles from './assets/styles/reset.less'; module.exports = function({namespaceUrl, appName}={ namespaceUrl:'https://webcom.orange.com/base/feedy', appName:'general' }) { $("<div id='feedy'></div>").appendTo(...
import React from 'react'; import ReactDom from 'react-dom'; import Feedy from './Components/Feedy'; import styles from './assets/styles/reset.less'; module.exports = function({namespaceUrl='https://webcom.orange.com/base/feedy', appName='general'}) { $("<div id='feedy'></div>").appendTo(document.body); ReactDom.r...
Initialize feedy with an empty object crashes
fix: Initialize feedy with an empty object crashes
JavaScript
mit
webcom-components/feedy,webcom-components/feedy
d87dd0f7cb14a07ebf93c75af60149bdee99337c
src/index.js
src/index.js
import firebase from 'firebase/app'; import 'firebase/auth'; import 'firebase/database'; import marked from 'marked'; import 'normalize.css'; import prism from 'prismjs'; import React from 'react'; import ReactDOM from 'react-dom'; import { BrowserRouter as Router } from 'react-router-dom'; import config from './confi...
import firebase from 'firebase/app'; import 'firebase/auth'; import 'firebase/database'; import marked from 'marked'; import 'normalize.css'; import prism from 'prismjs'; import React from 'react'; import ReactDOM from 'react-dom'; import { BrowserRouter as Router } from 'react-router-dom'; import config from './confi...
Add code to unregister the service worker for now
Add code to unregister the service worker for now
JavaScript
mit
hoopr/codework,hoopr/codework
e4e1d2a3eadf4b322c744f57278d154321142217
hooks/beforePrepare.js
hooks/beforePrepare.js
#!/usr/bin/env node var exec = require('child_process').exec; var fs = require('fs'); var coffee_path = 'coffee/' if( !fs.existsSync(coffee_path)) { fs.mkdirSync(coffee_path) } exec("coffee --compile --output www/js/ " + coffee_path)
#!/usr/bin/env node var execSync = require('child_process').execSync; var fs = require('fs'); var coffee_path = 'coffee/' if( !fs.existsSync(coffee_path)) { fs.mkdirSync(coffee_path) } execSync("coffee --compile --output www/js/ " + coffee_path)
Use execSync to avoid race
Use execSync to avoid race Running coffeescript in the background means that cordova might use stale output, depending on who is faster. As an added bonus, throws error if coffeescript exits with a non-zero return code. Usually, that is because of a syntax error in the sources.
JavaScript
mit
metova/coffee-script-cordova-plugin
f5a666047b05cbb8034aad958e0fba938769b4fb
tests/dummy/config/targets.js
tests/dummy/config/targets.js
const browsers = [ 'last 1 Chrome versions', 'last 1 Firefox versions', 'last 1 Safari versions' ]; const isCI = !!process.env.CI; const isProduction = process.env.EMBER_ENV === 'production'; if (isCI || isProduction) { browsers.push('ie 11'); } module.exports = { browsers };
var browsers = [ 'last 1 Chrome versions', 'last 1 Firefox versions', 'last 1 Safari versions' ]; var isCI = !!process.env.CI; var isProduction = process.env.EMBER_ENV === 'production'; if (isCI || isProduction) { browsers.push('ie 11'); } module.exports = { browsers };
Switch const to var for node 4
Switch const to var for node 4
JavaScript
mit
paddle8/ember-autoresize,tim-evans/ember-autoresize,tim-evans/ember-autoresize,paddle8/ember-autoresize
8ea18ca05393c92f457f92cb0901ed6e5b42d761
app/scripts/services/responseredirector.js
app/scripts/services/responseredirector.js
'use strict'; /** * @ngdoc service * @name wavesApp.responseredirector * @description * # responseredirector * Service in the wavesApp. */ angular.module('wavesApp') .service('responseRedirector', ['$state', function ($state) { function noServiceFound(response){ return response.status === 'not_found'...
'use strict'; /** * @ngdoc service * @name wavesApp.responseredirector * @description * # responseredirector * Service in the wavesApp. */ angular.module('wavesApp') .service('responseRedirector', ['$state', function ($state) { function noServiceFound(response){ return response.attributes.status == '...
FIX on response data reference.
FIX on response data reference.
JavaScript
mit
InflectProject/waves,InflectProject/waves
851b16ece1303a9eae5090014eae85dd2e572ef7
skeleton/boot.js
skeleton/boot.js
var Protos = require('../'); Protos.bootstrap(__dirname, { // Server configuration server: { host: 'localhost', port: 8080, multiProcess: false, stayUp: false }, // Application environments environments: { default: 'development', development: function(app) { app.debugLog ...
var Protos = require('../'); Protos.bootstrap(__dirname, { // Server configuration server: { host: 'localhost', port: 8080, multiProcess: false, stayUp: false }, // Application environments environments: { default: 'development', development: function(app) { app.debugLog ...
Load lib extensions after loading middleware
Load lib extensions after loading middleware
JavaScript
mit
derdesign/protos
b0141005e616e171cf60731c9e751604e6370d33
examples/js/password.js
examples/js/password.js
var doc = new jsPDF({ encryption: { userPassword: "user", ownerPassword: "owner", userPermissions: ["print", "modify", "copy", "annot-forms"] // try changing the user permissions granted } }); doc.setFontSize(40); doc.text("Octonyan loves jsPDF", 35, 25); doc.addImage...
var doc = new jsPDF({ // jsPDF supports encryption of PDF version 1.3. // Version 1.3 just uses RC4 40-bit which is kown to be weak and is NOT state of the art. // Keep in mind that it is just a minimal protection. encryption: { userPassword: "user", ownerPassword: "owner", ...
Add security notice for encryption
Add security notice for encryption
JavaScript
mit
MrRio/jsPDF,MrRio/jsPDF,MrRio/jsPDF
686c874a4b2b1b9e1ff246fe8ab11f0e4a8d2c3e
app/assets/javascripts/audio_controls.js
app/assets/javascripts/audio_controls.js
window.GLOBAL_ACTIONS = { 'play': function () { wavesurfer.playPause(); }, 'back': function () { wavesurfer.skipBackward(); }, 'forth': function () { wavesurfer.skipForward(); }, 'toggle-mute': function () { wavesurfer.toggleMute(); } }; // Bind actions to buttons and keypresses doc...
window.GLOBAL_ACTIONS = { 'play': function () { wavesurfer.playPause(); }, 'back': function () { wavesurfer.skipBackward(); }, 'forth': function () { wavesurfer.skipForward(); }, 'toggle-mute': function () { wavesurfer.toggleMute(); } }; // Bind actions to buttons and keypresses doc...
Disable keyboard shortcuts when editing input field
Disable keyboard shortcuts when editing input field
JavaScript
mit
shirshendu/kine_type,shirshendu/kine_type,shirshendu/kine_type,shirshendu/kine_type
a02a43f4f79ada52892eeefbc712da708eaa4ad5
app/scripts/services/payments-service.js
app/scripts/services/payments-service.js
'use strict'; (function() { angular.module('ncsaas') .service('paymentsService', ['baseServiceClass', 'ENV', '$http', paymentsService]); function paymentsService(baseServiceClass, ENV, $http) { /*jshint validthis: true */ var ServiceClass = baseServiceClass.extend({ init:function() { thi...
'use strict'; (function() { angular.module('ncsaas') .service('paymentsService', ['baseServiceClass', 'ENV', '$http', paymentsService]); function paymentsService(baseServiceClass, ENV, $http) { /*jshint validthis: true */ var ServiceClass = baseServiceClass.extend({ init:function() { thi...
Implement service method for payment cancellation (SAAS-1101)
Implement service method for payment cancellation (SAAS-1101)
JavaScript
mit
opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport
254f104c213282cef4bc285473cdf39e73ed80fb
db/dbconnect.js
db/dbconnect.js
var mysql = require('mysql'); // Create a database connection and export it from this file. // You will need to connect with the user "root", no password, // and to the database "chat". var connection = mysql.createConnection({ host: '127.0.0.1', user: 'root', password: '', database: 'foodQuest' }); connecti...
var mysql = require('mysql'); // Create a database connection and export it from this file. // You will need to connect with the user "root", no password, // and to the database "chat". var connection = mysql.createConnection({ host: '127.0.0.1', user: 'root', password: '', database: 'foodQuest', multipleSt...
Set multipleStatements to true in mysql.createConnection object
Set multipleStatements to true in mysql.createConnection object
JavaScript
mit
Sibilant-Siblings/sibilant-siblings,Sibilant-Siblings/sibilant-siblings
9f3653e9b0982aaada55f17f85c9a611036edcb8
src/app.js
src/app.js
(function (window) { 'use strict'; var hearingTest = HearingTest; var hearing = hearingTest.init(); var app = new Vue({ el: '#hearing-test-app', data: { isPlaySound: false, frequency: 1000 }, methods: { changeFrequency: function() { hearing.sound.frequency.value = this.frequency; } } })...
(function (window) { 'use strict'; var hearingTest = HearingTest; var hearing = hearingTest.init(); var app = new Vue({ el: '#hearing-test-app', data: { isPlaySound: false, frequency: 1000 }, methods: { changeFrequency: function() { hearing.sound.frequency.value = this.frequency; }, pl...
Implement play and stop sound
Implement play and stop sound
JavaScript
mit
kubosho/hearing-test-app
5df999836d0fdc20ec197f7ff808b6d85828a694
src/app.js
src/app.js
import React, { Component } from 'react'; import { Provider } from 'react-redux'; import ReactDOM from 'react-dom'; import configureStore from 'redux/configureStore'; import { newGame } from 'redux/modules/game'; import { DevTools, Board } from './containers'; import './styles/app.scss'; if (module.hot) { module.ho...
import React, { Component } from 'react'; import { Provider } from 'react-redux'; import ReactDOM from 'react-dom'; import configureStore from 'redux/configureStore'; import { newGame } from 'redux/modules/game'; import { DevTools, Board } from './containers'; import './styles/app.scss'; import sharedStyles from 'comp...
Remove hard coding 100% width height
Remove hard coding 100% width height
JavaScript
mit
inooid/react-redux-card-game,inooid/react-redux-card-game
4decd4229420b8a2979ef80f20e5593b070f4a55
src/bot.js
src/bot.js
const Eris = require("eris"); const config = require("./cfg"); const intents = [ // PRIVILEGED INTENTS "guildMembers", // For server greetings // REGULAR INTENTS "directMessages", // For core functionality "guildMessages", // For bot commands and mentions "guilds", // For core functionality "guildVoiceS...
const Eris = require("eris"); const config = require("./cfg"); const intents = [ // PRIVILEGED INTENTS "guildMembers", // For server greetings // REGULAR INTENTS "directMessages", // For core functionality "guildMessages", // For bot commands and mentions "guilds", // For core functionality "guildVoiceS...
Handle ECONNRESET errors gracefully as well
Handle ECONNRESET errors gracefully as well
JavaScript
mit
Dragory/modmailbot
6e97d5633c676ce1865fa32b2845aa042f151dd5
addon/utils/scales/d3-linear-scale.js
addon/utils/scales/d3-linear-scale.js
import Ember from 'ember'; import Scale from './d3-scale'; const { on, observer } = Ember; export default Scale.extend({ init() { this.set('scale', d3.scale.linear()); }, rangeRoundChanged: on('init', observer('rangeRound.[]', function() { this.updateScale('rangeRound'); })), interpolateChanged: o...
import Ember from 'ember'; import Scale from './d3-scale'; const { on, observer } = Ember; export default Scale.extend({ init() { this.set('scale', d3.scale.linear()); }, rangeRoundChanged: on('init', observer('rangeRound.[]', function() { this.updateScale('rangeRound'); })), interpolateChanged: o...
Add support for calling default nice()
Add support for calling default nice()
JavaScript
mit
BryanHunt/ember-d3-components,BryanHunt/ember-d3-components,BryanHunt/ember-d3,BryanHunt/ember-d3
1fa196037e62c10a74f0d5fb1683270b201bd8a2
test/testutils.js
test/testutils.js
exports.get_config = get_config; function get_config() { var config = { }; try { config = require('./config'); } catch(exception) { config = require('./config-example'); } return load_config(config); } exports.load_config = load_config; function load_config(config) { return load_module('config')...
var ripple = require('../src/js/ripple'); exports.get_config = get_config; function get_config() { var config = { }; try { config = require('./config'); } catch(exception) { config = require('./config-example'); } return load_config(config); }; exports.load_config = load_config; function load_conf...
Fix direct requirements for tests
Fix direct requirements for tests
JavaScript
isc
ripple/ripple-lib,wilsonianb/ripple-lib,ripple/ripple-lib,darkdarkdragon/ripple-lib,ripple/ripple-lib,wilsonianb/ripple-lib,darkdarkdragon/ripple-lib,ripple/ripple-lib,wilsonianb/ripple-lib,darkdarkdragon/ripple-lib
7aa447ff9aa381bc4bee5fff1f02e9625f0bbfe0
packages/minifier-js/package.js
packages/minifier-js/package.js
Package.describe({ summary: "JavaScript minifier", version: "2.6.1" }); Npm.depends({ terser: "4.8.0" }); Package.onUse(function (api) { api.use('ecmascript'); api.use('babel-compiler'); api.mainModule('minifier.js', 'server'); api.export('meteorJsMinify'); }); Package.onTest(function (api) { api.use...
Package.describe({ summary: "JavaScript minifier", version: "2.6.1" }); Npm.depends({ terser: "4.8.0" }); Package.onUse(function (api) { api.use('ecmascript'); api.mainModule('minifier.js', 'server'); api.export('meteorJsMinify'); }); Package.onTest(function (api) { api.use('ecmascript'); api.use('ti...
Remove babel-compiler dependency in minifier-js
Remove babel-compiler dependency in minifier-js
JavaScript
mit
Hansoft/meteor,Hansoft/meteor,Hansoft/meteor,Hansoft/meteor,Hansoft/meteor,Hansoft/meteor,Hansoft/meteor
32df49502da1865eaf84ee97447137289e939a0a
src/bom/Label.js
src/bom/Label.js
/* ================================================================================================== Lowland - JavaScript low level functions Copyright (C) 2012 Sebatian Fastner ================================================================================================== */ core.Module("lowland.bom.Label", {...
/* ================================================================================================== Lowland - JavaScript low level functions Copyright (C) 2012 Sebatian Fastner ================================================================================================== */ (function(global) { var measu...
Add calculation of text label
Add calculation of text label
JavaScript
mit
fastner/lowland,fastner/lowland
e4190e9584d7635fb3b4627e9f3c300b5a5b852f
client/src/deviceTypes.js
client/src/deviceTypes.js
/** * These are all the device types defined in Johnny-Five. These * extend our Input objects (not elements) * * min - Minimum value for the device type * max - Maximum value for the device type * _methods - A list of deviceMethods names that apply to the device type */ var deviceTypes = { L...
/** * These are all the device types defined in Johnny-Five. These * extend our Input objects (not elements) * * min - Minimum value for the device type * max - Maximum value for the device type * _methods - A list of deviceMethods names that apply to the device type */ var deviceTypes = { L...
Set default tolerans and lastupdate values
Set default tolerans and lastupdate values
JavaScript
mit
dtex/NodebotUI,davatron5000/NodebotUI
65fe7f69a73270146fca9d21691a5393bb779adc
admin/server/api/list/legacyCreate.js
admin/server/api/list/legacyCreate.js
var keystone = require('../../../../'); module.exports = function (req, res) { if (!keystone.security.csrf.validate(req)) { return res.apiError(403, 'invalid csrf'); } var item = new req.list.model(); item.getUpdateHandler(req).process(req.body, { flashErrors: false, logErrors: true }, function (err) { if (err...
var keystone = require('../../../../'); module.exports = function (req, res) { if (!keystone.security.csrf.validate(req)) { return res.apiError(403, 'invalid csrf'); } var item = new req.list.model(); item.getUpdateHandler(req).process(req.body, { flashErrors: false, logErrors: true }, function (err) { if (err...
Fix validation errors not showing in the admin UI
Fix validation errors not showing in the admin UI
JavaScript
mit
creynders/keystone,creynders/keystone
6192011404e89449132349044a3e872f90b0f075
src/client/app/states/projects/list/list.state.js
src/client/app/states/projects/list/list.state.js
(function() { 'use strict'; angular.module('app.states') .run(appRun); /** @ngInject */ function appRun(routerHelper) { routerHelper.configureStates(getStates()); } function getStates() { return { 'projects.list': { url: '', // No url, this state is the index of projects ...
(function() { 'use strict'; angular.module('app.states') .run(appRun); /** @ngInject */ function appRun(routerHelper) { routerHelper.configureStates(getStates()); } function getStates() { return { 'projects.list': { url: '', // No url, this state is the index of projects ...
Update strings to use single quotes for jshint
Update strings to use single quotes for jshint
JavaScript
apache-2.0
mafernando/api,boozallen/projectjellyfish,sonejah21/api,AllenBW/api,sreekantch/JellyFish,sreekantch/JellyFish,AllenBW/api,sonejah21/api,boozallen/projectjellyfish,sonejah21/api,AllenBW/api,mafernando/api,stackus/api,projectjellyfish/api,projectjellyfish/api,projectjellyfish/api,stackus/api,stackus/api,boozallen/project...
27cbc851dc68c9326b4958cc3174265712679460
test/util.js
test/util.js
/* global describe it */ 'use strict' const chai = require('chai') const chaiAsPromised = require('chai-as-promised') const requireInject = require('require-inject') const sinon = require('sinon') const sinonChai = require('sinon-chai') require('sinon-as-promised') chai.use(chaiAsPromised) chai.use(sinonChai) const ...
/* global describe it beforeEach */ 'use strict' const chai = require('chai') const chaiAsPromised = require('chai-as-promised') const requireInject = require('require-inject') const sinon = require('sinon') const sinonChai = require('sinon-chai') require('sinon-as-promised') chai.use(chaiAsPromised) chai.use(sinonCh...
Refactor to reuse test case initialization code
Refactor to reuse test case initialization code
JavaScript
isc
jcollado/multitest
a6ec8b746abad9be76218e8e5dd9948aa358a1b9
GruntTasks/Options/concat.libcss.js
GruntTasks/Options/concat.libcss.js
module.exports = { src: [ 'vendor/bower_components/bootstrap/dist/css/bootstrap.css', 'vendor/bower_components/open-sans/css/open-sans.css', 'vendor/bower_components/jquery-minicolors/jquery.minicolors.css', 'vendor/bower_components/font-awesome/css/font-awesome.css', 'vendor/bowe...
module.exports = { src: [ 'vendor/bower_components/open-sans/css/open-sans.css', 'vendor/bower_components/jquery-minicolors/jquery.minicolors.css', 'web/bundles/openorchestrabackoffice/smartadmin/css/bootstrap.css', 'vendor/bower_components/font-awesome/css/font-awesome.css', 'ven...
Use smartadmin bootraps.css version instead of bower one
Use smartadmin bootraps.css version instead of bower one
JavaScript
apache-2.0
open-orchestra/open-orchestra-cms-bundle,open-orchestra/open-orchestra-cms-bundle,open-orchestra/open-orchestra-cms-bundle
82b91b594c41774f9ea03e2538b0615efdabcfaa
lib/graph.js
lib/graph.js
import _ from 'lodash'; import { Graph, alg } from 'graphlib'; _.memoize.Cache = WeakMap; let dijkstra = _.memoize(alg.dijkstra); export function setupGraph(pairs) { let graph = new Graph({ directed: true }); _.each(pairs, ({ from, to, method }) => graph.setEdge(from, to, method)); return graph; } export function...
import _ from 'lodash'; import { Graph, alg } from 'graphlib'; _.memoize.Cache = WeakMap; let dijkstra = _.memoize(alg.dijkstra); export function setupGraph(pairs) { let graph = new Graph({ directed: true }); _.each(pairs, ({ from, to, method }) => graph.setEdge(from, to, method)); return graph; } export function...
Add a function to validate relationship objects
Add a function to validate relationship objects
JavaScript
mit
siddharthkchatterjee/graph-resolver
14df8efec1598df37a7d6971cee3a4d176f48ea5
app/components/CellTextField/index.js
app/components/CellTextField/index.js
/** * * CellTextField * */ import React from 'react'; import TextField from 'material-ui/TextField'; import styles from './styles.css'; class CellTextField extends React.Component { // eslint-disable-line react/prefer-stateless-function static defaultProps = { label: 'test', width: '50%', }; static p...
/** * * CellTextField * */ import React from 'react'; import TextField from 'material-ui/TextField'; import styles from './styles.css'; class CellTextField extends React.Component { // eslint-disable-line react/prefer-stateless-function static defaultProps = { label: 'test', width: '50%', }; static p...
Validate if input is number
Validate if input is number
JavaScript
mit
codermango/BetCalculator,codermango/BetCalculator
706abfd07626606a8c901f4643ffcfd0fd1154c5
src/modules/confirm.js
src/modules/confirm.js
(function () { "use strict"; var moduleObj = moduler('confirm', { defaults: { message: 'Are you sure you want to perform this action?', event: 'click' }, init: function (module) { module.$element.on(module.settings.event, module, moduleObj.li...
(function () { "use strict"; var moduleObj = moduler('confirm', { defaults: { message: 'Are you sure you want to perform this action?', event: 'click' }, init: function (module) { module.$element.on(module.settings.event, module, moduleObj.li...
Fix for destroy method of Confirm
Fix for destroy method of Confirm
JavaScript
mit
simplyio/moduler.js,simplyio/moduler.js
89970c235f4bae57087906c4e5346f188928ce7d
generators/app/index.js
generators/app/index.js
var generators = require('yeoman-generator'); module.exports = generators.Base.extend({ method1: function () { console.log('method 1 just ran'); }, method2: function () { console.log('method 2 just ran'); } });
var generators = require('yeoman-generator'); var inquirer = require("inquirer"); module.exports = generators.Base.extend({ bowerPackages: function() { inquirer.prompt([{ type: "checkbox", message: "Select bower packages to install", name: "Bower packages", choices: [ new inquirer.Separator("Css Fr...
Add prompt to ask for css framework install
Add prompt to ask for css framework install
JavaScript
bsd-3-clause
initios/initios-yeoman,initios/initios-yeoman
fd792ad7cdb9881e30fd16595df87b45ebccc78a
src/components/stats/ExternalModuleLink.js
src/components/stats/ExternalModuleLink.js
/* * @flow */ import type {Module} from '../../types/Stats'; import React from 'react'; import {getClassName} from '../Bootstrap/GlyphiconNames'; import {Link} from '../Bootstrap/Button'; type Props = { prefix: ?string, module: Module, }; export default function ExternalModuleLink(props: Props) { // https:/...
/* * @flow */ import type {Module} from '../../types/Stats'; import React from 'react'; import {getClassName} from '../Bootstrap/GlyphiconNames'; import {Link} from '../Bootstrap/Button'; type Props = { prefix: ?string, module: Module, }; export default function ExternalModuleLink(props: Props) { if (props....
Add aria label to external link component
Add aria label to external link component
JavaScript
apache-2.0
pinterest/bonsai,pinterest/bonsai,pinterest/bonsai
b4466bf9068b0d1515a646df091e447f3fa68c96
src/App.js
src/App.js
//@flow import { bindActionCreators } from "redux"; import { connect } from "react-redux"; import * as actionCreators from "./data/actions/actionCreators"; import insertGlobalStyles from "./global/style/globalStyles"; import { Main } from "./scenes/Main"; function mapStateToProps(): {} { return {}; } export funct...
//@flow import { bindActionCreators } from "redux"; import { connect } from "react-redux"; import * as actionCreators from "./data/actions/actionCreators"; import { Main } from "./scenes/Main"; function mapStateToProps(state: { cards: {}[] }): {} { return { cards: state.cards }; } export function mapDispatchToPro...
Remove global styles and add some dummy state (cards)
Remove global styles and add some dummy state (cards)
JavaScript
mit
slightly-askew/portfolio-2017,slightly-askew/portfolio-2017
1fe48dd8228d78b124852389dbef4b564a124d37
src/App.js
src/App.js
import React from 'react'; import bukovelAPI from './dataAccess/bukovelApi'; import CardNumberInput from './CardNumberInput'; const TEST_CARD_NUMBER = '01-2167-30-92545'; export default class App extends React.Component { constructor() { super(); this.state = { html: '', cardNumber: TEST_CARD_N...
import React from 'react'; import bukovelAPI from './dataAccess/bukovelApi'; import CardNumberInput from './CardNumberInput'; const TEST_CARD_NUMBER = '01-2167-30-92545'; export default class App extends React.Component { constructor() { super(); this.state = { html: '', cardNumber: '' }; ...
Remove auto insertion of test card number.
Remove auto insertion of test card number.
JavaScript
apache-2.0
blobor/skipass.site,blobor/buka,blobor/skipass.site,blobor/buka
81daf4cbd5504a15536d56058e2758505222f910
src/App.js
src/App.js
import React from 'react' import styled from 'styled-components' import { Intro, CheckboxTree } from './components' import data from './data/data.json' import github from './assets/github.svg' const Main = styled.main` display: flex; flex-direction: column; width: 80%; max-width: 64rem; height: 100vh; mar...
import React from 'react' import styled from 'styled-components' import { Intro, CheckboxTree } from './components' import data from './data/data.json' import github from './assets/github.svg' const Main = styled.main` display: flex; flex-direction: column; width: 80%; max-width: 64rem; height: 100vh; mar...
Update GitHub icon alt text
Update GitHub icon alt text
JavaScript
mit
joelgeorgev/react-checkbox-tree,joelgeorgev/react-checkbox-tree
55634a3654b1b25d636caaa548f82ce33f89acb0
src/app.js
src/app.js
/* global fetch */ import React from 'react'; import { render } from 'react-dom'; import { Router, Route, hashHistory } from 'react-router' import Home from './home'; import CaseHandler from './caseHandler'; import Adjudicator from './adjudicator'; class App extends React.Component { render() { return ( ...
/* global fetch */ import React from 'react'; import { render } from 'react-dom'; import { Router, Route, hashHistory } from 'react-router' import Home from './home'; import CaseHandler from './caseHandler/caseHandler'; import Adjudicator from './adjudicator/adjudicator'; class App extends React.Component { rend...
Fix up file references after folder restructure
Fix up file references after folder restructure
JavaScript
mit
dgretho/adjudication,dgretho/adjudication
b3522adddaa4415c8afcd3f1f11fefd2b488d358
lib/ferrite/utility.js
lib/ferrite/utility.js
/** * copyObject(object, [recurse]) -- for all JS Objects * * Copies all properties and the prototype to a new object * Optionally set recurse to array containing the properties, on wich this function should be called recursively */ function copyObject(object, recurse) { var new_obj = Object.create(Object.getPro...
/** * copyObject(object, [recurse]) -- for all JS Objects * * Copies all properties and the prototype to a new object * Optionally set recurse to array containing the properties, on wich this function should be called recursively */ function copyObject(object, recurse) { var new_obj = Object.create(Object.getPro...
Fix calcLineNo for undefined offset
Fix calcLineNo for undefined offset - now returns -1
JavaScript
mit
marcelklehr/magnet
8d0750fb6ca50a5e07a54c17813af6d5a724b8c5
lib/jekyll-template.js
lib/jekyll-template.js
var path = require('path'); module.exports = function jekyllTemplate(answers) { return [ '---', 'layout: post', 'date: ' + answers.date, 'duration: ' + answers.duration, 'categories: ' + answers.categories, 'img: ' + path.normalize('./assets/image/speakers/' + answers.imagePath ), 'link: '...
var path = require('path'); module.exports = function jekyllTemplate(answers) { return [ '---', 'layout: post', 'title' + answers.title, 'date: ' + answers.date, 'duration: ' + answers.duration, 'tags: ' + answers.tags, 'img: ' + '/assets/image/speakers/' + answers.imagePath, 'link: ' ...
Add title and fix tags and image path in Jekyll template
Add title and fix tags and image path in Jekyll template
JavaScript
mit
free-time/freetime-cli,fdaciuk/freetime-cli
1185b3e82cd7c3f6483a604d9348f35f16f294f0
config/index.js
config/index.js
// see http://vuejs-templates.github.io/webpack for documentation. var path = require('path') module.exports = { build: { env: require('./prod.env'), index: path.resolve(__dirname, '../dist/index.html'), assetsRoot: path.resolve(__dirname, '../dist'), assetsSubDirectory: 'static', assetsPublicPat...
// see http://vuejs-templates.github.io/webpack for documentation. var path = require('path') module.exports = { build: { env: require('./prod.env'), index: path.resolve(__dirname, '../dist/index.html'), assetsRoot: path.resolve(__dirname, '../dist'), assetsSubDirectory: 'static', assetsPublicPat...
Revert "reopen port to 80"
Revert "reopen port to 80" This reverts commit 3cfed3456cbed7f6f4a71c114b2645a278b27979.
JavaScript
mit
Cubelrti/kontent,Cubelrti/kontent
ad65439c6f7c21aee73c797f2be02ad861a31e8d
src/utils/constants.js
src/utils/constants.js
const PORT = '6882' const ROOT = location.href.indexOf('localhost') > 0 ? 'http://localhost:' : 'http://192.168.5.102:' export const ROOT_URL = ROOT + PORT + '/' export const ROOT_URL_API = ROOT_URL + 'api' export const YOUTUBE_CONSTS = { YOUTUBE: 'Youtube', URL: 'http://www.youtube.com/embed/', API: 'enabl...
const PORT = '6882' const ROOT = location.href.indexOf('reuvenliran') > 0 ? 'http://reuvenliran.hopto.org:' : location.href export const ROOT_URL = ROOT.indexOf('8080') ? ROOT.replace('8080', PORT) : ROOT + PORT + '/' export const ROOT_URL_API = ROOT_URL + 'api' export const YOUTUBE_CONSTS = { YOUTUBE: 'Youtube...
Fix bug with url refernce to server
Fix bug with url refernce to server
JavaScript
mit
ReuvenLiran/react-musicplayer,ReuvenLiran/react-musicplayer
5be884f967a79f852e2b7d2c5c814ca90df369cd
src/request/stores/request-detail-store.js
src/request/stores/request-detail-store.js
var glimpse = require('glimpse'), requestRepository = require('../repository/request-repository.js'), // TODO: Not sure I need to store the requests _requests = {}, _requestSelectedId = null; function requestsChanged(targetRequests) { glimpse.emit('shell.request.summary.changed', targetRequests); }...
var glimpse = require('glimpse'), requestRepository = require('../repository/request-repository.js'), // TODO: Not sure I need to store the requests _requests = {}, _requestSelectedId = null; function requestChanged(targetRequests) { glimpse.emit('shell.request.detail.changed', targetRequests); } ...
Switch over detail store to call central requestChange event
Switch over detail store to call central requestChange event
JavaScript
unknown
avanderhoorn/Glimpse.Client.Prototype,avanderhoorn/Glimpse.Client.Prototype,Glimpse/Glimpse.Client.Prototype,Glimpse/Glimpse.Client.Prototype,Glimpse/Glimpse.Client.Prototype
5f104201a91614820aa8acdc6fdfe6d9dd027695
components/shared/score.js
components/shared/score.js
import React, { Component } from "react"; import { formatTime } from "../../common/util/date"; export default class extends Component { render() { const { match } = this.props; if (match.fixture) { return match.time && <span>{formatTime(match.date, match.time)}</span>; } if (match.live || mat...
import React, { Component } from "react"; import { formatTime } from "../../common/util/date"; export default class extends Component { render() { const { match } = this.props; if (match.live || match.ended) { return ( <span className={match.live && "live"}> {match.ft && (!match.et |...
Fix match time not showing for fixtures
Fix match time not showing for fixtures
JavaScript
isc
sobstel/golazon,sobstel/golazon,sobstel/golazon
d77e2510a2bcef6d0713d93fc962604c6340d461
src/components/avatar/AvatarTeam.js
src/components/avatar/AvatarTeam.js
import React, { PureComponent } from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; import theme from './theme.css'; import Box from '../box'; import Icon from '../icon'; import { IconTeamMediumOutline, IconTeamSmallOutline } from '@teamleader/ui-icons'; class AvatarTeam extends PureComponen...
import React, { PureComponent } from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; import theme from './theme.css'; import Box from '../box'; import Icon from '../icon'; import { IconTeamMediumOutline, IconTeamSmallOutline } from '@teamleader/ui-icons'; class AvatarTeam extends PureComponen...
Use correct background & icon colors according to design
Use correct background & icon colors according to design
JavaScript
mit
teamleadercrm/teamleader-ui
a276e5e6324b54a75c2b32695766258920726607
src/subdomain.js
src/subdomain.js
import { routers } from './router'; const detectsubdomain = async function detectsubdomain (ctx, next) { let [subdomain = 'www'] = ctx.request.subdomains; ctx.subdomain = subdomain; if (ctx.request.origin.indexOf(configuration.server.host) > -1) { ctx.response.set('Access-Control-Allow-Origin', ctx.request.origin...
import { routers } from './router'; const detectsubdomain = async function detectsubdomain (ctx, next) { let [subdomain = 'www'] = ctx.request.subdomains; ctx.subdomain = subdomain; let origin = ctx.headers.origin ? ctx.headers.origin : ctx.request.origin; if (origin.indexOf(configuration.server.host) > -1) { ct...
Access controll allow headers will be correctly detected
fix: Access controll allow headers will be correctly detected
JavaScript
agpl-3.0
gerard2p/koaton
55e40c0504b02708f544e1d464715123570b80cd
hosting/src/components/shared/Footer.js
hosting/src/components/shared/Footer.js
import React, { Component } from 'react' import styled from 'styled-components' const FooterWrapper = styled.div` display: flex; justify-content: center; align-items: center; height: 10vh; font-size: 0.85em; background: ${props => props.theme.colors.background}; color: ${props => props.theme.colors.barTe...
import React, { Component } from 'react' import styled from 'styled-components' const FooterWrapper = styled.div` display: flex; justify-content: center; align-items: center; height: 10vh; font-size: 0.85em; background: ${props => props.theme.colors.background}; color: ${props => props.theme.colors.barTe...
Fix hunters name (my fault)
Fix hunters name (my fault)
JavaScript
mit
csrf-demo/csrf-demo,csrf-demo/csrf-demo
36150a42a04a3ce5cd6de20018d36f55a64f4311
static/js/app.js
static/js/app.js
$(function() { $.get('/tagovi', {csrfmiddlewaretoken: $("input[name='csrfmiddlewaretoken']").val()}, function(data) { var options = [] for (var i = 0; i < data.length; i++) { options.push(data[i].fields); } $('#id_tags').selectize({ persist: false, ...
$(function() { $.get('/tagovi', function(data) { var options = [] for (var i = 0; i < data.length; i++) { options.push(data[i].fields); } $('#id_tags').selectize({ persist: false, maxItems: 5, selectOnTab: true, valueField: ...
Fix using tokens in js.
Fix using tokens in js.
JavaScript
mit
MislavMandaric/abs-int,MislavMandaric/abs-int
b673fdbdac7e5523d16904920315d4ab6c79eaf8
tennu_plugins/blt.js
tennu_plugins/blt.js
var BLTPlugin = { init: function (client, imports) { return { handlers: { '!givemeblt': function (command) { client.act(command.channel, 'gives a juicy BLT to ' + command.nickname); } }, help: { 'givemeb...
var BLTPlugin = { init: function (client, imports) { return { handlers: { '!givemeblt': function (command) { client.act(command.channel, 'gives a juicy BLT to ' + command.nickname); } }, help: { 'givemeb...
Use {{!}} instead of ! for help.
Enhancement: Use {{!}} instead of ! for help.
JavaScript
isc
Tennu/BLTBot
600df5d2f48c190a948cbee6c1d668db99498096
src/src.js
src/src.js
console.log("Running!"); var Library = { name: "Timmy", //Library has been called Timmy greet: function(){ alert("Hello from the " + Library.name + " library."); } /* This library is what is known as an object literal. To invoke the greet function, we would write: Library.greet(); *...
//O. M. J. This actually works. YAY!!! console.log("Running!"); var Library = { name: "John", //Library has been called Timmy greet: function(){ alert("Hello from the " + Library.name + " library."); console.log("User executed Library.greet()!" + "Hi " + name); } stop: function(text){ ...
Clean and ADD ++ (stop)
Clean and ADD ++ (stop) stop == alert
JavaScript
mit
alaskamani15/beginner.js
b2ed3cdc9c5c12f4d93efea910e0f4f27a02eb0d
src/bar.js
src/bar.js
define(function() { var hr = codebox.require("hr/hr"); var StatusBar = hr.View.extend({ className: "component-statusbar" }); return StatusBar; });
define(function() { var hr = codebox.require("hr/hr"); var _ = codebox.require("hr/utils"); var StatusBar = hr.View.extend({ className: "component-statusbar", // Show loading indicator for a promise // Return the same promise loading: function(p, options) { va...
Add simple api for loading message
Add simple api for loading message
JavaScript
apache-2.0
CodeboxIDE/package-statusbar,etopian/codebox-package-statusbar
5127fe15793fd2a35af77f7f57a71f905ddaf2a3
test/croonga.test.js
test/croonga.test.js
var http = require('http'); var should = require('should'); var spawn = require('child_process').spawn; function run(options, callback) { var command, commandPath, output; commandPath = __dirname + '/../bin/croonga'; command = spawn(commandPath, options); output = { stdout: '', stderr: '' }; comman...
var http = require('http'); var should = require('should'); var spawn = require('child_process').spawn; function run(options, callback) { var command, commandPath, output; commandPath = __dirname + '/../bin/croonga'; command = spawn(commandPath, options); output = { stdout: '', stderr: '' }; comman...
Check status code returned from croonga command
Check status code returned from croonga command
JavaScript
mit
groonga/gcs,groonga/gcs
5c1fa9ba4e012a25aea47d5f08302bce4a28d473
tests/dummy/app/controllers/application.js
tests/dummy/app/controllers/application.js
import Ember from 'ember'; export default Ember.Controller.extend({ toggleModal: false, actions: { testing() { window.swal("Hello World", "success"); }, toggle() { this.set('toggleModal', true); } } });
import Ember from 'ember'; export default Ember.Controller.extend({ toggleModal: false, actions: { testing() { window.swal({ title: 'Submit email to run ajax request', input: 'email', showCancelButton: true, confirmButtonText: 'Submit', preConfirm: function() { ...
Make a bit more complex dummy
Make a bit more complex dummy
JavaScript
mit
Tonkpils/ember-sweetalert,Tonkpils/ember-sweetalert
fbec1e1a32bdda21779187391d875d58e6bd80df
lib/plugin/in/googleanalytics.js
lib/plugin/in/googleanalytics.js
var gaAnalytics = require("ga-analytics"), moment = require("moment"); var googleAnalytics = {}; googleAnalytics.load = function(args, next) { var outputs = []; // Setting before a fixed period of time if (args.timeago) { args['startDate'] = args['endDate'] = moment().add(-1 * args.timeago.ago, args.ti...
var gaAnalytics = require("ga-analytics"), moment = require("moment"), format = require('string-format'); var googleAnalytics = {}; googleAnalytics.load = function(args, next) { var outputs = []; // Setting before a fixed period of time if (args.timeago) { args['startDate'] = args['endDate'] = mome...
Update google analytics input plugin. 複数のカラムの取得対応 (resultsプロパティ追加, filterに渡すフォーマット制御プロパティ追加)
Update google analytics input plugin. 複数のカラムの取得対応 (resultsプロパティ追加, filterに渡すフォーマット制御プロパティ追加)
JavaScript
mit
hideack/evac
b0d31962fc495128093e3a827ec725ecea567dfa
statics.js
statics.js
var express = require('express'); module.exports.init = function(app) { app.use('/js', express.static(__dirname + '/dist/js', {maxAge: 86400000 * 7})); app.use('/css', express.static(__dirname + '/dist/css', {maxAge: 86400000 * 7})); app.use('/img', express.static(__dirname + '/dist/img', {maxAge: 86400000 * 7}));...
var express = require('express'); var oneDay = 86400000; // milliseconds: 60 * 60 * 24 * 1000 var oneWeek = oneDay * 7; module.exports.init = function(app) { app.use('/css', express.static(__dirname + '/dist/css', { maxAge: oneWeek })); app.use('/font', express.static(__dirname + '/dist/font', { maxAge: oneWeek }...
Use variables for the expires date.
Use variables for the expires date.
JavaScript
mit
caktux/david-www,ecomfe/david-www,ExC0d3/david-www,caktux/david-www,wzrdtales/david-www,80xer/david-www,JoseRoman/david-www,JoseRoman/david-www,alanshaw/david-www,wzrdtales/david-www,ecomfe/david-www,80xer/david-www,ExC0d3/david-www
8568eec430b660caf4f1d59f1f67b2350234260a
webpack.config.js
webpack.config.js
/** * This config takes some basic config from conf/webpack/<dev|prod>.js * and builds the appropriate webpack config from there. * * The primary difference is that dev has webpack hot reloading * whereas dev does not. * * The 'loaders' and 'output' need to exist here, because the path needs * to exist at the r...
/** * This config takes some basic config from conf/webpack/<dev|prod>.js * and builds the appropriate webpack config from there. * * The primary difference is that dev has webpack hot reloading * whereas dev does not. * * The 'loaders' and 'output' need to exist here, because the path needs * to exist at the r...
Add verbose if else for additional logging, etc.
Add verbose if else for additional logging, etc.
JavaScript
mit
jamie-w/es6-bootstrap,jamie-w/es6-bootstrap
05502c29ab3e5305fb944ed8e5ca7450638c365b
blueprints/ember-cli-bootswatch/index.js
blueprints/ember-cli-bootswatch/index.js
module.exports = { description: 'Add bower dependencies for bootstrap and bootswatch to the project' afterInstall: function(options) { return this.addBowerPackagesToProject([ {name: 'bootstrap', target: '^3.3.1'}, {name: 'bootswatch', target: '^3.3.1'} ]); } };
module.exports = { description: 'Add bower dependencies for bootstrap and bootswatch to the project', normalizeEntityName: function() { // allows us to run ember -g ember-cli-bootswatch and not blow up // because ember cli normally expects the format // ember generate <entitiyName> <blueprint> }, ...
Enable running blueprint without entity name
Enable running blueprint without entity name Missed a comma after description and fix issue running blueprint without an entity name. Fixes #6
JavaScript
mit
Panman8201/ember-cli-bootswatch
13ec0b7104aeb85280b1adf8828b926d7cf5daad
blueprints/ember-frontmatter-md/index.js
blueprints/ember-frontmatter-md/index.js
module.exports = { description: 'Creates an initializer to load posts from the meta tag.' // locals: function(options) { // // Return custom template variables here. // return { // foo: options.entity.options.foo // }; // } // afterInstall: function(options) { // // Perform extra work he...
module.exports = { description: 'Creates an initializer to load posts from the meta tag.', // locals: function(options) { // // Return custom template variables here. // return { // foo: options.entity.options.foo // }; // } // afterInstall: function(options) { // // Perform extra work h...
Add workaroudn to let blueprints work correctly
Add workaroudn to let blueprints work correctly
JavaScript
mit
yaymukund/ember-frontmatter-md,yaymukund/ember-frontmatter-md,yaymukund/ember-frontmatter-md
5324f5540f3950fc0acc6ade82f6c1bb49683b13
webpack.config.js
webpack.config.js
/*global module, __dirname, require */ /** * @name webpack * @type {Object} * @property NoEmitOnErrorsPlugin */ /** * @name path * @property resolve */ var webpack = require('webpack'), path = require('path'); module.exports = { entry: { bundle: './src/index' }, output: { filename: 'js/[name].js',...
/*global module, __dirname, require */ /** * @name webpack * @type {Object} * @property NoEmitOnErrorsPlugin */ /** * @name path * @property resolve */ var webpack = require('webpack'), path = require('path'); module.exports = { entry: { bundle: './src/index' }, output: { filename: 'js/[name].js',...
Add alias for core directories, update devtool property
Add alias for core directories, update devtool property
JavaScript
mit
dashukin/react-redux-template,dashukin/react-redux-template
a571ce2b1948bdf1e5c6bcb699a323dae3632b9e
webpack.config.js
webpack.config.js
const path = require('path'); const webpack = require('webpack'); module.exports = { entry: { app: path.resolve(__dirname, 'app/Resources/assets/js/app.js') }, output: { path: path.resolve(__dirname, 'web/builds'), filename: 'bundle.js', publicPath: '/builds/' }, mod...
const path = require('path'); const webpack = require('webpack'); module.exports = { entry: { app: path.resolve(__dirname, 'app/Resources/assets/js/app.js') }, output: { path: path.resolve(__dirname, 'web/builds'), filename: 'bundle.js', publicPath: '/builds/' }, mod...
Fix module not found error on moment
Fix module not found error on moment
JavaScript
mit
alOneh/sf-live-2017-symfony-webpack,alOneh/sf-live-2017-symfony-webpack,alOneh/sf-live-2017-symfony-webpack
4266ec9fc365160e2d8fa828cffbd84f759b1f70
mendel/angular/src/app/core/services/auth.service.js
mendel/angular/src/app/core/services/auth.service.js
(function() { 'use strict'; angular .module('static') .factory('AuthService', function ($http, apiHost, Session) { var authService = {}; authService.login = function login(credentials) { return $http .post(apiHost + '/login/', credentials) .then(function (res) ...
(function() { 'use strict'; angular .module('static') .factory('AuthService', function ($http, $httpParamSerializerJQLike, $state, $localStorage, apiHost, Session, toastr) { var authService = {}; authService.login = function login(credentials) { return $http({ method: '...
Create login/logout/getCurrentUser functions on AuthService
Create login/logout/getCurrentUser functions on AuthService
JavaScript
agpl-3.0
Architizer/mendel,Architizer/mendel,Architizer/mendel,Architizer/mendel
d8245ec2c355b0f3c2189ea26e68bcd690e6de84
generators/app/templates/authentication.js
generators/app/templates/authentication.js
'use strict'; const authentication = require('feathers-authentication'); <% for (var i = 0; i < authentication.length; i++) { %> const <%= S(authentication[i].name).capitalize().s %>Strategy = require('<%= authentication[i].strategy %>').Strategy;<% if (authentication[i].tokenStrategy) { %> const <%= S(authentication[...
'use strict'; const authentication = require('feathers-authentication'); <% for (var i = 0; i < authentication.length; i++) { %> const <%= S(authentication[i].name).capitalize().s %>Strategy = require('<%= authentication[i].strategy %>').Strategy;<% if (authentication[i].tokenStrategy) { %> const <%= S(authentication[...
Fix to support token based auth strategies
Fix to support token based auth strategies
JavaScript
mit
feathersjs/generator-feathers,gradealabs/generator-feathers,feathersjs/generator-feathers,feathersjs/generator-feathers
fa5739409f1007d73202b0b48b5cea0535a7b3cc
generators/app/templates/webpack.config.js
generators/app/templates/webpack.config.js
const config = require('hjs-webpack')({ in: 'src/index.js', out: 'dist', clearBeforeBuild: true, devServer: { stats: { colors: true, }, }, }) module.exports = config
const config = require('hjs-webpack')({ in: 'src/index.js', out: 'dist', clearBeforeBuild: true, devServer: { stats: { colors: true } } }) config.resolve.modulesDirectories = [ 'web_modules', 'node_modules', 'src', 'src/modules/' ] module.exports = config
Add more directories to be resolved from
Add more directories to be resolved from
JavaScript
mit
127labs/generator-duxedo,127labs/generator-duxedo
ee38458c93e43cdeaa4a3a7cb3541dd792755fef
lib/dialects/sqlite/connector-manager.js
lib/dialects/sqlite/connector-manager.js
var Utils = require("../../utils") , sqlite3 = require('sqlite3').verbose() , Query = require("./query") module.exports = (function() { var ConnectorManager = function(sequelize) { this.sequelize = sequelize this.database = new sqlite3.Database(sequelize.options.storage || ':memory:') this.opene...
var Utils = require("../../utils") , sqlite3 = require('sqlite3').verbose() , Query = require("./query") module.exports = (function() { var ConnectorManager = function(sequelize) { this.sequelize = sequelize this.database = db = new sqlite3.Database(sequelize.options.storage || ':memory:', function(...
Improve pragma handling for sqlite3
Improve pragma handling for sqlite3
JavaScript
mit
IrfanBaqui/sequelize
9ea03c29ffc1dac7f04f094433c9e47c2ba1c5ad
topcube.js
topcube.js
var spawn = require('child_process').spawn; var path = require('path'); module.exports = function (options) { options = options || {}; options.url = options.url || 'http://nodejs.org'; options.name = options.name || 'nodejs'; var client; switch (process.platform) { case 'win32': client...
var spawn = require('child_process').spawn; var path = require('path'); module.exports = function (options) { options = options || {}; options.url = options.url || 'http://nodejs.org'; options.name = options.name || 'nodejs'; var client; switch (process.platform) { case 'win32': client...
Allow only name, url keys for win32.
Allow only name, url keys for win32.
JavaScript
mit
creationix/topcube,creationix/topcube,creationix/topcube
6a4a3647799cfe79363c303054a57cb4e9cbb755
web/app.js
web/app.js
'use strict' const express = require('express') const dotenv = require('dotenv') const result = dotenv.config() if (result.error) dotenv.config({ path: '../.env' }) const app = express() const port = process.env.SITE_PORT app.use(express.static('public')) app.get('/', (req, res) => { res.sendFi...
'use strict' const express = require('express') const dotenv = require('dotenv') let result = dotenv.config() if (result.error) { result = dotenv.config({ path: '../.env' }) if (result.error) throw result.error } const app = express() const port = read_env_var("SITE_PORT") app.use(expres...
Add error message for undefined envvars
Site: Add error message for undefined envvars
JavaScript
agpl-3.0
SirRade/shootr,SirRade/shootr,SirRade/shootr,SirRade/shootr,SirRade/shootr
9087e7280b21eee2af68653c3b633349098910de
client/src/history.js
client/src/history.js
import createHistory from 'history/createBrowserHistory' import * as qs from 'querystring' import config from './config' const history = createHistory() const navigate = path => { history.push(config.basePath + path) } const getPathname = loc => { let path = '/' + (loc.pathname + loc.hash) path = path.replace...
import createHistory from 'history/createBrowserHistory' import * as qs from 'querystring' import config from './config' const history = createHistory() const navigate = path => { history.push(config.basePath + path) } const getPathname = loc => { let path = loc.pathname + loc.hash path = path.replace(new Re...
Fix router not resolving route in some cases
Fix router not resolving route in some cases
JavaScript
mit
daGrevis/msks,daGrevis/msks,daGrevis/msks
db7c7ff579eed7683195d4b03754655e9f7246ba
tests/test-helper.js
tests/test-helper.js
/* globals require */ import resolver from './helpers/resolver'; import loadEmberExam from 'ember-exam/test-support/load'; const framework = require.has('ember-qunit') ? 'qunit' : 'mocha'; const oppositeFramework = !require.has('ember-qunit') ? 'qunit' : 'mocha'; Object.keys(require.entries).forEach((entry) => { i...
/* globals require */ import resolver from './helpers/resolver'; import loadEmberExam from 'ember-exam/test-support/load'; const framework = require.has('ember-qunit') ? 'qunit' : 'mocha'; const oppositeFramework = !require.has('ember-qunit') ? 'qunit' : 'mocha'; Object.keys(require.entries).forEach((entry) => { i...
Remove a change in node version to have the change in a seperated pr
Remove a change in node version to have the change in a seperated pr
JavaScript
mit
trentmwillis/ember-exam,trentmwillis/ember-exam,trentmwillis/ember-scatter,trentmwillis/ember-scatter,trentmwillis/ember-exam
e537c60751c717e3963b4a93538b117a29b70a7c
tests/test_client.js
tests/test_client.js
'use strict'; /* TODO: GET client (all/specific/sortBy/pagination/search) POST client (ok/fail) PUT client DELETE client */ exports.get = function(assert, client) { return client.clients.get().then(function(res) { assert(res.data.length === 0, 'Failed to get clients as expected'); })....
'use strict'; /* TODO: GET client (all/specific/sortBy/pagination/search) POST client (ok/fail) PUT client DELETE client */ exports.get = function(assert, client) { return client.clients.get().then(function(res) { assert(res.data.length === 0, 'Failed to get clients as expected'); })....
Add stub for posting valid client
Add stub for posting valid client
JavaScript
mit
bebraw/react-crm-backend,koodilehto/koodilehto-crm-backend
08f0a1e48c86d2878b6ea548f3b9090b0e17bc8f
truffle.js
truffle.js
module.exports = { migrations_directory: "./migrations", networks: { development: { host: "localhost", port: 8545, network_id: "*" }, live: { host: "localhost", port: 8546, network_id: 1, }, Ropsten: ...
module.exports = { migrations_directory: "./migrations", networks: { development: { host: "localhost", port: 8545, network_id: "*" }, live: { host: "localhost", port: 8546, network_id: 1, }, Ropsten: ...
Deploy to Kovan test network.
Deploy to Kovan test network.
JavaScript
mit
TripleSpeeder/StandingOrderDapp,TripleSpeeder/StandingOrderDapp
bdcd0f382efcb77415813955bc0ca4e0ece4f8c6
src/Form/FormText.js
src/Form/FormText.js
import React from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; const propTypes = { children: PropTypes.node.isRequired, className: PropTypes.string, }; const defaultProps = { className: null, }; function FormText({ children, className }) { const classes = cx('form-text', classNam...
import React from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; const propTypes = { children: PropTypes.node.isRequired, variant: PropTypes.oneOf([ 'black', 'muted', 'primary', 'success', 'info', 'warning', 'danger', 'white', ]), className: PropTypes....
Add variant prop to form text component
Add variant prop to form text component
JavaScript
mit
ProAI/react-essentials
1d11599d6d881b7cbd4a96d50aa92566e38384d2
sort/insertion_sort.js
sort/insertion_sort.js
var insert = function(array, rightIndex, value) { for(var index = rightIndex; index >= 0 && array[index] > value; index--){ array[index + 1] = array[index]; } array[index + 1] = value; };
Add insert fxn to insertion sort
Add insert fxn to insertion sort
JavaScript
mit
aftaberski/algorithms,aftaberski/algorithms
db4c7348e66753a969de4888e6c01608c1e49129
utils/convert.js
utils/convert.js
'use strict'; var _ = require('lodash'); var fs = require('fs'); var path = require('path'); var convert = { moduleToFolder: moduleToFolder, pathToModule: pathToModule }; function pathToModule(dir, entered) { var moduleName = _.camelCase(path.basename(dir)); var moduleFilename = moduleName + '.module.js'; v...
'use strict'; var _ = require('lodash'); var fs = require('fs'); var path = require('path'); var convert = { moduleToFolder: moduleToFolder, pathToModule: pathToModule }; function pathToModule(dir, entered) { var moduleName = _.camelCase(path.basename(dir)); var moduleFilename = path.basename(dir) + '.module....
Fix passing dashed module paths to generator
Fix passing dashed module paths to generator
JavaScript
mit
sysgarage/generator-sys-angular,sysgarage/generator-sys-angular
bef736ad7309b7a1e60b8d9935e546aced0c2531
addons/options/src/preview/index.js
addons/options/src/preview/index.js
import addons from '@storybook/addons'; import { EVENT_ID } from '../shared'; // init function will be executed once when the storybook loads for the // first time. This is a good place to add global listeners on channel. export function init() { // NOTE nothing to do here } function regExpStringify(exp) { if (ty...
import addons from '@storybook/addons'; import { EVENT_ID } from '../shared'; // init function will be executed once when the storybook loads for the // first time. This is a good place to add global listeners on channel. export function init() { // NOTE nothing to do here } function regExpStringify(exp) { if (ty...
Check if hierarchySeparator presents in the options object
Check if hierarchySeparator presents in the options object
JavaScript
mit
storybooks/storybook,kadirahq/react-storybook,rhalff/storybook,storybooks/react-storybook,rhalff/storybook,rhalff/storybook,rhalff/storybook,storybooks/storybook,kadirahq/react-storybook,storybooks/storybook,storybooks/storybook,storybooks/react-storybook,storybooks/react-storybook,storybooks/storybook,storybooks/story...
5184b5963cd48452546d6ff1e0df518cd8473cdf
src/base/baseTool.js
src/base/baseTool.js
export default class { constructor (name) { this.name = name; this.mode = 'disabled'; this.element = undefined; // this.data = {}; this._options = {}; this._configuration = {}; } get configuration () { return this._configuration; } set configuration (configuration) { thi...
export default class { constructor (name, strategies, defaultStrategy) { this.name = name; this.mode = 'disabled'; this.element = undefined; // Todo: should this live in baseTool? this.strategies = strategies || {}; this.defaultStrategy = defaultStrategy || Object.keys(this.strategies)[...
Add a consistent way to set and apply strategies for tools
Add a consistent way to set and apply strategies for tools
JavaScript
mit
chafey/cornerstoneTools,cornerstonejs/cornerstoneTools,cornerstonejs/cornerstoneTools,cornerstonejs/cornerstoneTools
1b96576cea9138cb95e332a1d12e3a1e1887be56
app/components/students/students.js
app/components/students/students.js
'use strict'; angular.module('myApp.students', ['ngRoute']) .config(['$routeProvider', function($routeProvider) { $routeProvider.when('/students', { templateUrl: 'components/students/students.html', controller: 'StudentsCtrl' }); }]) .controller('StudentsCtrl', [function() { // $scope.master = {}; ...
'use strict'; angular.module('myApp.students', ['ngRoute']) .config(['$routeProvider', function($routeProvider) { $routeProvider.when('/students', { templateUrl: 'components/students/students.html', controller: 'StudentsCtrl' }); }]) .controller('StudentsCtrl', ['$scope', function($scope) { $scope.m...
Make the buttons do stuff
Make the buttons do stuff
JavaScript
mit
andrewalexander/hackpsu_registration,andrewalexander/hackpsu_registration,andrewalexander/hackpsu_registration,andrewalexander/hackpsu_registration
a9ee91d3920d0fa876bd16f5e51a7bad2f29f818
app/native.js
app/native.js
// @flow import CodePush from 'react-native-code-push'; import { AppRegistry, YellowBox } from 'react-native'; import { SingleHotelStandalonePackage, NewHotelsStandAlonePackage, } from '@kiwicom/react-native-app-hotels'; // TODO: please check if it's still needed YellowBox.ignoreWarnings([ // react-native-share...
// @flow import CodePush from 'react-native-code-push'; import { AppRegistry, YellowBox } from 'react-native'; import { SingleHotelStandalonePackage, NewHotelsStandAlonePackage, } from '@kiwicom/react-native-app-hotels'; // TODO: please check if it's still needed YellowBox.ignoreWarnings([ // react-native-share...
Set code push install mode to immediate
Set code push install mode to immediate
JavaScript
mit
mrtnzlml/native,mrtnzlml/native
d27ae97ff6e764ac9e40c4b03b91eab8a30d32cc
web/.eslintrc.js
web/.eslintrc.js
// https://eslint.org/docs/user-guide/configuring module.exports = { root: true, parserOptions: { parser: "babel-eslint", sourceType: "module" }, env: { browser: true }, // required to lint *.vue files plugins: ["vue"], extends: ["plugin:vue/recommended", "airbnb-base"], // check if impor...
// https://eslint.org/docs/user-guide/configuring module.exports = { root: true, parserOptions: { parser: "babel-eslint", sourceType: "module" }, env: { browser: true }, // required to lint *.vue files plugins: ["vue"], extends: ["plugin:vue/recommended", "airbnb-base"], // check if impor...
Disable i++ error in loops
Disable i++ error in loops
JavaScript
mit
homoluden/fukami,homoluden/fukami,homoluden/fukami
dd123262b95f39224b7851ceaaf785399c9de0c0
implementation.js
implementation.js
'use strict'; var bind = require('function-bind'); var ES = require('es-abstract/es7'); var slice = bind.call(Function.call, String.prototype.slice); module.exports = function padLeft(maxLength) { var O = ES.RequireObjectCoercible(this); var S = ES.ToString(O); var stringLength = ES.ToLength(S.length); var fillSt...
'use strict'; var bind = require('function-bind'); var ES = require('es-abstract/es7'); var slice = bind.call(Function.call, String.prototype.slice); module.exports = function padLeft(maxLength) { var O = ES.RequireObjectCoercible(this); var S = ES.ToString(O); var stringLength = ES.ToLength(S.length); var fillSt...
Update concatenation algorithm to prevent strings larger than the max length
Update concatenation algorithm to prevent strings larger than the max length From https://github.com/ljharb/proposal-string-pad-left-right/commit/7b6261b9a23cbc00daf0b232c1b40243adcce7d8
JavaScript
mit
ljharb/String.prototype.padLeft,ljharb/String.prototype.padStart,es-shims/String.prototype.padStart,es-shims/String.prototype.padLeft
2fa060f4dd23a5074b788330c1a8464f79bdadef
routes/edit/screens/App/screens/Project/components/CodeEditor.js
routes/edit/screens/App/screens/Project/components/CodeEditor.js
import React, { Component } from 'react'; import AceEditor from 'react-ace'; import githubTheme from 'brace/theme/github'; import markdownSyntax from 'brace/mode/markdown'; import styles from './CodeEditor.styl'; export default ({ file, onCodeChange, onSave }) => { if (!file) return <div />; const onLoad = (edit...
import React, { Component } from 'react'; import AceEditor from 'react-ace'; import githubTheme from 'brace/theme/github'; import markdownSyntax from 'brace/mode/markdown'; import styles from './CodeEditor.styl'; export default ({ file, onCodeChange, onSave }) => { if (!file) return <div />; const onLoad = (edit...
Add support for save on Ctrl/Cmd+S
Add support for save on Ctrl/Cmd+S
JavaScript
mit
Literasee/literasee,Literasee/literasee
ec5f0a6ded1d50773cda52d32f22238bcb019d56
src/app/main/main.controller.js
src/app/main/main.controller.js
(function() { 'use strict'; angular .module('annualTimeBlock') .controller('MainController', MainController); /** @ngInject */ function MainController($timeout, webDevTec, toastr) { var vm = this; vm.awesomeThings = []; vm.classAnimation = ''; vm.creationDate = 1456885185987; vm.s...
(function() { 'use strict'; angular .module('annualTimeBlock') .controller('MainController', MainController); /** @ngInject */ function MainController() { var vm = this; } })();
Clear out unneeded MainController stuff
Clear out unneeded MainController stuff
JavaScript
mit
EdwardHinkle/annualTimeBlock,EdwardHinkle/annualTimeBlock
48c22bda06a7f6ea3592c942db50d7a4236f8605
LesionTracker/client/components/viewerMain/viewerMain.js
LesionTracker/client/components/viewerMain/viewerMain.js
Template.viewerMain.helpers({ 'toolbarOptions': function() { var toolbarOptions = {}; var buttonData = []; buttonData.push({ id: 'resetViewport', title: 'Reset Viewport', classes: 'imageViewerCommand', iconClasses: 'fa fa-undo' }); ...
Template.viewerMain.helpers({ 'toolbarOptions': function() { var toolbarOptions = {}; var buttonData = []; buttonData.push({ id: 'resetViewport', title: 'Reset Viewport', classes: 'imageViewerCommand', iconClasses: 'fa fa-undo' }); ...
Change icon for non-target tool and remove length tool
Change icon for non-target tool and remove length tool
JavaScript
mit
OHIF/Viewers,HorizonPlatform/Viewers,HorizonPlatform/Viewers,HorizonPlatform/Viewers,OHIF/Viewers,HorizonPlatform/Viewers,OHIF/Viewers
4d472a8c41acd461f1f75b9c0d9d8c65cfd4c4eb
client/tests/end2end/test-custodian-first-login.js
client/tests/end2end/test-custodian-first-login.js
var utils = require('./utils.js'); var temporary_password = "typ0drome@absurd.org"; describe('receiver first login', function() { it('should redirect to /firstlogin upon successful authentication', function() { utils.login_custodian('Custodian1', utils.vars['default_password'], '/#/custodian', true); }); i...
var utils = require('./utils.js'); var temporary_password = "typ0drome@absurd.org"; describe('receiver first login', function() { it('should redirect to /firstlogin upon successful authentication', function() { utils.login_custodian('Custodian1', utils.vars['default_password'], '/#/custodian', true); }); i...
Fix test of admin/custodian password change
Fix test of admin/custodian password change
JavaScript
agpl-3.0
vodkina/GlobaLeaks,vodkina/GlobaLeaks,vodkina/GlobaLeaks,vodkina/GlobaLeaks
5684a7a2746bce64504d3ee598c9403315d3211e
js/application.js
js/application.js
$(document).ready(function(){ $(".metronome-parameters").on("submit", function(event){ event.preventDefault(); var tempo = $("#tempo-field").val(); var beatsPerMeasure = $("#beats-field").val(); metronome = new Metronome(tempo, beatsPerMeasure); metronome.start(); }); })
$(document).ready(function(){ $(".metronome-parameters").on("submit", function(event){ event.preventDefault(); if ($('#metronome-button').val() === "Start"){ var tempo = $("#tempo-field").val(); var beatsPerMeasure = $("#beats-field").val(); metronome = new Metronome(tempo, beatsPerMeasure)...
Change submit event listener to start or stop
Change submit event listener to start or stop
JavaScript
mit
dmilburn/beatrice,dmilburn/beatrice
552a0ff648af26ec23415abb24de858bb229e92e
src/components/Auth.js
src/components/Auth.js
import React from "react"; import { connect } from "react-redux"; import { push } from "react-router-redux"; import { parse } from "qs"; import { downloadJournal } from "../actionCreators"; class Auth extends React.Component { componentWillMount() { const accessToken = parse(this.props.location.hash.slice(1)).ac...
import React from "react"; import { connect } from "react-redux"; import { push } from "react-router-redux"; import { parse } from "qs"; import { downloadJournal } from "../actionCreators"; const getHash = () => this.props.location.hash.slice(1); const getAccessTokenFromHash = () => parse(getHash()).access_token; cla...
Split out logic to improve readability
Split out logic to improve readability
JavaScript
mit
captbaritone/markdown.today,captbaritone/markdown.today,captbaritone/markdown.today
4dc0b40c4a6f54952cf7bfaa0492872539b88d40
src/controller.spec.js
src/controller.spec.js
import { ControllerProvider } from './controller'; const testModuleName = 'hot-reload-demo'; fdescribe('ControllerProvider', () => { describe('creating a controller through the provider', () => { var ctrl; beforeEach(function() { new ControllerProvider(testModuleName) .register('UnitTestCtrl'...
import { ControllerProvider } from './controller'; const testModuleName = 'hot-reload-demo'; describe('ControllerProvider', () => { describe('creating a controller through the provider', () => { const testCtrlName = 'UnitTestController', someValue = {}; // Some value to provide for the controller var...
Add a failing test for the ControllerProvider
Add a failing test for the ControllerProvider
JavaScript
mit
noppa/ng-hot-reload,noppa/ng-hot-reload,noppa/ng-hot-reload
1ec3d3a1c7b8b664c7d5a0455e23e4185eb3bf23
lib/node-expat.js
lib/node-expat.js
var EventEmitter = require('events').EventEmitter; var util = require('util'); var expat = require('../build/default/node-expat'); /** * Simple wrapper because EventEmitter has turned pure-JS as of node * 0.5.x. */ exports.Parser = function(encoding) { this.parser = new expat.Parser(encoding); var that = t...
var EventEmitter = require('events').EventEmitter; var util = require('util'); var expat = require('../build/Release/node-expat'); /** * Simple wrapper because EventEmitter has turned pure-JS as of node * 0.5.x. */ exports.Parser = function(encoding) { this.parser = new expat.Parser(encoding); var that = t...
Fix for Node.js 0.6.0: Build seems to be now in Release instead of default
Fix for Node.js 0.6.0: Build seems to be now in Release instead of default
JavaScript
mit
node-xmpp/node-expat,Moharu/node-expat,noahjs/node-expat,Moharu/node-expat,noahjs/node-expat,julianduque/node-expat,noahjs/node-expat,node-xmpp/node-expat,julianduque/node-expat,node-xmpp/node-expat,julianduque/node-expat,Moharu/node-expat
2d5bd5583ed75904284b32b7ba4ff3294267315e
scripts/single-page.js
scripts/single-page.js
$(document).on('ready', function() { $('nav a').on('click', function(event) { event.preventDefault(); var targetURI = event.target.dataset.pagePartial; $.ajax({ cache: false, url: targetURI }).done(function(response) { $('main').html(response); }); }); $('a.blog-link').on('...
$(document).on('ready', function() { $('nav a').on('click', function(event) { event.preventDefault(); var targetURI = event.target.dataset.pagePartial; $.ajax({ cache: false, url: targetURI }).done(function(response) { $('main').html(response); }); }); $('a.blog-link').on('...
Update blog link click event to make ajax request
Update blog link click event to make ajax request
JavaScript
mit
RoyTuesday/RoyTuesday.github.io,peternatewood/peternatewood.github.io,peternatewood/peternatewood.github.io,peternatewood/peternatewood.github.io,RoyTuesday/RoyTuesday.github.io
fb67dd5793ba6163e66f325fa3adcb12c4fc8038
gulpfile.js
gulpfile.js
var stexDev = require("stex-dev"); var gulp = stexDev.gulp(); var plugins = stexDev.gulpPlugins(); var paths = stexDev.paths; // composite gulp tasks gulp.task('default', ['test']); gulp.task('dist', ['']); gulp.task('test', ['lint', 'mocha']); // gulp.task('db:setup', ['db:ensure-created', 'db:migrate'...
var Stex = require("stex"); var stexDev = require("stex-dev"); var gulp = stexDev.gulp(); var plugins = stexDev.gulpPlugins(); var paths = stexDev.paths; paths.root = __dirname; //HACK: can't think of a better way to expose the app root prior to stex init gulp.task('default', ['test']); gulp.task('dist', ...
Move app/db tasks into stex-dev
Move app/db tasks into stex-dev
JavaScript
isc
Payshare/stellar-wallet,stellar/stellar-wallet,stellar/stellar-wallet,Payshare/stellar-wallet
bb913af7a765a1092233c3b73970a800e8fd8dcc
client/app/components/JewelryProducts.js
client/app/components/JewelryProducts.js
import React from 'react'; class JewelryProducts extends React.Component { render() { return ( <h1>Jewelry Products</h1> ); } } export default JewelryProducts;
import React from 'react'; import 'whatwg-fetch'; import h from '../helpers.js'; class JewelryProducts extends React.Component { constructor() { super(); this.state = { pieces: [] }; } componentDidMount() { fetch('/a/pieces') .then(h.checkStatus) .then(h.parseJSON) .the...
Make an example for data fetching
Make an example for data fetching
JavaScript
mit
jfanderson/KIM,jfanderson/KIM
cdcf48dc3afdb347303cec910a37cf7a34bd03db
client/app/controllers/boltController.js
client/app/controllers/boltController.js
angular.module('bolt.controller', []) .controller('BoltController', function($scope, $location, $window){ $scope.session = $window.localStorage; $scope.startRun = function() { if (document.getElementById("switch_3_left").checked) { $location.path('/run'); } else if (document.getElementById("switch_3_...
angular.module('bolt.controller', []) .controller('BoltController', function ($scope, $location, $window) { $scope.session = $window.localStorage; $scope.startRun = function () { if (document.getElementById("switch_3_left").checked) { $location.path('/run'); } else if (document.getElementById("switch...
Fix and ungodly number of linter errors
Fix and ungodly number of linter errors
JavaScript
mit
thomasRhoffmann/Bolt,elliotaplant/Bolt,gm758/Bolt,elliotaplant/Bolt,boisterousSplash/Bolt,boisterousSplash/Bolt,gm758/Bolt,thomasRhoffmann/Bolt