commit
stringlengths
40
40
old_file
stringlengths
4
236
new_file
stringlengths
4
236
old_contents
stringlengths
1
3.26k
new_contents
stringlengths
16
4.43k
subject
stringlengths
16
624
message
stringlengths
17
3.29k
lang
stringclasses
5 values
license
stringclasses
13 values
repos
stringlengths
5
91.5k
927f134f72634ad149dfe7165eb228b1c7214beb
website/app/application/core/projects/project/files/files-controller.js
website/app/application/core/projects/project/files/files-controller.js
Application.Controllers.controller("FilesController", ["$state", FilesController]); function FilesController($state) { //console.log("FileController going to projects.project.files.all"); //$state.go('projects.project.files.all'); var ctrl = this; ctrl.showSearchResults = showSearchResults; //////...
Application.Controllers.controller("FilesController", ["$state", FilesController]); function FilesController($state) { var ctrl = this; ctrl.showSearchResults = showSearchResults; init(); ////////////////// function showSearchResults() { $state.go('projects.project.files.search'); } ...
Remove console statement. Move initialization logic for controller into init() method.
Remove console statement. Move initialization logic for controller into init() method.
JavaScript
mit
materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org
17fbd3a8d5b777f04f1627d4b366aff57251b485
tasks/config/jst.js
tasks/config/jst.js
/** * Precompiles Underscore templates to a `.jst` file. * * --------------------------------------------------------------- * * (i.e. basically it takes HTML files and turns them into tiny little * javascript functions that you pass data to and return HTML. This can * speed up template rendering on the client...
/** * Precompiles Underscore templates to a `.jst` file. * * --------------------------------------------------------------- * * (i.e. basically it takes HTML files and turns them into tiny little * javascript functions that you pass data to and return HTML. This can * speed up template rendering on the client...
Use custom interpolation for client templates.
Use custom interpolation for client templates.
JavaScript
mit
kumpelblase2/modlab,kumpelblase2/modlab
fda4dd482878862be4a17687e3430b4953938199
api/src/queues/sendAuditEmail.js
api/src/queues/sendAuditEmail.js
import Queue from 'bull' export const SEND_AUDIT_EMAIL = { queueName: 'send_audit_email', jobName: 'Send audit email', } export default (app) => { const queue = new Queue(SEND_AUDIT_EMAIL.queueName, { redis: app.get('redis').url, }) queue.process(async (job) => { job.log('sending audit email') ...
import Queue from 'bull' import Role from '../models/roles' export const SEND_AUDIT_EMAIL = { queueName: 'send_audit_email', jobName: 'Send audit email', } export default (app) => { const queue = new Queue(SEND_AUDIT_EMAIL.queueName, { redis: app.get('redis').url, }) queue.process(async (job) => { ...
Send report to all admins.
Send report to all admins.
JavaScript
agpl-3.0
teikei/teikei,teikei/teikei,teikei/teikei
2a6c66428daeaa4d6aaecfec552cbffd03096cea
frontend/js/google-analytics.js
frontend/js/google-analytics.js
export default function initGoogleAnalytics(port) { port.subscribe((path) => { ga && ga('set', 'page', path); ga && ga('send', 'pageview'); }); }
const ga = window.ga || undefined; export default function initGoogleAnalytics(port) { port.subscribe((path) => { ga && ga('set', 'page', path); ga && ga('send', 'pageview'); }); }
Make ga always an existing variable
Make ga always an existing variable
JavaScript
agpl-3.0
Tradenomiliitto/tradenomiitti,Tradenomiliitto/tradenomiitti,Tradenomiliitto/tradenomiitti
ecbd754b438d200f9a890bac78be62d8e65223cc
test/errors.js
test/errors.js
'use strict'; var assert = require('assert'); var wres = require('..'); describe('Error Handling', function() { it('null resume throws error', function() { assert.throws(function() { wres.render(); }, Error); }); it('invalid resume throws error', function() { assert.throws(function() { w...
'use strict'; var assert = require('assert'); var wres = require('..'); describe('Error Handling', function() { it('null resume throws error', function() { assert.throws(function() { wres.render(); }); }); it('invalid resume throws error', function() { assert.throws(function() { wres.ren...
Fix test scenario expected incorrect type of error
Fix test scenario expected incorrect type of error
JavaScript
apache-2.0
CmStar283/wres,CmStar283/wres
fe55e980717eec0d8a51157b52d2d955fbdb2385
tasks/options/connect.js
tasks/options/connect.js
module.exports = { server: { options: { port: 8000, hostname: '0.0.0.0', base: 'tmp/public', middleware: middleware } } }; // works with tasks/locking.js function lock(req, res, next) { (function retry() { process.isLocked ? setTimeout(retry, 100) : next(); }()); } function...
module.exports = { server: { options: { port: process.env.PORT || 8000, hostname: '0.0.0.0', base: 'tmp/public', middleware: middleware } } }; // works with tasks/locking.js function lock(req, res, next) { (function retry() { process.isLocked ? setTimeout(retry, 100) : next();...
Make port configurable by ENV variable
Make port configurable by ENV variable
JavaScript
mit
digitalplaywright/eak-simple-auth,shin1ohno/EmberAppKit,joliss/broccoli-todo,tomclose/test_loading_problem,sajt/ember-weather,cevn/tasky-web,lucaspottersky/ember-lab-eak,thaume/emberjs-es6-modules,tucsonlabs/ember-weather-legacy,shin1ohno/want-js,grese/miner-app-OLD,grese/miner-app-OLD,mtian/ember-app-kit-azure,tomclos...
d350fee1b49052bced45cd11139a678ef8c016ff
date/Get-date-formated.js
date/Get-date-formated.js
/* Use joliDate() to get date formatted as dd/mm/YYYY hh:mm */ function joliDate(d){ var date = d;//d is a date object if d is a text we an use var date = new Date(d); return zero(date.getDate())+"/"+zero((date.getMonth()+1))+"/"+date.getFullYear()+" "+zero(date.getHours())+":"+zero(date.getMinutes()); } /* This ...
/* Use joliDate() to get date formatted as dd/mm/YYYY hh:mm */ function joliDate(d){ var date = d;//d is a date object if d is a text we an use var date = new Date(d); return zero(date.getDate())+"/"+zero((date.getMonth()+1))+"/"+date.getFullYear()+" "+zero(date.getHours())+":"+zero(date.getMinutes()); } //If you...
Add function for Time and for Data Studio format
Add function for Time and for Data Studio format
JavaScript
apache-2.0
St3ph-fr/my-apps-script-utils
cdb85bebd76b98ea2b33ad895b37595297a62887
api/src/constants.js
api/src/constants.js
import EPSG21781 from '@geoblocks/proj/src/EPSG_21781.js'; import EPSG2056 from '@geoblocks/proj/src/EPSG_2056.js'; export default { themesUrl: undefined, projection: EPSG21781, supportedProjections: [EPSG21781, EPSG2056], resolutions: [250, 100, 50, 20, 10, 5, 2, 1, 0.5, 0.25, 0.1, 0.05], extent: [420000, ...
import EPSG21781 from '@geoblocks/proj/src/EPSG_21781.js'; export default { themesUrl: undefined, projection: EPSG21781, resolutions: [250, 100, 50, 20, 10, 5, 2, 1, 0.5, 0.25, 0.1, 0.05], extent: [420000, 30000, 660000, 350000], /** * The name of the layer to use as background. May be a single value ...
Remove unneeded supportedProjections config property
Remove unneeded supportedProjections config property
JavaScript
mit
camptocamp/ngeo,camptocamp/ngeo,camptocamp/ngeo,camptocamp/ngeo,camptocamp/ngeo
eaf64762184bfd433fce9514501dcd82c54a0e1b
util/null-server.js
util/null-server.js
#!/usr/bin/env node var named = require('../named') var port = +(process.argv[2] || 5321) named.createServer(function(req, res) { console.log('%s:%s/%s %j', req.connection.remoteAddress, req.connection.remotePort, req.connection.type, req) res.end() }).listen(port) .zone('oreilly.com', 'ns1.iriscouch.net', 'us@...
#!/usr/bin/env node var named = require('../named') var port = +(process.argv[2] || 5321) named.createServer(function(req, res) { console.log('%s:%s/%s %j', req.connection.remoteAddress, req.connection.remotePort, req.connection.type, req) res.end('1.1.1.' + req.question[0].name.length) }).listen(port) .zone('o...
Use res.end() to send a dynamic IP address
Use res.end() to send a dynamic IP address
JavaScript
apache-2.0
iriscouch/dnsd,jhs/dnsd
17b4c7248b43182aa33a803372ce0b83876c2977
firefox/prefs.js
firefox/prefs.js
user_pref("accessibility.typeaheadfind.flashBar", 0); user_pref("accessibility.typeaheadfind.prefillwithselection", true); user_pref("browser.backspace_action", 2); user_pref("browser.bookmarks.restore_default_bookmarks", false); user_pref("browser.newtab.url", "about:blank"); user_pref("browser.readinglist.enabled", f...
user_pref("accessibility.typeaheadfind.flashBar", 0); user_pref("accessibility.typeaheadfind.prefillwithselection", true); user_pref("browser.backspace_action", 2); user_pref("browser.bookmarks.restore_default_bookmarks", false); user_pref("browser.newtab.url", "about:blank"); user_pref("browser.readinglist.enabled", f...
Disable some more unused features
firefox: Disable some more unused features
JavaScript
mit
poiru/dotfiles,poiru/dotfiles,poiru/dotfiles
e37630a9ff5b8f7750b57457e74becfacd4d22d3
test/application-test.js
test/application-test.js
var Application = require('../index').Application var assert = require('assert') var path = require('path') var describe = global.describe var it = global.it var beforeEach = global.beforeEach var afterEach = global.afterEach describe('application loading', function () { this.timeout(10000) var app = null bef...
var Application = require('../index').Application var assert = require('assert') var path = require('path') var describe = global.describe var it = global.it var beforeEach = global.beforeEach var afterEach = global.afterEach describe('application loading', function () { this.timeout(10000) var app = null bef...
Add assert for page text
Add assert for page text
JavaScript
mit
electron/spectron,electron/spectron
21121e380f453113fc0d5b9671c3d0cc43a5a301
test/createTestServer.js
test/createTestServer.js
import {defer} from 'q'; import {createServer} from 'restify'; import registerResources from '../src/register'; import {spyOnServer, stopSpyingOnServer} from './serverSpying'; export default async (resource) => { const server = await startServer(resource); return { server, async stop() { st...
import {defer} from 'q'; import {createServer, bodyParser} from 'restify'; import registerResources from '../src/register'; import {spyOnServer, stopSpyingOnServer} from './serverSpying'; export default async (resource) => { const server = await startServer(resource); return { server, async stop()...
Add body parser to test server
Add body parser to test server - previously handlers called in tests did not receive request.body
JavaScript
mit
leoselig/restify-resourcify
50aa507f28579b4fd386276368de074d536f79b5
lib/handlers/window/windoze.js
lib/handlers/window/windoze.js
'use strict'; const windoze = require('windoze'); module.exports.getWindowInfo = function (title) { const details = windoze.getWindowDetailsByTitle(title, true); if (!details) { throw new Error(`Cannot find window: ${title}`); } };
'use strict'; const windoze = require('windoze'); module.exports.getWindowInfo = function (title) { const details = windoze.getWindowDetailsByTitle(title, true); if (!details) { throw new Error(`Cannot find window: ${title}`); } return details; };
Return details if we have them
fix(constraints): Return details if we have them
JavaScript
mit
ProbablePrime/interactive-keyboard,ProbablePrime/beam-keyboard
9b32ddc213e8625de4957c9e08ca8456ebfb96d0
assets/js/navbar.js
assets/js/navbar.js
$(document).ready(function() { $('#navbar_replacement').replaceWith('\ <div class="navbar navbar-inverse navbar-static-top">\ <div class="container">\ <div class="navbar-header">\ <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse...
$(document).ready(function() { $('#navbar_replacement').replaceWith('\ <div class="navbar navbar-inverse navbar-static-top">\ <div class="container">\ <div class="navbar-header">\ <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse...
Add registration link and 2020 logo
Add registration link and 2020 logo
JavaScript
cc0-1.0
NoCaSS14/NoCaSS14.github.io,NoCaSS14/NoCaSS14.github.io
f0ca34c4365e54e8074f1c208bc5249563c95f21
topics/about_equality.js
topics/about_equality.js
module("About Equality (topics/about_equality.js)"); test("numeric equality", function() { equal(3 + __, 7, ""); }); test("string equality", function() { equal("3" + __, "37", "concatenate the strings"); }); test("equality without type coercion", function() { ok(3 === __, 'what is exactly equal to 3?')...
module("About Equality (topics/about_equality.js)"); test("numeric equality", function() { equal(3 + 4, 7, ""); }); test("string equality", function() { equal("3" + "7", "37", "concatenate the strings"); }); test("equality without type coercion", function() { ok(3 === 3, 'what is exactly equal to 3?');...
Complete equality tests to pass
Complete equality tests to pass
JavaScript
mit
supportbeam/javascript_koans,supportbeam/javascript_koans
9284844adc7b87494d192efe7c0100a515a52781
tests/test025.js
tests/test025.js
// Array length test var myArray = [ 1, 2, 3, 4, 5 ]; var myArray2 = [ 1, 2, 3, 4, 5 ]; myArray2[8] = 42; result = myArray.length == 5 && myArray2.length == 9;
// Array length test var myArray = [ 1, 2, 3, 4, 5 ]; var myArray2 = [ 1, 2, 3, 4, 5 ]; myArray2[8] = 42; assert (myArray.length == 5, "'myArray' length: " + myArray.length); assert (myArray2.length == 9, "'myArray2' length: " + myArray2.length); result = 1;
Test modified to use 'asserts'.
Test modified to use 'asserts'.
JavaScript
mit
GuillermoHernan/AsyncScript,GuillermoHernan/AsyncScript,GuillermoHernan/AsyncScript
77494c87737dcdcd9c9ae70699f3b6b0609b7438
lib/winston/transports/index.js
lib/winston/transports/index.js
/* * transports.js: Set of all transports Winston knows about * * (C) 2010 Charlie Robbins * MIT LICENCE * */ Object.defineProperty(exports, 'Console', { configurable: true, enumerable: true, get: function () { return require('./transports/console'); } }); Object.defineProperty(exports, 'File', { ...
/* * transports.js: Set of all transports Winston knows about * * (C) 2010 Charlie Robbins * MIT LICENCE * */ Object.defineProperty(exports, 'Console', { configurable: true, enumerable: true, get: function () { return require('./console'); } }); Object.defineProperty(exports, 'File', { configurabl...
Correct bad paths from rebase.
[fix] Correct bad paths from rebase.
JavaScript
mit
winstonjs/winston,winstonjs/winston
39f4512e78e2648dd890f356f18ba5696b25aa40
lib/elements/panel-messages.js
lib/elements/panel-messages.js
'use babel' /* @flow */ /** @jsx React.h */ import { CompositeDisposable } from 'atom' import React from 'preact' import Message from './message' import { sortMessages } from '../helpers' import type { Linter$Message } from '../types' type Messages$State = { messages: Array<Linter$Message>, showProviderName: boolean...
'use babel' /* @flow */ /** @jsx React.h */ import { CompositeDisposable } from 'atom' import React from 'preact' import Message from './message' import { sortMessages } from '../helpers' import type { Linter$Message } from '../types' type Messages$State = { messages: Array<Linter$Message>, showProviderName: boolean...
Set tabindex on panel messages to allow text selection
:new: Set tabindex on panel messages to allow text selection
JavaScript
mit
steelbrain/linter-ui-default,AtomLinter/linter-ui-default,steelbrain/linter-ui-default
0972cc76d75b46cceda807d3a4010e0782738ebb
src/components/schemalist/schemalistitem.js
src/components/schemalist/schemalistitem.js
'use strict'; /** * @ngdoc directive * @name polestar.directive:schemaListItem * @description * # schemaListItem */ angular.module('vlui') .directive('schemaListItem', function (Pills, cql, Logger) { return { templateUrl: 'components/schemalist/schemalistitem.html', restrict: 'E', replace:...
'use strict'; /** * @ngdoc directive * @name polestar.directive:schemaListItem * @description * # schemaListItem */ angular.module('vlui') .directive('schemaListItem', function (Pills, cql, Logger) { return { templateUrl: 'components/schemalist/schemalistitem.html', restrict: 'E', replace:...
Remove add field logInteraction as we'll do it in spec service instead
Remove add field logInteraction as we'll do it in spec service instead (See https://github.com/uwdata/voyager2/commit/2d7c23fc2d0bbd2ebf89194aed61aec840ced416)
JavaScript
bsd-3-clause
uwdata/vega-lite-ui,vega/vega-lite-ui,uwdata/vega-lite-ui,uwdata/vega-lite-ui,vega/vega-lite-ui,vega/vega-lite-ui
99b96d4883db12a307b17fa71276ce7a8594bb7c
src/components/timerPulser/TimerPulser.js
src/components/timerPulser/TimerPulser.js
import React, { PureComponent } from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; import theme from './theme.css'; class TimerPulser extends PureComponent { render() { const { className, size, ...others } = this.props; console.log(theme[`${size}`]); return ( <div class...
import React, { PureComponent } from 'react'; import PropTypes from 'prop-types'; import Box from '../box'; import cx from 'classnames'; import theme from './theme.css'; class TimerPulser extends PureComponent { render() { const { className, size, ...others } = this.props; return ( <Box data-t...
Change div to Box and give a data-teamleader-ui
Change div to Box and give a data-teamleader-ui
JavaScript
mit
teamleadercrm/teamleader-ui
8d03766350775a40cbf0efdde3cecf269049cf70
src/Oro/Bundle/LocaleBundle/Resources/public/js/app/views/language-select-view.js
src/Oro/Bundle/LocaleBundle/Resources/public/js/app/views/language-select-view.js
define(function(require) { 'use strict'; var LanguageSelectView; var BaseView = require('oroui/js/app/views/base/view'); var _ = require('underscore'); var $ = require('jquery'); var mediator = require('oroui/js/mediator'); LanguageSelectView = BaseView.extend({ /** * @pro...
define(function(require) { 'use strict'; var LanguageSelectView; var BaseView = require('oroui/js/app/views/base/view'); var _ = require('underscore'); var $ = require('jquery'); var mediator = require('oroui/js/mediator'); LanguageSelectView = BaseView.extend({ /** * @pro...
Update system configuration for languages - updated js component
BAP-11411: Update system configuration for languages - updated js component
JavaScript
mit
geoffroycochard/platform,geoffroycochard/platform,Djamy/platform,geoffroycochard/platform,orocrm/platform,orocrm/platform,orocrm/platform,Djamy/platform,Djamy/platform
8763ac9252d7b869f2662574b960a5da9f4d1653
bin/setup-apex.js
bin/setup-apex.js
import path from 'path' import fs from 'fs' import rimraf from 'rimraf' import mkdirp from 'mkdirp' import config from '../config' import { outputs } from '../src/server/lib/cloudFormation' const apexProjectTemplate = { name: config.cloudFormation, description: 'Scraper Queue Lambda Functions', memory: 128, ti...
import path from 'path' import fs from 'fs' import rimraf from 'rimraf' import mkdirp from 'mkdirp' import config from '../config' import { outputs } from '../src/server/lib/cloudFormation' const apexProjectTemplate = { name: config.cloudFormation, description: 'lambda-comments Lambda Functions', memory: 128, ...
Modify apex config to use nodejs 4.3 without the shim
Modify apex config to use nodejs 4.3 without the shim Setting "shim": false isn't documented. Hopefully it will be supported by Apex going forward.
JavaScript
isc
jimpick/lambda-comments,jimpick/lambda-comments
b97434b8fb639120fd5b086555fb14a6bca81b5b
voice/conference-call.js
voice/conference-call.js
'use strict'; require('dotenv').config({path: __dirname + '/../.env'}); const NEXMO_FROM_NUMBER = process.env.NEXMO_FROM_NUMBER; const NEXMO_TO_NUMBER = process.env.NEXMO_TO_NUMBER; const app = require('express')(); const bodyParser = require('body-parser'); app.use(bodyParser.json()); app.use(bodyParser.urlencoded(...
'use strict'; require('dotenv').config({path: __dirname + '/../.env'}); const NEXMO_FROM_NUMBER = process.env.NEXMO_FROM_NUMBER; const NEXMO_TO_NUMBER = process.env.NEXMO_TO_NUMBER; const app = require('express')(); const bodyParser = require('body-parser'); app.use(bodyParser.json()); app.use(bodyParser.urlencoded(...
Move location of server start in conference
Move location of server start in conference
JavaScript
mit
nexmo-community/nexmo-node-quickstart,nexmo-community/nexmo-node-quickstart
979748cf1916109fbc16df66ed1ad514b588c4b5
node-tests/blueprints/route-addon-test.js
node-tests/blueprints/route-addon-test.js
'use strict'; var setupTestHooks = require('ember-cli-blueprint-test-helpers/lib/helpers/setup'); var BlueprintHelpers = require('ember-cli-blueprint-test-helpers/lib/helpers/blueprint-helper'); var generateAndDestroy = BlueprintHelpers.generateAndDestroy; describe('Acceptance: ember generate and destroy route-...
'use strict'; var blueprintHelpers = require('ember-cli-blueprint-test-helpers/helpers'); var setupTestHooks = blueprintHelpers.setupTestHooks; var emberNew = blueprintHelpers.emberNew; var emberGenerateDestroy = blueprintHelpers.emberGenerateDestroy; var chai = require('ember-cli-blueprint-test-helpers/chai'); var e...
Use alternative blueprint test helpers
tests/route-addon: Use alternative blueprint test helpers
JavaScript
mit
ember-cli/ember-cli-legacy-blueprints,ember-cli/ember-cli-legacy-blueprints
0d4383fb0b9f935f8c322deaa85f12da36491a2c
models/photo.js
models/photo.js
'use strict'; var mongoose = require('mongoose'), Schema = mongoose.Schema; var photoSchema = new Schema({ description: { type: String }, submitted: { type: Date }, dateTaken: { type: Date }, flickrId: { type: String }, flickrUrl: { type: String }, latitude: { type: Str...
'use strict'; var mongoose = require('mongoose'), Schema = mongoose.Schema; var photoSchema = new Schema({ description: { type: String }, submitted: { type: Date }, dateTaken: { type: Date }, flickrId: { type: String }, flickrUrl: { type: String }, latitude: { type: Num...
Change lat/lng type to Number
Change lat/lng type to Number
JavaScript
mit
RHoKAustralia/witnesskingtides-api,thewheat/kingtides-api,RHoKAustralia/witnesskingtides-api,thewheat/kingtides-api
68a523b83752c2117a4682a4c31f02e8fea2c655
src/assets/scripts/service-worker/service-worker.js
src/assets/scripts/service-worker/service-worker.js
// JavaScript Document // Scripts written by YOURNAME @ YOURCOMPANY // no service worker for previews self.addEventListener("fetch", (event) => { if (event.request.url.match(/preview=true/)) { return; } }); // set up caching toolbox.precache(["/", "./assets/styles/modern.css"]); toolbox.router.get("....
// JavaScript Document // Scripts written by YOURNAME @ YOURCOMPANY // no service worker for previews self.addEventListener("fetch", (event) => { if (event.request.url.match(/preview=true/)) { return; } }); // set up caching toolbox.precache(["/", "./assets/media/logo.svg", "./assets/media/spriteshee...
Add a few cache URLs
Add a few cache URLs
JavaScript
mit
JacobDB/new-site,JacobDB/new-site,revxx14/new-site,JacobDB/new-site,revxx14/new-site
afe12a9cda18ca8c7e25e73c76ce91a7dcb796be
src/components/ActivityIndicator.js
src/components/ActivityIndicator.js
/** * https://github.com/facebook/react-native/blob/master/Libraries/Components/ActivityIndicator/ActivityIndicator.js */ import React from 'react'; import NativeMethodsMixin from '../mixins/NativeMethodsMixin'; import View from './View'; const { PropTypes } = React; const ActivityIndicator = React.createClass({ ...
/** * https://github.com/facebook/react-native/blob/master/Libraries/Components/ActivityIndicator/ActivityIndicator.js */ import React from 'react'; import NativeMethodsMixin from '../mixins/NativeMethodsMixin'; import View from './View'; import ColorPropType from '../propTypes/ColorPropType'; const { PropTypes } = ...
Use ColorPropType to validate color prop
Use ColorPropType to validate color prop
JavaScript
mit
Root-App/react-native-mock-render,lelandrichardson/react-native-mock,RealOrangeOne/react-native-mock,dingbat/react-native-mock
cbeadcb3dc13b19701ad25dccbacbf199183116a
packages/npm/spec/helpers-spec.js
packages/npm/spec/helpers-spec.js
'use babel' import Path from 'path' import { exists, versionFromRange, getManifestPath } from '../lib/helpers' const { it } = require(process.env.SPEC_HELPER_SCRIPT) const rootDirectory = Path.normalize(Path.join(__dirname, '..')) describe('exists', function() { it('works', async function() { expect(await exist...
'use babel' import Path from 'path' import { versionFromRange, getManifestPath } from '../lib/helpers' const { it } = require(process.env.SPEC_HELPER_SCRIPT) const rootDirectory = Path.normalize(Path.join(__dirname, '..')) describe('versionFromRange', function() { it('extracts a version from semver range', function...
Remove unnecessary fs specs from npm package
:fire: Remove unnecessary fs specs from npm package
JavaScript
mpl-2.0
motion/motion,flintjs/flint,flintjs/flint,motion/motion,flintjs/flint
458b4e870407d8d92c8dda2346463ac85d9ed07a
packages/server/src/encryption.js
packages/server/src/encryption.js
import bcrypt from 'bcryptjs'; const hashPassword = async (password) => { const salt = await bcrypt.genSalt(10); const hash = await bcrypt.hash(password, salt); return hash; }; export { hashPassword }; const verifyPassword = async (password, hash) => bcrypt.compare(password, hash); export { verifyPassword };
import bcrypt from 'bcryptjs'; import crypto from 'crypto'; const hashPassword = async (password) => { const salt = await bcrypt.genSalt(10); const hash = await bcrypt.hash(password, salt); return hash; }; export { hashPassword }; const shaPassword = password => { const hash = crypto.createHash('sha256'); ...
Test of sha passwords (meteor accounts)
Test of sha passwords (meteor accounts)
JavaScript
mit
js-accounts/accounts
d11b57b98c54d7fb51a830672c2318be416b19e4
test/estimators/I.test.js
test/estimators/I.test.js
const nudged = require('../../index') const unit = nudged.estimators.I module.exports = (ts) => { ts.test('case: happy', (t) => { t.deepEqual(unit(), { a: 1, b: 0, x: 0, y: 0 }) t.end() }) ts.test('case: no effect from params', (t) => { const domain = [{ x: 0, y: 0 }] ...
const title = 'transform.IDENTITY: ' const nudged = require('../../index') const unit = nudged.estimators.I module.exports = (ts) => { ts.test(title + 'happy', (t) => { t.deepEqual(unit(), { a: 1, b: 0, x: 0, y: 0 }) t.end() }) ts.test(title + 'no effect from params', (t) =>...
Use title string instead of case prefix
Use title string instead of case prefix
JavaScript
mit
axelpale/nudged
a4eb784009ef2b03472e4805277ca83b6ea4b4de
test/api/httpSpec.js
test/api/httpSpec.js
const frisby = require('frisby') const URL = 'http://localhost:3000' describe('HTTP', function () { it('response must contain CORS header allowing all origins', function (done) { frisby.get(URL) .expect('status', 200) .expect('header', 'Access-Control-Allow-Origin', '*') .done(done) }) it...
const frisby = require('frisby') const URL = 'http://localhost:3000' describe('HTTP', function () { it('response must contain CORS header allowing all origins', function (done) { frisby.get(URL) .expect('status', 200) .expect('header', 'Access-Control-Allow-Origin', '*') .done(done) }) it...
Add X-XSS-Protection header absence test
Add X-XSS-Protection header absence test
JavaScript
mit
m4l1c3/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop,bonze/juice-shop,bkimminich/juice-shop,m4l1c3/juice-shop,m4l1c3/juice-shop,bkimminich/juice-shop,m4l1c3/juice-shop,bonze/juice-shop,m4l1c3/juice-shop,bkimminich/juice-shop,bonze/juice-shop,bonze/juice-shop,bonze/juice-shop,bkimminich/juice-shop
cfeb4acdb34d14197b4ebdb08562806edb996fa7
lib/bin/bozon.js
lib/bin/bozon.js
var program = require('commander') var runner = require('./runner') var json = require('../../package.json') program .version(json.version) program .command('new <name>') .description('Generate scaffold for new Electron application') .action(function (name) { runner.new(name) }) program .command('sta...
var program = require('commander') var runner = require('./runner') var json = require('../../package.json') program .version(json.version) program .command('new <name>') .description('Generate scaffold for new Electron application') .action(function (name) { runner.new(name) }) program .command('sta...
Add short alias for start command
Add short alias for start command
JavaScript
mit
railsware/bozon,railsware/bozon
48ffabdc6ea49ce1af46684a3a66657ad3b9e91f
template/_footer.js
template/_footer.js
// Expose Raven to the world if (typeof define === 'function' && define.amd) { // AMD window.Raven = Raven; define('raven', [], function() { return Raven; }); } else if (typeof module === 'object') { // browserify module.exports = Raven; } else if (typeof exports === 'object') { // Com...
// Expose Raven to the world if (typeof define === 'function' && define.amd) { // AMD window.Raven = Raven; define('raven', [], function() { return Raven; }); } else if (typeof module === 'object') { // browserify module.exports = Raven; } else if (typeof exports === 'object') { // Com...
Support nodeunit and other node-like environments
Support nodeunit and other node-like environments Fixes #338
JavaScript
bsd-2-clause
clara-labs/raven-js,Mappy/raven-js,getsentry/raven-js,housinghq/main-raven-js,malandrew/raven-js,getsentry/raven-js,eaglesjava/raven-js,getsentry/raven-js,iodine/raven-js,iodine/raven-js,benoitg/raven-js,PureBilling/raven-js,Mappy/raven-js,Mappy/raven-js,malandrew/raven-js,benoitg/raven-js,clara-labs/raven-js,getsentry...
dc18b69c840fc4a135a290fc27dc35560f57d74d
src/scripts/lib/server/utils/server-config/index.js
src/scripts/lib/server/utils/server-config/index.js
const Configstore = require('configstore'); const Promise = require('promise'); const inq = require('inquirer'); const pkg = require('../../../../package.json'); const prompts = require('./setup-prompts'); class ServerConfig { static DEFAULTS = { 'isFirstRun': true, 'serverPort': '3000' } constructor(d...
const Configstore = require('configstore'); const Promise = require('promise'); const inquirer = require('inquirer'); const pkg = require('../../../../package.json'); const prompts = require('./setup-prompts'); class ServerConfig { static DEFAULTS = { 'isFirstRun': true, 'serverPort': '3000' } construc...
Use inquirer as constant name
Use inquirer as constant name
JavaScript
mit
timkurvers/wowser,eoy/wowser,timkurvers/wowser,eoy/wowser,wowserhq/wowser,wowserhq/wowser
48f644c51f84c11aa6ea900383c81dd7ddf5c840
Miscellaneous/ebay.highlight-bids.user.js
Miscellaneous/ebay.highlight-bids.user.js
// ==UserScript== // @name eBay - Hilight Items With Bids // @namespace http://mathemaniac.org // @include http://*.ebay.*/* // @grant none // @version 2.3.3 // @require http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js // @description Hilights items that have bids ...
// ==UserScript== // @name eBay - Hilight Items With Bids // @namespace http://mathemaniac.org // @include http://*.ebay.*/* // @include https://*.ebay.*/* // @grant none // @version 2.3.4 // @require http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js // @descrip...
Update eBay script to handle https
Update eBay script to handle https
JavaScript
mit
Eckankar/userscripts,Eckankar/userscripts
06c2bbca3adae912c1766bc485606a1a4f5f5747
tests/index.spec.js
tests/index.spec.js
'use strict'; var phrase = require('../'); var assert = require('assert'); var fs = require('fs'); var _ = require('lodash'); describe('gulp phrase test suite', function() { //set timeout to prevent mocha error in assyncrous execution this.timeout(150000); it('should download all phraseapp files', funct...
'use strict'; var phrase = require('../'); var assert = require('assert'); var fs = require('fs'); var _ = require('lodash'); describe('gulp phrase test suite', function() { //set timeout to prevent mocha error in assyncrous execution this.timeout(150000); it('should download all phraseapp files', funct...
Remove phraseapp token from tests
Remove phraseapp token from tests
JavaScript
mit
danjesus/gulp-phrase
b11834c74cc4dfd3a4662fdc096b3c43d0973d81
src/js/Sprite.js
src/js/Sprite.js
function Sprite(url, srcPos, width, height, animRate, animSeq) { this.url = url; this.srcPos = srcPos; this.width = width; this.height = height; this.animRate = animRate !== null ? animRate : 0; this.animSeq = this.animRate > 0 ? animSeq : []; this.update = function(dt) { currentTim...
function SpriteManager() { function addSprite(spriteName, url, srcPos, width, height, animRate, animSeq) { sprites[spriteName] = new Sprite(url, srcPos, width, height, animRate, animSeq); } function update(dt) { for (var key in sprites) { if (sprites.hasOwnProperty(key)) { ...
Add sprite manager to track all sprites in one place
Add sprite manager to track all sprites in one place
JavaScript
mit
Tactique/jswars
ce62511da2f6b132171e2304749b1905d874bba7
src/main/webapp/js/hayabusa-shortcutkeys.js
src/main/webapp/js/hayabusa-shortcutkeys.js
//open command bar Mousetrap.bindGlobal(['shift+up'], function(e) { document.getElementById('light').style.display='block'; return false; }); //close command bar Mousetrap.bindGlobal(['shift+down', 'esc'], function(e) { document.getElementById('light').style.display='none'; return false; }); //open command ba...
//open command bar Mousetrap.bindGlobal(['shift+up'], function(e) { document.getElementById('light').style.display='block'; return false; }); //close command bar Mousetrap.bindGlobal(['shift+down', 'esc'], function(e) { document.getElementById('light').style.display='none'; return false; }); //open command ba...
Add keyboard shortcut key support for voice search for Mac
Add keyboard shortcut key support for voice search for Mac
JavaScript
bsd-3-clause
blackboard/hayabusa,blackboard/hayabusa,blackboard/hayabusa
60ca0676414e77ada034515e4febd7c513b8b58d
blueprints/ember-l10n/index.js
blueprints/ember-l10n/index.js
/* eslint-env node */ 'use strict'; module.exports = { description: 'Adds addons, packages and bower packages for ember-l10n', normalizeEntityName() { // leave empty for main blueprint run by `ember install ember-l10n` }, afterInstall() { return this.addPackagesToProject([ { name: 'ember-...
/* eslint-env node */ 'use strict'; module.exports = { description: 'Adds addons, packages and bower packages for ember-l10n', normalizeEntityName() { // leave empty for main blueprint run by `ember install ember-l10n` }, afterInstall() { return this.addPackagesToProject([ { name: 'ember-...
Remove ember-ajax from install blueprint
Remove ember-ajax from install blueprint
JavaScript
mit
Cropster/ember-l10n,Cropster/ember-l10n,Cropster/ember-l10n
79ce749f78df2b6b62d1965a22eaa94e7dc6e967
www/lib/ready.js
www/lib/ready.js
$(document).ready(function() { BVB.init(); $(document).on("click", "#menu a", function() { href = $(this).attr("href"); window.location.hash = href; }); $(document).on("click", ".fav-star", function() { var recipe_id = $(this).data("recipe-id"); var fav_span = BVB.getFavSpan(recipe_id); $...
$(document).ready(function() { BVB.init(); $(document).on("click", "#menu a", function() { href = $(this).attr("href"); window.location.hash = href; }); $(document).on("click", ".fav-star", function() { var recipe_id = $(this).data("recipe-id"); var fav_span = BVB.getFavSpan(recipe_id); $...
Add event for close menu when click on cross image
Add event for close menu when click on cross image
JavaScript
mit
enoliglesias/wpreader,enoliglesias/wpreader
3e08f736a4cca5a813f8553ee51d649a3a076e26
app/js/arethusa.core/directives/current_message.js
app/js/arethusa.core/directives/current_message.js
"use strict"; angular.module('arethusa.core').directive('currentMessage', [ 'notifier', function(notifier) { return { restrict: 'A', link: function(scope, element, attrs) { scope.notifier = notifier; scope.messages = notifier.messages; scope.$watch('notifier.current', functi...
"use strict"; angular.module('arethusa.core').directive('currentMessage', [ 'notifier', '$timeout', function(notifier, $timeout) { return { restrict: 'A', link: function(scope, element, attrs) { var timer; function setMessage(message) { scope.message = message; ...
Clear message after a given time
Clear message after a given time
JavaScript
mit
fbaumgardt/arethusa,fbaumgardt/arethusa,alpheios-project/arethusa,PonteIneptique/arethusa,fbaumgardt/arethusa,latin-language-toolkit/arethusa,Masoumeh/arethusa,PonteIneptique/arethusa,Masoumeh/arethusa,alpheios-project/arethusa,latin-language-toolkit/arethusa,alpheios-project/arethusa
9ef6548c89c775debf376efe0d6f1d6322221efa
packages/@sanity/cli/src/commands/logout/logoutCommand.js
packages/@sanity/cli/src/commands/logout/logoutCommand.js
import chalk from 'chalk' import got from 'got' import getUserConfig from '../../util/getUserConfig' const baseUrl = 'https://api.sanity.io/v1' const logoutUrl = `${baseUrl}/auth/logout` export default { name: 'logout', command: 'logout', describe: 'Logs out of the Sanity.io session', async handler({print, er...
import chalk from 'chalk' import got from 'got' import getUserConfig from '../../util/getUserConfig' const baseUrl = 'https://api.sanity.io/v1' const logoutUrl = `${baseUrl}/auth/logout` export default { name: 'logout', command: 'logout', describe: 'Logs out of the Sanity.io session', async handler({print, er...
Improve logout handling when no token is found
Improve logout handling when no token is found
JavaScript
mit
sanity-io/sanity,sanity-io/sanity,sanity-io/sanity,sanity-io/sanity
01ef650f89a82fae81703a1581c79908f053e06e
addon/mixins/sorted-rows.js
addon/mixins/sorted-rows.js
import Em from 'ember'; import Row from 'llama-table/controllers/row'; import { makeArray } from 'llama-table/computed'; var computed = Em.computed; var map = computed.map; var sort = computed.sort; var reads = computed.reads; var SortedRowsMixin = Em.Mixin.create({ _rowsSource: makeArray('rows'), _rowsSortOrder: m...
import Em from 'ember'; import Row from 'llama-table/controllers/row'; import { makeArray } from 'llama-table/computed'; var computed = Em.computed; var map = computed.map; var sort = computed.sort; var reads = computed.reads; var SortedRowsMixin = Em.Mixin.create({ _rowsSource: makeArray('rows'), _rowsSortOrder: m...
Make sortProperties an optional config attribute
Make sortProperties an optional config attribute
JavaScript
mit
luxbet/ember-cli-llama-table,luxbet/ember-cli-llama-table
48b93b22be3886122b0345f58f42bf37ba83cdbc
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', 'ember-modifier': '2.1.2 || 3.0.0', '@embroider/util': '*', }, };
/* 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': '*', }, };
Remove dependency lint exception for ember-modifier
Remove dependency lint exception for ember-modifier This isn't needed anymore as everything is in sync now.
JavaScript
mit
ilios/common,ilios/common
4d86aeb3dd0e8d92cce02901cc37c3b3078b11d9
client/test/setup.js
client/test/setup.js
import jsdom from 'jsdom'; import chai from 'chai'; import chaiImmutable from 'chai-immutable'; import ignoreStyles from 'ignore-styles'; global.document = jsdom.jsdom('<!doctype html><html><body></body></html>'); global.window = document.defaultView; global.navigator = global.window.navigator; chai.use(chaiImmutable...
import jsdom from 'jsdom'; import chai from 'chai'; import chaiImmutable from 'chai-immutable'; import chaiSpies from 'chai-spies'; import ignoreStyles from 'ignore-styles'; global.document = jsdom.jsdom('<!doctype html><html><body></body></html>'); global.window = document.defaultView; global.navigator = global.windo...
Add spies for Chai assertion library
Add spies for Chai assertion library
JavaScript
mit
marlonbernardes/coding-stickers,marlonbernardes/coding-stickers
94d7099e82bdb3a27821fe1ad6b2c61d25d7aba4
spec/definitions/invoice/index.js
spec/definitions/invoice/index.js
'use strict'; module.exports = { 'required': [ 'sender', 'receiver', 'items', 'due', 'paymentDays' ], 'properties': { 'id': require('../id'), 'invoiceId': { 'type': 'number', 'description': 'Unique invoice id generated interna...
'use strict'; module.exports = { 'required': [ 'sender', 'receiver', 'items', 'due', 'paymentDays' ], 'properties': { 'id': require('../id'), 'invoiceId': { 'type': 'number', 'description': 'Unique invoice id generated interna...
Use date as formatting type
Use date as formatting type Date is a formatting type instead of a real one. This seems to work.
JavaScript
mit
koodilehto/koodilehto-crm-backend,bebraw/swagger-todo,bebraw/react-crm-backend
eae13a065724b87d7c4447e1f757d3613ec46876
src/scripts/services/snap-remote.js
src/scripts/services/snap-remote.js
angular.module('snap') .factory('snapRemote', ['$q', function($q) { 'use strict'; // Provide direct access to the snapper object and a few convenience methods // for our directives. var deferred = $q.defer() , exports; exports = { // Returns null until our `snap-content` initializ...
angular.module('snap') .factory('snapRemote', ['$q', function($q) { 'use strict'; // Provide direct access to the snapper object and a few convenience methods // for our directives. var deferred = $q.defer() , exports; exports = { get: function() { return deferred.promise;...
Remove misleading and unnecessary comments
fix: Remove misleading and unnecessary comments
JavaScript
mit
jtrussell/angular-snap.js,Malkiat-Singh/angular-snap.js,kzganesan/angular-snap.js,kzganesan/angular-snap.js,jtrussell/angular-snap.js,Malkiat-Singh/angular-snap.js
1842ec09c7046f134c9c3e164e07b98a972c5dd7
app/views/card_container.js
app/views/card_container.js
var CardContainerView = Ember.View.extend({ classNames: ['card-container'], templateName: 'card_container', }); export default CardContainerView;
var CardContainerView = Ember.View.extend({ classNameBindings: [':card-container','isBubble:bubble-style:default-style'], templateName: 'card_container', isBubble: function(){ return this.get('page.show_style') === 1; }.property('page.show_style'), }); export default CardContainerView;
Add CardContainerView's page show style detection
Add CardContainerView's page show style detection
JavaScript
mit
Naituw/PageBuilder
7c5481d8d6674bd8bdcd61c19c52494fc56b2cf4
core/number-field.js
core/number-field.js
const Types = require('./types'); const field = require('./field'); function numberField(id, args) { const isRequired = !!(args && args.isRequired === true); const isListField = false; const defaultValue = (args && args.defaultValue ? args.defaultValue : undefined); return field(id, Types.NumberType, isRequir...
const Types = require('./types'); const field = require('./field'); function numberField(id, args) { const isRequired = !!(args && args.isRequired === true); const isListField = false; const defaultValue = args && (args.defaultValue !== null || args.defaultValue !== undefined) ? args.defaultValue : undefined...
Fix numberField so that it accepts defaultValue: 0
Fix numberField so that it accepts defaultValue: 0
JavaScript
mit
koiketakayuki/ameba-core
286d812c0e35e63a874ce63aecbcee376050e258
PromiseAllSync.js
PromiseAllSync.js
PromiseAllSync = { extend: function(PromiseClass) { PromiseClass.allSync = function(collection, fn, unfn) { var stack = []; return collection.reduce(function(promise, item) { return promise.then(function() { var nextPromise = fn ? fn(item) : item; return nextPromise.then(fu...
PromiseAllSync = { extend: function(PromiseClass) { var emptyPromise = PromiseClass.resolve || PromiseClass.when; PromiseClass.allSync = function(collection, fn, unfn) { var stack = []; return collection.reduce(function(promise, item) { return promise.then(function() { var nextPr...
Apply the empty promise to the promise class
Apply the empty promise to the promise class
JavaScript
mit
deckar01/PromiseAllSync
a69d92b441ff755a28528a2a0ba8224adb6c22e2
src/builders/link-view-builder.js
src/builders/link-view-builder.js
import * as containers from "./container-view-builder"; import * as url from "url"; import { fetch } from "jsua"; export function linkViewBuilder(node) { var view = document.createElement("a"); if (node.base) { view.href = url.resolve(node.base, node.value.href); } else { view.href = node.value.href...
import * as containers from "./container-view-builder"; import * as url from "url"; import { fetch } from "jsua"; export function linkViewBuilder(node) { var view = document.createElement("a"); if (node.base) { view.href = url.resolve(node.base, node.value.href); } else { view.href = node.value.href...
Rename Function Based on Feedback
Rename Function Based on Feedback
JavaScript
mit
lynx-json/jsua-lynx
2a42d58b32afe3199fdfd5f3f0dbb84a7d037112
__tests__/app.js
__tests__/app.js
const app = require('../app'); const request = require('request-promise-native'); const seeds = require('../lib/seeds'); const seedData = require('./seedData'); describe('app', () => { beforeAll(() => seeds(seedData)); beforeAll(done => app.listen(3000, done)); describe('GET /', () => { it('responds with su...
const app = require('../app'); const requestPromiseNative = require('request-promise-native'); const seeds = require('../lib/seeds'); const seedData = require('./seedData'); describe('app', () => { const request = requestPromiseNative.defaults({ baseUrl: 'http://localhost:3000/' }); beforeAll(() => seeds(seedData...
Use request.defaults() to simplify testing
Use request.defaults() to simplify testing
JavaScript
mit
nicolasmccurdy/rose,nickmccurdy/rose,nickmccurdy/rose,nicolasmccurdy/rose
fd7adf7261512fc95853fd53cf1c710e65b340b4
app/controllers/performance/overview.js
app/controllers/performance/overview.js
'use strict'; var D3 = require('d3'); var Queries = require('../../helpers/queries'); var Utils = require('../../helpers/utils'); var OverviewParser = require('../../helpers/overview_parser'); exports.showPage = { handler: function(request, reply) { return reply.view('performance/overview'); } }; exp...
'use strict'; var D3 = require('d3'); var Queries = require('../../helpers/queries'); var Utils = require('../../helpers/utils'); var OverviewParser = require('../../helpers/overview_parser'); exports.showPage = { handler: function(request, reply) { return reply.view('performance/overview'); } }; exp...
Move labels to api for future translation
Move labels to api for future translation
JavaScript
mit
hks-epod/paydash
2fc782452ecc8d777c92dbaa5488579fb60cb678
src/gui/init.js
src/gui/init.js
/** * Creo le variabili globali necessarie per il corretto funzionamento di * Chronos. * * Created by amantova on 21/02/16. */ // Ogni plugin dovra' specificare in questa variabile il suo nome, in tal // maniera si potra' eseguire la procedura d'esecuzione dei moduli senza // specificare il nome del plugin, accor...
/** * Creo le variabili globali necessarie per il corretto funzionamento di * Chronos. * * Created by amantova on 21/02/16. */ // Ogni plugin dovra' specificare in questa variabile il suo nome, in tal // maniera si potra' eseguire la procedura d'esecuzione dei moduli senza // specificare il nome del plugin, accor...
Add git path defualt value
Add git path defualt value
JavaScript
mpl-2.0
BugBusterSWE/Chronos,BugBusterSWE/Chronos,BugBusterSWE/Chronos,BugBusterSWE/Chronos
51a139531630a4ad00d4aa54738a2f1a1c9eff0e
test_apps/test_app/test/ens_spec.js
test_apps/test_app/test/ens_spec.js
/*global contract, config, it, assert, before*/ const Resolver = require('Embark/contracts/Resolver'); const namehash = require('eth-ens-namehash'); const address = '0x38ac14a9B6a7c8F9C46e4804074186c9F201D0A0'; const rootNode = namehash.hash('embark.eth'); config({ contracts: { "ENSRegistry": { "args": []...
/*global contract, config, it, assert, before*/ const Resolver = require('Embark/contracts/Resolver'); const namehash = require('eth-ens-namehash'); const address = '0x38ac14a9B6a7c8F9C46e4804074186c9F201D0A0'; const rootNode = namehash.hash('embark.eth'); config({ contracts: { "ENSRegistry": { "args": []...
Update ENS test using global
Update ENS test using global
JavaScript
mit
iurimatias/embark-framework,iurimatias/embark-framework
b035ddaa0a096f209f3ba5b8a5c3c368d9eceaeb
lib/dropbox/index.js
lib/dropbox/index.js
'use strict'; var cp = require('child_process'); var child = cp.fork(__dirname + '/child.js'); module.exports = { saveBin: function(bin, user) { child.send({ bin: bin, user: user }); } };
'use strict'; var cp = require('child_process'); var child = cp.fork(__dirname + '/child.js'); var passport = require('passport'); var DropboxOAuth2Strategy = require('passport-dropbox-oauth2').Strategy; var active = false; module.exports = function (options) { return { initialize: function () { active = t...
Move module.eexports to a function so we can setup passport for dropbox
Move module.eexports to a function so we can setup passport for dropbox
JavaScript
mit
roman01la/jsbin,jamez14/jsbin,svacha/jsbin,remotty/jsbin,jamez14/jsbin,KenPowers/jsbin,martinvd/jsbin,yohanboniface/jsbin,late-warrior/jsbin,mcanthony/jsbin,blesh/jsbin,vipulnsward/jsbin,mingzeke/jsbin,y3sh/jsbin-fork,kirjs/jsbin,kentcdodds/jsbin,juliankrispel/jsbin,IveWong/jsbin,AverageMarcus/jsbin,eggheadio/jsbin,jas...
b389bdae73687ab6b5437ec19b7bb24832f86f97
app/services/stocks.js
app/services/stocks.js
app.factory('stocks', ['$http', function($http) { return { stocks: [], getAll: function() { var self = this; return $http.get('http://localhost:3000/stocks') .success(function(data) { angular.copy(data, self.stocks); // return data; }) .error(function(data) { return data; }); ...
app.factory('stocks', ['$http', function ($http) { return { stocks: [], getAll: function () { var self = this; return $http.get('http://localhost:3000/stocks') .success(function (data) { angular.copy(data, self.stocks); // return data; }) .error(functio...
Use spaces instead of tabs
Use spaces instead of tabs
JavaScript
mit
zachloubier/stocks,zachloubier/stocks
384360b79f2b3bd675e1a3ba604f9e50c4e0b994
app/assets/javascripts/spree/apps/store/store_app.js
app/assets/javascripts/spree/apps/store/store_app.js
SpreeStore.module('StoreApp',function(StoreApp, SpreeStore, Backbone,Marionette,$,_){ StoreApp.Router = Marionette.AppRouter.extend({ appRoutes: { "products": "listProducts", "products/:id": "showProduct", "products/page/:number": "listProducts", "cart": "previewCart", "checkout": "c...
SpreeStore.module('StoreApp',function(StoreApp, SpreeStore, Backbone,Marionette,$,_){ StoreApp.Router = Marionette.AppRouter.extend({ appRoutes: { "products": "listProducts", "products/:id": "showProduct", "products/page/:number": "listProducts", "cart": "previewCart", "checkout": "c...
Add routing for checkout states
Add routing for checkout states
JavaScript
bsd-3-clause
njaw/spree,njaw/spree,njaw/spree
8b8135042e129c8324057269f83c8dfff134e07a
app/extensions/brave/content/scripts/dappListener.js
app/extensions/brave/content/scripts/dappListener.js
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. */ const script = ` function __insertWeb3Installed() { if (!window.alreadyInserted) { const meta = docu...
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. */ const script = ` function __insertWeb3Installed() { if (!window.alreadyInserted) { const meta = docu...
Remove console.log which isn't needed
Remove console.log which isn't needed Auditors: da39a3ee5e6b4b0d3255bfef95601890afd80709@kjozwiak
JavaScript
mpl-2.0
luixxiul/browser-laptop,diasdavid/browser-laptop,diasdavid/browser-laptop,diasdavid/browser-laptop,luixxiul/browser-laptop,luixxiul/browser-laptop,luixxiul/browser-laptop,diasdavid/browser-laptop
f44b3b3858aa27b411ad93c7917a96d89b4a329a
examples/webpack.config.babel.js
examples/webpack.config.babel.js
import path from 'path'; import webpack from 'webpack'; export default { entry: path.resolve(__dirname, 'src/index.jsx'), output: { path: path.join(__dirname), filename: 'app.bundle.js' }, module: { loaders: [ { test: /\.jsx?$/, loader...
import path from 'path'; import webpack from 'webpack'; export default { entry: path.resolve(__dirname, 'src/index.jsx'), output: { path: path.join(__dirname), filename: 'app.bundle.js' }, module: { loaders: [ { test: /\.jsx?$/, loader...
Remove unnecessary moduleDirectories for resolveLoader
Remove unnecessary moduleDirectories for resolveLoader
JavaScript
mit
cheton/react-sortable
f1560dac4d4481a869c0e1179ef9cc13a6e82746
gulp_tasks/serve.js
gulp_tasks/serve.js
const gulp = require('gulp'), browserSync = require('browser-sync').get('PGR2015'), inject = require('gulp-inject'), modRewrite = require('connect-modrewrite'), wiredep = require('wiredep').stream; module.exports = function () { browserSync.init({ server: { baseDir: ['./.tmp'], ...
const gulp = require('gulp'), browserSync = require('browser-sync').get('PGR2015'), inject = require('gulp-inject'), modRewrite = require('connect-modrewrite'), wiredep = require('wiredep').stream; module.exports = function () { browserSync.init({ server: { baseDir: ['./.tmp'], ...
Enable HTTPS for localhost dev
Enable HTTPS for localhost dev
JavaScript
mit
rzymek01/ProjektGrupowy2015,rzymek01/ProjektGrupowy2015,rzymek01/ProjektGrupowy2015,rzymek01/ProjektGrupowy2015
c7109a0d89f832adfc287140f208649e871b6de5
djplaces/static/js/djplaces.js
djplaces/static/js/djplaces.js
$(document).ready(function() { $("#id_place") .geocomplete({ map: "#map_location", mapOptions: { zoom: 10 }, markerOptions: { draggable: true } //details: "#id_location" }) .bind("geocode:result", function(event, result){ ...
$(document).ready(function() { $("#id_place") .geocomplete({ map: "#map_location", mapOptions: { zoom: 10 }, markerOptions: { draggable: true } }) .bind("geocode:result", function(event, result) { var coordinates = result.geome...
Set lat and lng values
Set lat and lng values
JavaScript
mit
oscarmcm/django-places,oscarmcm/django-places,oscarmcm/django-places
117956bce1caa8a263b5a19d4783708a368c3479
client/packages/core-app-worona/src/app/router-app-extension-worona/reducers/index.js
client/packages/core-app-worona/src/app/router-app-extension-worona/reducers/index.js
import { routerStateReducer } from 'redux-router'; import * as types from '../types'; export default () => (state = {}, action) => { if (action.type === types.SITE_ID_CHANGED) return { ...state, siteId: action.siteId }; else if (action.type === types.IS_PREVIEW) return { ...state, preview: true }; return routerS...
import { routerStateReducer } from 'redux-router'; import * as types from '../types'; export default () => (state = {}, action) => { if (action.type === types.SITE_ID_CHANGED) return { ...state, siteId: action.siteId }; else if (action.type === types.IS_PREVIEW) return { ...state, preview: true }; return { ...st...
Fix siteIdChanged being triggered twice.
Fix siteIdChanged being triggered twice.
JavaScript
mit
worona/worona-app,worona/worona-app
1910bed6f8e78d236c78c8ff2507a5c2efff0738
assets/js/api/backend.js
assets/js/api/backend.js
/** Backend service This module defines endpoints and access functions the features app REST service */ /* window.fetch polyfill */ import 'whatwg-fetch'; import restful, {fetchBackend} from 'restful.js'; /* Configure restful with fetch backend */ const api = restful('/api', fetchBackend(fetch)); const featureColl...
/** Backend service This module defines endpoints and access functions the features app REST service */ /* window.fetch polyfill */ import 'whatwg-fetch'; import restful, {fetchBackend} from 'restful.js'; /* Configure restful with fetch backend */ const api = restful('/api', fetchBackend(fetch)); const featureColl...
Refactor featureMember to reuse featureCollection
Refactor featureMember to reuse featureCollection
JavaScript
mit
wkevina/feature-requests-app,wkevina/feature-requests-app,wkevina/feature-requests-app
fe5bd9810d61bd987ce8ecfd170a93c82db7738b
modules/gtp/index.js
modules/gtp/index.js
var Tuple = require('tuple-w') exports.Command = require('./command.js') exports.Response = require('./response.js') exports.Controller = require('./controller.js') var alpha = 'abcdefghjklmnopqrstuvwxyz' exports.parseCommand = function(input) { input = input.replace(/\t/g, ' ').trim() var inputs = input.spl...
var Tuple = require('tuple-w') exports.Command = require('./command.js') exports.Response = require('./response.js') exports.Controller = require('./controller.js') var alpha = 'abcdefghjklmnopqrstuvwxyz' exports.parseCommand = function(input) { input = input.replace(/\t/g, ' ').trim() var inputs = input.spl...
Return 'pass' when outside board size
Return 'pass' when outside board size
JavaScript
mit
yishn/Goban,yishn/Sabaki,yishn/Sabaki,yishn/Goban
b79390e373eadc3917beb8e6486dd7cf8e6096d3
cli/start_gateway.js
cli/start_gateway.js
var exec = require('child_process').exec; var processes = { webapp: 'processes/webapp', deposits: 'processes/deposits', outgoing: 'processes/outgoing', incoming: 'processes/incoming', withdrawals: 'processes/withdrawals' }; function startGateway() { var command, name; for (i in processes) { name =...
var exec = require('child_process').exec; var processes = { webapp: 'processes/webapp', deposits: 'processes/deposits', outgoing: 'processes/outgoing', incoming: 'processes/incoming', withdrawals: 'processes/withdrawals', ripple_rest: 'processes/ripple_rest' }; function startGateway() { var command, na...
Add ripple_rest process to bin/gateway start cli command.
[FEATURE] Add ripple_rest process to bin/gateway start cli command.
JavaScript
isc
crazyquark/gatewayd,xdv/gatewayd,whotooktwarden/gatewayd,zealord/gatewayd,crazyquark/gatewayd,Parkjeahwan/awegeeks,zealord/gatewayd,xdv/gatewayd,whotooktwarden/gatewayd,Parkjeahwan/awegeeks
e5241717ad12381502fd5d03e7b2ce7e37be604f
src/js/components/TrainsMap.js
src/js/components/TrainsMap.js
"use strict"; var React = require('react'); var LeafletMap = require('react-leaflet').Map; var Marker = require('react-leaflet').Marker; var Popup = require('react-leaflet').Popup; var TileLayer = require('react-leaflet').TileLayer; var TrainsMap = React.createClass({ getInitialState: function() { return { ...
"use strict"; var React = require('react'); var LeafletMap = require('react-leaflet').Map; var Marker = require('react-leaflet').Marker; var Popup = require('react-leaflet').Popup; var TileLayer = require('react-leaflet').TileLayer; var TrainsMap = React.createClass({ getInitialState: function() { return { ...
Use stamen tiles and set middle point.
Use stamen tiles and set middle point.
JavaScript
apache-2.0
fasteroute/delay-explorer-web,fasteroute/delay-explorer-web
fc527ef1e1404f9ace5d08a3539571b5a4865d27
Source/Module/Accessories/Shortcuts.js
Source/Module/Accessories/Shortcuts.js
/* --- script: Shortcuts.js description: Add command key listeners to the widget license: Public domain (http://unlicense.org). authors: Yaroslaff Fedin requires: - Ext/Shortcuts - LSD.Module - LSD.Module.Events provides: - LSD.Module.Shortcuts ... */ LSD.Module.Shortcuts = new Class({ Implement...
/* --- script: Shortcuts.js description: Add command key listeners to the widget license: Public domain (http://unlicense.org). authors: Yaroslaff Fedin requires: - Ext/Shortcuts - Ext/Element.Events.keypress - LSD.Module - LSD.Module.Events provides: - LSD.Module.Shortcuts ... */ LSD.Module.Sho...
Add dependency on keypress event
Add dependency on keypress event
JavaScript
unlicense
Inviz/lsd
cd0e4804e5f47c5ca782fad8f8c142a1d04491ed
config-default.js
config-default.js
"use strict"; module.exports = { twitter: { consumer_key: "", consumer_secret: "", access_token: "", access_token_secret: "" }, timezone: "Asia/Tokyo", excludePrevThemes: true, themes: [ "ココア", "チノ", "リゼ", "千夜", "シャロ", "マヤ", "メグ", "青山ブルーマウンテン", "モカ" ]...
"use strict"; module.exports = { twitter: { consumer_key: process.env.GODB_TWITTER_CONSUMER_KEY, consumer_secret: process.env.GODB_TWITTER_CONSUMER_SECRET, access_token: process.env.GODB_TWITTER_ACCESS_TOKEN, access_token_secret: process.env.GODB_TWITTER_ACCESS_TOKEN_SECRET }, timezone: "Asia/T...
Use env vars on default config
Use env vars on default config
JavaScript
mit
rot1024/gochiusa-onedraw-bot
3068e9bf91c6a2b78c69806d079c8777be336279
lib/buffer-utils.js
lib/buffer-utils.js
'use strict'; const VAL32 = 0xFFFFFFFF; class BufferUtils { static readUInt64BE(buffer, offset) { let hi = buffer.readUInt32BE(offset); let value = buffer.readUInt32BE(offset + 4); if (hi > 0) { value += hi * VAL32; } return value; } static writeUInt64...
'use strict'; const VAL32 = 0xFFFFFFFF; class BufferUtils { static readUInt64BE(buffer, offset) { let hi = buffer.readUInt32BE(offset); let value = buffer.readUInt32BE(offset + 4); if (hi > 0) { value += hi * (VAL32 + 1); } return value; } static write...
Fix a bug in BufferUtils
Fix a bug in BufferUtils
JavaScript
mit
pipll/node-media-lib
6328329b10783a7d02909b44a4b3ace1d8c18177
app/components/modal-drain-node/component.js
app/components/modal-drain-node/component.js
import { inject as service } from '@ember/service'; import { get } from '@ember/object'; import { alias } from '@ember/object/computed'; import Component from '@ember/component'; import ModalBase from 'shared/mixins/modal-base'; import layout from './template'; import { eachLimit } from 'async'; export default Compone...
import { inject as service } from '@ember/service'; import { get } from '@ember/object'; import { alias } from '@ember/object/computed'; import Component from '@ember/component'; import ModalBase from 'shared/mixins/modal-base'; import layout from './template'; import { eachLimit } from 'async'; export default Compone...
Reset registry modal step on each open
Reset registry modal step on each open The modal was persisting the selection state between multiple closing and openings of the modal. This now resets the selection state. rancher/rancher#27339
JavaScript
apache-2.0
rancherio/ui,westlywright/ui,rancher/ui,westlywright/ui,rancherio/ui,vincent99/ui,rancher/ui,westlywright/ui,rancher/ui,vincent99/ui,vincent99/ui,rancherio/ui
9a119f41bd08ac7c65ca0fd915f95252d71154c6
src/apps/CustomSockets/CustomSockets.js
src/apps/CustomSockets/CustomSockets.js
import React from 'react'; import Reflux from 'reflux'; import Helmet from 'react-helmet'; import Actions from './CustomSocketsActions'; import Store from './CustomSocketsStore'; import { Container, InnerToolbar } from '../../common/'; import CustomSocketsList from './CustomSocketsList'; const CustomSockets = React....
import React from 'react'; import Reflux from 'reflux'; import Helmet from 'react-helmet'; import Actions from './CustomSocketsActions'; import Store from './CustomSocketsStore'; import { Container, InnerToolbar } from '../../common/'; import CustomSocketsList from './CustomSocketsList'; const CustomSockets = React....
Change "Installed Sockets" to "My Sockets"
[DASH-2278] Change "Installed Sockets" to "My Sockets"
JavaScript
mit
Syncano/syncano-dashboard,Syncano/syncano-dashboard,Syncano/syncano-dashboard
2b5b9226de6e58611df8a78a2781197cfb66f655
src/backend/data/models/gc-bsd-group.js
src/backend/data/models/gc-bsd-group.js
import BSDClient from '../../bsd-instance'; export default function(sequelize, DataTypes) { let GCBSDGroup = sequelize.define('GCBSDGroup', { query: { type: DataTypes.TEXT, allowNull: true } }, { underscored: true, tableName: 'gc_bsd_groups', updatedAt: 'modified_dt', createdAt:...
import BSDClient from '../../bsd-instance'; export default function(sequelize, DataTypes) { let GCBSDGroup = sequelize.define('GCBSDGroup', { query: { type: DataTypes.TEXT, allowNull: true } }, { underscored: true, tableName: 'gc_bsd_groups', updatedAt: 'modified_dt', createdAt:...
Fix constraint problem for real. Another sequelize bug
Fix constraint problem for real. Another sequelize bug
JavaScript
agpl-3.0
Bernie-2016/ground-control,Bernie-2016/ground-control,al3x/ground-control,al3x/ground-control,al3x/ground-control,Bernie-2016/ground-control,Bernie-2016/ground-control,al3x/ground-control
13099c324f247021b949e302a560b4012271e3c5
src/deep-core/lib/AWS/Lambda/Context.js
src/deep-core/lib/AWS/Lambda/Context.js
/** * Created by CCristi <ccovali@mitocgroup.com> on 12/10/15. */ 'use strict'; export class Context { /** * @param {Object} options */ constructor(options) { this._options = options; this._registerDataAsOptions(); } /** * @returns {Object} */ get options() { return this._options...
/** * Created by CCristi <ccovali@mitocgroup.com> on 12/10/15. */ 'use strict'; export class Context { /** * @param {Object} options */ constructor(options) { this._options = options; this._registerDataAsOptions(); } /** * @returns {Object} */ get options() { return this._options...
Make _options prop from lambda context not enumerable
Make _options prop from lambda context not enumerable
JavaScript
mpl-2.0
MitocGroup/deep-framework,MitocGroup/deep-framework,MitocGroup/deep-framework
ee5178aefd9a85a80a32af8deac3ffdec563e416
components/join/index.js
components/join/index.js
const Join = () => { return ( <div> <h1>Bli med i linjeforeningen!</h1> <p>Alle informatikere er med i linjeforeningen. Gå videre til <a href="https://online.ntnu.no/">hovedsiden</a> for å lage din brukerkonto på Online sine systemer.</p> <p>Har du lyst til å gjøre studietiden til informatikere ...
const Join = () => { return ( <div className="component"> <h1>Bli med i linjeforeningen!</h1> <p>Alle informatikere er med i linjeforeningen. Gå videre til <a href="https://online.ntnu.no/">hovedsiden</a> for å lage din brukerkonto på Online sine systemer.</p> <p>Har du lyst til å gjøre studieti...
Add className to join component
Add className to join component
JavaScript
mit
dotKom/glowing-fortnight,dotKom/glowing-fortnight
876877af8c6392a55c7a56fd284b915137cb8d29
app/templates/tasks/task-style-lint.js
app/templates/tasks/task-style-lint.js
var gulp = require("gulp"); var CFG = require("./utils/config.js"); var $ = require("gulp-load-plugins")(); var exec = require("child_process").exec; var path = require("path"); var notify = require("./utils/notify-style-lint"); /** * style:lint * @see github.com/causes/scss-lint * @see rubygems.org/g...
var gulp = require("gulp"); var CFG = require("./utils/config.js"); var $ = require("gulp-load-plugins")(); var exec = require("child_process").exec; var path = require("path"); var notify = require("./utils/notify-style-lint"); /** * style:lint * @see github.com/causes/scss-lint * @see rubygems.org/g...
Simplify arguments passed to exec.
Simplify arguments passed to exec.
JavaScript
mit
rishabhsrao/generator-ironhide-webapp,rishabhsrao/generator-ironhide-webapp,rishabhsrao/generator-ironhide-webapp
5ca751dbb2aff72c55c4d8c41966c72fe80e46f2
components/router.js
components/router.js
import React from 'react' import { StackNavigator } from 'react-navigation' import Home from './stateless/screens/Home' import ReposList from './stateless/screens/ReposList' // import SEARCH_QUERY from './stateless/screens/Home' const Router = StackNavigator({ Home: { screen: Home }, ReposList: { screen: props => ...
import React from 'react' import { StackNavigator } from 'react-navigation' import Home from './stateless/screens/Home' import ReposList from './stateless/screens/ReposList' import { SEARCH_QUERY } from './stateless/screens/Home' const Router = StackNavigator({ Home: { screen: Home }, ReposList: { screen: props =>...
Fix prop returning class instead of value of prop
Fix prop returning class instead of value of prop
JavaScript
mit
bnovf/react-native-github-graphql-app
8647c571e7924095688b4add87f2c6392f77175d
test/spec/geo/geocoder/yahoo-geocoder.spec.js
test/spec/geo/geocoder/yahoo-geocoder.spec.js
var YAHOO = require('../../../../src/geo/geocoder/yahoo-geocoder'); describe('geo/geocoder/yahoo-geocoder', function () { var originalTimeout; beforeEach(function () { originalTimeout = jasmine.DEFAULT_TIMEOUT_INTERVAL; jasmine.DEFAULT_TIMEOUT_INTERVAL = 10000; }); afterEach(function () { jasmine....
var YAHOO = require('../../../../src/geo/geocoder/yahoo-geocoder'); describe('geo/geocoder/yahoo-geocoder', function () { it("we shouldn't get a direction that doesn't exist", function (done) { YAHOO.geocode('68461092610314965639', function (d) { expect(d.length).toEqual(0); done(); }); }); });...
Revert "Increase default timeout for yahoo geocoder."
Revert "Increase default timeout for yahoo geocoder." This reverts commit 5a6b778f82ee02b25d400fb9eca9f129cc4f46a6.
JavaScript
bsd-3-clause
splashblot/cartodb.js,splashblot/cartodb.js,splashblot/cartodb.js,splashblot/cartodb.js
a0fe0c30e7e712ce45fbc52bde9e4a31e3870af0
shared/pinentry/dumb.desktop.js
shared/pinentry/dumb.desktop.js
export default { }
// @flow import Pinentry from './index.render' import type {DumbComponentMap} from '../constants/types/more' import type {Props} from './index.render' const propsNormal: Props = { onSubmit: (passphrase, features) => console.log('Pinentry', {passphrase, features}), onCancel: () => {}, features: { 'saveInKeyc...
Add Pinentry dumb component demo to sheet
Add Pinentry dumb component demo to sheet
JavaScript
bsd-3-clause
keybase/client,keybase/client,keybase/client,keybase/client,keybase/client,keybase/client,keybase/client,keybase/client,keybase/client,keybase/client,keybase/client,keybase/client
9144e957c36face5421b5ac9a3a91ce1b89a3569
lib/layoutNode.js
lib/layoutNode.js
'use strict'; var computeLayout = require('./Layout'); /** * This computes the CSS layout for a RenderLayer tree and mutates the frame * objects at each node. * * @param {Renderlayer} root * @return {Object} */ function layoutNode (root) { var rootNode = createNode(root); computeLayout(rootNode); walkNode...
'use strict'; var computeLayout = require('./Layout'); /** * This computes the CSS layout for a RenderLayer tree and mutates the frame * objects at each node. * * @param {Renderlayer} root * @return {Object} */ function layoutNode (root) { var rootNode = createNode(root); computeLayout(rootNode); walkNode...
Fix parent position when walking child nodes
Fix parent position when walking child nodes The child node needs to know its parent's absolute position in order to determine its own absolute position. Previously, the parent's relative position (in relation to its own parent) has been passed. This leads to wrong positioning of nested nodes after several levels of r...
JavaScript
bsd-3-clause
slalx/react-canvas,codrin-iftimie/react-canvas,geminiyellow/react-canvas,jacobbubu/react-canvas,sean0402/react-canvas,jmgaya/react-canvas,issuu/react-canvas,oursky/react-canvas,vyorkin-forks/react-canvas,Jonekee/react-canvas,tejitak/react-canvas,TribeMedia/react-canvas,arnaudmolo/react-canvas,rsnorman/react-canvas,hesl...
75d45dfc5b9dfbd2275f566d1289a6605478abf4
webapp/web/js/login/loginUtils.js
webapp/web/js/login/loginUtils.js
/* $This file is distributed under the terms of the license in /doc/license.txt$ */ $(document).ready(function(){ // login form is hidden by default; use JavaScript to reveal $("#login").removeClass('hidden'); // focus on email or newpassword field $('.focus').focus(); // fade in error ale...
/* $This file is distributed under the terms of the license in /doc/license.txt$ */ $(document).ready(function(){ // login form is hidden by default; use JavaScript to reveal $("#login").removeClass('hidden'); // focus on email or newpassword field $('.focus').focus(); // fade in error ale...
Update to fade out the welcome log in message
Update to fade out the welcome log in message
JavaScript
bsd-3-clause
vivo-project/Vitro,vivo-project/Vitro,vivo-project/Vitro,vivo-project/Vitro
f5a28b03b2d11b30d0f055c14ca55a36637bb2ba
example/HelloWorld/server.js
example/HelloWorld/server.js
'use strict'; /** * Module dependencies. */ //process.env.NODE_ENV = "production"; let Arrow = require('../..'); let application = new Arrow(); global.Arrow = application; //application.before(require('./core_route')); //application.config(); application.listen(3333, function () { console.log('Application s...
'use strict'; /** * Module dependencies. */ let Arrow = require('../..'); let application = new Arrow(); global.Arrow = application; const port = 8000; application.listen(port, function () { console.log('Application started on port ' + port, ', Process ID: ' + process.pid); }); module.exports = application;
Make HelloWorld app look better
Make HelloWorld app look better
JavaScript
mit
arrowjs/ArrowjsCore,arrowjs/ArrowjsCore
1875813a674f7841e040597a975a688b1ce0778e
loaders.config.js
loaders.config.js
/** * ReactCompass - a carefully crafted Compass component for React. * * Copyright (c) 2016 Bohdan Shtepan * http://modern-dev.com/ * * Licensed under the MIT license. */ module.exports = [ { test: /(\.jsx|\.js)$/, preLoaders: ['eslint-loader'], loaders: ['babel-loader'], ex...
/** * ReactCompass - a carefully crafted Compass component for React. * * Copyright (c) 2016 Bohdan Shtepan * http://modern-dev.com/ * * Licensed under the MIT license. */ module.exports = [ { test: /(\.jsx|\.js)$/, loader: 'babel-loader', exclude: /(node_modules|bower_components)/ ...
Configure shity webpack to lint the code exactly before babel would run.
Configure shity webpack to lint the code exactly before babel would run.
JavaScript
mit
virtyaluk/react-compass,virtyaluk/react-compass
5af8bad0687ad06fd42aba7d985c18d28c06ec2a
config/dependency-lint.js
config/dependency-lint.js
/* eslint-env node */ 'use strict'; module.exports = { allowedVersions: { 'ember-get-config': '^0.2.0', // workaround for dep. conflict ember-cli-mirage/ember-light-table 'ember-getowner-polyfill': '^1.0.0 || ^2.0.0', 'ember-inflector': '^1.0.0 || ^2.0.0', 'ember-hash-helper-polyfill': '^0.1.2 || ^0....
/* eslint-env node */ 'use strict'; module.exports = { allowedVersions: { 'ember-get-config': '^0.2.0', // workaround for dep. conflict ember-cli-mirage/ember-light-table 'ember-getowner-polyfill': '^1.0.0 || ^2.0.0', 'ember-inflector': '^1.0.0 || ^2.0.0', 'ember-hash-helper-polyfill': '^0.1.2 || ^0....
Add dependency lint exception for ember-compatibility-helpers
Add dependency lint exception for ember-compatibility-helpers These versions seem to do the same thing, once a final version of this library is released we can update upstream if necessary.
JavaScript
mit
ilios/frontend,dartajax/frontend,dartajax/frontend,thecoolestguy/frontend,djvoa12/frontend,djvoa12/frontend,jrjohnson/frontend,ilios/frontend,thecoolestguy/frontend,jrjohnson/frontend
9d6b44313b7f2f2a5c2690939d942e3ce5b7cfc6
src/app/reducers/rootReducer.js
src/app/reducers/rootReducer.js
import {combineReducers} from "redux"; import entitiesReducer from "./entitiesReducer"; import tabReducer from "features/tabs/tabReducer"; import unitInfoReducer from "features/unitInfo/unitInfoReducer"; import pilotsReducer from "features/pilots/pilotsReducer"; import mechsReducer from "features/mechs/mechsReducer"; ...
import {combineReducers} from "redux"; import {reduceReducers} from "common/utils/reducerUtils"; import entitiesReducer from "./entitiesReducer"; import tabReducer from "features/tabs/tabReducer"; import unitInfoReducer from "features/unitInfo/unitInfoReducer"; import pilotsReducer from "features/pilots/pilotsReducer...
Update root reducer to wrap around combined reducer
Update root reducer to wrap around combined reducer
JavaScript
mit
markerikson/project-minimek,markerikson/project-minimek
bbf8949dc47ca17e5c0195743627f6f294c650a5
configuration/graphql/defaultPersister.js
configuration/graphql/defaultPersister.js
// @flow import Persister from '../../units/urb-persister-cassandra/graphql/PersisterCassandra' const defaultPersister = new Persister( ) export default defaultPersister
// @flow import Persister from '../../units/urb-persister-memory/graphql/PersisterMemory' const defaultPersister = new Persister() export default defaultPersister
Change default persister to memory
Change default persister to memory
JavaScript
mit
stevenornelas/UniversalRelayBoilerplate,AndriyShepitsen/realsiterSitePrototype,stevenornelas/UniversalRelayBoilerplate,codefoundries/UniversalRelayBoilerplate,stevenornelas/UniversalRelayBoilerplate,AndriyShepitsen/realsiterSitePrototype,codefoundries/UniversalRelayBoilerplate
4837d570059287ba7cedbcd68e3840fd6b7492b6
example/app.js
example/app.js
express = require("express"); cim = require("../index"); var console = cim("APP"); app = express(); app.listen(8080, function(){ console.log("now listening on port %d", 8080); }); app.get("/", function(req, res) { var console = cim("root", console); console.log("Request"); res.send('<a href=/sub>sub<a/>')...
express = require("express"); cim = require("../index"); var console = cim("APP"); app = express(); app.listen(8080, function(){ console.log("now listening on port %d", 8080); }); app.get("/", function(req, res) { var logger = cim("root", console); logger.log("Request"); res.send('<a href=/sub>sub<a/>'); ...
Fix hoisting mistake in the example
Fix hoisting mistake in the example
JavaScript
mit
epeli/node-clim
050e36651b1e03652197af6521b157db7c273fa1
lib/errors.js
lib/errors.js
/** Errors @description defines custom errors used for the middleware @exports {class} APIError **/ /** @class APIError @desc given when API response gives error outside of 200 range @param {number} status HTTP Status given in response @param {string} data message given along with the error @param {obj...
/** Errors @description defines custom errors used for the middleware @exports {class} APIError **/ /** @class APIError @desc given when API response gives error outside of 200 range @param {number} status HTTP Status given in response @param {string} message message given along with the error @param {...
Use message as param name
Use message as param name
JavaScript
mit
tylerFowler/redux-remote-resource
51803fc354cdc64cbb3e7dcedf06c28e0189f11c
jest.config.js
jest.config.js
export default { testEnvironment: 'jsdom', // Display coverage summary below file-by-file coverage breakdown coverageReporters: ['clover', 'json', 'lcov', 'html', 'text', 'text-summary'], transform: { '\\.js$': ['rollup-jest'], '\\.pegjs$': ['pegjs-jest-transformer'] } };
export default { testEnvironment: 'jsdom', // Display coverage summary below file-by-file coverage breakdown coverageReporters: ['clover', 'json', 'lcov', 'html', 'text', 'text-summary'], transform: { '\\.js$': ['rollup-jest'], '\\.pegjs$': ['pegjs-jest-transformer'] }, coveragePathIgnorePatterns: [...
Exclude PegJS grammar from code coverage
Exclude PegJS grammar from code coverage
JavaScript
mit
caleb531/truthy,caleb531/truthy
27ad298877eb482e90ff8dbe88561913a19b6361
rollup.config.js
rollup.config.js
import resolve from "rollup-plugin-node-resolve"; import commonjs from "rollup-plugin-commonjs"; export default { input: "index.js", output: { file: "dist/d3-dag.js", format: "umd", name: "d3", }, plugins: [ resolve(), commonjs(), ], };
import resolve from "rollup-plugin-node-resolve"; import commonjs from "rollup-plugin-commonjs"; export default { input: "index.js", output: { file: "dist/d3-dag.js", format: "umd", name: "d3", extend: true, }, plugins: [ resolve(), commonjs(), ], };
Change rollup to extend d3
Change rollup to extend d3
JavaScript
mit
erikbrinkman/d3-dag,erikbrinkman/d3-dag
a62036522bcd25d2e64dd6d590ce596de9374db3
codemirror/addon/hint/javascript/tabris-templates.js
codemirror/addon/hint/javascript/tabris-templates.js
(function() { var templates = { "name": "javascript", "context": "javascript", "templates": [{ "name": "properties", "description": "With LayoutData containing `left`, `top` and `right` arguments.", "template": "{layoutData: {left: 0, top: 0, right: 0}" }, { "name": "properties...
(function() { var templates = { "name": "javascript", "context": "javascript", "templates": [{ "name": "properties", "description": "With LayoutData containing `left`, `top` and `right` arguments.", "template": "{layoutData: {left: 0, top: 0, right: 0}" }, { "name": "properties...
Add CM templates for tabris.js animation props
Add CM templates for tabris.js animation props Add convenience templates for the animation properties object.
JavaScript
mit
eclipsesource/tern-tabris,eclipsesource/tern-tabris,angelozerr/tern-tabris,angelozerr/tern-tabris
3563befdf5225e75c52595563a518fd3faab6dd1
seeds/markers.js
seeds/markers.js
const BPromise = require('bluebird'); const markers = require('../data/markers.json'); var util = require('../src/util/seeds'); exports.seed = function(knex, Promise) { return BPromise.map(markers, (marker, index) => { const row = { id: index + 1, type: marker.type, location: marker.location.lo...
const BPromise = require('bluebird'); const markers = require('../data/markers.json'); var util = require('../src/util/seeds'); exports.seed = function(knex, Promise) { return BPromise.map(markers, (marker, index) => { const row = { id: index + 1, type: marker.type, location: marker.location.lo...
Add subtitle field to marker seed
Add subtitle field to marker seed
JavaScript
mit
futurice/wappuapp-backend,kaupunki-apina/prahapp-backend,kaupunki-apina/prahapp-backend,futurice/wappuapp-backend
e708534021f9c0dafaa5901a1b8e14cce6544e10
web_client/js/app.js
web_client/js/app.js
histomicstk.App = girder.App.extend({ initialize: function () { girder.fetchCurrentUser() .done(_.bind(function (user) { girder.eventStream = new girder.EventStream({ timeout: girder.sseTimeout || null }); this.headerView = ne...
histomicstk.App = girder.App.extend({ initialize: function () { girder.fetchCurrentUser() .done(_.bind(function (user) { girder.eventStream = new girder.EventStream({ timeout: girder.sseTimeout || null }); this.headerView = ne...
Use a router to navigate gui's
Use a router to navigate gui's
JavaScript
apache-2.0
DigitalSlideArchive/HistomicsTK,DigitalSlideArchive/HistomicsTK
226cc02842d007d2ed2cba0841b1f879e214a326
lib/methods/query.js
lib/methods/query.js
var Arrow = require('arrow'), Collection = Arrow.Collection; exports.query = function query(Model, options, next) { var self = this, collection = this.getCollection(Model); options = this.translateQueryKeys(Model, options); options = this.calculateQueryParams(options); collection.find(options.where, options.fi...
var Arrow = require('arrow'), Collection = Arrow.Collection; exports.query = function query(Model, options, next) { var self = this, collection = this.getCollection(Model); options = this.translateQueryKeys(Model, options); options = this.calculateQueryParams(options); if(typeof options.order === 'string') { ...
Order by string prop option added
[ARRCONN-237] Order by string prop option added
JavaScript
apache-2.0
titanium-forks/appcelerator.appc.mongo
e00349a86603fc750c14f4a375de7bffddf04e07
Resources/assets/javascript/forms.js
Resources/assets/javascript/forms.js
$(function(){ let elements = $('.vich-image, .cropper'); if(!elements.length) return; $.get('/wearejust/sonata_theme/delete_dialog', (html) => { elements.each(function(index,item){ new imageRemove($(item), html); }); }); }); class imageRemove { constructor(item, html) ...
$(function(){ let elements = $('.vich-image, .cropper'); if(!elements.length) return; $.get('/wearejust/sonata_theme/delete_dialog', (html) => { elements.each(function(index,item){ new imageRemove($(item), html); }); }); }); class imageRemove { constructor(item, html) {...
Remove unused function from the form deletion feature
Chore: Remove unused function from the form deletion feature
JavaScript
mit
wearejust/sonata-theme-bundle,wearejust/sonata-theme-bundle,wearejust/sonata-theme-bundle
b9c5cbd8cb2e11fb1c74f331245e4c3ee927812e
extension.js
extension.js
const vscode = require('vscode'); function showRelatedFiles() { const { fileName } = vscode.window.activeTextEditor.document; const fileNameParts = fileName.split('/'); const prefilledText = fileNameParts[fileNameParts.length - 1]; vscode.commands.executeCommand('workbench.action.quickOpen', prefilledText); } ...
const vscode = require('vscode'); function showRelatedFiles() { const { fileName } = vscode.window.activeTextEditor.document; const fileNameParts = fileName.split('/'); const prefilledText = fileNameParts[fileNameParts.length - 1]; vscode.commands.executeCommand('workbench.action.quickOpen', prefilledT...
Use 4 spaces to be consistent with other files
Use 4 spaces to be consistent with other files
JavaScript
mit
schreifels/vscode-quick-open-related-files,schreifels/vscode-quick-open-related-files
2d184a79bbd6001c1c0c53fbe0af2cce79586ef8
www/js/controllers/accounts.js
www/js/controllers/accounts.js
var app = angular.module('controller.accounts', ['ionic']); app.controller('AccountsCtrl', function($scope, $state, $window, RequestService, AccountsService, LoadingService) { LoadingService.show(); RequestService .request("GET", '/accounts?all=true', true) .then(function(data) { ...
var app = angular.module('controller.accounts', ['ionic']); app.controller('AccountsCtrl', function($scope, $state, $window, RequestService, AccountsService, LoadingService) { LoadingService.show(); RequestService .request("GET", '/accounts?all=true', true) .then(function(data) { ...
Set tokenpro back to true on logout
Set tokenpro back to true on logout
JavaScript
mit
it114/trevor,it114/trevor,it114/trevor,ekonstantinidis/trevor,ekonstantinidis/trevor
fb5c07411c806c845c468be29053b4c70558c848
www/views/backup/volumeSliderSnapshotLimit.js
www/views/backup/volumeSliderSnapshotLimit.js
define([ 'jquery', 'underscore', 'backbone', 'bootstrap', 'views/backup/volumeSlider', 'text!templates/backup/volumeSlider.html' ], function($, _, Backbone, Bootstrap, VolumeSliderView) { 'use strict'; var VolumeSliderSnapshotLimitView = VolumeSliderView.extend({ name: 'snapshotLimit', title: 'S...
define([ 'jquery', 'underscore', 'backbone', 'bootstrap', 'views/backup/volumeSlider', 'text!templates/backup/volumeSlider.html' ], function($, _, Backbone, Bootstrap, VolumeSliderView) { 'use strict'; var VolumeSliderSnapshotLimitView = VolumeSliderView.extend({ name: 'snapshotLimit', title: 'S...
Add min to snapshot limit
Add min to snapshot limit
JavaScript
agpl-3.0
drivnal/drivnal,drivnal/drivnal,drivnal/drivnal
b614d49d36830dd096bd3d16c3ba7dd5705cce02
bin/cli.js
bin/cli.js
#!/usr/bin/env node const programm = require('commander'); const caniuseYarn = require('../lib'); const pkg = require('../package.json'); programm .version(pkg.version) .parse(process.argv); process.stdout.write(caniuseYarn().toString());
#!/usr/bin/env node const programm = require('commander'); const caniuseYarn = require('../lib'); const pkg = require('../package.json'); programm .version(pkg.version) .parse(process.argv); process.exit(caniuseYarn() ? 0 : 1);
Return 0 / 1 instead of "true" / "false"
Return 0 / 1 instead of "true" / "false"
JavaScript
mit
danielbayerlein/caniuse-yarn
7003daf7aa8a163523352353a5cfd3c39b788320
server/server.js
server/server.js
import http from 'http'; import express from 'express'; import io from 'socket.io'; import bodyparser from 'body-parser'; import chatbot from './chatterbot/chatbotController.js'; import analyzerController from './controllers/analyzerController.js'; const routes = require('./config/routes.js'); const app = express(); ...
import http from 'http'; import express from 'express'; import io from 'socket.io'; import bodyparser from 'body-parser'; import chatbot from './chatterbot/chatbotController.js'; import analyzerController from './controllers/analyzerController.js'; const routes = require('./config/routes.js'); const app = express(); ...
Store Alchemy emotion on MongoDB
Store Alchemy emotion on MongoDB
JavaScript
mit
imminent-tuba/thesis,imminent-tuba/thesis,imminent-tuba/thesis,imminent-tuba/thesis