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
dc90ee7975d4210e4818d3818e97fe019886c81f
src/app/get-projects.js
src/app/get-projects.js
import ProjectConfigurationRepository from '../domain/project-configuration-repository' import fs from 'fs' const repository = new ProjectConfigurationRepository() /** * @param {string} path The path to todo.conf.yml */ export default (path) => { const paths = [path, `${process.env.PWD}/${path}`, `${process.env...
import ProjectConfigurationRepository from '../domain/project-configuration-repository' import fs from 'fs' const repository = new ProjectConfigurationRepository() /** * @param {string} path The path to todo.conf.yml */ export default (path) => { const paths = [path, `${process.env.PWD}/${path}`, `${process.env...
Rename conf file in home dir
Rename conf file in home dir
JavaScript
mit
kt3k/view-todo,kt3k/view-todo
82c9a371707bd8d85b1f6ebf0004bdfccde4f231
src/app/index.module.js
src/app/index.module.js
/* global malarkey:false, toastr:false, moment:false */ import config from './index.config'; import routerConfig from './index.route'; import runBlock from './index.run'; import MainController from './main/main.controller'; import GithubContributorService from '../app/components/githubContributor/githubContributor.se...
/* global malarkey:false, toastr:false, moment:false */ import config from './index.config'; import routerConfig from './index.route'; import runBlock from './index.run'; import MainController from './main/main.controller'; import GithubContributorService from '../app/components/githubContributor/githubContributor.se...
Remove 'restangular' as a direct dependency of the top level app
Remove 'restangular' as a direct dependency of the top level app
JavaScript
mit
tekerson/ng-bookmarks,tekerson/ng-bookmarks
231c2560393d2766e924fed02b4a2268aa6e1dc7
lib/tasks/extra/DocTask.js
lib/tasks/extra/DocTask.js
"use strict"; const Task = require('../Task'), gulp = require('gulp'), mocha = require('gulp-mocha'), fs = require('fs'); class DocTask extends Task { constructor(buildManager) { super(buildManager); this.command = "doc"; } action() { //Dirty trick to capture Mocha ou...
"use strict"; const Task = require('../Task'), gulp = require('gulp'), mocha = require('gulp-mocha'), fs = require('fs'); class DocTask extends Task { constructor(buildManager) { super(buildManager); this.command = "doc"; } action() { //Dirty trick to capture Mocha ou...
Add compilers to doc task
Add compilers to doc task
JavaScript
mit
mtfranchetto/smild,mtfranchetto/smild,mtfranchetto/smild
76813e0e74d12a2ec47830b811fd143f0f1a6781
zoltar/zoltar.js
zoltar/zoltar.js
// Module for interacting with zoltar const rp = require('request-promise-native') const buildUrl = require('build-url') async function get (url) { return rp(url, { json: true }) } async function gets (url) { return rp(url, { json: false }) } function proxifyObject (obj, root) { let handler = { get(target...
// Module for interacting with zoltar const rp = require('request-promise-native') const buildUrl = require('build-url') async function get (url) { return rp(url, { json: true }) } async function gets (url) { return rp(url, { json: false }) } function proxifyObject (obj, root) { let handler = { get(target...
Handle url and csv getters separately
Handle url and csv getters separately
JavaScript
mit
reichlab/flusight,reichlab/flusight,reichlab/flusight
c3888cc45823cb0bb5112b8e20eaacbf7ff58d7b
app/assets/javascripts/angular/common/services/auth-service.js
app/assets/javascripts/angular/common/services/auth-service.js
(function(){ 'use strict'; angular.module('secondLead.common') .factory('Auth', ['$http', 'store', function($http, store) { return { isAuthenticated: function() { return store.get('jwt'); }, login: function(credentials) { var login = $http.post('/auth/login', credentials); login.success(fu...
(function(){ 'use strict'; angular.module('secondLead.common') .factory('Auth', ['$http', 'store', function($http, store) { return { isAuthenticated: function() { return store.get('jwt'); }, login: function(credentials) { var login = $http.post('/auth/login', credentials); login.success(fu...
Refactor logout in auth service
Refactor logout in auth service
JavaScript
mit
ac-adekunle/secondlead,ac-adekunle/secondlead,ac-adekunle/secondlead
064be8a3d6833c5cbe591cbc9241b8c7bbc32796
client/app/states/marketplace/details/details.state.js
client/app/states/marketplace/details/details.state.js
(function() { 'use strict'; angular.module('app.states') .run(appRun); /** @ngInject */ function appRun(routerHelper) { routerHelper.configureStates(getStates()); } function getStates() { return { 'marketplace.details': { url: '/:serviceTemplateId', templateUrl: 'app/sta...
(function() { 'use strict'; angular.module('app.states') .run(appRun); /** @ngInject */ function appRun(routerHelper) { routerHelper.configureStates(getStates()); } function getStates() { return { 'marketplace.details': { url: '/:serviceTemplateId', templateUrl: 'app/sta...
Add API call to return service dialogs
Add API call to return service dialogs https://trello.com/c/qfdnTNlk
JavaScript
apache-2.0
ManageIQ/manageiq-ui-self_service,AllenBW/manageiq-ui-service,AllenBW/manageiq-ui-service,ManageIQ/manageiq-ui-service,dtaylor113/manageiq-ui-self_service,AllenBW/manageiq-ui-service,ManageIQ/manageiq-ui-service,ManageIQ/manageiq-ui-self_service,dtaylor113/manageiq-ui-self_service,ManageIQ/manageiq-ui-self_service,Alle...
ce58e8eb67d354f624a4965e965fdf0c047433bf
ReactTests/mocks/MockPromise.js
ReactTests/mocks/MockPromise.js
class MockPromise { constructor(returnSuccess, result) { this.returnSuccess = returnSuccess; this.result = result || (returnSuccess ? 'my data': 'my error') } then(success, failure) { if (this.returnSuccess) { success(this.result); } else {...
//This is a super-simple mock of a JavaScript Promise //It only implement the 'then(success, failure)' function //as that is the only function that the kanban calls //in the modules that use the KanbanApi class MockPromise { constructor(returnSuccess, result) { this.returnSuccess = returnSuccess; ...
Comment to say its a limited mock of a promise
Comment to say its a limited mock of a promise
JavaScript
mit
JonPSmith/AspNetReactSamples,JonPSmith/AspNetReactSamples,JonPSmith/AspNetReactSamples
0159ff31725252f1a04451c297258e17872a4a01
app/js/app.js
app/js/app.js
window.ContactManager = { Models: {}, Collections: {}, Views: {}, start: function(data) { var contacts = new ContactManager.Collections.Contacts(data.contacts), router = new ContactManager.Router(); router.on('route:home', function() { router.navigate('contacts', { trigger: true,...
window.ContactManager = { Models: {}, Collections: {}, Views: {}, start: function(data) { var contacts = new ContactManager.Collections.Contacts(data.contacts), router = new ContactManager.Router(); router.on('route:home', function() { router.navigate('contacts', { trigger: true,...
Update contact on form submitted
Update contact on form submitted
JavaScript
mit
giastfader/backbone-contact-manager,EaswarRaju/angular-contact-manager,SomilKumar/backbone-contact-manager,vinnu-313/backbone-contact-manager,dmytroyarmak/backbone-contact-manager,SomilKumar/backbone-contact-manager,hrundik/angular-contact-manager,hrundik/angular-contact-manager,giastfader/backbone-contact-manager,hrun...
fa025070c1eeb7e751b4b7210cce4e088781e2bc
app/assets/javascripts/messages.js
app/assets/javascripts/messages.js
function scrollToBottom() { var $messages = $('#messages'); if ($messages.length > 0) { $messages.scrollTop($messages[0].scrollHeight); } } $(document).ready(scrollToBottom);
function scrollToBottom() { var $messages = $('#messages'); if ($messages.length > 0) { $messages.scrollTop($messages[0].scrollHeight); } } $(document).ready(scrollToBottom); $(document).on('turbolinks:load', scrollToBottom);
Fix scrollToBottom action on turbolinks:load
Fix scrollToBottom action on turbolinks:load
JavaScript
mit
JulianNicholls/BuffetCar-5,JulianNicholls/BuffetCar-5,JulianNicholls/BuffetCar-5
4deeb7ddc71647bafc1f932e6590d9b58e6b7af3
Resize/script.js
Resize/script.js
function adjustStyle() { var width = 0; // get the width.. more cross-browser issues if (window.innerHeight) { width = window.innerWidth; } else if (document.documentElement && document.documentElement.clientHeight) { width = document.documentElement.clientWidth; } else if (document....
function adjustStyle() { var width = 0; // get the width.. more cross-browser issues if (window.innerHeight) { width = window.innerWidth; } else if (document.documentElement && document.documentElement.clientHeight) { width = document.documentElement.clientWidth; } else if (document....
Add window.onload for style adjust
Add window.onload for style adjust
JavaScript
mit
SHoar/lynda_essentialJStraining
43d771162f5993035a231857d02e97d94e74c3a6
koans/AboutPromises.js
koans/AboutPromises.js
describe("About Promises", function () { describe("Asynchronous Flow", function () { it("should understand promise usage", function () { function isZero(number) { return new Promise(function(resolve, reject) { if(number === 0) { resolve(); } else { reje...
describe("About Promises", function () { describe("Asynchronous Flow", function () { it("should understand Promise type", function () { function promise(number) { return new Promise(function(resolve, reject) { resolve(); }) } // expect(promise() instanceof Promise...
Add in extra promise koan
feat: Add in extra promise koan
JavaScript
mit
tawashley/es6-javascript-koans,tawashley/es6-javascript-koans,tawashley/es6-javascript-koans
4e1b78d76157761c251ecdf10cf6126ea03479e5
app/templates/src/main/webapp/scripts/app/account/social/directive/_social.directive.js
app/templates/src/main/webapp/scripts/app/account/social/directive/_social.directive.js
'use strict'; angular.module('<%=angularAppName%>') .directive('jhSocial', function($translatePartialLoader, $translate, $filter, SocialService) { return { restrict: 'E', scope: { provider: "@ngProvider" }, templateUrl: 'scripts/app/account/so...
'use strict'; angular.module('<%=angularAppName%>') .directive('jhSocial', function(<% if (enableTranslation){ %>$translatePartialLoader, $translate, <% } %>$filter, SocialService) { return { restrict: 'E', scope: { provider: "@ngProvider" }, ...
Fix translation issue in the social login
Fix translation issue in the social login
JavaScript
apache-2.0
yongli82/generator-jhipster,rkohel/generator-jhipster,dimeros/generator-jhipster,danielpetisme/generator-jhipster,Tcharl/generator-jhipster,Tcharl/generator-jhipster,maniacneron/generator-jhipster,sendilkumarn/generator-jhipster,erikkemperman/generator-jhipster,atomfrede/generator-jhipster,ziogiugno/generator-jhipster,...
afcb675b6681611867be57c523a58b0ba4d831b4
lib/componentHelper.js
lib/componentHelper.js
var fs = require('fs'), Builder = require('component-builder'), rimraf = require('rimraf'), config = require('../config'), utils = require('./utils'), component = require('./component'), options = { dest: config.componentInstallDir }; /** * Installs `model`s component from...
var fs = require('fs-extra'), Builder = require('component-builder'), config = require('../config'), utils = require('./utils'), component = require('./component'), options = { dest: config.componentInstallDir }; /** * Installs `model`s component from registry * into the instal...
Use fs-extra to remove recurisvely rather than rimraf
Use fs-extra to remove recurisvely rather than rimraf
JavaScript
mit
web-audio-components/web-audio-components-service
974405ece1e52023ee05c962bb6dc9991e248e58
bin/server.js
bin/server.js
import config from '../config' import server from '../server/main' import _debug from 'debug' const debug = _debug('app:bin:server') const port = config.server_port const host = config.server_host server.listen(port) debug(`Server is now running at ${host}:${port}.`)
import config from '../config' import server from '../server/main' import _debug from 'debug' const debug = _debug('app:bin:server') const port = config.server_port const host = config.server_host server.listen(port) debug(`Server is now running at http://${host}:${port}.`)
Make the app link clickable
chore(compile): Make the app link clickable This small change makes the link clickable in some terminal emulators (like xfce-terminal), which makes it easier to open the app in a browser.
JavaScript
mit
tonyxiao/segment-debugger,jaronoff97/listmkr,tonyxiao/segment-debugger,pptang/ggm,JohanGustafsson91/React-JWT-Authentication-Redux-Router,VladGne/Practice2017,Vaishali512/mysampleapp,okmttdhr/aupa,chozandrias76/responsive-sesame-test,gohup/react_testcase,GreGGus/MIMApp,EngineerMostafa/CircleCI,flftfqwxf/react-redux-sta...
f4679665a92b2a34277179615aabd02f2be1db22
src/eventDispatchers/touchEventHandlers/touchStartActive.js
src/eventDispatchers/touchEventHandlers/touchStartActive.js
// State import { getters, state } from './../../store/index.js'; import getActiveToolsForElement from './../../store/getActiveToolsForElement.js'; import addNewMeasurement from './addNewMeasurement.js'; import baseAnnotationTool from '../../base/baseAnnotationTool.js'; export default function (evt) { if (state.isTo...
// State import { getters, state } from './../../store/index.js'; import getActiveToolsForElement from './../../store/getActiveToolsForElement.js'; import addNewMeasurement from './addNewMeasurement.js'; import baseAnnotationTool from '../../base/baseAnnotationTool.js'; export default function (evt) { if (state.isTo...
Fix for when no touchTools are active
Fix for when no touchTools are active
JavaScript
mit
cornerstonejs/cornerstoneTools,cornerstonejs/cornerstoneTools,chafey/cornerstoneTools,cornerstonejs/cornerstoneTools
95b588e256df806c6353bd130c2f8340a9893cae
lib/themes/dosomething/paraneue_dosomething/js/jquery.dev.js
lib/themes/dosomething/paraneue_dosomething/js/jquery.dev.js
define(function() { "use strict"; // In development, we concatenate jQuery to the app.js build // so that it is exposed as a global for Drupal scripts (rather // than loading it normally.) return jQuery; });
define(function() { "use strict"; // In development, we concatenate jQuery to the app.js build // so that it is exposed as a global for Drupal scripts (rather // than loading it normally.) return window.jQuery; });
Make window jQuery object a bit more explicit.
Make window jQuery object a bit more explicit.
JavaScript
mit
mshmsh5000/dosomething,sbsmith86/dosomething,angaither/dosomething,mshmsh5000/dosomething-1,sbsmith86/dosomething,DoSomething/phoenix,mshmsh5000/dosomething-1,chloealee/dosomething,angaither/dosomething,angaither/dosomething,sergii-tkachenko/phoenix,angaither/dosomething,mshmsh5000/dosomething-1,deadlybutter/phoenix,jo...
a5820158db8a23a61776a545e9e3f416b3568dd2
server/openstorefront/openstorefront-web/src/main/webapp/client/scripts/component/savedSearchLinkInsertWindow.js
server/openstorefront/openstorefront-web/src/main/webapp/client/scripts/component/savedSearchLinkInsertWindow.js
/* * Copyright 2016 Space Dynamics Laboratory - Utah State University Research Foundation. * * 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/LICE...
/* * Copyright 2016 Space Dynamics Laboratory - Utah State University Research Foundation. * * 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/LICE...
Add action buttons for link insert window
Add action buttons for link insert window
JavaScript
apache-2.0
jbottel/openstorefront,jbottel/openstorefront,jbottel/openstorefront,jbottel/openstorefront
d4bc885cc31cf92aafd4fef846a015c58a7e5cbe
client/reactComponents/TankBody.js
client/reactComponents/TankBody.js
import React from 'react'; import { TANK_RADIUS } from '../../simulation/constants'; class TankBody extends React.Component { constructor(props) { super(props); this.radius = props.radius || TANK_RADIUS; this.material = props.material || 'color: red;' } render () { return ( <a-sphere ...
import React from 'react'; import { TANK_RADIUS } from '../../simulation/constants'; class TankBody extends React.Component { constructor(props) { super(props); this.radius = props.radius || TANK_RADIUS; this.material = props.material || 'color: red;' this.socketControlsDisabled = props.socketContro...
Enable disabling for inanimate enemy tanks
Enable disabling for inanimate enemy tanks
JavaScript
mit
ourvrisrealerthanyours/tanks,elliotaplant/tanks,ourvrisrealerthanyours/tanks,elliotaplant/tanks
820dc2d669d10d1fe125b4581ed5db9e4249b551
conf/grunt/grunt-release.js
conf/grunt/grunt-release.js
'use strict'; module.exports = function (grunt) { grunt.registerTask('release', 'Create and tag a release', function () { grunt.task.run(['checkbranch:master', 'compile', 'bump']); } ); };
module.exports = function (grunt) { 'use strict'; grunt.registerTask('release', 'Create and tag a release', function (increment) { var bump = 'bump:' + (increment || 'patch'); grunt.task.run(['checkbranch:master', 'compile', bump]); } ); };
Add version increment option to release task.
Add version increment option to release task.
JavaScript
mit
elmarquez/threejs-cad,elmarquez/threejs-cad
37a1762d76945cca5a0bf184fc42ef9ed6dba0f7
packages/tools/addon/components/cs-active-composition-panel.js
packages/tools/addon/components/cs-active-composition-panel.js
import Component from '@ember/component'; import layout from '../templates/components/cs-active-composition-panel'; import { task, timeout } from 'ember-concurrency'; import scrollToBounds from '../scroll-to-bounds'; import { inject as service } from '@ember/service'; export default Component.extend({ layout, clas...
import Component from '@ember/component'; import layout from '../templates/components/cs-active-composition-panel'; import { task, timeout } from 'ember-concurrency'; import scrollToBounds from '../scroll-to-bounds'; import { inject as service } from '@ember/service'; import { camelize } from '@ember/string'; export d...
Fix showing validation errors for dashed field names
Fix showing validation errors for dashed field names
JavaScript
mit
cardstack/cardstack,cardstack/cardstack,cardstack/cardstack,cardstack/cardstack,cardstack/cardstack,cardstack/cardstack
d61d559936d5a7168e86e928a024cabd53abea60
build/copy.js
build/copy.js
module.exports = { all: { files: [ { expand: true, src: ['config.json'], dest: 'dist' }, { expand: true, src: ['javascript.json'], dest: 'dist' }, { expand: true, cwd: 'src/config/', src: ['**'], dest: 'dist/config/' }, { expand: true, cwd: 'src/images/', src:...
module.exports = { all: { files: [ { expand: true, src: ['config.json'], dest: 'dist' }, { expand: true, src: ['javascript.json'], dest: 'dist' }, { expand: true, cwd: 'src/config/', src: ['**'], dest: 'dist/config/' }, { expand: true, cwd: 'src/images/', src:...
Copy gtml file to dist directory
Copy gtml file to dist directory
JavaScript
apache-2.0
junbon/binary-static-www2,einhverfr/binary-static,massihx/binary-static,einhverfr/binary-static,borisyankov/binary-static,massihx/binary-static,animeshsaxena/binary-static,borisyankov/binary-static,brodiecapel16/binary-static,borisyankov/binary-static,einhverfr/binary-static,massihx/binary-static,animeshsaxena/binary-s...
e08a21c9a4e067e692dd35e82ffde8608b3f3044
lib/assert-called.js
lib/assert-called.js
var assert = require('assert'); var assertCalled = module.exports = function (cb) { var index = assertCalled.wanted.push({ callback: cb, error: new Error() }); return function () { wanted.splice(index - 1, 1); cb.apply(this, arguments); }; }; var wanted = assertCalled.wanted = []; process.on('exit', fu...
var assert = require('assert'); var assertCalled = module.exports = function (cb) { var index = assertCalled.wanted.push({ callback: cb, error: new Error() }); return function () { wanted[index - 1] = null; cb.apply(this, arguments); }; }; var wanted = assertCalled.wanted = []; process.on('exit', funct...
Fix problem with callbacks called out of order
[fix] Fix problem with callbacks called out of order
JavaScript
mit
mmalecki/assert-called
739298c7826ea6109b8a2632d54c8d867f7d03cc
react/features/base/participants/components/styles.js
react/features/base/participants/components/styles.js
import { createStyleSheet } from '../../styles'; /** * The style of the avatar and participant view UI (components). */ export const styles = createStyleSheet({ /** * Avatar style. */ avatar: { flex: 1, width: '100%' }, /** * ParticipantView style. */ particip...
import { createStyleSheet } from '../../styles'; /** * The style of the avatar and participant view UI (components). */ export const styles = createStyleSheet({ /** * Avatar style. */ avatar: { alignSelf: 'center', // FIXME I don't understand how a 100 border radius of a 50x50 squa...
Use rounded avatars in the film strip
[RN] Use rounded avatars in the film strip
JavaScript
apache-2.0
jitsi/jitsi-meet,bgrozev/jitsi-meet,gpolitis/jitsi-meet,jitsi/jitsi-meet,bgrozev/jitsi-meet,jitsi/jitsi-meet,bgrozev/jitsi-meet,bgrozev/jitsi-meet,bgrozev/jitsi-meet,jitsi/jitsi-meet,bgrozev/jitsi-meet,gpolitis/jitsi-meet,jitsi/jitsi-meet,jitsi/jitsi-meet,jitsi/jitsi-meet,gpolitis/jitsi-meet,gpolitis/jitsi-meet,gpoliti...
d15d9e09ec0b338d52d6db33ae91b4b96d6190df
src/events/memberAdd.js
src/events/memberAdd.js
exports.run = async function(payload) { const claimEnabled = this.cfg.issues.commands.assign.claim.aliases.length; if (payload.action !== "added" || !claimEnabled) return; const newMember = payload.member.login; const invite = this.invites.get(newMember); if (!invite) return; const repo = payload.reposi...
exports.run = async function(payload) { const claimEnabled = this.cfg.issues.commands.assign.claim.length; if (payload.action !== "added" || !claimEnabled) return; const newMember = payload.member.login; const invite = this.invites.get(newMember); if (!invite) return; const repo = payload.repository; ...
Fix broken JSON path for member events.
events: Fix broken JSON path for member events.
JavaScript
apache-2.0
synicalsyntax/zulipbot
bf37fb0886485102fe832c67909aae07ae6daaf8
web/config.js
web/config.js
var path = require('path'), fs = require('fs'), log4js = require('log4js'); var config = { DNODE_PORT: 0xC5EA, SEARCH_REPO: path.join(__dirname, "../../linux"), SEARCH_REF: "v3.0", SEARCH_ARGS: [], BACKEND_CONNECTIONS: 8, BACKENDS: [ ["localhost", 0xC5EA] ], LOG4JS_CONFIG: path.join(...
var path = require('path'), fs = require('fs'), log4js = require('log4js'); var config = { DNODE_PORT: 0xC5EA, SEARCH_REPO: path.join(__dirname, "../../linux"), SEARCH_REF: "v3.0", SEARCH_ARGS: [], BACKEND_CONNECTIONS: 4, BACKENDS: [ ["localhost", 0xC5EA] ], LOG4JS_CONFIG: path.join(...
Drop the default number of backend connections to 4.
Drop the default number of backend connections to 4.
JavaScript
bsd-2-clause
wfxiang08/livegrep,lekkas/livegrep,lekkas/livegrep,lekkas/livegrep,paulproteus/livegrep,paulproteus/livegrep,lekkas/livegrep,paulproteus/livegrep,wfxiang08/livegrep,wfxiang08/livegrep,wfxiang08/livegrep,paulproteus/livegrep,wfxiang08/livegrep,paulproteus/livegrep,paulproteus/livegrep,lekkas/livegrep,wfxiang08/livegrep,...
c78de429e9f6c4d6ecf32ff0cc768a8ef8d0e917
mac/resources/open_wctb.js
mac/resources/open_wctb.js
define(function() { return function(resource) { var dv = new DataView(resource.data.buffer, resource.data.byteOffset, resource.data.byteLength); var entryCount = dv.getInt16(6, false) + 1; if (entryCount < 0) { console.error('color table resource: invalid number of entries'); } var palCanva...
define(function() { return function(resource) { var dv = new DataView(resource.data.buffer, resource.data.byteOffset, resource.data.byteLength); var entryCount = dv.getInt16(6, false) + 1; if (entryCount < 0) { console.error('color table resource: invalid number of entries'); } var palCanva...
Fix for zero-length color tables
Fix for zero-length color tables
JavaScript
mit
radishengine/drowsy,radishengine/drowsy
31925ae17346c45902d2762cd91dcd2d1d52bfeb
lib/string-helper.js
lib/string-helper.js
'use babel'; export const raw = (strings, ...values) => { return strings[0].replace(/^[ \t\r]+/gm, ""); };
'use babel'; // TODO: Move to underscore-plus? export const raw = (strings, ...values) => { return strings[0].replace(/^[ \t\r]+/gm, ""); };
Add TODO about moving string helper to underscore-plus
:memo: Add TODO about moving string helper to underscore-plus
JavaScript
mit
atom/toggle-quotes
949d26db4397a375e2587a68ea66f099fbe4f3ba
test/integration/saucelabs.conf.js
test/integration/saucelabs.conf.js
exports.config = { sauceUser: process.env.SAUCE_USERNAME, sauceKey: process.env.SAUCE_ACCESS_KEY, capabilities: { 'browserName': 'chrome', 'tunnel-identifier': process.env.TRAVIS_JOB_NUMBER, 'build': process.env.TRAVIS_BUILD_NUMBER, 'name': 'smoke test' }, specs: ['*.spec.js'], jasmineNod...
exports.config = { sauceUser: process.env.SAUCE_USERNAME, sauceKey: process.env.SAUCE_ACCESS_KEY, capabilities: { 'browserName': 'chrome', 'tunnel-identifier': process.env.TRAVIS_JOB_NUMBER, 'build': process.env.TRAVIS_BUILD_NUMBER, 'name': 'smoke test' }, specs: ['*.spec.js'], jasmineNod...
Add additional logging setting for Travis CI debugging
Add additional logging setting for Travis CI debugging
JavaScript
bsd-3-clause
CodeForBrazil/streetmix,codeforamerica/streetmix,macGRID-SRN/streetmix,kodujdlapolski/streetmix,magul/streetmix,kodujdlapolski/streetmix,magul/streetmix,kodujdlapolski/streetmix,CodeForBrazil/streetmix,codeforamerica/streetmix,CodeForBrazil/streetmix,macGRID-SRN/streetmix,magul/streetmix,macGRID-SRN/streetmix,codeforam...
b37380d1ea4bc04f07859f8f0b748bbe676e4317
codebrag-ui/app/scripts/common/directives/contactFormPopup.js
codebrag-ui/app/scripts/common/directives/contactFormPopup.js
angular.module('codebrag.common.directives').directive('contactFormPopup', function() { function ContactFormPopup($scope, $http) { $scope.isVisible = false; $scope.submit = function() { sendFeedbackViaUservoice().then(success, failure); function success() { ...
angular.module('codebrag.common.directives').directive('contactFormPopup', function() { function ContactFormPopup($scope, $http) { $scope.isVisible = false; $scope.submit = function() { clearStatus(); sendFeedbackViaUservoice().then(success, failure); function ...
Hide contact form when sending succeeded.
Hide contact form when sending succeeded.
JavaScript
agpl-3.0
cazacugmihai/codebrag,softwaremill/codebrag,cazacugmihai/codebrag,cazacugmihai/codebrag,softwaremill/codebrag,cazacugmihai/codebrag,cazacugmihai/codebrag,softwaremill/codebrag,softwaremill/codebrag
5c714a27bbfb28922771db47a249efbd24dfae31
tests/integration/components/organization-menu-test.js
tests/integration/components/organization-menu-test.js
import { moduleForComponent, test } from 'ember-qunit'; import hbs from 'htmlbars-inline-precompile'; moduleForComponent('organization-menu', 'Integration | Component | organization menu', { integration: true }); test('it renders', function(assert) { // Set any properties with this.set('myProperty', 'value'); /...
import { moduleForComponent, test } from 'ember-qunit'; import hbs from 'htmlbars-inline-precompile'; moduleForComponent('organization-menu', 'Integration | Component | organization menu', { integration: true }); test('it renders', function(assert) { assert.expect(1); this.render(hbs`{{organization-menu}}`); ...
Add organization menu component test
Add organization menu component test
JavaScript
mit
jderr-mx/code-corps-ember,code-corps/code-corps-ember,jderr-mx/code-corps-ember,eablack/code-corps-ember,eablack/code-corps-ember,code-corps/code-corps-ember
32fbe3dc4686e413886911f5d373137648f08614
packages/shim/src/index.js
packages/shim/src/index.js
/* eslint-disable global-require */ require('@webcomponents/template'); if (!window.customElements) require('@webcomponents/custom-elements'); if (!document.body.attachShadow) require('@webcomponents/shadydom'); require('@webcomponents/shadycss/scoping-shim.min'); require('@webcomponents/shadycss/apply-shim.min');
/* eslint-disable global-require */ require('@webcomponents/template'); if (!document.body.attachShadow) require('@webcomponents/shadydom'); if (!window.customElements) require('@webcomponents/custom-elements'); require('@webcomponents/shadycss/scoping-shim.min'); require('@webcomponents/shadycss/apply-shim.min');
Fix ShadyDOM before Custom Elements polyfill
Fix ShadyDOM before Custom Elements polyfill
JavaScript
mit
hybridsjs/hybrids
5bab1d44e4d2667a0997bd72002a22385aeae8fd
test/socket-api.test.js
test/socket-api.test.js
var assert = require('chai').assert; var nodemock = require('nodemock'); var utils = require('./test-utils'); var express = require('express'); var socketAdaptor = require('../lib/socket-adaptor'); var Connection = require('../lib/backend-adaptor').Connection; var client = require('socket.io-client'); suite('Socket...
var assert = require('chai').assert; var nodemock = require('nodemock'); var utils = require('./test-utils'); var express = require('express'); var socketAdaptor = require('../lib/socket-adaptor'); var Connection = require('../lib/backend-adaptor').Connection; var client = require('socket.io-client'); suite('Socket...
Fix typo: assertThrow => assertThrows
Fix typo: assertThrow => assertThrows
JavaScript
mit
droonga/express-droonga,droonga/express-droonga,KitaitiMakoto/express-droonga,KitaitiMakoto/express-droonga
4643995ca77ef4ed695d337da9fc36fdf7918749
test/events.emitter.test.js
test/events.emitter.test.js
define(['events/lib/emitter'], function(Emitter) { describe("Emitter", function() { it('should alias addListener to on', function() { expect(Emitter.prototype.addListener).to.be.equal(Emitter.prototype.on); }); it('should alias removeListener to off', function() { expect(Emitter.pro...
define(['events/lib/emitter'], function(Emitter) { describe("Emitter", function() { it('should alias addListener to on', function() { expect(Emitter.prototype.addListener).to.be.equal(Emitter.prototype.on); }); it('should alias removeListener to off', function() { expect(Emitter.pro...
Test case for zero argument emit.
Test case for zero argument emit.
JavaScript
mit
anchorjs/events,anchorjs/events
c78dbbec9ad549b8a850abce62f3a4757540eae8
server/mongoose-handler.js
server/mongoose-handler.js
var mongoose = require('mongoose'); var log = require('./logger').log; var process = require('process'); var options = require('./options-handler').options; exports.init = function(callback) { mongoose.connect(options['database']['uri']); var db = mongoose.connection; db.on('error', function(err) { log.erro...
var mongoose = require('mongoose'); var log = require('./logger').log; var options = require('./options-handler').options; exports.init = function(callback) { mongoose.connect(options['database']['uri']); var db = mongoose.connection; db.on('error', function(err) { log.error(err); setTimeout(function() ...
Fix exiting on DB error.
Fix exiting on DB error.
JavaScript
mit
MisterTea/TidalWave,MisterTea/TidalWave,MisterTea/TidalWave,MisterTea/TidalWave,MisterTea/TidalWave,MisterTea/TidalWave
cd810325efa67beac2cd339cd0bb5beeced14ec1
app/assets/javascripts/transactions.js
app/assets/javascripts/transactions.js
(function () { "use strict" window.GOVUK = window.GOVUK || {}; window.GOVUK.Transactions = { trackStartPageTabs : function (e) { var pagePath = e.target.href; GOVUK.analytics.trackEvent('startpages', 'tab', {label: pagePath, nonInteraction: true}); } }; })(); $(document).ready(function ...
(function () { "use strict" window.GOVUK = window.GOVUK || {}; window.GOVUK.Transactions = { trackStartPageTabs : function (e) { var pagePath = e.target.href; GOVUK.analytics.trackEvent('startpages', 'tab', {label: pagePath, nonInteraction: true}); } }; })(); $(document).ready(function ...
Update JS following component usage
Update JS following component usage
JavaScript
mit
alphagov/frontend,alphagov/frontend,alphagov/frontend,alphagov/frontend
7bad2ae5ca65ef0572fa90ce46f6a20964b6e8ff
vendor/assets/javascripts/flash.js
vendor/assets/javascripts/flash.js
// refactoring from https://github.com/leonid-shevtsov/cacheable-flash-jquery var Flash = new Object(); Flash.data = {}; Flash.transferFromCookies = function() { var data = JSON.parse(unescape($.cookie("flash"))); if(!data) data = {}; Flash.data = data; $.cookie('flash',null, {path: '/'}); }; Flash.writeData...
// refactoring from https://github.com/leonid-shevtsov/cacheable-flash-jquery var Flash = new Object(); Flash.data = {}; Flash.transferFromCookies = function() { var data = JSON.parse(unescape($.cookie("flash"))); if(!data) data = {}; Flash.data = data; $.cookie('flash',null, {path: '/'}); }; Flash.writeData...
Add callback argument to Flash.writeDataTo()
Add callback argument to Flash.writeDataTo()
JavaScript
mit
khoan/cacheable-flash,nickurban/cacheable-flash,ndreckshage/cacheable-flash,efigence/cacheable-flash,ekampp/cacheable-flash,pivotal/cacheable-flash,nickurban/cacheable-flash,ekampp/cacheable-flash,pedrocarrico/cacheable-flash,wandenberg/cacheable-flash,pivotal/cacheable-flash,pboling/cacheable-flash,khoan/cacheable-fla...
32c16f42c6198803de75354cf29538c89ea060a1
app/services/data/get-team-caseload.js
app/services/data/get-team-caseload.js
const config = require('../../../knexfile').web const knex = require('knex')(config) module.exports = function (id, type) { var table = 'team_caseload_overview' var whereObject = {} if (id !== undefined) { whereObject.id = id } return knex(table) .where(whereObject) .select('name', 'g...
const config = require('../../../knexfile').web const knex = require('knex')(config) module.exports = function (id) { var table = 'team_caseload_overview' var whereObject = {} if (id !== undefined) { whereObject.id = id } return knex(table) .where(whereObject) .select('name', 'grade_c...
Remove the type field as its not required.
784: Remove the type field as its not required.
JavaScript
mit
ministryofjustice/wmt-web,ministryofjustice/wmt-web
20905777baa711def48620d16507222b9ef50761
concepts/frame-list/main.js
concepts/frame-list/main.js
var mercury = require("mercury") var frameList = require("./views/frame-list") var frameEditor = require("./views/frame-editor") var frameData = require("./data/frames") // Load the data var initialFrameData = frameData.load() var frames = mercury.hash(initialFrameData) // When the data changes, save it frames(frameD...
var mercury = require("mercury") var frameList = require("./views/frame-list") var frameEditor = require("./views/frame-editor") var frameData = require("./data/frames") // Load the data var initialFrameData = frameData.load() // Create the default view using the frame set var frameListEditor = frameList(frames) va...
Consolidate the two pieces of state into a single atom
Consolidate the two pieces of state into a single atom This helps readability of the code by knowing there is only one variable that contains the state and only one variable that can be mutated. This means if you refactor the code into multiple files you only have to pass this one variable into the functions ...
JavaScript
mit
Raynos/mercury,eriser/mercury,staltz/mercury,staltz/mercury,eightyeight/mercury,beni55/mercury,mpal9000/mercury,jxson/mercury,vlad-x/mercury,martintietz/mercury,tommymessbauer/mercury
5d9441a2eabc8206c3fcca0728bd218d40ed1e0f
Data/Events.js
Data/Events.js
export default [ { day: 20, month: 7, year: 2017, date: '20 Julho 2017', location: 'Fundação Calouste Gulbenkian, Lisboa', name: 'Concerto pela Orquestra Gulbenkian, Dia do Fundador', description:'A Orquestra Gulbenkian, dirigida por José Eduardo Gomes, com os solistas Agostinho Sequeira (...
export default [ { day: 20, month: 7, year: 2017, date: '20 Julho 2017', location: 'Fundação Calouste Gulbenkian, Lisboa', name: 'Concerto pela Orquestra Gulbenkian, Dia do Fundador', description: 'A Orquestra Gulbenkian, dirigida por José Eduardo Gomes, com os solistas Agostinho Sequeira ...
Fix data object on event data
Fix data object on event data
JavaScript
mit
joaojusto/jose-gomes-landing-page
3c4d2080e1602fbeafcfbc71befbb591a186b2b1
webserver/static/js/main.js
webserver/static/js/main.js
console.log("Hello Console!"); host = window.location.host.split(":")[0]; console.log(host); var conn; $(document).ready(function () { conn = new WebSocket("ws://"+host+":8888/ws"); conn.onclose = function(evt) { console.log("connection closed"); } conn.onmessage = function(evt) { consol...
console.log("Hello Console!"); host = window.location.host.split(":")[0]; console.log(host); var conn; $(document).ready(function () { initializePacketHandlers(); conn = new WebSocket("ws://"+host+":8888/ws"); conn.onclose = function(evt) { console.log("connection closed"); } conn.onmessage...
Expand the JS code a bit to prepare for networking code
Expand the JS code a bit to prepare for networking code
JavaScript
mit
quintenpalmer/attempt,quintenpalmer/attempt,quintenpalmer/attempt,quintenpalmer/attempt
43f89d6a8a19f87d57ee74b30b7f0e664a958a2f
tests/integration/components/canvas-block-filter/component-test.js
tests/integration/components/canvas-block-filter/component-test.js
import { moduleForComponent, test } from 'ember-qunit'; import hbs from 'htmlbars-inline-precompile'; moduleForComponent('canvas-block-filter', 'Integration | Component | canvas block filter', { integration: true }); test('it renders', function(assert) { // Set any properties with this.set('myP...
import { moduleForComponent, test } from 'ember-qunit'; import Ember from 'ember'; import hbs from 'htmlbars-inline-precompile'; moduleForComponent('canvas-block-filter', 'Integration | Component | canvas block filter', { integration: true }); test('it binds a filter term', function(assert) { t...
Add meaningful tests to canvas-block-filter
Add meaningful tests to canvas-block-filter
JavaScript
apache-2.0
usecanvas/web-v2,usecanvas/web-v2,usecanvas/web-v2
9552b9842af3f5335cdcca132e37fbde591c41a4
src/js/services/tracker.js
src/js/services/tracker.js
/** * Event tracker (analytics) */ var module = angular.module('tracker', []); module.factory('rpTracker', ['$rootScope', function ($scope) { var track = function (event,properties) { if (Options.mixpanel && Options.mixpanel.track && mixpanel) { mixpanel.track(event,properties); } }; return { ...
/** * Event tracker (analytics) */ var module = angular.module('tracker', []); module.factory('rpTracker', ['$rootScope', function ($scope) { var track = function (event,properties) { if (Options.mixpanel && Options.mixpanel.track && window.mixpanel) { mixpanel.track(event,properties); } }; ret...
Fix test failures due to missing mixpanel JS
[TEST] Fix test failures due to missing mixpanel JS
JavaScript
isc
Madsn/ripple-client,arturomc/ripple-client,darkdarkdragon/ripple-client-desktop,darkdarkdragon/ripple-client,xdv/ripple-client,mrajvanshy/ripple-client-desktop,h0vhannes/ripple-client,xdv/ripple-client,yongsoo/ripple-client-desktop,darkdarkdragon/ripple-client-desktop,mrajvanshy/ripple-client,h0vhannes/ripple-client,wa...
e9b97e39609d9b592e8c8af0cc00e036d6326cc1
src/lib/listener/onFile.js
src/lib/listener/onFile.js
import {Readable} from "stream" import File from "lib/File" import getFieldPath from "lib/util/getFieldPath" const onFile = (options, cb) => (fieldname, stream, filename, enc, mime) => { try { const path = getFieldPath(fieldname) const contents = new Readable({ read() { /* noop */ } }) const...
import {Readable} from "stream" import File from "lib/File" import getFieldPath from "lib/util/getFieldPath" const onFile = (options, cb) => (fieldname, stream, filename, enc, mime) => { try { const path = getFieldPath(fieldname) const contents = new Readable({ read() { /* noop */ } }) const...
Add an error event listener for FileStream.
Add an error event listener for FileStream.
JavaScript
mit
octet-stream/then-busboy,octet-stream/then-busboy
e902c3b71a0ff79ebcb2424098197604d40ed21b
web_external/js/views/body/JobsPanel.js
web_external/js/views/body/JobsPanel.js
minerva.views.JobsPanel = minerva.View.extend({ initialize: function () { var columnEnum = girder.views.jobs_JobListWidget.prototype.columnEnum; var columns = columnEnum.COLUMN_STATUS_ICON | columnEnum.COLUMN_TITLE; this.jobListWidget = new girder.views.jobs_JobListWid...
minerva.views.JobsPanel = minerva.View.extend({ initialize: function () { var columnEnum = girder.views.jobs_JobListWidget.prototype.columnEnum; var columns = columnEnum.COLUMN_STATUS_ICON | columnEnum.COLUMN_TITLE; this.jobListWidget = new girder.views.jobs_JobListWid...
Update job when job detail clicked
Update job when job detail clicked
JavaScript
apache-2.0
Kitware/minerva,Kitware/minerva,Kitware/minerva
fb73e6394654a38439387994556680215a93c0b3
addon/components/page-pagination.js
addon/components/page-pagination.js
import Ember from 'ember'; import layout from '../templates/components/page-pagination'; export default Ember.Component.extend({ layout: layout, keys: ['first', 'prev', 'next', 'last'], sortedLinks: Ember.computed('keys', 'links', function() { var result = {}; this.get('keys').map( (key) => { resul...
import Ember from 'ember'; import layout from '../templates/components/page-pagination'; export default Ember.Component.extend({ layout: layout, keys: ['first', 'prev', 'next', 'last'], sortedLinks: Ember.computed('keys', 'links', function() { var result = {}; this.get('keys').map( (key) => { resul...
Fix unsensible default for page size
Fix unsensible default for page size
JavaScript
mit
mu-semtech/ember-data-table,erikap/ember-data-table,erikap/ember-data-table,mu-semtech/ember-data-table
ff552ff6677bbc93ab7a750184dfd79109c1a837
src/mock-get-user-media.js
src/mock-get-user-media.js
// Takes a mockOnStreamAvailable function which when given a webrtcstream returns a new stream // to replace it with. module.exports = function mockGetUserMedia(mockOnStreamAvailable) { let oldGetUserMedia; if (navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia) { oldGetUserMed...
// Takes a mockOnStreamAvailable function which when given a webrtcstream returns a new stream // to replace it with. module.exports = function mockGetUserMedia(mockOnStreamAvailable) { let oldGetUserMedia; if (navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia) { oldGetUserMedi...
Add MediaDevices support for mock getUserMedia
Add MediaDevices support for mock getUserMedia Signed-off-by: Kaustav Das Modak <ba1ce5b1e09413a89404909d8d270942c5dadd14@yahoo.co.in>
JavaScript
mit
aullman/opentok-camera-filters,aullman/opentok-camera-filters
2ecfcc3c05a3bdda467113b00748c32b3fb4db25
tests/backstop/detect-target-host.js
tests/backstop/detect-target-host.js
// Linux machines should use Docker's default gateway IP address to connect to. let hostname = '172.17.0.2'; // On MacOS and Windows, `host.docker.internal` is available to point to the // host and run backstopjs against. // If the hostname arg is set, then we're inside the container and this should take precedence. ...
// Linux machines should use Docker's default gateway IP address to connect to. let hostname = '172.17.0.1'; // On MacOS and Windows, `host.docker.internal` is available to point to the // host and run backstopjs against. // If the hostname arg is set, then we're inside the container and this should take precedence. ...
Fix default host IP for docker.
Fix default host IP for docker.
JavaScript
apache-2.0
google/site-kit-wp,google/site-kit-wp,google/site-kit-wp,google/site-kit-wp
fac9a134cafcecd5b2ef52d4c1a99123f9df0ff9
app/scripts/configs/modes/portal.js
app/scripts/configs/modes/portal.js
'use strict'; angular.module('ncsaas') .constant('MODE', { modeName: 'modePortal', toBeFeatures: [ 'localSignup', 'localSignin', 'team', 'monitoring', 'backups', 'templates', 'sizing', 'projectGroups' ], featuresVisible: false, comingFeatures: [ ...
'use strict'; angular.module('ncsaas') .constant('MODE', { modeName: 'modePortal', toBeFeatures: [ 'localSignup', 'localSignin', 'password', 'team', 'monitoring', 'backups', 'templates', 'sizing', 'projectGroups', 'apps', 'premiumSupport' ...
Disable Azure, Gitlab, Application, Support providers (SAAS-1329)
Disable Azure, Gitlab, Application, Support providers (SAAS-1329)
JavaScript
mit
opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport
3a5424c8966c899461191654e8b1de3e99dd2914
mezzanine/core/media/js/collapse_inline.js
mezzanine/core/media/js/collapse_inline.js
$(function() { var grappelli = !!$('#bookmarks'); var parentSelector = grappelli ? 'div.items' : 'tbody'; // Hide the exta inlines. $(parentSelector + ' > *:not(.has_original)').hide(); // Re-show inlines with errors, poetentially hidden by previous line. var errors = $(parentSelector + ' ul[...
$(function() { var grappelli = !!$('#bookmarks'); var parentSelector = grappelli ? 'div.items' : 'tbody'; // Hide the exta inlines. $(parentSelector + ' > *:not(.has_original)').hide(); // Re-show inlines with errors, poetentially hidden by previous line. var errors = $(parentSelector + ' ul[...
Make class name unique for dynamic inlines.
Make class name unique for dynamic inlines.
JavaScript
bsd-2-clause
dustinrb/mezzanine,tuxinhang1989/mezzanine,ZeroXn/mezzanine,scarcry/snm-mezzanine,nikolas/mezzanine,biomassives/mezzanine,gradel/mezzanine,adrian-the-git/mezzanine,damnfine/mezzanine,wbtuomela/mezzanine,guibernardino/mezzanine,wbtuomela/mezzanine,Cicero-Zhao/mezzanine,molokov/mezzanine,PegasusWang/mezzanine,cccs-web/me...
94d2f1a72a525e0a36cd247b299150a87445d2e4
lib/nrouter/common.js
lib/nrouter/common.js
'use strict'; var Common = module.exports = {}; // iterates through all object keys-value pairs calling iterator on each one // example: $$.each(objOrArr, function (val, key) { /* ... */ }); Common.each = function each(obj, iterator, context) { var keys, i, l; if (null === obj || undefined === obj) { retur...
'use strict'; var Common = module.exports = {}; // iterates through all object keys-value pairs calling iterator on each one // example: $$.each(objOrArr, function (val, key) { /* ... */ }); Common.each = function each(obj, iterator, context) { var keys, i, l; if (null === obj || undefined === obj) { retur...
Remove forEach fallback in Common.each
Remove forEach fallback in Common.each
JavaScript
mit
nodeca/pointer
c6578b2bb3652c65bcc5b0342efefde11aad034e
app.js
app.js
$(function(){ var yourSound = new Audio('notification.ogg'); yourSound.loop = true; $('.start button').click(function(ev){ $('.start').toggleClass('hidden'); $(".example").TimeCircles({ "animation": "ticks", "count_past_zero": false, "circle_bg_color": "#f...
$(function(){ var yourSound = new Audio('notification.ogg'); yourSound.loop = true; $('.start button').click(function(ev){ $('.start').toggleClass('hidden'); $('.stop').toggleClass('hidden'); $(".example").TimeCircles({ "animation": "ticks", "count_past_zero":...
Stop button always visible when clock is running
Stop button always visible when clock is running
JavaScript
mit
dplesca/getup
32383c5d18a74120da107a708abfee60a601bb27
app/scripts/main.js
app/scripts/main.js
'use strict'; // Toogle asset images - zome in and out $(function() { var Snackbar = window.Snackbar; Snackbar.init(); var AssetPage = window.AssetPage; AssetPage.init(); // We only want zooming on asset's primary images. $('.asset .zoomable').click(function() { var $thisRow = $(this).closest('.imag...
'use strict'; // Toogle asset images - zome in and out $(function() { var Snackbar = window.Snackbar; Snackbar.init(); var AssetPage = window.AssetPage; AssetPage.init(); // We only want zooming on asset's primary images. $('.asset .zoomable').click(function() { var $thisRow = $(this).closest('.imag...
Fix bug in dropdowns, where they didn’t disappear correctly
Fix bug in dropdowns, where they didn’t disappear correctly
JavaScript
mit
CopenhagenCityArchives/kbh-billeder,CopenhagenCityArchives/kbh-billeder,CopenhagenCityArchives/kbh-billeder
e7ed223545ffa3fea6d996eb2920908275a69cc9
cli.js
cli.js
#!/usr/bin/env node 'use strict'; const fs = require('fs'); const minimist = require('minimist'); const pkg = require('./package.json'); const oust = require('.'); const argv = minimist(process.argv.slice(2)); function printHelp() { console.log([ pkg.description, '', 'Usage', ' ...
#!/usr/bin/env node 'use strict'; const fs = require('fs'); const minimist = require('minimist'); const pkg = require('./package.json'); const oust = require('.'); const argv = minimist(process.argv.slice(2)); function printHelp() { console.log(` ${pkg.description} Usage: $ oust <filename> <type> Example: ...
Switch to template literals for the help screen.
Switch to template literals for the help screen.
JavaScript
apache-2.0
addyosmani/oust,addyosmani/oust
421230533c619e98a5dca0ce8374b176bdc10663
git.js
git.js
var exec = require('child_process').exec; var temp = require('temp'); var fs = fs = require('fs'); var log = require('./logger'); exports.head = function (path, callback) { exec('git --git-dir=' + path + ".git log -1 --pretty=format:'%H%n%an <%ae>%n%ad%n%s%n'", function(error, stdout, stderr) { var str = stdout.s...
var exec = require('child_process').exec; var temp = require('temp'); var fs = fs = require('fs'); var log = require('./logger'); exports.head = function (path, callback) { exec('git --git-dir=' + path + ".git log -1 --pretty=format:'%H%n%an <%ae>%n%ad%n%s%n'", function(error, stdout, stderr) { var str = stdout.s...
Fix path to commit.sh script
Fix path to commit.sh script It should be relative to __dirname, not to cwd()
JavaScript
mit
finik/bombastic,finik/bombastic,finik/bombastic
88305e481396644d88a08605ba786bd1dce35af6
src/scripts/json-minify.js
src/scripts/json-minify.js
function minifyJson(data) { return JSON.stringify(JSON.parse(data)); } export function minifyJsonFile(readFileFn, fileName) { return minifyJson(readFileFn(fileName)); }
export function minifyJsonFile(readFileFn, fileName) { const minifyJson = new MinifyJson(readFileFn); return minifyJson.fromFile(fileName); } class MinifyJson { constructor(readFileFunction) { this.readFileFunction = readFileFunction; } fromFile(fileName) { const fileContent = this.readFileFunc...
Refactor it out into a class.
Refactor it out into a class.
JavaScript
mit
cosmowiki/cosmowiki,cosmowiki/cosmowiki,cosmowiki/cosmowiki,cosmowiki/cosmowiki
084a1d1d7139d96540648a9938749a9d36d2efa4
desktop/src/lib/database.js
desktop/src/lib/database.js
/* eslint-env browser */ const fs = window.require('fs'); const fetchInitialState = () => { const data = fs.readFileSync('.config/db', 'utf-8'); if (data) { return JSON.parse(data); } return {}; }; const update = (state) => { fs.writeFileSync('.config/db', JSON.stringify(state), 'utf-8'); }; export { ...
/* eslint-env browser */ const fs = window.require('fs'); const fetchInitialState = () => { let data = fs.readFileSync('.config/db', 'utf-8'); if (data) { data = JSON.parse(data); return { tasks: { past: [], present: data.tasks, future: [], history: [], }, ...
Fix minor issue about making redux-undo state permanent
Fix minor issue about making redux-undo state permanent
JavaScript
mit
mkermani144/wanna,mkermani144/wanna
f5128b1e6c2581a5a1b33977914a23195ac4ad3d
scripts/entry.js
scripts/entry.js
#!/usr/bin/env node import childProcess from 'child_process'; import fs from 'fs-extra'; import moment from 'moment'; const today = new Date(); const path = `pages/posts/${moment(today).format('YYYY-MM-DD')}.md`; /** * Set Weekdays Locale */ moment.locale('jp', {weekdays: ['日', '月', '火', '水', '木', '金', '土']}); /**...
#!/usr/bin/env node import childProcess from 'child_process'; import fs from 'fs-extra'; import moment from 'moment'; const today = new Date(); const path = `pages/posts/${moment(today).format('YYYY-MM-DD')}.md`; /** * Set Weekdays Locale */ moment.locale('jp', {weekdays: ['日', '月', '火', '水', '木', '金', '土']}); /**...
Fix fs-extra breaking change :bread:
fix(scripts): Fix fs-extra breaking change :bread:
JavaScript
mit
ideyuta/sofar
80a6031cae11d28b7056ae9178e5f7d4ec9cea62
server/config.js
server/config.js
// Copyright © 2013-2014 Esko Luontola <www.orfjackal.net> // This software is released under the Apache License 2.0. // The license text is at http://www.apache.org/licenses/LICENSE-2.0 'use strict'; var SECOND = 1000; var MINUTE = 60 * SECOND; var HOUR = 60 * MINUTE; var DAY = 24 * HOUR; var config = { port: p...
// Copyright © 2013-2014 Esko Luontola <www.orfjackal.net> // This software is released under the Apache License 2.0. // The license text is at http://www.apache.org/licenses/LICENSE-2.0 'use strict'; var SECOND = 1000; var MINUTE = 60 * SECOND; var HOUR = 60 * MINUTE; var DAY = 24 * HOUR; var config = { port: p...
Reduce default sampling period to make testing easier
Reduce default sampling period to make testing easier
JavaScript
apache-2.0
orfjackal/pa-mentor,orfjackal/pa-mentor,orfjackal/pa-mentor
ba5f567a44a5d7325f894c42e48f696f6925907b
routes/user/index.js
routes/user/index.js
"use strict"; var db = require('../../models'); var config = require('../../config.js'); var authHelper = require('../../lib/auth-helper'); module.exports = function (app, options) { app.get('/user/tokens', authHelper.ensureAuthenticated, function(req, res, next) { db.ServiceAccessToken .findA...
"use strict"; var config = require('../../config'); var db = require('../../models'); var authHelper = require('../../lib/auth-helper'); module.exports = function (app, options) { app.get('/user/tokens', authHelper.ensureAuthenticated, function(req, res, next) { db.ServiceAccessToken .findAll(...
Remove .js extension in require()
Remove .js extension in require()
JavaScript
bsd-3-clause
ebu/cpa-auth-provider
7788c984c07d81af3f819a93dac8f663f93063b8
src/clincoded/static/libs/render_variant_title_explanation.js
src/clincoded/static/libs/render_variant_title_explanation.js
'use strict'; import React from 'react'; import { ContextualHelp } from './bootstrap/contextual_help'; /** * Method to render a mouseover explanation for the variant title */ export function renderVariantTitleExplanation() { const explanation = 'The transcript with the longest translation with no stop codons. If...
'use strict'; import React from 'react'; import { ContextualHelp } from './bootstrap/contextual_help'; /** * Method to render a mouseover explanation for the variant title */ export function renderVariantTitleExplanation() { const explanation = 'For ClinVar alleles, this represents the ClinVar Preferred Title. F...
Update variant title explanation text
Update variant title explanation text
JavaScript
mit
ClinGen/clincoded,ClinGen/clincoded,ClinGen/clincoded,ClinGen/clincoded,ClinGen/clincoded
00c45bc2e33b6c1236d87c6572cfee3610410bb5
server/fake-users.js
server/fake-users.js
var faker = require('faker'); var _ = require('lodash'); /** * Generate a list of random users. * @return {Array<{ * name: string, * email: string, * phone: string * }>} */ var getUsers = function() { return _.times(3).map(function() { return { name: faker.name.findName(), email: faker.i...
var faker = require('faker'); var _ = require('lodash'); /** * Generate a list of random users. * @return {Array<{ * name: string, * email: string, * phone: string * }>} */ var getUsers = function() { var chuckNorris = { name: 'Chuck Norris', email: 'chuck@gmail.com', phone: '212-555-1234' ...
Add chuck norris and rambo
Add chuck norris and rambo
JavaScript
mit
andresdominguez/protractor-codelab,andresdominguez/protractor-codelab
85a1333dbd1382da6176352f35481e245c846a8e
src/.eslintrc.js
src/.eslintrc.js
module.exports = { "env": { "browser": true, "commonjs": true, "es6": true }, "extends": "eslint:recommended", "installedESLint": true, "parserOptions": { "ecmaFeatures": { "experimentalObjectRestSpread": true, "jsx": true }, "s...
module.exports = { "env": { "browser": true, "commonjs": true, "es6": true }, "extends": "eslint:recommended", "installedESLint": true, "parserOptions": { "ecmaFeatures": { "experimentalObjectRestSpread": true, "jsx": true }, "s...
Make linter know when JSX is using React variable
Make linter know when JSX is using React variable
JavaScript
bsd-3-clause
rlorenzo/tmlpstats,rlorenzo/tmlpstats,rlorenzo/tmlpstats,rlorenzo/tmlpstats,tmlpstats/tmlpstats,tmlpstats/tmlpstats,tmlpstats/tmlpstats,rlorenzo/tmlpstats,tmlpstats/tmlpstats
03d9bb448c252addcd98b3a0b0317fc2884c0c31
share/spice/google_plus/google_plus.js
share/spice/google_plus/google_plus.js
function ddg_spice_google_plus (api_result) { "use strict"; if(!api_result || !api_result.items || api_result.items.length === 0) { return Spice.failed("googleplus"); } Spice.add({ id: 'googleplus', name: 'Google Plus', data: api_result.items, meta: { ...
function ddg_spice_google_plus (api_result) { "use strict"; if(!api_result || !api_result.items || api_result.items.length === 0) { return Spice.failed("googleplus"); } Spice.add({ id: 'googleplus', name: 'Google+', data: api_result.items, meta: { so...
Change the name from "Google Plus" to "Google+"
Google+: Change the name from "Google Plus" to "Google+" It's just not how it's styled.
JavaScript
apache-2.0
Kr1tya3/zeroclickinfo-spice,hshackathons/zeroclickinfo-spice,rubinovitz/zeroclickinfo-spice,stennie/zeroclickinfo-spice,Queeniebee/zeroclickinfo-spice,lw7360/zeroclickinfo-spice,AcriCAA/zeroclickinfo-spice,alexandernext/zeroclickinfo-spice,navjotahuja92/zeroclickinfo-spice,gautamkrishnar/zeroclickinfo-spice,echosa/zero...
55d69b6528833130d4f1e0118368b9a5ed9f587a
src/TcpReader.js
src/TcpReader.js
function TcpReader(callback) { this.callback = callback; this.buffer = ""; }; TcpReader.prototype.read = function(data) { this.buffer = this.buffer.concat(data); size = this.payloadSize( this.buffer ); while ( size > 0 && this.buffer.length >= ( 6 + size ) ) { this.consumeOne( size ); size = this.pay...
function TcpReader(callback) { this.callback = callback; this.buffer = ""; }; TcpReader.prototype.read = function(data) { this.buffer = this.buffer.concat(data); var size = this.payloadSize( this.buffer ); while ( size > 0 && this.buffer.length >= ( 6 + size ) ) { this.consumeOne( size ); size = this...
Patch parseInt usage to specify radix explicitly
Patch parseInt usage to specify radix explicitly My node install informed me that parseInt('000039') === 3, so: womp womp. This commit also avoids a couple of globals.
JavaScript
bsd-3-clause
noam-io/lemma-javascript,noam-io/lemma-javascript
3a02688886a40dbb922c034811bbdf5399c06929
src/app/wegas.js
src/app/wegas.js
var ServiceURL = "/api/"; angular.module('Wegas', [ 'ui.router', 'wegas.service.auth', 'wegas.behaviours.tools', 'public', 'private' ]) .config(function ($stateProvider, $urlRouterProvider) { $stateProvider .state('wegas', { url: '/', views: { 'mai...
var ServiceURL = "/api/"; angular.module('Wegas', [ 'ui.router', 'ngAnimate', 'wegas.service.auth', 'wegas.behaviours.tools', 'public', 'private' ]) .config(function ($stateProvider, $urlRouterProvider) { $stateProvider .state('wegas', { url: '/', views: { ...
Resolve conflict - add module ngAnimate
Resolve conflict - add module ngAnimate
JavaScript
mit
Heigvd/Wegas,ghiringh/Wegas,ghiringh/Wegas,Heigvd/Wegas,Heigvd/Wegas,Heigvd/Wegas,Heigvd/Wegas,ghiringh/Wegas
22f07bfd0bd4c2928f6c641ccab91750b0c88f5b
client/lib/convert-to-print/convert-items/paragraphToReact.js
client/lib/convert-to-print/convert-items/paragraphToReact.js
import React from 'react'; function applyProperties(text, properties) { // TODO: support more than 1 property const property = properties[0]; return React.createElement('p', null, [ React.createElement('span', null, text.substring(0, property.offSets.start)), React.createElement(property.type, null, text...
import React from 'react'; function applyProperties(text, properties) { // TODO: support more than 1 property const property = properties[0]; return React.createElement('p', null, [ React.createElement('span', null, text.substring(0, property.offsets.start)), React.createElement(property.type, null, text...
Fix small property rename issue after rebase.
Fix small property rename issue after rebase.
JavaScript
mit
OpenWebslides/OpenWebslides,OpenWebslides/OpenWebslides,OpenWebslides/OpenWebslides,OpenWebslides/OpenWebslides
139065ee61c1c1322879785fe546fc8374a671e2
example/routes.js
example/routes.js
'use strict'; /** * Sets up the routes. * @param {object} app - Express app */ module.exports.setup = function (app) { /** * @swagger * /: * get: * responses: * 200: * description: hello world */ app.get('/', rootHandler); ...
'use strict'; /** * Sets up the routes. * @param {object} app - Express app */ module.exports.setup = function (app) { /** * @swagger * /: * get: * responses: * 200: * description: hello world */ app.get('/', rootHandler); /** * @swa...
Use 2 spaces for deeply nested objects
Use 2 spaces for deeply nested objects
JavaScript
mit
zeornelas/jsdoc-express-with-swagger,zeornelas/jsdoc-express-with-swagger,devlouisc/jsdoc-express-with-swagger,devlouisc/jsdoc-express-with-swagger
371b5cffd0e20c540b01d00076ec38ccc0bda504
spec/leaflet_spec.js
spec/leaflet_spec.js
describe('LeafletMap Ext Component', function() { describe('Basics', function() { var Map = vrs.ux.touch.LeafletMap; it('provides new mapping events', function() { var map = new Map(); expect(map.events.repPicked).toBeDefined(); }); it('provides new mapping events', func...
/* Disable Leaflet for now describe('LeafletMap Ext Component', function() { describe('Basics', function() { var Map = vrs.ux.touch.LeafletMap; it('provides new mapping events', function() { var map = new Map(); expect(map.events.repPicked).toBeDefined(); }); it('provide...
Comment out leaflet test for now since it depends upon manually installing leaflet to a given directory path.
Comment out leaflet test for now since it depends upon manually installing leaflet to a given directory path.
JavaScript
mit
vrsource/vrs.ux.touch,vrsource/vrs.ux.touch,vrsource/vrs.ux.touch,vrsource/vrs.ux.touch
9ab9b55982f39de1b9866ee9ba86e4bbd7d2050d
spec/main/program.js
spec/main/program.js
var test = require('test'); test.assert(require('dot-slash') === 10, 'main with "./"'); test.assert(require('js-ext') === 20, 'main with ".js" extension'); test.assert(require('no-ext') === 30, 'main with no extension'); test.assert(require('dot-js-ext') === 40, 'main with "." in module name and ".js" extension'); te...
var test = require('test'); test.assert(require('dot-slash') === 10, 'main with "./"'); test.assert(require('js-ext') === 20, 'main with ".js" extension'); test.assert(require('no-ext') === 30, 'main with no extension'); test.assert(require('dot-js-ext') === 40, 'main with "." in module name and ".js" extension'); te...
Add test for requiring a package's main module without .js extension
Add test for requiring a package's main module without .js extension
JavaScript
bsd-3-clause
kriskowal/mr,kriskowal/mr
92b65306960142124ca97a6816bd4ce8596714d3
app/js/main.js
app/js/main.js
(function() { 'use strict'; var params = window.location.search.substring(1) .split( '&' ) .reduce(function( object, param ) { var pair = param.split( '=' ).map( decodeURIComponent ); object[ pair[0] ] = pair[1]; return object; }, {} ); var port = params.port || 8080; var host =...
(function() { 'use strict'; var params = window.location.search.substring(1) .split( '&' ) .reduce(function( object, param ) { var pair = param.split( '=' ).map( decodeURIComponent ); object[ pair[0] ] = pair[1]; return object; }, {} ); var port = params.port || 8080; var host =...
Add basic TouchOSC data structures.
Add basic TouchOSC data structures.
JavaScript
mit
razh/osc-dev
ee424745693facc1e23c5896e30a25253c99adab
app/js/tree.js
app/js/tree.js
'use strict'; var MAX = 1000; function Node( number ){ this.number = 0; this.parent = null; this.left = null; this.right = null; this.depth = 0; if( number === undefined ){ this.number = Math.floor((Math.random() * MAX) + 1); } else{ this.number = number; } } func...
'use strict'; var MAX = 1000; function Node( number ){ this.number = 0; this.parent = null; this.left = null; this.right = null; this.depth = 0; if( number === undefined ){ this.number = Math.floor((Math.random() * MAX) + 1); } else{ this.number = number; } } func...
Change left-right for test CI
Change left-right for test CI
JavaScript
mit
takecode/SampleTree
3bfdcb7e7ab642d26498c7b08ec7d014a008c4a6
application.js
application.js
define(['render', 'events', 'class'], function(render, Emitter, clazz) { function Application() { Application.super_.call(this); this.render = render; this.controller = undefined; } clazz.inherits(Application, Emitter); Application.prototype.run = function() { this.willLaun...
define(['render', 'events', 'class'], function(render, Emitter, clazz) { function Application() { Application.super_.call(this); this.render = render; this.controller = undefined; } clazz.inherits(Application, Emitter); Application.prototype.run = function() { this.willLaun...
Fix this context in ready callback.
Fix this context in ready callback.
JavaScript
mit
sailjs/application
c64492441b8bcac86b1dbc29d40fcb84fb31a51a
generators/reducer/index.js
generators/reducer/index.js
'use strict'; let generator = require('yeoman-generator'); let utils = require('generator-react-webpack/utils/all'); let path = require('path'); module.exports = generator.NamedBase.extend({ constructor: function() { generator.NamedBase.apply(this, arguments); }, writing: function() { let baseName = t...
'use strict'; let esprima = require('esprima'); let walk = require('esprima-walk'); let escodegen = require('escodegen'); let generator = require('yeoman-generator'); //let utils = require('generator-react-webpack/utils/all'); let path = require('path'); let fs = require('fs'); module.exports = generator.NamedBase.ext...
Add reducer to root reducer
Add reducer to root reducer
JavaScript
mit
stylesuxx/generator-react-webpack-redux,stylesuxx/generator-react-webpack-redux
f01b2067158e327eec89db536cc34b8976b0f0e8
openfisca_web_ui/static/js/auth.js
openfisca_web_ui/static/js/auth.js
define([ 'jquery' ], function($) { var Auth = function () {}; Auth.prototype = { init: function (authconfig) { navigator.id.watch({ loggedInUser: authconfig.currentUser, onlogin: function (assertion) { $.ajax({ ...
define([ 'jquery' ], function($) { var Auth = function () {}; Auth.prototype = { init: function (authconfig) { navigator.id.watch({ loggedInUser: authconfig.currentUser, onlogin: function (assertion) { $.ajax({ ...
Use new jquery jqXHR API.
Use new jquery jqXHR API.
JavaScript
agpl-3.0
openfisca/openfisca-web-ui,openfisca/openfisca-web-ui,openfisca/openfisca-web-ui
8287ca26fd538a3bc9ec68d0dc6cd81a3ff1cda3
node-server/config.js
node-server/config.js
// Don't commit this file to your public repos. This config is for first-run exports.creds = { mongoose_auth_local: 'mongodb://localhost/tasklist', // Your mongo auth uri goes here audience: 'http://localhost:8888/', // the Audience is the App URL when you registered the application. identityMetadata: ...
// Don't commit this file to your public repos. This config is for first-run exports.creds = { mongoose_auth_local: 'mongodb://localhost/tasklist', // Your mongo auth uri goes here audience: 'http://localhost:8888/', // the Audience is the App URL when you registered the application. identityMetadata: ...
Update back to business scenarios
Update back to business scenarios
JavaScript
apache-2.0
AzureADSamples/WebAPI-Nodejs
3b9144acc0031957a1e824d15597a8605cd0be86
examples/index.js
examples/index.js
import 'bootstrap/dist/css/bootstrap.min.css'; import 'nvd3/build/nv.d3.min.css'; import 'react-select/dist/react-select.min.css'; import 'fixed-data-table/dist/fixed-data-table.min.css'; import ReactDOM from 'react-dom'; import React from 'react'; import customDataHandlers from './customDataHandlers'; import { setting...
import 'bootstrap/dist/css/bootstrap.min.css'; import 'nvd3/build/nv.d3.min.css'; import 'react-select/dist/react-select.min.css'; import 'fixed-data-table/dist/fixed-data-table.min.css'; import ReactDOM from 'react-dom'; import React from 'react'; import customDataHandlers from './customDataHandlers'; import { setting...
Test for jekyll env - 1.1
Test for jekyll env - 1.1
JavaScript
mit
NuCivic/react-dashboard,NuCivic/react-dash,NuCivic/react-dashboard,NuCivic/react-dashboard,NuCivic/react-dash,NuCivic/react-dash
bc97c558b40592bbec42753baf72911f59bc8da6
src/DataProcessor.js
src/DataProcessor.js
export default class DataProcessor { static dataToPoints(data, width, height, limit) { if (limit && limit < data.length) { data = data.slice(data.length - limit); } let max = this.max(data); let min = this.min(data); let vfactor = height / (max - min); ...
export default class DataProcessor { static dataToPoints(data, width, height, limit) { if (limit && limit < data.length) { data = data.slice(data.length - limit); } let max = this.max(data); let min = this.min(data); let vfactor = height / (max - min); ...
Add calcualtion for standard deviation
Add calcualtion for standard deviation
JavaScript
mit
timoxley/react-sparklines,codevlabs/react-sparklines,Jonekee/react-sparklines,okonet/react-sparklines,samsface/react-sparklines,goodeggs/react-sparklines,kidaa/react-sparklines,shaunstanislaus/react-sparklines,rkichenama/react-sparklines,DigitalCoder/react-sparklines,geminiyellow/react-sparklines,rkichenama/react-spark...
4e2ac67d7fc85ec38bc9404a350fcb2126fb0511
_config/task.local-server.js
_config/task.local-server.js
/* jshint node: true */ 'use strict'; function getTaskConfig(projectConfig) { var taskConfig = { server: { baseDir: taskConfig.baseDir } }; return taskConfig; } module.exports = getTaskConfig;
/* jshint node: true */ 'use strict'; function getTaskConfig(projectConfig) { //Browser Sync options object //https://www.browsersync.io/docs/options var taskConfig = { //Server config options server: { baseDir: projectConfig.dirs.build, // directory: true, // directory listing // index: "index.htm",...
Add base browser sync config options
feat: Add base browser sync config options
JavaScript
mit
cartridge/cartridge-local-server
53b5893362dfe65bb47e6824a171b9ede1c5f1da
src/Web/Firebase/Authentication/Eff.js
src/Web/Firebase/Authentication/Eff.js
'use strict'; // module Web.Firebase.Authentication.Eff exports._onAuth = function (callback, firebase) { var cbEffect = function(data) { return cbEffect(data)(); // ensure effect gets used }; return function() { return firebase.onAuth(cbEffect); }; }; exports._authWithOAuthRedirect = function (prov...
'use strict'; // module Web.Firebase.Authentication.Eff exports._onAuth = function (callback, firebase) { var cbEffect = function(data) { return callback(data)(); // ensure effect gets used }; return function() { return firebase.onAuth(cbEffect); }; }; exports._authWithOAuthRedirect = function (prov...
Fix infinite recursion in onAuth
Fix infinite recursion in onAuth
JavaScript
mit
mostalive/purescript-firebase,mostalive/purescript-firebase,mostalive/purescript-firebase
b575a80c0bf801a2b32c35f27cb71ca5fe7a71c6
src/Whoops/Resources/js/whoops.base.js
src/Whoops/Resources/js/whoops.base.js
Zepto(function($) { prettyPrint(); var $frameLines = $('[id^="frame-line-"]'); var $activeLine = $('.frames-container .active'); var $activeFrame = $('.active[id^="frame-code-"]').show(); var $container = $('.details-container'); var headerHeight = $('header').css('height'); var highlightCurrentLine...
Zepto(function($) { prettyPrint(); var $frameLines = $('[id^="frame-line-"]'); var $activeLine = $('.frames-container .active'); var $activeFrame = $('.active[id^="frame-code-"]').show(); var $container = $('.details-container'); var headerHeight = $('header').height(); var highlightCurrentLine = fu...
Use correct header height for scrolling back up.
Use correct header height for scrolling back up.
JavaScript
mit
UnderDogg/whoops,emilkje/whoops,oligriffiths/whoops,emilkje/whoops,stefen/whoops,michabbb-backup/whoops,staabm/whoops,staabm/whoops,michabbb-backup/whoops,UnderDogg/whoops,Vmak11/whoops,filp/whoops,stefen/whoops,Vmak11/whoops,oligriffiths/whoops,nonconforme/whoops,nonconforme/whoops,filp/whoops
894ac7126415d351ae03c93387bb96436d911044
website/src/app/global.components/mc-show-sample.component.js
website/src/app/global.components/mc-show-sample.component.js
class MCShowSampleComponentController { /*@ngInject*/ constructor($stateParams, samplesService, toast, $mdDialog) { this.projectId = $stateParams.project_id; this.samplesService = samplesService; this.toast = toast; this.$mdDialog = $mdDialog; this.viewHeight = this.viewH...
class MCShowSampleComponentController { /*@ngInject*/ constructor($stateParams, samplesService, toast, $mdDialog) { this.projectId = $stateParams.project_id; this.samplesService = samplesService; this.toast = toast; this.$mdDialog = $mdDialog; this.viewHeight = this.viewH...
Remove if(this.viewHeight){} since block is empty.
Remove if(this.viewHeight){} since block is empty.
JavaScript
mit
materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org
b948fe73af2929c0d8a8665eacdaf2de1a94637e
lib/createMockCouchAdapter.js
lib/createMockCouchAdapter.js
var express = require('express'); function createMethodWrapper(app, verb) { var original = app[verb]; return function (route, handler) { var hasSentResponse = false; original.call(app, route, function (req, res, next) { handler(req, { setHeader: function () { ...
var express = require('express'); function createMethodWrapper(app, verb) { var original = app[verb]; return function (route, handler) { original.call(app, route, function (req, res, next) { // must be places here in order that it is cleared on every request var hasSentResponse...
Fix bug where hasSentResponse would not be reset stalling further requests.
Fix bug where hasSentResponse would not be reset stalling further requests.
JavaScript
bsd-3-clause
alexjeffburke/unexpected-couchdb
21e4abd8902165863e0d9acd49b4402f5341ed15
src/client/gravatar-image-retriever.js
src/client/gravatar-image-retriever.js
import md5 from 'md5'; export default class GravatarImageRetriever { constructor(picturePxSize) { this.picturePxSize = picturePxSize; } getImageUrl(email) { // https://en.gravatar.com/site/implement/hash/ if (email) { // https://en.gravatar.com/site/implement/images/ // https://github.co...
import md5 from 'md5'; export default class GravatarImageRetriever { constructor(picturePxSize) { this.picturePxSize = picturePxSize; } getImageUrl(email) { // https://en.gravatar.com/site/implement/hash/ if (email) { // https://en.gravatar.com/site/implement/images/ return `https://www....
Remove comment, project using md5 package not blueimp-md5
Remove comment, project using md5 package not blueimp-md5
JavaScript
mit
ritterim/star-orgs,ritterim/star-orgs
4f8eee87a64f675a4f33ff006cf2f059a47d6267
app/assets/javascripts/application.js
app/assets/javascripts/application.js
'use strict'; $(document).ready(() => { $('.new').click((event) => { event.preventDefault(); }); // This is a manifest file that'll be compiled into application.js, which will include all the files // listed below. // // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/j...
$(document).ready(function() { $('.new').on('click', function(event) { event.preventDefault(); var $link = $(this); var route = $link.attr('href'); var ajaxRequest = $.ajax({ method: 'GET', url: route }); ajaxRequest.done(function(data) { $('.posts').prepend(data); }); }); }); // This is a...
Build ajax request for new snippet form
Build ajax request for new snippet form
JavaScript
mit
dshaps10/snippet,dshaps10/snippet,dshaps10/snippet
70f438378cbadf23f176d5d8bfc1272f1e06a1ad
app/components/SearchResults/index.js
app/components/SearchResults/index.js
import React, { PropTypes } from 'react'; import './index.css'; const SearchResults = React.createClass({ propTypes: { displayOptions: PropTypes.object.isRequired, }, render() { const { options, selectionIndex, onOptionSelected } = this.props; return ( <div className="SearchResults"> ...
import React, { PropTypes } from 'react'; import './index.css'; const SearchResults = React.createClass({ propTypes: { displayOptions: PropTypes.object.isRequired, }, render() { const { options, selectionIndex, onOptionSelected } = this.props; return ( <div className="SearchResults"> ...
Add key to list item
Add key to list item
JavaScript
mit
waagsociety/tnl-relationizer,transparantnederland/relationizer,transparantnederland/browser,transparantnederland/relationizer,transparantnederland/browser,waagsociety/tnl-relationizer
248f547f7fe9c9cfab0d76088fb188ac379ab2fb
gulpfile.babel.js
gulpfile.babel.js
import gulp from 'gulp'; import requireDir from 'require-dir'; import runSequence from 'run-sequence'; // Require individual tasks requireDir('./gulp/tasks', { recurse: true }); gulp.task('default', ['dev']); gulp.task('dev', () => runSequence('clean', 'set-development', 'set-watch-js', [ 'i18n', 'copy-sta...
import gulp from 'gulp'; import requireDir from 'require-dir'; import runSequence from 'run-sequence'; // Require individual tasks requireDir('./gulp/tasks', { recurse: true }); gulp.task('default', ['dev']); gulp.task('dev', () => runSequence('clean', 'set-development', 'set-watch-js', [ 'i18n', 'copy-sta...
Fix styl/img watching in gulp tasks
Fix styl/img watching in gulp tasks
JavaScript
mit
MusikAnimal/WikiEduDashboard,Wowu/WikiEduDashboard,MusikAnimal/WikiEduDashboard,KarmaHater/WikiEduDashboard,KarmaHater/WikiEduDashboard,alpha721/WikiEduDashboard,WikiEducationFoundation/WikiEduDashboard,majakomel/WikiEduDashboard,Wowu/WikiEduDashboard,majakomel/WikiEduDashboard,Wowu/WikiEduDashboard,WikiEducationFounda...
11329fe25bb2242ecd27745f7b712ce37c0030e4
src/lib/timer.js
src/lib/timer.js
const moment = require('moment'); function Timer(element) { this.element = element; this.secondsElapsed = 0; } Timer.prototype = { start: function() { var self = this; self.timerId = setInterval(function() { self.secondsElapsed++; self.displaySeconds(); }, 1000); }, stop: function()...
const moment = require('moment'); function Timer(element) { this.element = element; this.secondsElapsed = 0; } Timer.prototype = { start: function() { var self = this; self.timerId = setInterval(function() { self.secondsElapsed++; self.displaySeconds(); }, 1000); }, stop: function()...
Add a reset method to the Timer class.
Add a reset method to the Timer class. Refs #9.
JavaScript
mpl-2.0
jwir3/minuteman,jwir3/minuteman
5f56c522c4d3b2981e6d10b99bbe065e85d37ac4
client/src/js/files/components/File.js
client/src/js/files/components/File.js
import React from "react"; import PropTypes from "prop-types"; import { Col, Row } from "react-bootstrap"; import { byteSize } from "../../utils"; import { Icon, ListGroupItem, RelativeTime } from "../../base"; export default class File extends React.Component { static propTypes = { id: PropTypes.string,...
import React from "react"; import PropTypes from "prop-types"; import { Col, Row } from "react-bootstrap"; import { byteSize } from "../../utils"; import { Icon, ListGroupItem, RelativeTime } from "../../base"; export default class File extends React.Component { static propTypes = { id: PropTypes.string,...
Fix file size prop warning
Fix file size prop warning
JavaScript
mit
virtool/virtool,igboyes/virtool,virtool/virtool,igboyes/virtool
5da4c6e6ad78987f74a073ba5316a299071c0006
src/components/Time.js
src/components/Time.js
import React, { PropTypes, Component } from 'react' import moment from 'moment' import eventActions from '../actions/eventActionCreators' const TIME_INIT = moment('2190-07-02').utc() const DELAY = 250 class Time extends Component { componentWillMount () { this.setState({ time: TIME_INIT }) } componentDidM...
import React, { PropTypes, Component } from 'react' import moment from 'moment' import eventActions from '../actions/eventActionCreators' const TIME_INIT = moment('2190-07-02').utc() const DELAY = 1000 class Time extends Component { componentWillMount () { this.setState({ time: TIME_INIT }) } componentDid...
Change time frequency: one virtual day per second
Change time frequency: one virtual day per second
JavaScript
mit
albertoblaz/lord-commander,albertoblaz/lord-commander
65bfe55ca0448dc941739deea117347798807fc9
app/assets/javascripts/patient_auto_complete.js
app/assets/javascripts/patient_auto_complete.js
$(document).ready(function() { $("[data-autocomplete-source]").each(function() { var url = $(this).data("autocomplete-source"); var target = $(this).data("autocomplete-rel"); $(this).autocomplete({ minLength: 2, source: function(request,response) { var path = url + "?term=" + request.t...
$(document).ready(function() { $("[data-autocomplete-source]").each(function() { var url = $(this).data("autocomplete-source"); var target = $(this).data("autocomplete-rel"); $(this).autocomplete({ minLength: 2, source: function(request,response) { $.ajax({ url: url, ...
Handle error if autocomplete query fails
Handle error if autocomplete query fails
JavaScript
mit
airslie/renalware-core,airslie/renalware-core,airslie/renalware-core,airslie/renalware-core
cf3200a37bf58f26cf8ffe9f8650bd9d39bffbc5
Gruntfile.js
Gruntfile.js
module.exports = function(grunt) { grunt.loadNpmTasks("grunt-mocha-test"); grunt.loadNpmTasks("grunt-mocha-istanbul"); var testOutputLocation = process.env.CIRCLE_TEST_REPORTS || "test_output"; var artifactsLocation = process.env.CIRCLE_ARTIFACTS || "build_artifacts"; grunt.initConfig({ moc...
module.exports = function(grunt) { grunt.loadNpmTasks("grunt-mocha-test"); grunt.loadNpmTasks("grunt-mocha-istanbul"); var testOutputLocation = process.env.CIRCLE_TEST_REPORTS || "test_output"; var artifactsLocation = process.env.CIRCLE_ARTIFACTS || "build_artifacts"; grunt.initConfig({ moc...
Change artifact location to suite CircleCI
Change artifact location to suite CircleCI
JavaScript
mit
JMiknys/todo-grad-project-justas,JMiknys/todo-grad-project-justas
a0aa49e9d906a644f8eae3ae85bb83a1d7bbcdde
packages/lesswrong/components/recommendations/withContinueReading.js
packages/lesswrong/components/recommendations/withContinueReading.js
import gql from 'graphql-tag'; import { graphql } from 'react-apollo'; import { getFragment } from 'meteor/vulcan:core'; export const withContinueReading = component => { // FIXME: For some unclear reason, using a ...fragment in the 'sequence' part // of this query doesn't work (leads to a 400 Bad Request), so thi...
import gql from 'graphql-tag'; import { graphql } from 'react-apollo'; import { getFragment } from 'meteor/vulcan:core'; export const withContinueReading = component => { // FIXME: For some unclear reason, using a ...fragment in the 'sequence' part // of this query doesn't work (leads to a 400 Bad Request), so thi...
Add gridImageId to continueReading fragments
Add gridImageId to continueReading fragments
JavaScript
mit
Discordius/Telescope,Discordius/Telescope,Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Telescope,Discordius/Telescope
d48742aa5a3002b347cf284ea28777a91d300f1b
client/app/components/components.js
client/app/components/components.js
import angular from 'angular'; import Dogs from './dogs/dogs'; import DogProfile from './dog-profile/dog-profile'; import Users from './users/users'; import DogPost from './dog-post/dog-post'; import UserPost from './user-post/user-post'; let componentModule = angular.module('app.components', [ Dogs, Users, DogP...
import angular from 'angular'; import Auth from './auth/auth'; import Signup from './signup/signup'; import Dogs from './dogs/dogs'; import DogProfile from './dog-profile/dog-profile'; import Users from './users/users'; import DogPost from './dog-post/dog-post'; import UserPost from './user-post/user-post'; let compon...
Add to auth and signup component
Add to auth and signup component
JavaScript
apache-2.0
nickpeleh/dogs-book,nickpeleh/dogs-book
c343c6ee7fb3c2f545b082c06c21f3fbb93a4585
src/extension/index.js
src/extension/index.js
import { setupTokenEditor, setTokenEditorValue, useDefaultToken } from '../editor'; import { getParameterByName } from '../utils.js'; import { publicKeyTextArea } from './dom-elements.js'; /* For initialization, look at the end of this file */ function parseLocationQuery() { const publicKey = getParameterByNa...
import { setupTokenEditor, setTokenEditorValue, useDefaultToken } from '../editor'; import { publicKeyTextArea } from './dom-elements.js'; /* For initialization, look at the end of this file */ function loadToken() { const lastToken = localStorage.getItem('lastToken'); if(lastToken) { setTokenEditorValu...
Remove unnecessary code for the extension.
Remove unnecessary code for the extension.
JavaScript
mit
nov/jsonwebtoken.github.io,simo5/jsonwebtoken.github.io,simo5/jsonwebtoken.github.io,nov/jsonwebtoken.github.io
8afb86988829ead1404efdfa4bccf77fb983a08e
Gruntfile.js
Gruntfile.js
module.exports = function(grunt) { grunt.registerTask("default", ["test-server", "test-client"]); grunt.registerTask("test-client", function() { var done = this.async(); grunt.util.spawn({cmd: "node", opts: {stdio: 'inherit'}, args: ["test/testee/client"]}); grunt.util.spawn({cmd: "node"...
module.exports = function(grunt) { grunt.registerTask("default", ["test-server", "test-client"]); grunt.registerTask("test-client", function() { var done = this.async(); grunt.util.spawn({cmd: "node", opts: {stdio: 'inherit'}, args: ["test/testee/client"]}); grunt.util.spawn({cmd: "node"...
Change mocha's reporter type to spec
Change mocha's reporter type to spec
JavaScript
apache-2.0
vibe-project/vibe-protocol
a8dc6903bbeb207b63fcde2f318501d27052ec07
js/background.js
js/background.js
chrome.tabs.onCreated.addListener(function(tab) { console.log("Tab Created", tab); }); chrome.tabs.onUpdated.addListener(function(tabId, changeInfo, tab) { console.log("Tab changed: #" + tabId, changeInfo, tab ); }); chrome.browserAction.onClicked.addListener(function() { console.log("Browser action clicked!"); })...
chrome.tabs.onCreated.addListener(function(tab) { console.log("Tab Created", tab); }); chrome.tabs.onUpdated.addListener(function(tabId, changeInfo, tab) { console.log("Tab changed: #" + tabId, changeInfo, tab ); }); chrome.storage.sync.get(null, function(items) { console.log("All items in synced storage", items )...
Set of generic functions to test the chrome.* APIs
Set of generic functions to test the chrome.* APIs
JavaScript
bsd-3-clause
rex/BANTP
d8a2c541823fad0a5d1458a08e991ca4cc7fd216
Gruntfile.js
Gruntfile.js
'use strict'; module.exports = function(grunt) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), jshint: { allFiles: ['gruntfile.js', 'lib/**/*.js', 'test/**/*.js'], options: { jshintrc: '.jshintrc', } }, mochacli: { ...
'use strict'; module.exports = function(grunt) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), jshint: { allFiles: ['gruntfile.js', 'lib/**/*.js', 'test/**/*.js'], options: { jshintrc: '.jshintrc', } }, mochacli: { ...
Adjust limits to meet what we have currently
Adjust limits to meet what we have currently
JavaScript
apache-2.0
xmpp-ftw/xmpp-ftw
2c001cfd50d80bae25de6adce09a11926de9a991
Gruntfile.js
Gruntfile.js
module.exports = function (grunt) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), clean: ['.tmp'], babel: { options: { sourceMap: true }, dist: { files: { 'dist/index.js': 'src/index.js' } }, test: {...
module.exports = function (grunt) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), clean: ['.tmp'], babel: { options: { sourceMap: true }, dist: { files: { 'dist/index.js': 'src/index.js' } }, test: {...
Add bail option to mochacli to halt on the first failed test.
Add bail option to mochacli to halt on the first failed test.
JavaScript
mit
khornberg/simplenote
c8656f406dcefc83c8eec14a6607c7f334f37607
Gruntfile.js
Gruntfile.js
/* * generator-init * https://github.com/use-init/generator-init * */ 'use strict'; module.exports = function (grunt) { // Load all grunt tasks matching the `grunt-*` pattern. require('load-grunt-tasks')(grunt); // Project configuration. grunt.initConfig({ jshint: { all: [ 'Gruntfile.js...
/* * generator-init * https://github.com/use-init/generator-init * */ 'use strict'; module.exports = function (grunt) { // Load all grunt tasks matching the `grunt-*` pattern. require('load-grunt-tasks')(grunt); // Project configuration. grunt.initConfig({ jshint: { all: [ 'Gruntfile.js...
Add all JS files to JSHint
Add all JS files to JSHint
JavaScript
mit
use-init/generator-init,use-init/generator-init
b3138e99e44b96027ed4d1d3ffdc146d49bb52d2
Gruntfile.js
Gruntfile.js
module.exports = function(grunt) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), // the package file to use qunit: { // internal task or name of a plugin (like "qunit") all: ['js/tests/*.html'] }, watch: { files: [ 'js/tests/*.j...
module.exports = function(grunt) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), // the package file to use qunit: { // internal task or name of a plugin (like "qunit") all: ['js/tests/*.html'] }, watch: { files: [ 'js/tests/*.j...
Fix warning, add assignment operator
Fix warning, add assignment operator
JavaScript
bsd-2-clause
rtfb/rtfblog,rtfb/rtfblog,rtfb/rtfblog,rtfb/rtfblog,rtfb/rtfblog