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
cd4c98d937e07c4d7c7d0750509cac40e1f1ffc3
src/components/videos/VideoView.js
src/components/videos/VideoView.js
import React from 'react' import { connect } from 'react-redux' import { compose } from 'recompose' import { updateVideo } from '../../actions/videos' import { withDatabaseSubscribe } from '../hocs' import CommentList from '../CommentList' import PerformanceFrame from '../PerformanceFrame' const mapStateToProps = (...
import * as _ from 'lodash' import React from 'react' import {connect} from 'react-redux' import {compose, withProps} from 'recompose' import {updateVideo} from '../../actions/videos' import CommentList from '../CommentList' import {withDatabaseSubscribe} from '../hocs' const mapStateToProps = ({videos}) => ({ vi...
Fix video view and remove some sub components
Fix video view and remove some sub components - Fixes #28
JavaScript
mit
mg4tv/mg4tv-web,mg4tv/mg4tv-web
2d9fe3d781899e9d2a4fbe4d49c71fdcfeba3808
Server/Models/usersModel.js
Server/Models/usersModel.js
const mongoose = require('mongoose'); const Schema = mongoose.Schema var userSchema = new Schema({ name: {type: String, required: true}, photo: {type: String, required: true}, email: {type: String, required: true, unique: true}, fbId: {type: String}, fbAccessToken: {type: String}, googleId: {t...
const mongoose = require('mongoose'); const Schema = mongoose.Schema var userSchema = new Schema({ name: {type: String, required: true}, photo: {type: String, required: true}, email: {type: String, required: true, unique: true}, fbId: {type: String}, fbAccessToken: {type: String}, googleId: {t...
Adjust user model to populate locations correctly
Adjust user model to populate locations correctly
JavaScript
mit
JabroniZambonis/pLot
a4443b203db029fe5ee7df682ca372259b3e4f1c
models/index.js
models/index.js
'use strict'; var mongoose = require('mongoose'); mongoose.model('User', require('./User')); mongoose.connect("mongodb://localhost/passport-lesson"); module.exports = mongoose;
'use strict'; var mongoose = require('mongoose'); mongoose.Promise = Promise; mongoose.model('User', require('./User')); mongoose.connect("mongodb://localhost/passport-lesson"); module.exports = mongoose;
Set mongoose to use native promises
Set mongoose to use native promises
JavaScript
mit
dhuddell/teachers-lounge-back-end
e850a2ce6a17813c537f71807a26d42c4e0165db
2015-03-MHVLUG/webapp/webapp.js
2015-03-MHVLUG/webapp/webapp.js
// simple-todos.js // TODO: Add tasks from console to populate collection // On Server: // db.tasks.insert({ text: "Hello world!", createdAt: new Date() }); // On Client: // Tasks.insert({ text: "Hello world!", createdAt: new Date() }); Tasks = new Mongo.Collection("tasks"); if (Meteor.isClient) { // This code onl...
// simple-todos.js // TODO: Add tasks from console to populate collection // On Server: // db.tasks.insert({ text: "Hello world!", createdAt: new Date() }); // On Client: // Tasks.insert({ text: "Hello world!", createdAt: new Date() }); Tasks = new Mongo.Collection("tasks"); if (Meteor.isClient) { // This code onl...
Sort tasks by createdAt timestamp
WebApp-4b: Sort tasks by createdAt timestamp
JavaScript
apache-2.0
MeteorHudsonValley/talks,MeteorHudsonValley/talks
687fcbb285430d6d4df0758ef2eab4a048ab7f07
docs/config.js
docs/config.js
self.$config = { landing: false, debug: false, repo: 'soruly/whatanime.ga', twitter: 'soruly', url: 'https://whatanime.ga', sidebar: false, disableSidebarToggle: true, nav: { default: [] }, icons: [], plugins: [] }
self.$config = { landing: false, debug: false, repo: 'soruly/whatanime.ga', twitter: 'soruly', url: 'https://whatanime.ga', sidebar: true, disableSidebarToggle: false, nav: { default: [] }, icons: [], plugins: [] }
Enable sidebar on API docs
Enable sidebar on API docs
JavaScript
mit
soruly/whatanime.ga,soruly/whatanime.ga,soruly/whatanime.ga
07ec1f9de2c8a5233bdafbc0a16b606520ee1be8
js/webpack.config.js
js/webpack.config.js
var loaders = [ { test: /\.json$/, loader: "json-loader" }, ]; module.exports = [ {// Notebook extension entry: './src/extension.js', output: { filename: 'extension.js', path: '../pythreejs/static', libraryTarget: 'amd' } }, {// bqplot bundle ...
var loaders = [ { test: /\.json$/, loader: "json-loader" }, ]; module.exports = [ {// Notebook extension entry: './src/extension.js', output: { filename: 'extension.js', path: '../pythreejs/static', libraryTarget: 'amd' } }, {// bqplot bundle ...
Use new scheme for npmcdn
Use new scheme for npmcdn
JavaScript
bsd-3-clause
jasongrout/pythreejs,jasongrout/pythreejs
1887b3c7024779ebb8873277b2472dbe9141d0f5
server/controllers/signup.js
server/controllers/signup.js
// SignupController // ================ // Handles routing for signing up for the pp 'use strict'; let express = require('express'), SignupController = express.Router(), bcrypt = require('bcrypt'), User = require(__dirname + '/../models/user'); SignupController.route('/...
// SignupController // ================ // Handles routing for signing up for the pp 'use strict'; let express = require('express'), SignupController = express.Router(), bcrypt = require('bcrypt'), User = require(__dirname + '/../models/user'); SignupController.route('/...
Fix issue where users were not saving to the database.
Fix issue where users were not saving to the database. We use .fetchAll() rather than .fetch() to find all instances of a user. Added auto-timestamp functionality so all create and update times are automatically marked with no manual intervention needed.
JavaScript
mit
billpatrianakos/coverage-web,billpatrianakos/coverage-web,billpatrianakos/coverage-web
40350431927e12b74874ebf17b761535cccc76c5
src/features/spellchecker/index.js
src/features/spellchecker/index.js
import { autorun, observable } from 'mobx'; import { DEFAULT_FEATURES_CONFIG } from '../../config'; const debug = require('debug')('Franz:feature:spellchecker'); export const config = observable({ isIncludedInCurrentPlan: DEFAULT_FEATURES_CONFIG.isSpellcheckerIncludedInCurrentPlan, }); export default function ini...
import { autorun, observable } from 'mobx'; import { DEFAULT_FEATURES_CONFIG } from '../../config'; const debug = require('debug')('Franz:feature:spellchecker'); export const config = observable({ isIncludedInCurrentPlan: DEFAULT_FEATURES_CONFIG.isSpellcheckerIncludedInCurrentPlan, }); export default function ini...
Fix disabling spellchecker after app start
fix(Spellchecker): Fix disabling spellchecker after app start
JavaScript
apache-2.0
meetfranz/franz,meetfranz/franz,meetfranz/franz
c9ee70bdc817e010bd00468bac99daf236035e2e
src/frontend/pages/Logout/index.js
src/frontend/pages/Logout/index.js
// @flow import * as React from 'react' import { Redirect } from 'react-router-dom' import performLogout from 'frontend/firebase/logout' class Logout extends React.Component<*> { componentDidMount() { performLogout() } render() { return <Redirect to="/" /> } } export default Logout
// @flow import * as React from 'react' import { connect } from 'react-redux' import { Redirect } from 'react-router-dom' import { USER_LOGGED_OUT } from 'frontend/actions/types' import performLogout from 'frontend/firebase/logout' type Props = { logout: Function } class Logout extends React.Component<Props> { com...
Clear user login state in Redux on logout.
Clear user login state in Redux on logout.
JavaScript
mit
jsonnull/aleamancer,jsonnull/aleamancer
682c1bc6ec836f3a16543845444aafabafa788f9
lib/unexpectedExif.js
lib/unexpectedExif.js
/*global Uint8Array*/ var exifParser = require('exif-parser'), fs = require('fs'); module.exports = { name: 'unexpected-exif', version: require('../package.json').version, installInto: function (expect) { expect.installPlugin(require('magicpen-media')); expect.addAssertion(['string', '...
/*global Uint8Array*/ var exifParser = require('exif-parser'), fs = require('fs'); module.exports = { name: 'unexpected-exif', version: require('../package.json').version, installInto: function (expect) { expect.installPlugin(require('magicpen-media')); expect.addAssertion('<string|Buf...
Update to unexpected v10's addAssertion syntax .
Update to unexpected v10's addAssertion syntax [ci skip].
JavaScript
bsd-3-clause
unexpectedjs/unexpected-exif
5fc74d690fcf059940d7449bce11ec6b56b73eb2
lib/process-manager.js
lib/process-manager.js
/** @babel */ import childProcess from 'child_process' import kill from 'tree-kill' import { Disposable } from 'atom' export default class ProcessManager extends Disposable { processes = new Set() constructor () { super(() => this.killChildProcesses()) } executeChildProcess (command, options = {}) { ...
/** @babel */ import childProcess from 'child_process' import kill from 'tree-kill' import { Disposable } from 'atom' export default class ProcessManager extends Disposable { processes = new Set() constructor () { super(() => this.killChildProcesses()) } executeChildProcess (command, options = {}) { ...
Add guard to process error log
Add guard to process error log In case process is still running when package is disabled.
JavaScript
mit
thomasjo/atom-latex,thomasjo/atom-latex,thomasjo/atom-latex
754eafc1736174f00d9d7b1ceb8df1b20af66417
app/soc/content/js/templates/modules/gsoc/_survey.js
app/soc/content/js/templates/modules/gsoc/_survey.js
/* Copyright 2011 the Melange authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed...
/* Copyright 2011 the Melange authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed...
Make the skeleton survey JS compatible with the new JS templates.
Make the skeleton survey JS compatible with the new JS templates.
JavaScript
apache-2.0
rhyolight/nupic.son,rhyolight/nupic.son,rhyolight/nupic.son
f6e40afb28c93c3b537d73d2313fc2bf17e7548f
src/build.js
src/build.js
import fs from 'fs' import postcss from 'postcss' import tailwind from '..' import CleanCSS from 'clean-css' function buildDistFile(filename) { return new Promise((resolve, reject) => { console.log(`Processing ./${filename}.css...`) fs.readFile(`./${filename}.css`, (err, css) => { if (err) throw err ...
import fs from 'fs' import postcss from 'postcss' import tailwind from '..' import CleanCSS from 'clean-css' function buildDistFile(filename) { return new Promise((resolve, reject) => { console.log(`Processing ./${filename}.css...`) fs.readFile(`./${filename}.css`, (err, css) => { if (err) throw err ...
Build base instead of preflight
Build base instead of preflight
JavaScript
mit
tailwindlabs/tailwindcss,tailwindlabs/tailwindcss,tailwindcss/tailwindcss,tailwindlabs/tailwindcss
6d0946dd4d0746486bc0290e65df86ead40337dd
lib/wait-for-socket.js
lib/wait-for-socket.js
'use strict'; var net = require('net'), utils = require('radiodan-client').utils, logger = utils.logger(__filename); function create(port, socket) { var deferred = utils.promise.defer(), retries = 0, timeout = 1000; socket = socket || new net.Socket(); socket.setTimeout(2500); fun...
'use strict'; var net = require('net'), utils = require('radiodan-client').utils, logger = utils.logger(__filename); function create(port, socket) { var deferred = utils.promise.defer(), retries = 0, timeout = 1000; socket = socket || new net.Socket(); socket.setTimeout(2500); fun...
Increment `retries` variable in a way that pleases `jshint`.
Increment `retries` variable in a way that pleases `jshint`.
JavaScript
apache-2.0
radiodan/radiodan.js,radiodan/radiodan.js
1e7ce40caa9255e40bfabfc8c9238cae159d562a
migrations/1_add_paths.js
migrations/1_add_paths.js
'use strict'; exports.up = function(knex, Promise) { return knex.schema. createTable('paths', function (t) { t.increments('id'); t.text('curator').notNullable(); t.text('curator_org'); t.specificType('collaborators', 'text[]'); t.text('name').notNullable(); t.text('description...
'use strict'; exports.up = function(knex, Promise) { return knex.schema. createTable('paths', function (t) { t.increments('id'); t.text('curator').notNullable(); t.text('curator_org'); t.specificType('collaborators', 'text[]'); t.text('name').notNullable(); t.text('description...
Update keyword and asset_url fields to accept arrays.
Update keyword and asset_url fields to accept arrays. Resolves #16
JavaScript
mit
coding-the-humanities/unacademic_backend,coding-the-humanities/unacademic_backend
3a7bad8761e57ec39100f780360908de036be3f2
models/InternalNote.js
models/InternalNote.js
var keystone = require('keystone'), Types = keystone.Field.Types; // Create model. Additional options allow menu name to be used what auto-generating URLs var InternalNotes = new keystone.List('Internal Note', { track: true, autokey: { path: 'key', from: 'slug', unique: true }, defaultSort: 'date' }); ...
var keystone = require('keystone'), Types = keystone.Field.Types; // Create model. Additional options allow menu name to be used what auto-generating URLs var InternalNotes = new keystone.List('Internal Note', { track: true, autokey: { path: 'key', from: 'slug', unique: true }, defaultSort: 'date' }); ...
Fix a bad reference value in the Internal Note model.
Fix a bad reference value in the Internal Note model.
JavaScript
mit
autoboxer/MARE,autoboxer/MARE
2be619f254bf2794346c2482f16666b3670182ca
src/index.js
src/index.js
define([ "less!src/stylesheets/main.less" ], function() { var manager = new codebox.tabs.Manager(); // Add tabs to grid codebox.app.grid.addView(manager, { width: 20 }); // Render the tabs manager manager.render(); // Make the tab manager global codebox.panels = manager; }...
define([ "less!src/stylesheets/main.less" ], function() { var manager = new codebox.tabs.Manager(); // Add tabs to grid codebox.app.grid.addView(manager, { width: 20, at: 0 }); // Render the tabs manager manager.render(); // Make the tab manager global codebox.pane...
Add at first position in grid
Add at first position in grid
JavaScript
apache-2.0
CodeboxIDE/package-panels,etopian/codebox-package-panels
2af8c1d2919d0cbe9dd92c28058d0bd199d08836
src/index.js
src/index.js
#!/usr/bin/env node var argv = process.argv.splice(2) var log = require('./helpers/log.js') var whitelist = ['build', 'run', 'test', 'lint', 'setup'] if (argv.length === 0 || argv[0] === 'help') { console.log('abc [command]\n\nCommands:') console.log(' build Compiles the source files from src/ into a b...
#!/usr/bin/env node var argv = process.argv.splice(2) var log = require('./helpers/log.js') var whitelist = ['build', 'run', 'test', 'lint', 'setup'] if (argv.length === 0 || argv[0] === 'help') { console.log('abc [command]') console.log('') console.log('Commands:') console.log(' setup Creates the ...
Remove whitespace & use same order as in readme
Remove whitespace & use same order as in readme
JavaScript
mit
queicherius/abc-environment,queicherius/abc-environment
b390a49f0ff94cb6944623e467383af4d0f436b7
src/index.js
src/index.js
module.exports = function mutableProxyFactory(defaultTarget) { let mutableHandler; let mutableTarget; function setTarget(target) { if (!(target instanceof Object)) { throw new Error(`Target "${target}" is not an object`); } mutableTarget = target; } function setHandler(handler) { Objec...
module.exports = function mutableProxyFactory(defaultTarget) { let mutableHandler; let mutableTarget; function setTarget(target) { if (!(target instanceof Object)) { throw new Error(`Target "${target}" is not an object`); } mutableTarget = target; } function setHandler(handler) { Objec...
Revert proxy handler change for coverage
Revert proxy handler change for coverage
JavaScript
mit
Griffingj/mutable-proxy
f215aeb4e0ff59d2028088349e965e6207f08228
mysite/ct/static/js/ct.js
mysite/ct/static/js/ct.js
function setInterest(targeturl, state, csrftoken) { $.post(targeturl, { csrfmiddlewaretoken:csrftoken, state:state }); } function toggleInterest(o, targeturl, csrftoken) { if (o.value == "1") { o.value="0"; } else { o.value="1"; } setInterest(targeturl, o.value, csrftoken); } $(doc...
function setInterest(targeturl, state, csrftoken) { $.post(targeturl, { csrfmiddlewaretoken:csrftoken, state:state }); } function toggleInterest(o, targeturl, csrftoken) { if (o.value == "1") { o.value="0"; } else { o.value="1"; } setInterest(targeturl, o.value, csrftoken); } $(doc...
Fix for nnumbers to show\hide fields
Fix for nnumbers to show\hide fields
JavaScript
apache-2.0
raccoongang/socraticqs2,raccoongang/socraticqs2,cjlee112/socraticqs2,raccoongang/socraticqs2,raccoongang/socraticqs2,cjlee112/socraticqs2,cjlee112/socraticqs2,cjlee112/socraticqs2
9002c6ea6bf1137afb67d2449e67d63c9cf83c3e
js/models/tag.js
js/models/tag.js
ds.models.tag = function(data) { "use strict"; var storage = {} , self = {} limivorous.observable(self, storage) .property(self, 'id', storage) .property(self, 'href', storage) .property(self, 'name', storage) .property(self, 'description', storage) ...
ds.models.tag = function(data) { "use strict"; var storage = {} , self = {} limivorous.observable(self, storage) .property(self, 'id', storage) .property(self, 'href', storage) .property(self, 'name', storage) .property(self, 'description', storage) ...
Rewrite toJSON to eliminate null values
Rewrite toJSON to eliminate null values
JavaScript
apache-2.0
urbanairship/tessera,section-io/tessera,jmptrader/tessera,tessera-metrics/tessera,jmptrader/tessera,jmptrader/tessera,filippog/tessera,urbanairship/tessera,urbanairship/tessera,urbanairship/tessera,aalpern/tessera,filippog/tessera,tessera-metrics/tessera,filippog/tessera,section-io/tessera,jmptrader/tessera,section-io/...
2567834bb6ae44d6b2834a7d36709d97e166b790
lib/commands/lint.js
lib/commands/lint.js
'use strict' module.exports = function (dep) { let cmd = {} cmd.command = 'lint' cmd.desc = 'Run linters and fix possible code' cmd.handler = function (argv) { let { join, log, process, __rootdirname, gherkinLinter } = dep // Linters const configPath = join(__rootdirname, '/lib/sdk/cucumber/gherki...
'use strict' module.exports = function (dep) { function validate () { let {validation, help} = dep if (!validation.isPatataRootDir()) { help.errorDueRootPath() } } let cmd = {} cmd.command = 'lint' cmd.desc = 'Run linters and fix possible code' cmd.handler = function (argv) { let { j...
Fix bug checking root of project.
Linter: Fix bug checking root of project.
JavaScript
mit
eridem/patata,appersonlabs/patata
6578d26b06121f1e1e87fea267d1e6696b1ddb34
js/scrollback.js
js/scrollback.js
document.addEventListener("wheel", function(e) { if (e.shiftKey && e.deltaX != 0) { window.history.go(-Math.sign(e.deltaX)); return e.preventDefault(); } });
document.addEventListener("wheel", function(e) { if (e.shiftKey && (e.deltaX != 0 || e.deltaY != 0)) { window.history.go(-Math.sign(e.deltaX ? e.deltaX : e.deltaY)); return e.preventDefault(); } });
Fix a problem of deltaX and deltaY
Fix a problem of deltaX and deltaY Signed-off-by: Dongyun Jin <25d657a5cae33e06b1c3348113f358ba8b6c833f@gmail.com>
JavaScript
mit
jezcope/chrome-scroll-back
70785353a9526b56a11f71df0f6f8d40591aeaa4
api/controllers/requests.js
api/controllers/requests.js
var OwerRequestModel = require('../models/requests/owerRequest.js') , error = require('../utils/error.js'); var allOwerRequests = function(req, res) { var facebookId = req.user.facebookId , type = req.query.type; if (type) { if (type === 'received') { conditions.to = facebookId; ...
var OwerRequestModel = require('../models/requests/owerRequest.js') , error = require('../utils/error.js'); var allOwerRequests = function(req, res) { var type = req.query.type; var facebookId; if (req.user && req.user.facebookId) { facebookId = req.user.facebookId; } if (type && facebookI...
Fix admin not being able to access reqs
Fix admin not being able to access reqs
JavaScript
mit
justinsacbibit/omi,justinsacbibit/omi,justinsacbibit/omi
421f01a63ce4446abf5ce8927122fca20e7c6505
app/adapters/application.js
app/adapters/application.js
import LFAdapter from 'ember-localforage-adapter/adapters/localforage'; export default LFAdapter.extend({ namespace: 'expenses', caching: 'model' });
import LFAdapter from 'ember-localforage-adapter/adapters/localforage'; export default LFAdapter.extend({ namespace: 'api', caching: 'model' });
Change adapter namespace to api
refactor: Change adapter namespace to api
JavaScript
mit
pe1te3son/spendings-tracker,pe1te3son/spendings-tracker
347ec3d58a8d30303575d8ac7e5d6bf2ba47dfc6
test/unit.js
test/unit.js
describe('skatejs-web-components', () => { });
import '../src/index'; describe('skatejs-web-components', () => { it('should create a custom element with a shadow root', () => { const Elem = class extends HTMLElement { constructor() { super(); this.attachShadow({ mode: 'open' }); } }; window.customElements.define('x-test', ...
Add test that ensures all V1 APIs exist when the library is imported.
test: Add test that ensures all V1 APIs exist when the library is imported.
JavaScript
mit
skatejs/web-components
86c36fd831a8cacd988ce1b56288200960dd84c1
src/OData.js
src/OData.js
import React, { Component } from 'react'; import Fetch, { renderChildren } from 'react-fetch-component'; import buildQuery from 'odata-query'; function buildUrl(baseUrl, query) { return query !== false && baseUrl + buildQuery(query); } class OData extends Component { render() { const { baseUrl, query, childre...
import React, { Component } from 'react'; import Fetch, { renderChildren } from 'react-fetch-component'; import buildQuery from 'odata-query'; function buildUrl(baseUrl, query) { return query !== false && baseUrl + buildQuery(query); } class OData extends Component { render() { const { baseUrl, query = {}, .....
Use fetchFunction instead of currying functions
Use fetchFunction instead of currying functions
JavaScript
mit
techniq/react-odata
29c1630e2c6597bd5ab9e923ffb0e091f0934bb8
test/bitgo.js
test/bitgo.js
// // Tests for BitGo Object // // Copyright 2014, BitGo, Inc. All Rights Reserved. // var assert = require('assert'); var should = require('should'); var BitGoJS = require('../src/index'); describe('BitGo', function() { describe('methods', function() { it('includes version', function() { var bitgo = n...
// // Tests for BitGo Object // // Copyright 2014, BitGo, Inc. All Rights Reserved. // var assert = require('assert'); var should = require('should'); var BitGoJS = require('../src/index'); describe('BitGo', function() { describe('methods', function() { it('includes version', function() { var bitgo = n...
Add updateTime check to test.
Add updateTime check to test.
JavaScript
apache-2.0
BitGo/BitGoJS,BitGo/BitGoJS,BitGo/BitGoJS,BitGo/BitGoJS
1eaf541f9c88d135ddb5bf6828937a4e6505f688
test/index.js
test/index.js
'use strict'; /* global describe it */ var assert = require('assert'); var flattenObjectStrict = require('../lib'); describe('flatten-object-strict', function() { it('an empty object produces an empty object', function() { assert.deepEqual(flattenObjectStrict({}), {}); }); });
'use strict'; /* global describe it */ var assert = require('assert'); var flattenObjectStrict = require('../lib'); describe('flatten-object-strict', function() { it('an empty object produces an empty object', function() { assert.deepEqual(flattenObjectStrict({}), {}); }); it('a object that\'s already fl...
Add test for flat objects
Add test for flat objects
JavaScript
mit
voltrevo/flatten-object-strict
5fe20444cef17cd889803ecbcb3a7c96b47c47e3
lib/assets/javascripts/cartodb/new_dashboard/entry.js
lib/assets/javascripts/cartodb/new_dashboard/entry.js
var Router = require('new_dashboard/router'); var $ = require('jquery'); var cdb = require('cartodb.js'); var MainView = require('new_dashboard/main_view'); /** * The Holy Dashboard */ $(function() { cdb.init(function() { cdb.templates.namespace = 'cartodb/'; cdb.config.set(config); // import config i...
var Router = require('new_dashboard/router'); var $ = require('jquery'); var cdb = require('cartodb.js'); var MainView = require('new_dashboard/main_view'); /** * The Holy Dashboard */ $(function() { cdb.init(function() { cdb.templates.namespace = 'cartodb/'; cdb.config.set(window.config); // import confi...
Make the config dependency's origin
Make the config dependency's origin Set in global namespace from a script tag rendered by Rails app
JavaScript
bsd-3-clause
splashblot/dronedb,codeandtheory/cartodb,splashblot/dronedb,dbirchak/cartodb,nuxcode/cartodb,UCL-ShippingGroup/cartodb-1,raquel-ucl/cartodb,CartoDB/cartodb,thorncp/cartodb,nuxcode/cartodb,splashblot/dronedb,dbirchak/cartodb,bloomberg/cartodb,splashblot/dronedb,nuxcode/cartodb,UCL-ShippingGroup/cartodb-1,nyimbi/cartodb,...
df8210287256f88244996a4a905c3be2197829bf
aura-impl/src/main/resources/aura/model/Model.js
aura-impl/src/main/resources/aura/model/Model.js
/* * Copyright (C) 2012 salesforce.com, inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable ...
/* * Copyright (C) 2012 salesforce.com, inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable ...
Remove model hack--no longer needed for lists
Remove model hack--no longer needed for lists
JavaScript
apache-2.0
lhong375/aura,badlogicmanpreet/aura,DebalinaDey/AuraDevelopDeb,navyliu/aura,madmax983/aura,forcedotcom/aura,lhong375/aura,forcedotcom/aura,TribeMedia/aura,DebalinaDey/AuraDevelopDeb,badlogicmanpreet/aura,TribeMedia/aura,igor-sfdc/aura,DebalinaDey/AuraDevelopDeb,TribeMedia/aura,lcnbala/aura,SalesforceSFDC/aura,madmax983...
a864bc226ec204bc2083e2abd98a4493afa2da04
karma.component.config.js
karma.component.config.js
module.exports = function(config) { config.set({ basePath: process.env['INIT_CWD'], frameworks: ['mocha', 'chai', 'karma-typescript', 'sinon'], browsers: ['ChromeHeadless', 'FirefoxHeadless'], files: [ './node_modules/@webcomponents/webcomponentsjs/webcomponents-sd-ce.js', { pattern: 'dist...
module.exports = function(config) { config.set({ basePath: process.env['INIT_CWD'], frameworks: ['mocha', 'chai', 'karma-typescript', 'sinon'], browsers: ['ChromeHeadless'], files: [ './node_modules/@webcomponents/webcomponentsjs/webcomponents-sd-ce.js', { pattern: 'dist/*.bundled.js' }, ...
Disable Firefox until their ShadowDOM is in place
Disable Firefox until their ShadowDOM is in place
JavaScript
mit
abraham/nutmeg-cli,abraham/nutmeg-cli,abraham/nutmeg-cli
d48b188b3ebe03ccbe9dfd57bb267261de962178
samples/VanillaJSTestApp2.0/app/b2c/authConfig.js
samples/VanillaJSTestApp2.0/app/b2c/authConfig.js
// Config object to be passed to Msal on creation const msalConfig = { auth: { clientId: "e3b9ad76-9763-4827-b088-80c7a7888f79", authority: "https://login.microsoftonline.com/tfp/msidlabb2c.onmicrosoft.com/B2C_1_SISOPolicy/", knownAuthorities: ["login.microsoftonline.com"] }, cache: ...
// Config object to be passed to Msal on creation const msalConfig = { auth: { clientId: "e3b9ad76-9763-4827-b088-80c7a7888f79", authority: "https://login.microsoftonline.com/tfp/msidlabb2c.onmicrosoft.com/B2C_1_SISOPolicy/", knownAuthorities: ["login.microsoftonline.com"] }, cache: ...
Remove telemetry config from 2.0 sample
Remove telemetry config from 2.0 sample
JavaScript
mit
AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication...
5ea58b636d98ef0bb9294c241ee588d2a065c551
scripts/postinstall.js
scripts/postinstall.js
require("es6-shim"); var exec = require("child_process").exec; var os = require("os"); var useMraa = (function() { var release = os.release(); return release.includes("yocto") || release.includes("edison"); })(); if (useMraa) { exec("npm install mraa@0.6.1-36-gbe4312e"); }
require("es6-shim"); var exec = require("child_process").exec; var os = require("os"); var useMraa = (function() { var release = os.release(); return release.includes("yocto") || release.includes("edison"); })(); var safeBuild = "0.6.1+git0+805d22f0b1-r0"; var safeVersion = "0.6.1-36-gbe4312e"; if (useMraa) ...
Check for safe version of libmraa0 before installing own copy.
Check for safe version of libmraa0 before installing own copy. - Displays information during postinstall to help user understand the process
JavaScript
mit
ashishdatta/galileo-io,kimathijs/galileo-io,julianduque/galileo-io,vj-ug/galileo-io,rwaldron/galileo-io
c6a12035debea100fcce7e2078a5ecd7be95a974
tests/test_middleware.js
tests/test_middleware.js
var async = require('async'); var request = require('request'); var sugar = require('object-sugar'); var rest = require('../lib/rest-sugar'); var serve = require('./serve'); var conf = require('./conf'); var models = require('./models'); var utils = require('./utils'); var queries = require('./queries'); function te...
var assert = require('assert'); var async = require('async'); var request = require('request'); var sugar = require('object-sugar'); var rest = require('../lib/rest-sugar'); var serve = require('./serve'); var conf = require('./conf'); var models = require('./models'); var utils = require('./utils'); var queries = re...
Check that middlewares get triggered properly
Check that middlewares get triggered properly
JavaScript
mit
sugarjs/rest-sugar
2042a3e49ee1e3ab461f79acd488d34b2d5ec219
editor/js/Menubar.Status.js
editor/js/Menubar.Status.js
/** * @author mrdoob / http://mrdoob.com/ */ Menubar.Status = function ( editor ) { var container = new UI.Panel(); container.setClass( 'menu right' ); var checkbox = new UI.Checkbox( editor.config.getKey( 'autosave' ) ); checkbox.onChange( function () { editor.config.setKey( 'autosave', this.getValue() ); ...
/** * @author mrdoob / http://mrdoob.com/ */ Menubar.Status = function ( editor ) { var container = new UI.Panel(); container.setClass( 'menu right' ); var checkbox = new UI.Checkbox( editor.config.getKey( 'autosave' ) ); checkbox.onChange( function () { var value = this.getValue(); editor.config.setKey(...
Save scene when enabling autosave.
Editor: Save scene when enabling autosave.
JavaScript
mit
srifqi/three.js,NicolasRannou/three.js,colombod/three.js,dhritzkiv/three.js,Zerschmetterling91/three.js,matgr1/three.js,njam/three.js,aardgoose/three.js,tamarintech/three.js,dushmis/three.js,stevenliujw/three.js,WoodMath/three.js,hacksalot/three.js,davidvmckay/three.js,ZhenxingWu/three.js,fta2012/three.js,AntTech/three...
678a5f6f558c833bc05de1f68120efed8cbcdb18
frameworks/datastore/tests/models/record/core_methods.js
frameworks/datastore/tests/models/record/core_methods.js
// ========================================================================== // Project: SproutCore - JavaScript Application Framework // Copyright: ©2006-2009 Apple, Inc. and contributors. // License: Licened under MIT license (see license.js) // ===================================================================...
// ========================================================================== // Project: SproutCore - JavaScript Application Framework // Copyright: ©2006-2009 Apple, Inc. and contributors. // License: Licened under MIT license (see license.js) // ===================================================================...
Fix SC.Record statusString unit test
Fix SC.Record statusString unit test
JavaScript
mit
Eloqua/sproutcore,Eloqua/sproutcore,Eloqua/sproutcore
ce627bb604bbb4ce42a14af38f5f7aceef11df4d
gulp/config.js
gulp/config.js
// // https://github.com/kogakure/gulp-tutorial/blob/master/gulp/config.js // var banner = [ '/**', ' * <%= pkg.name %> - <%= pkg.description %>', ' * <%= pkg.author %>', ' * Version <%= pkg.version %>', ' * <%= pkg.license %> Licensed', ' */', ''].join('\n'); module.exports = { banner:...
// // https://github.com/kogakure/gulp-tutorial/blob/master/gulp/config.js // var banner = [ '/**', ' * <%= pkg.name %> - <%= pkg.description %>', ' * <%= pkg.author %>', ' * Version <%= pkg.version %>', ' * <%= pkg.license %> Licensed', ' */', ''].join('\n'); module.exports = { banner:...
Validate files under lib with jshint
Validate files under lib with jshint
JavaScript
mit
cheton/i18next-text
9686768f335f876d674183fd899125a5fb09e101
lib/node_modules/@stdlib/buffer/from-string/lib/index.js
lib/node_modules/@stdlib/buffer/from-string/lib/index.js
'use strict'; /** * Allocate a buffer containing a provided string. * * @module @stdlib/buffer/from-string * * @example * var string2buffer = require( '@stdlib/buffer/from-string' ); * * var buf = string2buffer( 'beep boop' ); * // returns <Buffer> */ // MODULES // var hasFrom = require( './has_from.js' ); // MAIN...
'use strict'; /** * Allocate a buffer containing a provided string. * * @module @stdlib/buffer/from-string * * @example * var string2buffer = require( '@stdlib/buffer/from-string' ); * * var buf = string2buffer( 'beep boop' ); * // returns <Buffer> */ // MODULES // var hasFrom = require( './has_from.js' ); var main ...
Refactor to avoid dynamic module resolution
Refactor to avoid dynamic module resolution
JavaScript
apache-2.0
stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib
ea020e5e5759189d2576aea6a58114ddb24dd001
src/index.js
src/index.js
import React from 'react' import ReactDOM from 'react-dom' import { createGlobalStyle } from 'styled-components' import { App } from './App' import woff2 from './fonts/source-sans-pro-v11-latin-regular.woff2' import woff from './fonts/source-sans-pro-v11-latin-regular.woff' import registerServiceWorker from './registe...
import React from 'react' import ReactDOM from 'react-dom' import { createGlobalStyle } from 'styled-components' import { App } from './App' import woff2 from './fonts/source-sans-pro-v11-latin-regular.woff2' import woff from './fonts/source-sans-pro-v11-latin-regular.woff' import registerServiceWorker from './registe...
Use border-box style for all elements
Use border-box style for all elements
JavaScript
mit
joelgeorgev/file-hash-verifier,joelgeorgev/file-hash-verifier
12ee708accce42f2bdeb557888590851df1ff12c
src/index.js
src/index.js
var Transmitter = function (config) { var router = require('./router.js'); router(config); var io = require('socket.io')(router.server); // Socket.io connection handling io.on('connection', function(socket){ console.log('PULSAR: client connected'); socket.on('disconnect', function() { console....
class Detector { constructor(config) { let router = require('./router.js'); router(config); this.io = require('socket.io')(router.server); // Socket.io connection handling this.io.on('connection', function(socket){ console.log('PULSAR: client connected'); socket.on('disconnect', funct...
Convert export to a class with a pulse detector function
Convert export to a class with a pulse detector function
JavaScript
mit
Dermah/pulsar-transmitter
78d557fc3c8bda380271c29f02b9a2b3cceb6b9a
src/index.js
src/index.js
/** * * ___| | | | | * | | | | | * | ___ |___ __| * \____|_| _| _| * * @author Shinichirow KAMITO * @license MIT */ import { createStore, destroyStore, getAllStores, destroyAllStores, trigger, regist } from './core'; import dispatcher from './dispatcher'; let ch4 = { createS...
/** * * ___| | | | | * | | | | | * | ___ |___ __| * \____|_| _| _| * * @author Shinichirow KAMITO * @license MIT */ import { createStore, destroyStore, getAllStores, destroyAllStores, trigger, regist } from './core'; import dispatcher from './dispatcher'; import logger from './...
Add logger to export modules.
Add logger to export modules.
JavaScript
mit
kamito/ch4
1f7a9bd17e7611c0afb13b4c9f546cb8c7ef06af
src/index.js
src/index.js
export function createSelectorCreator(valueEquals) { return (selectors, resultFunc) => { if (!Array.isArray(selectors)) { selectors = [selectors]; } const memoizedResultFunc = memoize(resultFunc, valueEquals); return state => { const params = selectors.map(sel...
export function createSelectorCreator(valueEquals) { return (selectors, resultFunc) => { if (!Array.isArray(selectors)) { selectors = [selectors]; } const memoizedResultFunc = memoize(resultFunc, valueEquals); return state => { const params = selectors.map(sel...
Remove unnecessary use of spread
Remove unnecessary use of spread
JavaScript
mit
sericaia/reselect,chentsulin/reselect,faassen/reselect,SpainTrain/reselect,reactjs/reselect,chromakode/reselect,reactjs/reselect,tgriesser/reselect,scottcorgan/reselect,zalmoxisus/reselect,babsonmatt/reselect,rackt/reselect,ellbee/reselect
79e51f7510a554c5fa900759f9ad55f9201c7715
app/components/ocre-step.js
app/components/ocre-step.js
import Ember from 'ember'; import _ from 'lodash/lodash'; import steps from '../ressources/ocre-quest'; export default Ember.Component.extend({ progress: '', stepIndex: 0, target: 0, onChange: () => {}, actions: { update(item, delta) { let progress = this.get('progress'); ...
import Ember from 'ember'; import _ from 'lodash/lodash'; import steps from '../ressources/ocre-quest'; export default Ember.Component.extend({ progress: '', stepIndex: 0, target: 0, onChange: () => {}, actions: { update(item, delta) { let progress = this.get('progress'); ...
Fix the bug where a mob can't be put back to 0
Fix the bug where a mob can't be put back to 0
JavaScript
mit
pboutin/dofus-workbench,pboutin/dofus-workbench
c1bf4d635ecfb5f471f4d4230401ae3c0ded3468
app/controllers/PhotoRow.js
app/controllers/PhotoRow.js
var FileLoader = require("file_loader"); var args = arguments[0] || {}; var url = "http://photos.tritarget.org/photos/washington2012/" + args.photo; FileLoader.download(url) .then(function(file) { // Ti.API.info("Displaying image: " + file.getPath()); $.photo.image = file.getFile(); $.info.color = file....
var FileLoader = require("file_loader"); var args = arguments[0] || {}; var url = "http://photos.tritarget.org/photos/washington2012/" + args.photo; function updateRow(file) { $.photo.image = file.getFile(); $.info.color = file.downloaded ? "#CF0000" : "#07D100"; $.info.text = (file.downloaded ? "Downloaded" : ...
Add support for choosing promises or callbacks
Add support for choosing promises or callbacks For testing and demo
JavaScript
mit
sukima/TiCachedImages,0x00evil/TiCachedImages,0x00evil/TiCachedImages,sukima/TiCachedImages
cd93d090958b3b4c058cabe384668725d23622b1
app/components/layer-file/component.js
app/components/layer-file/component.js
import Ember from 'ember'; export default Ember.Component.extend({ showSelect: false, noFileFound: true, didRender() { if(!this.get('layer.settings.values.downloadLink')){ this.get('node.files').then((result)=>{ result.objectAt(0).get('files').then((files)=>{ ...
import Ember from 'ember'; export default Ember.Component.extend({ showSelect: false, noFileFound: true, //make computed property that observers the layers.[] and if change see if there is a file didRender() { console.log(this.get('layer.settings.values.downloadLink') , this.get('noFileFound')) ...
Fix 'No Files Found" showing when files are found
Fix 'No Files Found" showing when files are found
JavaScript
apache-2.0
caneruguz/osfpages,caneruguz/osfpages,Rytiggy/osfpages,Rytiggy/osfpages
bd812f12f00375232dd413e17a4356d8320f9c80
lib/vttregion-extended.js
lib/vttregion-extended.js
// If we're in Node.js then require VTTRegion so we can extend it, otherwise assume // VTTRegion is on the global. if (typeof module !== "undefined" && module.exports) { this.VTTRegion = require("./vttregion").VTTRegion; } // Extend VTTRegion with methods to convert to JSON, from JSON, and construct a // VTTRegion f...
// If we're in Node.js then require VTTRegion so we can extend it, otherwise assume // VTTRegion is on the global. if (typeof module !== "undefined" && module.exports) { this.VTTRegion = require("./vttregion").VTTRegion; } // Extend VTTRegion with methods to convert to JSON, from JSON, and construct a // VTTRegion f...
Fix accidental change of fromJSON() to create().
Fix accidental change of fromJSON() to create().
JavaScript
apache-2.0
gkatsev/vtt.js,mozilla/vtt.js,gkatsev/vtt.js,mozilla/vtt.js
4a5944329d737b0671a5a094e428e23b803b359c
lib/constants.js
lib/constants.js
var fs = require('fs') var pkg = JSON.parse(fs.readFileSync(__dirname + '/../package.json').toString()) exports.VERSION = pkg.version exports.DEFAULT_PORT = process.env.PORT || 9876 exports.DEFAULT_HOSTNAME = process.env.IP || 'localhost' // log levels exports.LOG_DISABLE = 'OFF' exports.LOG_ERROR = 'ERROR' exports...
var fs = require('fs') var pkg = JSON.parse(fs.readFileSync(__dirname + '/../package.json').toString()) exports.VERSION = pkg.version exports.DEFAULT_PORT = process.env.PORT || 9876 exports.DEFAULT_HOSTNAME = process.env.IP || 'localhost' // log levels exports.LOG_DISABLE = 'OFF' exports.LOG_ERROR = 'ERROR' exports...
Add date/time stamp to log output
feat(logger): Add date/time stamp to log output The `"%d{DATE}"` in the log pattern adds a date and time stamp to log lines. So you get output like this from karma's logging: ``` 30 06 2015 15:19:56.562:DEBUG [temp-dir]: Creating temp dir at /tmp/karma-43808925 ``` The date and time are handy for figuring out if karma...
JavaScript
mit
clbond/karma,powerkid/karma,brianmhunt/karma,hitesh97/karma,simudream/karma,karma-runner/karma,skycocker/karma,vtsvang/karma,SamuelMarks/karma,unional/karma,tomkuk/karma,gayancliyanage/karma,kahwee/karma,IsaacChapman/karma,Sanjo/karma,rhlass/karma,clbond/karma,kahwee/karma,maksimr/karma,maksimr/karma,skycocker/karma,ch...
3601d7ce7c5e2863c27e0a0c5a08746cbaddfcba
app/assets/javascripts/global.js
app/assets/javascripts/global.js
$(document) .ready(function() { // fix menu when passed $('.masthead') .visibility({ once: false, onBottomPassed: function() { $('.fixed.menu').transition('fade in'); }, onBottomPassedReverse: function() { $('.fixed.menu').transition('fade out'); ...
$(document) .ready(function() { // fix menu when passed $('.masthead') .visibility({ once: false, onBottomPassed: function() { $('.fixed.menu').transition('fade in'); }, onBottomPassedReverse: function()...
Make the flash message dismissable
Make the flash message dismissable
JavaScript
bsd-3-clause
payloadtech/payload,payloadtech/payload,amingilani/starter-web-app,amingilani/starter-web-app,payloadtech/payload,amingilani/starter-web-app
52213504d4c43fe43f572dc8bf84113a9af07797
routes/index.js
routes/index.js
var express = require('express'); var request = require('request'); var http = require('http'); var router = express.Router(); var fixtures = require('./fixtures'); /* GET home page. */ router.get('/', function(req, res, next) { res.render('index', { title: 'FootScores' }); }); /* GET any leagues matches */ router....
var express = require('express'); var request = require('request'); var http = require('http'); var router = express.Router(); var fixtures = require('./fixtures'); var database = require('../database/mongo'); /* GET home page. */ router.get('/', function(req, res, next) { res.render('index', { title: 'FootScores' }...
Change names to be more self-explanatory
Change names to be more self-explanatory
JavaScript
mit
ngomez22/FootScores,ngomez22/FootScores
368c10724ead9b725bbd75f31a7922fcbe6fc0aa
app/javascript/helpers/string.js
app/javascript/helpers/string.js
/* FILE string.js */ (function () { this.sparks.string = {}; var str = sparks.string; str.strip = function (s) { s = s.replace(/\s*([^\s]*)\s*/, '$1'); return s; }; // Remove a dot in the string, and then remove 0's on both sides // e.g. '20100' => '201', '0....
/* FILE string.js */ (function () { this.sparks.string = {}; var str = sparks.string; str.strip = function (s) { s = s.replace(/\s*([^\s]*)\s*/, '$1'); return s; }; // Remove a dot in the string, and then remove 0's on both sides // e.g. '20100' => '201', '0....
Add capitalize-first function to String
Add capitalize-first function to String
JavaScript
apache-2.0
concord-consortium/sparks,concord-consortium/sparks,concord-consortium/sparks,concord-consortium/sparks,concord-consortium/sparks
84854a6494b5c9f1a56be857ba2fc8762883f1c9
app/mixins/pagination-support.js
app/mixins/pagination-support.js
import Ember from 'ember'; export default Ember.Mixin.create({ hasPaginationSupport: true, total: 0, page: 0, pageSize: 10, didRequestPage: Ember.K, first: function () { return this.get('page') * this.get('pageSize') + 1; }.property('page', 'pageSize').cacheable(), last: funct...
import Ember from 'ember'; export default Ember.Mixin.create({ hasPaginationSupport: true, total: 0, page: 0, pageSize: 10, didRequestPage: Ember.K, first: function () { return this.get('page') * this.get('pageSize') + 1; }.property('page', 'pageSize'), last: function () { ...
Fix deprecation warnings for Ember 1.10.0.
Fix deprecation warnings for Ember 1.10.0.
JavaScript
apache-2.0
davidvmckay/Klondike,Stift/Klondike,davidvmckay/Klondike,jochenvangasse/Klondike,jochenvangasse/Klondike,themotleyfool/Klondike,Stift/Klondike,fhchina/Klondike,jochenvangasse/Klondike,fhchina/Klondike,themotleyfool/Klondike,fhchina/Klondike,themotleyfool/Klondike,Stift/Klondike,davidvmckay/Klondike
6cce0db72acfc12bf7fae13346be29928976b641
public/modules/core/controllers/sound-test.client.controller.js
public/modules/core/controllers/sound-test.client.controller.js
'use strict'; angular.module('core').controller('SoundTestController', ['$scope', 'TrialData', function($scope, TrialData) { /* global io */ var socket = io(); socket.on('oscMessageSent', function(data) { console.log('socket "oscMessageSent" event received with data: ' + data); }); socke...
'use strict'; angular.module('core').controller('SoundTestController', ['$scope', 'TrialData', function($scope, TrialData) { /* global io */ var socket = io(); socket.on('oscMessageSent', function(data) { console.log('socket "oscMessageSent" event received with data: ' + data); }); socke...
Reformat SoundTest OSC; stop sound test on SoundTest destroy
Reformat SoundTest OSC; stop sound test on SoundTest destroy
JavaScript
mit
brennon/eim,brennon/eim,brennon/eim,brennon/eim
4f93585a82adcc93b713cfd983d5343a23e262b3
app/renderer/reducers/player.js
app/renderer/reducers/player.js
import { SEEK, SET_DURATION, SET_CURRENT_SONG, CHANGE_VOLUME, CHANGE_CURRENT_SECONDS, PLAY, PAUSE } from './../actions/actionTypes' const initialState = { isPlaying: false, playFromSeconds: 0, totalSeconds: 0, currentSeconds: 0, currentSong: { title: '', artist: '', album: '', a...
import { SEEK, SET_DURATION, SET_CURRENT_SONG, CHANGE_VOLUME, CHANGE_CURRENT_SECONDS, PLAY, PAUSE } from './../actions/actionTypes' const initialState = { isPlaying: false, playFromSeconds: 0, totalSeconds: 0, currentSeconds: 0, currentSong: { id: '', title: '', artist: '', albu...
Add missing id in initial state
Add missing id in initial state
JavaScript
mit
AbsoluteZero273/Deezic
e844bc03546c0189ba47bf1ff7915079abf2ca31
app/service/containers/route.js
app/service/containers/route.js
import Ember from 'ember'; import MultiStatsSocket from 'ui/utils/multi-stats'; export default Ember.Route.extend({ statsSocket: null, model() { return this.modelFor('service').get('service'); }, activate() { var stats = MultiStatsSocket.create({ resource: this.modelFor('service').get('service'...
import Ember from 'ember'; import MultiStatsSocket from 'ui/utils/multi-stats'; export default Ember.Route.extend({ statsSocket: null, model() { var promises = []; // Load the hosts for the instances if they're not already there var service = this.modelFor('service').get('service'); service.get('...
Fix unknown host on services
Fix unknown host on services
JavaScript
apache-2.0
vincent99/ui,westlywright/ui,lvuch/ui,rancherio/ui,pengjiang80/ui,vincent99/ui,rancherio/ui,nrvale0/ui,rancher/ui,nrvale0/ui,pengjiang80/ui,ubiquityhosting/rancher_ui,westlywright/ui,pengjiang80/ui,westlywright/ui,nrvale0/ui,rancher/ui,vincent99/ui,rancherio/ui,lvuch/ui,rancher/ui,ubiquityhosting/rancher_ui,lvuch/ui,ub...
8e1cba95872a228b21a76b1fb2edec7bc86af86b
app/src/Components/Base/Root.js
app/src/Components/Base/Root.js
import React from 'react' import PropTypes from 'prop-types' import { Provider } from 'react-redux' import { BrowserRouter } from 'react-router-dom' import ApolloClient from 'apollo-boost'; import { ApolloProvider } from 'react-apollo'; import BaseDataView from './BaseDataView' function getCookieValue(a) { var b = ...
import React from 'react' import PropTypes from 'prop-types' import { Provider } from 'react-redux' import { BrowserRouter } from 'react-router-dom' import ApolloClient from 'apollo-boost'; import { ApolloProvider } from 'react-apollo'; import BaseDataView from './BaseDataView' function getCookieValue(a) { var b = ...
Use correct uri for AppolloClient
Use correct uri for AppolloClient
JavaScript
apache-2.0
alexisrolland/data-quality,alexisrolland/data-quality,alexisrolland/data-quality,alexisrolland/data-quality
2402f07c8ce1114389bac47c49b318d931134cdb
web_app/public/js/app.js
web_app/public/js/app.js
'use strict'; // Declare app level module which depends on filters, and services var app = angular.module( 'myApp', [ 'ngRoute', 'myApp.controllers', 'myApp.filters', 'myApp.services', 'myApp.directives', // 3rd party dependencies 'btford.socket-io' ] ); app.config( function ( $routePro...
'use strict'; // Declare app level module which depends on filters, and services var app = angular.module( 'myApp', [ 'ngRoute', 'myApp.controllers', 'myApp.filters', 'myApp.services', 'myApp.directives', // 3rd party dependencies 'btford.socket-io', 'fully-loaded' ] ); app.config( ...
Install this the right way
Install this the right way
JavaScript
mit
projectweekend/Pi-Jukebox,projectweekend/Pi-Jukebox,projectweekend/Pi-Jukebox
5de143e2e7268f50b55fedc392f7408e78355c28
src/client/assets/javascripts/app/App.js
src/client/assets/javascripts/app/App.js
import React, { PropTypes } from 'react'; const App = ({ children }) => ( <div className="page-container"> {children} </div> ); App.propTypes = { children: PropTypes.element.isRequired }; export default App;
import React, { PropTypes } from 'react'; const App = (props) => ( <div className="page-container"> {React.cloneElement({...props}.children, {...props})} </div> ); App.propTypes = { children: PropTypes.element.isRequired }; export default App;
Fix warning messages regarding refs and key
Fix warning messages regarding refs and key
JavaScript
mit
dead-in-the-water/ditw,nicksp/redux-webpack-es6-boilerplate,cloady/battleship,cloady/battleship,nicksp/redux-webpack-es6-boilerplate,richbai90/CS2810,dead-in-the-water/ditw,richbai90/CS2810,richbai90/CS2810,richbai90/CS2810
c14e89ab83e035103c58ed57c3681b64278c4a75
lib/utils/cmd.js
lib/utils/cmd.js
const fs = require('fs'); const path = require('path'); /** * Finds package.json file from either the directory the script was called from or a supplied path. * * console.log(findPackageFileInPath()); * console.log(findPackageFileInPath('./package.json')); * console.log(findPackageFileInPath('~/git/gi...
const fs = require('fs'); const path = require('path'); /** * Finds package.json file from either the directory the script was called from or a supplied path. * * console.log(findPackageFileInPath()); * console.log(findPackageFileInPath('./package.json')); * console.log(findPackageFileInPath('~/git/gi...
Change how method is exported.
Change how method is exported.
JavaScript
mit
neogeek/doxdox
f1ab62de1b6c7bbe13e67361311f8cb14a38813e
src/helpers/find-root.js
src/helpers/find-root.js
'use babel' /* @flow */ import Path from 'path' import {findCached} from './common' import {CONFIG_FILE_NAME} from '../defaults' export function findRoot(directory: string): string { const configFile = findCached(directory, CONFIG_FILE_NAME) if (configFile !== null) { return Path.dirname(String(configFile)) ...
'use babel' /* @flow */ import Path from 'path' import {findCached} from './common' import {CONFIG_FILE_NAME} from '../defaults' export async function findRoot(directory: string): Promise<string> { const configFile = await findCached(directory, CONFIG_FILE_NAME) if (configFile) { return Path.dirname(configFi...
Upgrade findRoot to be async
:new: Upgrade findRoot to be async
JavaScript
mit
steelbrain/UCompiler
2ee0ebe084b73502b15a4a2f885a37a42abe7586
app/templates/Gruntfile.js
app/templates/Gruntfile.js
/*! * Generator-Gnar Gruntfile * http://gnarmedia.com * @author Adam Murphy */ // Generated on <%= (new Date).toISOString().split('T')[0] %> using <%= pkg.name %> <%= pkg.version %> 'use strict'; /** * Grunt module */ module.exports = function (grunt) { /** * Generator-Gnar Grunt config */ grunt.ini...
/*! * Generator-Gnar Gruntfile * http://gnarmedia.com * @author Adam Murphy */ // Generated on <%= (new Date).toISOString().split('T')[0] %> using <%= pkg.name %> <%= pkg.version %> 'use strict'; /** * Grunt module */ module.exports = function (grunt) { /** * Generator-Gnar Grunt config */ grunt.ini...
Add html property to project object
Add html property to project object
JavaScript
mit
gnarmedia/gnenerator-gnar
f0d015f6b45f599518e247c24c152fa5f17ba017
esm-samples/jsapi-custom-workers/webpack.config.js
esm-samples/jsapi-custom-workers/webpack.config.js
const path = require('path'); const HtmlWebPackPlugin = require('html-webpack-plugin'); const MiniCssExtractPlugin = require("mini-css-extract-plugin"); module.exports = { entry: { index: ['./src/index.css', './src/index.js'] }, node: false, output: { path: path.join(__dirname, 'dist'), chunkFilen...
const path = require('path'); const HtmlWebPackPlugin = require('html-webpack-plugin'); const MiniCssExtractPlugin = require("mini-css-extract-plugin"); module.exports = { entry: { index: ['./src/index.css', './src/index.js'] }, node: false, output: { path: path.join(__dirname, 'dist'), chunkFilen...
Update webpack static, remove webpack clean so dist builds work again.
Update webpack static, remove webpack clean so dist builds work again.
JavaScript
apache-2.0
Esri/jsapi-resources,Esri/jsapi-resources,Esri/jsapi-resources
16e45622c0de9f26679cd0cdcbe6f301d3d6fd16
src/js/schemas/service-schema/EnvironmentVariables.js
src/js/schemas/service-schema/EnvironmentVariables.js
import {Hooks} from 'PluginSDK'; let EnvironmentVariables = { description: 'Set environment variables for each task your service launches in addition to those set by Mesos.', type: 'object', title: 'Environment Variables', properties: { variables: { type: 'array', duplicable: true, addLab...
import {Hooks} from 'PluginSDK'; let EnvironmentVariables = { description: 'Set environment variables for each task your service launches in addition to those set by Mesos.', type: 'object', title: 'Environment Variables', properties: { variables: { type: 'array', duplicable: true, addLab...
Remove empty object from variables array
Remove empty object from variables array
JavaScript
apache-2.0
dcos/dcos-ui,dcos/dcos-ui,dcos/dcos-ui,dcos/dcos-ui,dcos/dcos-ui
485e7c6a5c29f5e9f89048ef819ed2338cd54830
src/schema/infoSchema.js
src/schema/infoSchema.js
"use strict"; const Joi = require('joi'); const contactSchema = require('./contactSchema'); const licenseSchema = require('./licenseSchema'); const pathsSchema = require('./pathsSchema'); module.exports = Joi.object({ 'title': Joi.string() .required(), 'description': Joi.string(), 'termsOfService': Joi.str...
"use strict"; const Joi = require('joi'); const contactSchema = require('./contactSchema'); const licenseSchema = require('./licenseSchema'); const pathsSchema = require('./pathsSchema'); module.exports = Joi.object({ 'title': Joi.string() .required(), 'description': Joi.string(), 'termsOfService': Joi.str...
Add permission provider to the info schema
Add permission provider to the info schema
JavaScript
mit
Teagan42/Deepthought-Routing
f1749939532bd2e7aa659e2261aac94ded794285
client/main.js
client/main.js
import Vue from 'vue' import App from './App' import I18n from 'vue-i18n' import Cookie from 'vue-cookie' import { sync } from 'vuex-router-sync' import router from './router' import store from './store' import en from 'locales/en' import ja from 'locales/ja' if (process.env.NODE_ENV === 'production') { // Enable Pr...
import Vue from 'vue' import App from './App' import I18n from 'vue-i18n' import Cookie from 'vue-cookie' import { sync } from 'vuex-router-sync' import router from './router' import store from './store' import en from 'locales/en' import ja from 'locales/ja' if (process.env.NODE_ENV === 'production') { // Enable Pr...
Use Cloudflare for HTTPS redirect
Use Cloudflare for HTTPS redirect
JavaScript
mit
wopian/hibari,wopian/hibari
3f594741d55735c20ae1b7f083222e9d10e35fb5
js/Main.js
js/Main.js
// Main JavaScript Document var cards = []; var mainContent = document.getElementId('main-content'); var mainContentRegion = new ZingTouch.Region(mainContent); //Create the card object template function contentCard(title, img, desc, link) { "use strict"; this.title = title; this.img = img; this.desc = desc;...
// Main JavaScript Document var cards = []; var mainContent = document.getElementId('main-content'); var mainContentRegion = new ZingTouch.Region(mainContent); //Create the card object template function contentCard(title, img, desc, link) { "use strict"; this.title = title; this.img = img; this.desc = desc; th...
Create Card Object template and Card Picker
Create Card Object template and Card Picker
JavaScript
mit
AnthonyGordon1/sneaker-app,AnthonyGordon1/sneaker-app
b0a2e9415545bd7ee6d592c3a270b2d308b80a73
src/main/webapp/resources/js/modules/notifications.js
src/main/webapp/resources/js/modules/notifications.js
import Noty from "noty"; import "noty/src/noty.scss"; import "noty/src/themes/sunset.scss"; export function showNotification({ text, type = "success" }) { return new Noty({ theme: "sunset", timeout: 3500, // [integer|boolean] delay for closing event in milliseconds. Set false for sticky notifications lay...
import Noty from "noty"; import "noty/src/noty.scss"; import "noty/src/themes/relax.scss"; export function showNotification({ text, type = "success" }) { return new Noty({ theme: "relax", timeout: 3500, // [integer|boolean] delay for closing event in milliseconds. Set false for sticky notifications layou...
Update to use relax theme
Update to use relax theme
JavaScript
apache-2.0
phac-nml/irida,phac-nml/irida,phac-nml/irida,phac-nml/irida,phac-nml/irida,phac-nml/irida,phac-nml/irida,phac-nml/irida
0ba67c44d9151fe6286603180e48d1f217344d26
client/util.js
client/util.js
var validateFloat = function(val) { if (typeof val != 'undefined') { val = parseFloat(val); if (! isNaN(val)) { if (val > -99999 ) { return val; } } } return Infinity; }; var enableFilter = function (id) { var f = window.app.filters.get(i...
var validateFloat = function(val) { if (typeof val != 'undefined') { val = parseFloat(val); if (! isNaN(val)) { if (val > -99999 ) { return val; } } } return Infinity; }; var enableFilter = function (id) { var f = window.app.filters.get(i...
Fix bug where filter was not set to inacative
Fix bug where filter was not set to inacative
JavaScript
apache-2.0
summerinthecity/uhitool,jspaaks/spot,NLeSC/spot,jspaaks/spot,jiskattema/uhitool,summerinthecity/uhitool,jiskattema/uhitool
204de9d56b72ce5387af7bdd5dffab60d16e31e9
nodejs/config.js
nodejs/config.js
require('dotenv').config({ silent: true, }) let makeHostConfig = (env, prefix) => { let host = env[prefix + '_HOST'] || '127.0.0.1' let port = parseInt(env[prefix + '_PORT'], 10) || 3030 let https = env[prefix + '_HTTPS'] === 'true' || env[prefix + '_HTTPS'] === true let default_port, protocol ...
require('dotenv').config({ silent: true, }) let makeHostConfig = (env, prefix) => { let host = env[prefix + '_HOST'] || '127.0.0.1' let port = parseInt(env[prefix + '_PORT'], 10) || 3030 let https = env[prefix + '_HTTPS'] === 'true' || env[prefix + '_HTTPS'] === true let default_port, protocol ...
Implement HTTPS support for Docker
Implement HTTPS support for Docker
JavaScript
mit
viblo-asia/api-proxy
796488305ab4f2231a58bd18474268bd8c7b5952
components/EditableEntry.js
components/EditableEntry.js
/** * @flow */ import React from 'react'; import { StyleSheet, TextInput } from 'react-native'; import PropTypes from 'prop-types'; import Box from './Box'; class EditableEntry extends React.Component { render() { return ( <Box numberOfLines={1}> <TextInput style={styles.te...
/** * @flow */ import React from 'react'; import { StyleSheet, TextInput } from 'react-native'; import PropTypes from 'prop-types'; import Box from './Box'; class EditableEntry extends React.Component { render() { return ( <Box numberOfLines={1}> <TextInput style={styles.te...
Add a returnKeyType to the input keyboard
Add a returnKeyType to the input keyboard
JavaScript
mit
nikhilsaraf/react-native-todo-app
65bbd24974974672c60eea3f250564be6a4bfead
webroot/rsrc/js/application/differential/behavior-user-select.js
webroot/rsrc/js/application/differential/behavior-user-select.js
/** * @provides javelin-behavior-differential-user-select * @requires javelin-behavior * javelin-dom * javelin-stratcom */ JX.behavior('differential-user-select', function() { var unselectable; function isOnRight(node) { return node.parentNode.firstChild != node.previousSibling; } ...
/** * @provides javelin-behavior-differential-user-select * @requires javelin-behavior * javelin-dom * javelin-stratcom */ JX.behavior('differential-user-select', function() { var unselectable; function isOnRight(node) { return node.previousSibling && node.parentNode.firstChild...
Enable selecting text in Differential shield and gap
Enable selecting text in Differential shield and gap Test Plan: Selected text in shield. Selected text in right side. Reviewers: epriestley, btrahan Reviewed By: btrahan CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D3522
JavaScript
apache-2.0
vuamitom/phabricator,r4nt/phabricator,denisdeejay/phabricator,Automattic/phabricator,Automattic/phabricator,hshackathons/phabricator-deprecated,wangjun/phabricator,telerik/phabricator,zhihu/phabricator,devurandom/phabricator,christopher-johnson/phabricator,huaban/phabricator,matthewrez/phabricator,aswanderley/phabricat...
9d7031b6dcf8c8ce6a36cdfc73c9d467a44517b5
js/game.js
js/game.js
var Game = function(boardString){ var board = ''; this.board = ''; if (arguments.length === 1) { this.board = this.toArray(boardString); } else { function random() { return Math.floor(Math.random() * 10 + 6); }; var firstTwo = random(), secondTwo = random(); for ( var i = 0; i < 16; i+...
var Game = function(boardString){ var board = ''; this.board = ''; if (arguments.length === 1) { this.board = this.toArray(boardString); } else { function random() { return Math.floor(Math.random() * 10 + 6); }; var firstTwo = random(), secondTwo = random(); for ( var i = 0; i < 16; i+...
Modify toString method for board array format
Modify toString method for board array format
JavaScript
mit
suprfrye/galaxy-256,suprfrye/galaxy-256
b795f71c87be22da3892c6cc9eca607b229c66bf
packages/ember-data/lib/instance-initializers/initialize-store-service.js
packages/ember-data/lib/instance-initializers/initialize-store-service.js
/** Configures a registry for use with an Ember-Data store. @method initializeStore @param {Ember.ApplicationInstance} applicationOrRegistry */ export default function initializeStoreService(applicationOrRegistry) { var registry, container; if (applicationOrRegistry.registry && applicationOrRegistry.container...
/** Configures a registry for use with an Ember-Data store. @method initializeStore @param {Ember.ApplicationInstance} applicationOrRegistry */ export default function initializeStoreService(applicationOrRegistry) { var registry, container; if (applicationOrRegistry.registry && applicationOrRegistry.container...
Support for Ember 1.9's container API after `store:application` refactor.
Support for Ember 1.9's container API after `store:application` refactor.
JavaScript
mit
andrejunges/data,Turbo87/ember-data,fpauser/data,Turbo87/ember-data,gniquil/data,flowjzh/data,Kuzirashi/data,tstirrat/ember-data,webPapaya/data,gkaran/data,eriktrom/data,minasmart/data,dustinfarris/data,danmcclain/data,workmanw/data,ryanpatrickcook/data,jgwhite/data,minasmart/data,HeroicEric/data,ryanpatrickcook/data,o...
81248f3d84a40336e9d9d0e9a4f5c43441d0e381
main.js
main.js
var app = require('http').createServer(handler); var io = require('socket.io').listen(app); var fs = require('fs'); var util = require('util'); var Tail = require('tail').Tail; var static = require('node-static'); var file = new static.Server('./web', {cache: 6}); //cache en secondes function handler (req, res) { ...
var app = require('http').createServer(handler); var io = require('socket.io').listen(app); var fs = require('fs'); var util = require('util'); var Tail = require('tail').Tail; var static = require('node-static'); var file = new static.Server('./web', {cache: 6}); //cache en secondes var loadNbLines = 10; function h...
Read 10 lines from the file when starting to follow
Read 10 lines from the file when starting to follow
JavaScript
mit
feuloren/logreader
2e5ed8a3bbf39be10cc528047345b43c9595eecf
client/app/components/printerList/index.js
client/app/components/printerList/index.js
import React, { PropTypes } from 'react'; import style from './style.css'; import Printer from '../printer'; class PrinterListComponent extends React.Component { getPrinterComponent(key) { return (<Printer {...this.props.printers[key]} key={key} toggleSelected={() => { this.props.toggleSelected(key...
import React, { PropTypes } from 'react'; import style from './style.css'; import Printer from '../printer'; class PrinterListComponent extends React.Component { getPrinterComponent(key) { return (<Printer {...this.props.printers[key]} key={key} toggleSelected={() => { this.props.toggleSelected(key...
Fix last printer not showing when there was odd number of printers
Fix last printer not showing when there was odd number of printers
JavaScript
agpl-3.0
MakersLab/farm-client,MakersLab/farm-client
bc548adb239f564fa0815fa050a9c0e9d6f59ed7
main.js
main.js
import Bot from 'telegram-api/build'; import Message from 'telegram-api/types/Message'; import subscribe from './commands/subscribe'; import doc from './commands/doc'; let bot = new Bot({ token: '121143906:AAFJz_-Bjwq_8KQqTmyY2MtlcPb-bX_1O7M' }); bot.start(); const welcome = new Message().text(`Hello! I give you s...
import Bot from 'telegram-api/build'; import Message from 'telegram-api/types/Message'; import subscribe from './commands/subscribe'; import doc from './commands/doc'; let bot = new Bot({ token: '121143906:AAFJz_-Bjwq_8KQqTmyY2MtlcPb-bX_1O7M' }); bot.start(); const COMMANDS = `Commands: /subscribe - Subscribe to /...
Add help command Add github and npm to commands
Add help command Add github and npm to commands
JavaScript
artistic-2.0
mdibaiee/webdevrobot
d23a9060c4174db9b99a2e54924223e79ac5a828
packages/custom/voteeHome/public/tests/voteeHome.spec.js
packages/custom/voteeHome/public/tests/voteeHome.spec.js
'use strict'; (function() { describe("voteeHome", function() { beforeEach(function() { module('mean'); module('mean.voteeHome'); }); var $controller; var $scope; beforeEach(inject(function(_$controller_){ // The injector unwraps the un...
'use strict'; (function() { describe("voteeHome", function() { beforeEach(function() { module('mean'); module('mean.voteeHome'); }); var $controller; var $scope; beforeEach(inject(function(_$controller_){ // The injector unwraps the un...
Use the 'should expose some global scope' test
Use the 'should expose some global scope' test As seen in examples when there doesn't seem to be anything else to test.
JavaScript
mit
lewkoo/Votee,lewkoo/Votee,lewkoo/Votee
ce9abc43dbc217d800f833cff36ee3e51e85a2e9
assignFAST/assignFASTExample.js
assignFAST/assignFASTExample.js
/* javascript in this file controls the html page demonstrating the autosubject functionality */ /**************************************************************************************/ /* Set up and initialization */ /*****************************************************************************...
/* javascript in this file controls the html page demonstrating the autosubject functionality */ /**************************************************************************************/ /* Set up and initialization */ /*****************************************************************************...
Revert "Display the tag/facet of the selected term in the input"
Revert "Display the tag/facet of the selected term in the input" This reverts commit f85613a9af711a4aeb27b3bbe6efe8592e8318ce.
JavaScript
mit
dkudeki/metadata-maker,dkudeki/metadata-maker
81b1d18eff0f5734aa64b780897bd8f7bb1bdb31
models/user.js
models/user.js
var mongoose = require('mongoose'); var Schema = mongoose.Schema; var UserSchema = new Schema( { lastName : String, firstName : String, username : String, passwordHash : String, privateKey : String, picture : String, level : String, description : String, created : Date, ...
var mongoose = require('mongoose'); var Schema = mongoose.Schema; var UserSchema = new Schema( { lastName : String, firstName : String, username : String, email : String, passwordHash : String, privateKey : String, picture : String, level : String, description : String, ...
Add Email field to User
Add Email field to User
JavaScript
mit
asso-labeli/labeli-api,asso-labeli/labeli-api,asso-labeli/labeli-api
be01e76023213f35d99f69ffc440906022e218ee
src/js/select2/i18n/hu.js
src/js/select2/i18n/hu.js
define(function () { // Hungarian return { errorLoading: function () { return 'Az eredmények betöltése nem sikerült.'; }, inputTooLong: function (args) { var overChars = args.input.length - args.maximum; return 'Túl hosszú. ' + overChars + ' karakterrel több, mint kellene.'; }, ...
define(function () { // Hungarian return { errorLoading: function () { return 'Az eredmények betöltése nem sikerült.'; }, inputTooLong: function (args) { var overChars = args.input.length - args.maximum; return 'Túl hosszú. ' + overChars + ' karakterrel több, mint kellene.'; }, ...
Update Hungarian translation for new strings
Update Hungarian translation for new strings Updated Hungarian translation.
JavaScript
mit
select2/select2,select2/select2
36a42af4fa6a02fa45c357020269ca52ca9e27d1
modules/udp.js
modules/udp.js
module.exports = { events: { udp: function (bot, msg, rinfo) { if (rinfo.address === bot.config.get('yakc.ip')) { bot.fireEvents('yakc', msg.toString(), rinfo) } else { bot.notice(bot.config.get('udp.channel'), msg.toString()) } } } }
module.exports = { events: { udp: function (bot, msg, rinfo) { if (rinfo.address === bot.config.get('yakc.ip')) { bot.fireEvents('yakc', msg.toString(), rinfo) } else { bot.notice(bot.config.get('udp.channel'), msg.toString()) // copy https://github.com/zuzak/twitter-irc-udp m...
Copy interesting tweets to control channel
Copy interesting tweets to control channel
JavaScript
isc
zuzakistan/civilservant,zuzakistan/civilservant
36c93b468c7957a5b793c4eacb1a739c61100ef3
src/Overview.js
src/Overview.js
/* global fetch */ import React from 'react'; import TotalWidget from './TotalWidget'; import NextTripWidget from './NextTripWidget'; import TripTable from './TripTable'; import Map from './Map'; import './scss/overview.scss'; class Overview extends React.Component { constructor() { super(); this.loading =...
/* global fetch document */ import React from 'react'; import TotalWidget from './TotalWidget'; import NextTripWidget from './NextTripWidget'; import TripTable from './TripTable'; import Map from './Map'; import './scss/overview.scss'; class Overview extends React.Component { constructor() { super(); this....
Make fetch URL less specific
Make fetch URL less specific
JavaScript
mpl-2.0
MichaelKohler/where,MichaelKohler/where
8b2d2153271eec59b4b2d43a75ba9a83ed432a5d
client/components/login.js
client/components/login.js
Accounts.ui.config({ requestPermissions: { github: ['user', 'repo', 'gist'] } }) // // Accounts.onLogin(function () { // Router.go('/profile') // }) Template.login.helpers({ currentUser: function () { return Meteor.user() } }) Template.login.events({ })
Accounts.ui.config({ requestPermissions: { github: ['user', 'public_gist'] } }) // // Accounts.onLogin(function () { // Router.go('/profile') // }) Template.login.helpers({ currentUser: function () { return Meteor.user() } }) Template.login.events({ })
Update access request for public gists
Update access request for public gists
JavaScript
isc
caalberts/code-hangout,caalberts/code-hangout
d25293f6af7ce9d646d64c681b59983d442eab42
js/main.js
js/main.js
$(document).ready(function(){ // Include common elements $("#footer").load("common/footer.html"); $("#header").load("common/header.html", function() { // Add current navigation class based on url locations = location.pathname.split("/"); $('#topnav a[href^="' + locations[locations.length - 1] + '"]...
$(document).ready(function(){ // Include common elements $("#footer").load("common/footer.html"); $("#header").load("common/header.html", function() { // Add current navigation class based on url locations = location.pathname.split("/"); current = $('#topnav a[href^="' + locations[locations.length ...
Select first nav li by default
Select first nav li by default
JavaScript
mit
mbdimitrova/bmi-fmi,mbdimitrova/bmi-fmi
b30d1d1e94b6c65babb2c9351cfe49153926d3b9
js/main.js
js/main.js
var updatePreviewTarget = function(data, status) { $('.spinner').hide(); $('#preview-target').html(data); renderLatexExpressions(); } var renderLatexExpressions = function() { $('.latex-container').each( function(index) { katex.render( this.textContent, this, { displayMode: $(...
var updatePreviewTarget = function(data, status) { $('.spinner').hide(); $('#preview-target').html(data); renderLatexExpressions(); } var renderLatexExpressions = function() { $('.latex-container').each( function(index) { katex.render( this.textContent, this, { displayMode: $(...
Make footnote textarea expand upon focus
Make footnote textarea expand upon focus
JavaScript
mit
erettsegik/erettsegik.hu,erettsegik/erettsegik.hu,erettsegik/erettsegik.hu
08229bff7728a349aa93eb0dc8db248106cbda97
scripts/export_map.js
scripts/export_map.js
var casper = require('casper').create(); // casper.on('remote.message', function(message) { // console.log(message); // }); var out_dir = 'static/tmp/'; var key = casper.cli.get(0); var url = casper.cli.get(1); var filepath = out_dir + key + '.png'; casper.start(); casper.viewport(1024, 650).thenOpen(url, func...
var casper = require('casper').create(); // casper.on('remote.message', function(message) { // console.log(message); // }); var out_dir = 'static/tmp/'; var key = casper.cli.get(0); var url = casper.cli.get(1); var filepath = out_dir + key + '.png'; casper.start(); casper.viewport(1024, 650).thenOpen(url, func...
Use casper.wait to wait until image are loaded and transitioned
Use casper.wait to wait until image are loaded and transitioned
JavaScript
mit
AstunTechnology/NRW_FishMapMon,AstunTechnology/NRW_FishMapMon,AstunTechnology/NRW_FishMapMon,AstunTechnology/NRW_FishMapMon
b13fd8658d216732d4e54e40e029a8246e73202d
main.js
main.js
'use strict'; var app = require('app'); var dribbbleapi = require('./dribbbleapi'); var mainWindow = null; var dribbbleData = null; var menubar = require('menubar') var mb = menubar({ index: 'file://' + __dirname + '/app/index.html', icon: __dirname + '/app/assets/HotshotIcon.png', width: 400, height: 700, ...
'use strict'; var app = require('app'); var mainWindow = null; var dribbbleData = null; var menubar = require('menubar') var mb = menubar({ index: 'file://' + __dirname + '/app/index.html', icon: __dirname + '/app/assets/HotshotIcon.png', width: 400, height: 700, 'max-width': 440, 'min-height': 300, 'm...
Remove reference to deleted dribbbleApi.js
Remove reference to deleted dribbbleApi.js
JavaScript
cc0-1.0
andrewnaumann/hotshot,andrewnaumann/hotshot
21f7adb8f7e293f205c7b0813726c10a2a1224f1
tests/dummy/config/dependency-lint.js
tests/dummy/config/dependency-lint.js
/* eslint-env node */ 'use strict'; module.exports = { allowedVersions: { 'ember-in-element-polyfill': '*', 'ember-get-config': '0.3.0 || 0.4.0 || 0.5.0', '@embroider/util': '*', }, };
/* eslint-env node */ 'use strict'; module.exports = { allowedVersions: { 'ember-in-element-polyfill': '*', }, };
Remove unneeded dependency lint overrides
Remove unneeded dependency lint overrides
JavaScript
mit
ilios/common,ilios/common
14fb941b6db1aa53e7906a46e8cf7f6d4abb6d94
Rightmove_Enhancement_Suite.user.js
Rightmove_Enhancement_Suite.user.js
// ==UserScript== // @name Rightmove Enhancement Suite // @namespace https://github.com/chigley/ // @description Keyboard shortcuts // @include http://www.rightmove.co.uk/* // @version 1 // @grant GM_addStyle // @grant GM_getResourceText // @resource style style.css // ==/UserScript== v...
// ==UserScript== // @name Rightmove Enhancement Suite // @namespace https://github.com/chigley/ // @description Keyboard shortcuts // @include http://www.rightmove.co.uk/* // @version 1 // @grant GM_addStyle // @grant GM_getResourceText // @resource style style.css // ==/UserScript== v...
Fix selector to only match list items
Fix selector to only match list items
JavaScript
mit
chigley/rightmove-enhancement-suite
c2b47f8a3c1d3f844152127c9218d90dfa66bbf2
packages/storefront/app/routes/yebo/taxons/show.js
packages/storefront/app/routes/yebo/taxons/show.js
// Ember! import Ember from 'ember'; import SearchRoute from 'yebo-ember-storefront/mixins/search-route'; /** * Taxons show page * This page shows products related to the current taxon */ export default Ember.Route.extend(SearchRoute, { /** * Define the search rules */ searchRules(query, params) { // ...
// Ember! import Ember from 'ember'; import SearchRoute from 'yebo-ember-storefront/mixins/search-route'; /** * Taxons show page * This page shows products related to the current taxon */ export default Ember.Route.extend(SearchRoute, { /** * Define the search rules */ searchRules(query, params) { // ...
Return a promise in the searchModel method
Return a promise in the searchModel method
JavaScript
mit
yebo-ecommerce/ember,yebo-ecommerce/ember,yebo-ecommerce/ember
764743d6b08899286262a50203b11410d90f9694
cypress/support/commands.js
cypress/support/commands.js
// *********************************************** // This example commands.js shows you how to // create various custom commands and overwrite // existing commands. // // For more comprehensive examples of custom // commands please read more here: // https://on.cypress.io/custom-commands // ***************************...
// *********************************************** // This example commands.js shows you how to // create various custom commands and overwrite // existing commands. // // For more comprehensive examples of custom // commands please read more here: // https://on.cypress.io/custom-commands // ***************************...
Add functionality for filling in checkboxes
Add functionality for filling in checkboxes
JavaScript
mit
ministryofjustice/cla_public,ministryofjustice/cla_public,ministryofjustice/cla_public,ministryofjustice/cla_public
205535d3723b96163f74e4d18a3dd3a5fa84dcf9
screens/MemoriesScreen.js
screens/MemoriesScreen.js
import React from "react"; import { Text } from "react-native"; export default class MemoriesScreen extends React.Component { render() { return ( <Text>My memories</Text> ); } } MemoriesScreen.route = { navigationBar: { title: "My memories", } };
import React from "react"; import { Text } from "react-native"; var memory = { eventName: "Tree planting", eventDate: Date(), image: require("../static/content/images/memories/01.jpg") }; var userData = { name: "Sara", image: require("../static/content/images/people/users/01_sara_douglas.jpg"), memories...
Add sample data example to memories screen for UI dev
Add sample data example to memories screen for UI dev
JavaScript
mit
ottobonn/roots
8caa309f6a807555825f277e5f277007544b9957
js/end_game.js
js/end_game.js
var endGame = function(game){ if (game.player.lives > 0) { missBall(game.ball, game.player) } else if (game.player.lives <= 0 ){ gameOver() } } var missBall = function(ball, player){ if ( ball.bottomEdge().y == canvas.height){ return player.loseLife() } return false } function gameOver() { ...
var endGame = function(game){ if (game.player.lives > 0) { missBall(game.ball, game.player) } else if (game.player.lives <= 0 ){ gameOver() } if (stillBricks(game.bricks)) { winGame() } } var missBall = function(ball, player){ if ( ball.bottomEdge().y == canvas.height){ console.log("Lost L...
Implement win game prompt after all bricks destroyed
Implement win game prompt after all bricks destroyed
JavaScript
mit
theomarkkuspaul/Brick-Breaker,theomarkkuspaul/Brick-Breaker
7388412cc4908793883e0de2348f8b44b72e2256
js/main.js
js/main.js
document.addEventListener('DOMContentLoaded', function() { var searchButton = document.getElementById('search'); searchButton.addEventListener('click', (function() { var query = document.getElementById('form').query.value; var engine = document.querySelector('input[name="engine"]:checked').value; var u...
document.addEventListener('DOMContentLoaded', function() { var searchButton = document.getElementById('search'); document.querySelector('input[name="engine"]:checked').focus(); searchButton.addEventListener('click', (function() { var query = document.getElementById('form').query.value; var engine = docum...
Add focus on the first radio button
Add focus on the first radio button
JavaScript
mit
yu-i9/HoogleSwitcher,yu-i9/HoogleSwitcher
5641a9bc6a72b30572840e4067c9421ecd973f27
app/assets/javascripts/angular/main/register-controller.js
app/assets/javascripts/angular/main/register-controller.js
(function(){ 'use strict'; angular .module('secondLead') .controller('RegisterCtrl', [ 'Restangular', '$state', 'store', 'UserModel', function (Restangular, $state, store, UserModel) { var register = this; register.newUser = {}; register.onSubmit = function () { UserMode...
(function(){ 'use strict'; angular .module('secondLead') .controller('RegisterCtrl', [ 'Restangular', '$state', 'store', 'UserModel', function (Restangular, $state, store, UserModel) { var register = this; register.newUser = {}; register.onSubmit = function () { UserMode...
Add update to usermodel upon signup with register controller
Add update to usermodel upon signup with register controller
JavaScript
mit
ac-adekunle/secondlead,ac-adekunle/secondlead,ac-adekunle/secondlead
917b47168540b27682825b50155aaf34ecef3b62
compassion.colleague/ua.js
compassion.colleague/ua.js
var cadence = require('cadence') var util = require('util') function UserAgent (ua) { this._ua = ua } UserAgent.prototype.send = cadence(function (async, properties, body) { var url = util.format('http://%s/kibitz', properties.location) this._ua.fetch({ url: url, post: { island...
var cadence = require('cadence') var util = require('util') function UserAgent (ua) { this._ua = ua } UserAgent.prototype.send = cadence(function (async, properties, body) { var url = util.format('http://%s/kibitz', properties.location) this._ua.fetch({ url: url, post: { key: '...
Adjust user agent for new keyed protocol.
Adjust user agent for new keyed protocol.
JavaScript
mit
bigeasy/compassion
4025d7a5b28d6b3b88af5d78b5b31c304d0afca6
assets/src/stories-editor/helpers/test/addAMPExtraProps.js
assets/src/stories-editor/helpers/test/addAMPExtraProps.js
/** * Internal dependencies */ import { addAMPExtraProps } from '../'; describe( 'addAMPExtraProps', () => { it( 'does not modify non-child blocks', () => { const props = addAMPExtraProps( {}, { name: 'foo/bar' }, {} ); expect( props ).toStrictEqual( {} ); } ); it( 'generates a unique ID', () => { const p...
/** * Internal dependencies */ import { addAMPExtraProps } from '../'; describe( 'addAMPExtraProps', () => { it( 'does not modify non-child blocks', () => { const props = addAMPExtraProps( {}, { name: 'foo/bar' }, {} ); expect( props ).toStrictEqual( {} ); } ); it( 'adds a font family attribute', () => { ...
Remove tests that are not relevant anymore.
Remove tests that are not relevant anymore.
JavaScript
apache-2.0
ampproject/amp-toolbox-php,ampproject/amp-toolbox-php
e5c906b30e793d73972b133cc3099f48a0a1a919
adapter.js
adapter.js
(function() { var global = this; var karma = global.__karma__; karma.start = function(runner) { var suites = global.__karma_benchmark_suites__; var hasTests = !!suites.length; var errors = []; if (!hasTests) { return complete(); } runNextSuite(); function logResult(event) { ...
(function() { var global = this; var karma = global.__karma__; karma.start = function(runner) { var suites = global.__karma_benchmark_suites__; var hasTests = !!suites.length; var errors = []; if (!hasTests) { return complete(); } runNextSuite(); function logResult(event) { ...
Fix logging of errors, Karma expects a string. Reset errors after every cycle.
Fix logging of errors, Karma expects a string. Reset errors after every cycle.
JavaScript
mit
JamieMason/karma-benchmark,JamieMason/karma-benchmark
474fbf5b088004ad676fe71b15f3031755b02b74
src/index.js
src/index.js
import middleware from './internal/middleware' export default middleware export { runSaga } from './internal/runSaga' export { END, eventChannel, channel } from './internal/channel' export { buffers } from './internal/buffers' export { takeEvery, takeLatest } from './internal/sagaHelpers' import { CANCEL } from './i...
import middleware from './internal/middleware' export default middleware export { runSaga } from './internal/runSaga' export { END, eventChannel, channel } from './internal/channel' export { buffers } from './internal/buffers' export { takeEvery, takeLatest } from './internal/sagaHelpers' import { CANCEL } from './i...
Replace `setTimeout` call with 2-args version
Replace `setTimeout` call with 2-args version
JavaScript
mit
yelouafi/redux-saga,eiriklv/redux-saga,HansDP/redux-saga,baldwmic/redux-saga,redux-saga/redux-saga,yelouafi/redux-saga,redux-saga/redux-saga,HansDP/redux-saga,eiriklv/redux-saga,granmoe/redux-saga,baldwmic/redux-saga,ipluser/redux-saga,granmoe/redux-saga,ipluser/redux-saga
3a1caf79f987bfa48d53ae06e1a4156fd09a313a
js/models/geonames-data.js
js/models/geonames-data.js
(function(app) { 'use strict'; var dom = app.dom || require('../dom.js'); var GeoNamesData = function(url) { this._url = url; this._loadPromise = null; this._data = []; }; GeoNamesData.prototype.load = function() { if (!this._loadPromise) { this._loadPromise = dom.loadJSON(this._url)....
(function(app) { 'use strict'; var dom = app.dom || require('../dom.js'); var Events = app.Events || require('../base/events.js'); var GeoNamesData = function(url) { this._url = url; this._loadPromise = null; this._data = []; this._events = new Events(); }; GeoNamesData.prototype.on = fun...
Make events of GeoNames data
Make events of GeoNames data
JavaScript
mit
ionstage/loclock,ionstage/loclock