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
c2a81d87f023e922b9c4c904c18598ac9a0137ab
tests/index.js
tests/index.js
import test from 'tape'; import Server from '../dist'; (async function () { let server = new Server({ // Inject log log: { info: console.log }, // Inject config config: { server: { port: 3000 } } }); await server.setup(); await server.start(); test('Start server', function (t) { t.ok(!!s...
import test from 'tape'; import Server from '../dist'; (async function () { let server = new Server({ // Inject log log: { info: console.log }, // Inject config config: { server: { port: 3000 } } }); await server.setup(); await server.start(); test('Start server', function (t) { t.ok(!!s...
Update test as Koa is removed
Update test as Koa is removed
JavaScript
mit
Magnetjs/magnet-spdy
3190e16bfc912778ed2bf22274f3e7b573b55643
src/common/content.js
src/common/content.js
// ==UserScript== // @name OTR for Facebook // @include http://*.facebook.com // @include https://*.facebook.com // @require lib/jquery.js // @require lib/dep/bigint.js // @require lib/dep/crypto.js // @require lib/dep/eventemitter.js // @require lib/dep/salsa20.js // @require lib/otr.js // ==/UserScript== console.log...
// ==UserScript== // @name OTR for Facebook // @include http://*.facebook.com // @include https://*.facebook.com // @require lib/jquery.js // @require lib/dep/bigint.js // @require lib/dep/crypto.js // @require lib/dep/eventemitter.js // @require lib/dep/salsa20.js // @require lib/otr.js // ==/UserScript== console.log...
Use padlock icon in facebook sprite for testing.
Use padlock icon in facebook sprite for testing.
JavaScript
mit
liamja/otr-for-facebook
64ff43d5430f486e14492ba8d9a9eda01606db4a
scripts/ros_distro.js
scripts/ros_distro.js
'use strict'; switch (process.env.ROS_DISTRO) { case 'eloquent': console.log('1911'); process.exit(0); case 'foxy': console.log('2006'); process.exit(0); case undefined: console.error( 'Unable to detect ROS, please make sure a supported version of ROS is sourced' ); process.exit...
'use strict'; switch (process.env.ROS_DISTRO) { case 'eloquent': console.log('1911'); process.exit(0); case 'foxy': case 'rolling': console.log('2006'); process.exit(0); case undefined: console.error( 'Unable to detect ROS, please make sure a supported version of ROS is sourced' )...
Add rolling info when checking the ROS distro
Add rolling info when checking the ROS distro Fix #None
JavaScript
apache-2.0
RobotWebTools/rclnodejs,RobotWebTools/rclnodejs,RobotWebTools/rclnodejs,RobotWebTools/rclnodejs,RobotWebTools/rclnodejs
f9bdc3247481bd05a693c0258cb172a0981c0eb0
client/iFrameScripts.js
client/iFrameScripts.js
/* eslint-disable no-undef, no-unused-vars, no-native-reassign */ window.__$ = parent.$; window.__$(function() { var _ = parent._; var Rx = parent.Rx; var chai = parent.chai; var assert = chai.assert; var tests = parent.tests; var common = parent.common; var code = common.editor.getValue(); var editor =...
/* eslint-disable no-undef, no-unused-vars, no-native-reassign */ window.__$ = parent.$; window.__$(function() { var _ = parent._; var Rx = parent.Rx; var chai = parent.chai; var assert = chai.assert; var tests = parent.tests; var common = parent.common; var editor = common.editor.getValue(); // grab th...
Fix editor in iFrame should be the code This should be changed
Fix editor in iFrame should be the code This should be changed
JavaScript
bsd-3-clause
pahosler/freecodecamp,techstonia/FreeCodeCamp,sakthik26/FreeCodeCamp,tmashuang/FreeCodeCamp,1111113j8Pussy420/https-github.com-raisedadead-freeCodeCamp,raisedadead/FreeCodeCamp,DusanSacha/FreeCodeCamp,pahosler/freecodecamp,BerkeleyTrue/FreeCodeCamp,no-stack-dub-sack/freeCodeCamp,MiloATH/FreeCodeCamp,otavioarc/freeCodeC...
c7203999d33aca91cfe4394389c89efaeff9cb23
lib/tasks/server/middleware/history-support.js
lib/tasks/server/middleware/history-support.js
'use strict'; // Used in serve-files middleware var path = require('path'); module.exports = function() { return function(req, res, next) { var hasHTMLHeader = (req.headers.accept || []).indexOf('text/html') === 0; var hasNoFileExtension = path.extname(req.path) === ''; var isForTests = /^\/tests/.test...
'use strict'; // Used in serve-files middleware var path = require('path'); module.exports = function() { return function(req, res, next) { var hasHTMLHeader = req.accepts('html') === 'html'; var hasNoFileExtension = path.extname(req.path) === ''; var isForTests = /^\/tests/.test(req.path); if (re...
Improve HTML Detection in History Support Middleware
Improve HTML Detection in History Support Middleware Use built in ExpressJS methods for detecting HTML in the Accept header.
JavaScript
mit
typeoneerror/ember-cli,code0100fun/ember-cli,thoov/ember-cli,joostdevries/ember-cli,michael-k/ember-cli,bevacqua/ember-cli,josemarluedke/ember-cli,eoinkelly/ember-cli,Restuta/ember-cli,beatle/ember-cli,dukex/ember-cli,ballPointPenguin/ember-cli,rondale-sc/ember-cli,mixonic/ember-cli,noslouch/ember-cli,dukex/ember-cli,a...
534d04b5c637bfb2ff85e700c94be4c0e19ce6ce
app/js/directives/etablissementsList.js
app/js/directives/etablissementsList.js
'use strict'; angular.module('ddsApp').directive('etablissementsList', function() { return { restrict: 'E', templateUrl: '/partials/etablissements-list.html', scope: { codeCommune: '=', codePostal: '=' }, controller: 'etablissementsListCtrl', }; }...
'use strict'; angular.module('ddsApp').directive('etablissementsList', function() { return { restrict: 'E', templateUrl: '/partials/etablissements-list.html', scope: { codeCommune: '=', codePostal: '=' }, controller: 'etablissementsListCtrl', }; }...
Use $watchGroup, avoid double API call.
Use $watchGroup, avoid double API call.
JavaScript
agpl-3.0
sgmap/mes-aides-ui,sgmap/mes-aides-ui,sgmap/mes-aides-ui,sgmap/mes-aides-ui
b6e497f52eba2a73904b436c9980d3bdc4d2ed78
src/modules/app/callApp.js
src/modules/app/callApp.js
import extend from '../common/extend'; import retryAjax from '../ajax/retryAjax'; export default function callApp(data) { return retryAjax({ url: 'app.php', data: extend(data, { browser: 1 }), dataType: 'json', }); }
import extend from '../common/extend'; import retryAjax from '../ajax/retryAjax'; export default function callApp(data) { return retryAjax({ url: 'app.php', data: extend(data, { browser: 1, v: '0.8.7' }), dataType: 'json', }); }
Add versioning to APP API call
Add versioning to APP API call
JavaScript
mit
fallenswordhelper/fallenswordhelper,fallenswordhelper/fallenswordhelper
d16ea2e09efe6c0afb5ffb7df9624d7af6f229c0
javascript/seo-editor.js
javascript/seo-editor.js
(function ($) { $.entwine('ss', function ($) { $('.ss-seo-editor .ss-gridfield-item input, .ss-seo-editor .ss-gridfield-item textarea').entwine({ onchange: function () { // kill the popup for form changes window.onbeforeunload = null; var $thi...
(function ($) { $.entwine('ss', function ($) { $('.ss-seo-editor .ss-gridfield-item input, .ss-seo-editor .ss-gridfield-item textarea').entwine({ onchange: function () { // kill the popup for form changes $('.cms-edit-form').removeClass('changed'); ...
Fix popup & encode URI components
Fix popup & encode URI components URL encode `var data` to prevent issues with titles containing an `&`, sql injection etc. Alternative method to prevent CMS popup with changed fields.
JavaScript
mit
littlegiant/silverstripe-seo-editor,littlegiant/silverstripe-seo-editor,Little-Giant/silverstripe-seo-editor,Little-Giant/silverstripe-seo-editor
58a7f09512481c63a535c0da1c962b347ebd8b68
proto/wtools/atop/testing.test/_asset/asyncTimeOutCheck/Suite.test.js
proto/wtools/atop/testing.test/_asset/asyncTimeOutCheck/Suite.test.js
require( 'wTesting' ); const _ = require( 'wTools' ); _.include( 'wConsequence' ); // function routine1( test ) { test.description = 'description1'; console.log( 'routine1.1' ); return _.time.out( 200, () => { console.log( 'routine1.2' ); test.identical( 1, 1 ); console.log( 'routine1.3' ); }) ...
require( 'wTesting' ); // const _ = require( 'wTools' ); const _ = _globals_.testing.wTools; _.include( 'wConsequence' ); // function routine1( test ) { test.description = 'description1'; console.log( 'routine1.1' ); return _.time.out( 200, () => { console.log( 'routine1.2' ); test.identical( 1, 1 );...
Fix asset `asyncTimeOutCheck`, use valid global instance of `wTools`
Fix asset `asyncTimeOutCheck`, use valid global instance of `wTools`
JavaScript
mit
Wandalen/wTesting,Wandalen/wTesting
dd59f8bd64af3e38ac76ca660f6f9eb3544c2a7e
wazimap_za/static/js/show_video.js
wazimap_za/static/js/show_video.js
(function($) { $(document).ready(function(){ var pageLinkMap = { 'table': 'table_view', 'map': 'map_view', 'distribution': 'distribution_view', } var displayRatio = 0.5625, w = $(window).width() * 0.95, h = w * displayRatio, wMax = 960, hMax = wMax * di...
(function($) { $(document).ready(function(){ var pageLinkMap = { 'table': 'table_view', 'map': 'map_view', 'distribution': 'distribution_view', } var displayRatio = 0.5625, w = $(window).width() * 0.95, h = w * displayRatio, wMax = 960, hMax = wMax * di...
Set cookie only after video is actually displayed
Set cookie only after video is actually displayed
JavaScript
mit
Code4SA/wazimap-za,Code4SA/wazimap-za,Code4SA/wazimap-za
1e0871634b5eb649b632cc8adc729672aff75994
gulp/helpers/sass.customFunctions.js
gulp/helpers/sass.customFunctions.js
var sizeOf = require('image-size'); var sass = require('node-sass'); var project = require('../../package.json'); var config = require('../config.js'); var fileExists = require('file-exists'); if (fileExists('../../src/sass/styles.json')) { var styles = require('../../src/sass/styles.json'); } var customFunctions...
var sizeOf = require('image-size'); var sass = require('node-sass'); var config = require('../config.js'); var fileExists = require('file-exists'); if (fileExists('./src/sass/styles.json')) { var styles = require('../../src/sass/styles.json'); } var customFunctions = { 'file-exists($path: "")': function(path)...
Fix sass custom functions fileExists
Fix sass custom functions fileExists
JavaScript
agpl-3.0
libeo-vtt/vtt,libeo-vtt/vtt
468c40f8a989240c6b08503aac0c8d31269235ff
examples/test-studio/schemas/urls.js
examples/test-studio/schemas/urls.js
import {MdLink as icon} from 'react-icons/md' export default { name: 'urlsTest', type: 'document', title: 'URLs test', icon, fields: [ { name: 'title', type: 'string', title: 'Title', }, { name: 'myUrlField', type: 'url', title: 'Plain url', description: ...
import {MdLink as icon} from 'react-icons/md' export default { name: 'urlsTest', type: 'document', title: 'URLs test', icon, fields: [ { name: 'title', type: 'string', title: 'Title', }, { name: 'myUrlField', type: 'url', title: 'Plain url', description: ...
Add example of URL field which allows relative paths
[examples] Add example of URL field which allows relative paths
JavaScript
mit
sanity-io/sanity,sanity-io/sanity,sanity-io/sanity,sanity-io/sanity
1d9d2bcb862a4a40bf7bc714680800cc04edc9e5
htdocs/js/controller/browse/table.js
htdocs/js/controller/browse/table.js
angular.module('myApp').controller('Browse/TableCtrl', function($scope, $http, Select2Configurator, $timeout) { 'use strict'; // Configure select2 via our helper service Select2Configurator.configure($scope, 'questionnaire'); Select2Configurator.configure($scope, 'filterSet'); // Configure ng-gr...
angular.module('myApp').controller('Browse/TableCtrl', function($scope) { 'use strict'; });
Remove duplicated code between controller and directive
Remove duplicated code between controller and directive
JavaScript
mit
Ecodev/gims,Ecodev/gims,Ecodev/gims,Ecodev/gims,Ecodev/gims
e6097852fc2c0c01749ad30835194e07ed0b8955
webapp/auth/userRepository.js
webapp/auth/userRepository.js
'use strict'; const jsonfile = require('jsonfile'); const PATH = '/var/lib/homecontrol/webapp/users/'; module.exports = { addUser: function (user, cb) { jsonfile.writeFile(PATH + user.username, user, (err) => { cb(err); }); }, findUser: function (username, cb) { jsonfile.readFile(PATH + user...
'use strict'; const jsonfile = require('jsonfile'); const PATH = '/var/lib/homecontrol/webapp/users/'; module.exports = { addUser: function (user, cb) { jsonfile.writeFile(PATH + user.username, user, (err) => { cb(err); }); }, findUser: function (username, cb) { jsonfile.readFile(PATH + user...
Fix error when user not found
Fix error when user not found
JavaScript
apache-2.0
rossharper/raspberrysauce,rossharper/raspberrysauce
8c829381d7ce3980763bf2b45d83d5c50339843e
src/components/Dataset/DatasetSection.js
src/components/Dataset/DatasetSection.js
import React from 'react' import './DatasetDetail.css' import { doneSince } from '../../helpers/doneSince' const styles = { resume: { display: 'flex', flexDirection: 'column', }, infos: { display: 'flex', }, } const DatasetSection = ({dataset}) => { const type = dataset.metadata.type || 'inconnu...
import React from 'react' import MarkdownViewer from '../Markdown/MarkdownViewer' import './DatasetDetail.css' import { doneSince } from '../../helpers/doneSince' import { theme } from '../../tools' const styles = { resume: { display: 'flex', flexDirection: 'column', padding: '2em', color: '#fff', ...
Use MarkdownViewer for Dataset description
Use MarkdownViewer for Dataset description
JavaScript
mit
sgmap/inspire,sgmap/inspire
b5dc48ad88f94f5138d074c31e9dd834a59fa8ec
app.js
app.js
var fs = require('fs'); var git = require('./git.js'); var casper = require('./casper.js'); var userInfoFileName = process.argv[2]; var userInfo = new Object(); var solvedProblemInfo = new Array(); if (userInfoFileName != undefined) { fs.exists(userInfoFileName, function(exists) { if (!exists) { console.log('fi...
var fs = require('fs'); var git = require('./git.js'); var casper = require('./casper.js'); var userInfoFileName = process.argv[2]; var userInfo = new Object(); var solvedProblemInfo = new Array(); if (userInfoFileName != undefined) { fs.exists(userInfoFileName, function(exists) { if (!exists) { console.log('fi...
Add a function to find solved problem.
Add a function to find solved problem.
JavaScript
mit
ISKU/BOJ-AutoCommit
ae17a50c85cc059714302e499892b5125460dbad
app.js
app.js
var express = require('express'); var bodyParser = require('body-parser'); var router = require('./lib/router'); var cors = require('cors') var app = express(); app.use(bodyParser.json()); app.use(bodyParser.urlencoded({ extended: true })); app.post('/events', router.firehose.rx); app.get('/eve...
var express = require('express'); var bodyParser = require('body-parser'); var router = require('./lib/router'); var cors = require('cors') var app = express(); app.use(bodyParser.json()); app.use(bodyParser.urlencoded({ extended: true })); app.get('/', function (req, res) { res.send("OK") }) a...
Add simple / endpoint that will work for a healthcheck
Add simple / endpoint that will work for a healthcheck
JavaScript
mit
librariesio/firehose
8004213050cdbe70ef99e19dbdb08e8ee03aa910
src/javascript/functions/FileUploader.js
src/javascript/functions/FileUploader.js
import BenchmarkRun from 'models/BenchmarkRun.js'; import DoingWorkSpinner from 'components/DoingWorkSpinner.jsx'; //A non-ui class which cares about upload file, converting them to json and passing them on to the AppState export default class FileUploader { constructor(uploadBenchmarksFunction) { this.u...
import BenchmarkRun from 'models/BenchmarkRun.js'; import DoingWorkSpinner from 'components/DoingWorkSpinner.jsx'; //A non-ui class which cares about upload file, converting them to json and passing them on to the AppState export default class FileUploader { constructor(uploadBenchmarksFunction) { this.u...
Fix bug where some files could get lost when uploading multiple files
Fix bug where some files could get lost when uploading multiple files
JavaScript
agpl-3.0
jzillmann/jmh-visualizer,jzillmann/jmh-visualizer
ee97f9fc7d907da161883d9ca5d538626e94e29f
src/shared/locales.js
src/shared/locales.js
import once from 'lodash.once'; let userLocale = null; export const getDefaultLocales = once(() => { const languageList = []; if (window.navigator.languages) { languageList.push(...window.navigator.languages); } else if (window.navigator.userLanguage) { languageList.push(window.navigator.userLanguage);...
import once from 'lodash.once'; let userLocale = null; export const getDefaultLocales = once(() => { const languageList = []; if (typeof window !== 'undefined') { if (window.navigator.languages) { languageList.push(...window.navigator.languages); } else if (window.navigator.userLanguage) { la...
Fix getDefaultLocales causing ReferenceError on Server-Side Rendering
Fix getDefaultLocales causing ReferenceError on Server-Side Rendering
JavaScript
mit
wojtekmaj/react-calendar,wojtekmaj/react-calendar,wojtekmaj/react-calendar
917ac3d7f3454e368c09f7a6b812afde96a7d342
src/mods.js
src/mods.js
// @flow 'use strict'; const execa = require('execa'); /** * Returns a list of all globally installed NPM packages * @public * @returns {Promise.<Object|string>} Returns installed packages/stderr on success/failure. */ const getModules = (): Promise<Object | string> => { return new Promise((resolve, reject) => ...
// @flow 'use strict'; const execa = require('execa'); /** * Returns a list of all globally installed NPM packages * @public * @returns {Promise.<Object|string>} Returns installed packages/stderr on success/failure. */ const getModules = (): Promise<Object | string> => { return new Promise((resolve, reject) => ...
Exit if no global packages
Exit if no global packages - Excluding npm and this module, exit if there are no global packages
JavaScript
mit
riyadhalnur/npm-modules-sync
6473714835b2c1e6f2bf19f5b20a7dca9c16e0ea
src/rect.js
src/rect.js
function d3_treemap_rect(x, y, width, height) { var rect = {}; rect.x = function(_) { if (!arguments.length) return x; x = _; return rect; }; rect.y = function(_) { if (!arguments.length) return y; y = _; return rect; }; rect.width = function(_) { i...
function d3_treemap_rect(x, y, width, height) { var rect = {}; rect.clone = function() { return d3_treemap_rect(x, y, width, height); } rect.x = function(_) { if (!arguments.length) return x; x = _; return rect; }; rect.y = function(_) { if (!arguments.length) ...
Add clone function, required by chunk.
Add clone function, required by chunk.
JavaScript
mit
bbroeksema/d3-treemap
d1eec6f92a448b576b93331222b4ff0f7e8b7dbe
web/src/containers/Header/index.js
web/src/containers/Header/index.js
import { connect } from 'react-redux'; import React from 'react'; import PropTypes from 'prop-types'; import { loggedOut } from '~client/actions/login'; import { getLoggedIn } from '~client/selectors/app'; import { getUnsaved } from '~client/selectors/api'; import AppLogo from '~client/components/AppLogo'; import Navb...
import { connect } from 'react-redux'; import React from 'react'; import PropTypes from 'prop-types'; import { withRouter } from 'react-router'; import { loggedOut } from '~client/actions/login'; import { getLoggedIn } from '~client/selectors/app'; import { getUnsaved } from '~client/selectors/api'; import AppLogo fro...
Connect <Header /> to the router to subscribe to location updates
Connect <Header /> to the router to subscribe to location updates
JavaScript
mit
felamaslen/budget,felamaslen/budget,felamaslen/budget,felamaslen/budget,felamaslen/budget,felamaslen/budget
217ff9cd084498f18f4de28000ebe4bfde0f8d84
webpack.config.babel.js
webpack.config.babel.js
const BrowserSyncPlugin = require("browser-sync-webpack-plugin"); const ExtractTextPlugin = require("extract-text-webpack-plugin"); module.exports = { entry: "./src/js/app.js", output: { path: __dirname + "/bin/", filename: "js/main.js" }, module: { preLoaders: [ {test: /\.js$/, loader: "esli...
const path = require('path'); const ExtractTextPlugin = require('extract-text-webpack-plugin'); const BrowserSyncPlugin = require('browser-sync-webpack-plugin'); const SRC = path.resolve(__dirname, 'src/js'); const BIN = path.resolve(__dirname, 'bin'); module.exports = { entry: SRC, resolve: { extensions: [''...
Update Webpack configuration file to use ECMAScript 2015 syntax
Update Webpack configuration file to use ECMAScript 2015 syntax
JavaScript
mit
davegomez/fabric,davegomez/fabric
c7864927ecdfce09e29488a97358b797dcfdcfa3
lib/api/encodeSummary.js
lib/api/encodeSummary.js
var encodeSummaryArticle = require('../json/encodeSummaryArticle'); /** Encode summary to provide an API to plugin @param {Output} output @param {Config} config @return {Object} */ function encodeSummary(output, summary) { var result = { /** Iterate over the summary ...
var encodeSummaryArticle = require('../json/encodeSummaryArticle'); /** Encode summary to provide an API to plugin @param {Output} output @param {Config} config @return {Object} */ function encodeSummary(output, summary) { var result = { /** Iterate over the summary ...
Add method summary.getArticleByPath to summary api
Add method summary.getArticleByPath to summary api
JavaScript
apache-2.0
gencer/gitbook,strawluffy/gitbook,GitbookIO/gitbook,ryanswanson/gitbook,tshoper/gitbook,gencer/gitbook,tshoper/gitbook
0aebb3b9e1745d84001713b2d00bc8fb21fc97a2
lib/experiments/index.js
lib/experiments/index.js
'use strict'; const symbol = require('../utilities/symbol'); let experiments = { CONFIG_CACHING: symbol('config-caching'), }; Object.freeze(experiments); module.exports = experiments;
'use strict'; const symbol = require('../utilities/symbol'); const getCallerFile = require('get-caller-file'); const deprecate = require('../utilities/deprecate'); let experiments = { CONFIG_CACHING: symbol('config-caching'), MODULE_UNIFICATION: symbol('module-unification'), get INSTRUMENTATION() { deprecate...
Revert "Disabled all experiments except for CONFIG_CACHING"
Revert "Disabled all experiments except for CONFIG_CACHING" This reverts commit f1370cdb12fa837c298696811b35f05eb56bbfb7.
JavaScript
mit
jgwhite/ember-cli,kanongil/ember-cli,ember-cli/ember-cli,thoov/ember-cli,sivakumar-kailasam/ember-cli,kellyselden/ember-cli,mike-north/ember-cli,HeroicEric/ember-cli,cibernox/ember-cli,gfvcastro/ember-cli,kellyselden/ember-cli,kellyselden/ember-cli,twokul/ember-cli,ef4/ember-cli,ef4/ember-cli,sivakumar-kailasam/ember-c...
8d17a7dc9ab374f9c91a7aa58ecf283f877c4d88
source/Overture/views/controls/SearchTextView.js
source/Overture/views/controls/SearchTextView.js
// -------------------------------------------------------------------------- \\ // File: SearchTextView.js \\ // Module: ControlViews \\ // Requires: TextView.js ...
// -------------------------------------------------------------------------- \\ // File: SearchTextView.js \\ // Module: ControlViews \\ // Requires: TextView.js ...
Add Ctrl-/ shortcut to clear search.
Add Ctrl-/ shortcut to clear search.
JavaScript
mit
linagora/overture,Hokua/overture,linagora/overture,adityab/overture,fastmail/overture
1874f53fc088e5e1d539a67740419dafd30fa792
test/all.js
test/all.js
require('./profile'); require('./datachannel'); // require('./heartbeat-disconnect'); require('./custom-id'); // include the simple load test require('./all-loadtest');
require('./profile'); require('./datachannel'); // require('./heartbeat-disconnect'); require('./custom-id');
Remove load test (a bit too much for ci)
Remove load test (a bit too much for ci)
JavaScript
apache-2.0
rtc-io/rtc-quickconnect,rtc-io/rtc-quickconnect
c7b2c27d5fc1458405db38b3efc42741262eb5af
model/md-post.js
model/md-post.js
const Post = function (params) { const defaults = { name: '', // full name username: '', // username profile_display: '', // profile image desc: 'No Description', // description url: '', // post image url like_count: 0, // total like comment_count: 0, // total comment post_id: null, /...
const Post = function (params) { const defaults = { name: '', // full name username: '', // username profile_display: '', // profile image desc: 'No Description', // description url: '', // post image url like_count: 0, // total like comment_count: 0, // total comment post_id: null, /...
Replace "enter" with "space" for splitting
Replace "enter" with "space" for splitting
JavaScript
mit
sabinbajracharya/Insta-crawler
fe5a55c5d26bc975fa318cee43f482626c770ba8
.imdone/actions/board.js
.imdone/actions/board.js
const release = require('./lib/release') module.exports = function () { const project = this.project const { getChangeLog, newRelease } = release(project) return [ { title: 'Start minor release', action: async function () { await newRelease('main', 'minor') project.toast({ messag...
const release = require('./lib/release') module.exports = function () { const project = this.project const { getChangeLog, newRelease } = release(project) return [ { title: 'Start minor release', action: async function () { try { await newRelease('main', 'minor') proj...
Add error reporting and logging
Add error reporting and logging
JavaScript
mit
imdone/imdone-core,imdone/imdone-core
846faf4bdd7148507199914f737e952c27560a90
lib/core/src/server/config/babel.dev.js
lib/core/src/server/config/babel.dev.js
export default { // Don't try to find .babelrc because we want to force this configuration. babelrc: false, presets: [ [ require.resolve('@babel/preset-env'), { modules: process.env.NODE_ENV === 'test' ? 'commonjs' : false, }, ], ], plugins: [ require.resolve('babel-plugi...
export default { // this flag is here to allow presets to recognize the SB default config storybookDefault: true, // Don't try to find .babelrc because we want to force this configuration. babelrc: false, presets: [ [ require.resolve('@babel/preset-env'), { modules: process.env.NODE_EN...
Add storybookDefault to babel default config for the future purpose.
Add storybookDefault to babel default config for the future purpose.
JavaScript
mit
storybooks/react-storybook,kadirahq/react-storybook,kadirahq/react-storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/react-storybook,storybooks/react-storybook,storybooks/storybook,storybooks/react-storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook
912a19208787ee934477781f59b2691e42429362
tests/server/roles.spec.js
tests/server/roles.spec.js
// Write a test that validates that a new role created has a unique title. // Write a test that validates that all roles are returned when Roles.all is called. 'use strict'; const expect = require('chai').expect; const supertest = require('supertest'); const server = require('./../../index'); const api = ...
// Write a test that validates that a new role created has a unique title. // Write a test that validates that all roles are returned when Roles.all is called. 'use strict'; const expect = require('chai').expect; const supertest = require('supertest'); const server = require('./../../index'); const api = ...
Add basic test to check if a unique role is created and all roles are returned
Add basic test to check if a unique role is created and all roles are returned
JavaScript
mit
andela-oolutola/document-management-system-api
f23bdd6016c37534eb8ba8a5889f2c6a093f8316
tweetbot.js
tweetbot.js
var config = require('./config'), Twit = require('twit'), MongoClient = require('mongodb').MongoClient; var T = new Twit(config.oauth_creds); var tweet = function() { MongoClient.connect(config.db_uri, function (err, db) { if (err) throw err; var collection = db.collection('quotes'); collection...
var config = require('./config'), Twit = require('twit'), mongoose = require('mongoose'); var T = new Twit(config.oauth_creds), quotes = mongoose.model('quotes', {msg: String, src: String}); var tweet = function () { var promise = quotes.count().exec(); promise.then(function (cnt) { var n = Math.f...
Apply mongoose and promise pattern.
Apply mongoose and promise pattern.
JavaScript
mit
ntalbs/tweetbot-js,ntalbs/tweetbot-js
ae678d528b774cb98827306c12f70386df23ffe4
src/Oro/Bundle/WorkflowBundle/Resources/public/js/datagrid/workflow-action-permissions-row-view.js
src/Oro/Bundle/WorkflowBundle/Resources/public/js/datagrid/workflow-action-permissions-row-view.js
define(function(require) { 'use strict'; var WorkflowActionPermissionsRowView; var _ = require('underscore'); var mediator = require('oroui/js/mediator'); var ActionPermissionsRowView = require('orouser/js/datagrid/action-permissions-row-view'); var FieldView = require('./workflow-action-permis...
define(function(require) { 'use strict'; var WorkflowActionPermissionsRowView; var mediator = require('oroui/js/mediator'); var ActionPermissionsRowView = require('orouser/js/datagrid/action-permissions-row-view'); var FieldView = require('./workflow-action-permissions-field-view'); WorkflowAc...
Fix fields ACL JS component to support access_level_route parameter - fix CS
BB-5745: Fix fields ACL JS component to support access_level_route parameter - fix CS
JavaScript
mit
geoffroycochard/platform,Djamy/platform,Djamy/platform,Djamy/platform,orocrm/platform,orocrm/platform,geoffroycochard/platform,geoffroycochard/platform,orocrm/platform
48fe9864d5db5c95016a1837285d963acbdf5fd8
lib/emitters/custom-event-emitter.js
lib/emitters/custom-event-emitter.js
var util = require("util") , EventEmitter = require("events").EventEmitter module.exports = (function() { var CustomEventEmitter = function(fct) { this.fct = fct; var self = this; } util.inherits(CustomEventEmitter, EventEmitter) CustomEventEmitter.prototype.run = function() { var self =...
var util = require("util") , EventEmitter = require("events").EventEmitter; module.exports = (function() { var CustomEventEmitter = function(fct) { this.fct = fct; var self = this; } util.inherits(CustomEventEmitter, EventEmitter); CustomEventEmitter.prototype.run = function() { var self...
Make travis happy & make my need for semicolons happy ;)
Make travis happy & make my need for semicolons happy ;)
JavaScript
mit
braddunbar/sequelize,quiddle/sequelize,Verdier/sequelize,seanjh/sequelize,jessicalc/sequelize,rfink/sequelize,majorleaguesoccer/sequelize,sequelize/sequelize,kenjitayama/sequelize,bangbang93/sequelize,savageautomate/sequelize,jchbh-duplicate/sequelize,calvintwr/sequelize,keik/sequelize,adeo-proxideco/sequelize-oracle,d...
5a7f7f9a5e4ea856d6348b8d897a76d94c2a2451
app/account/views/create-comment.js
app/account/views/create-comment.js
module.exports = Zeppelin.FormView.extend({ className: 'create-comment', formSelector: 'form.create-comment-form', template: require('account/templates/create-comment'), model: require('core/models/comment'), elements: { 'commentInput': 'textarea.create-comment-input' }, events: { 'click [dat...
module.exports = Zeppelin.FormView.extend({ className: 'create-comment', formSelector: 'form.create-comment-form', template: require('account/templates/create-comment'), model: require('core/models/comment'), elements: { 'commentInput': 'textarea.create-comment-input' }, events: { 'click [dat...
Clear create comment form after posting.
Clear create comment form after posting.
JavaScript
agpl-3.0
GetBlimp/boards-web,jessamynsmith/boards-web,jessamynsmith/boards-web
87ad807e10e808ec706eca212932915c7619ddb7
frontend/src/backendQuery.js
frontend/src/backendQuery.js
'use strict' var util = require('./util') export function createSchedule (queryArray, callback) { var onResponse = function (responseString, error) { if (error) { callback(null, error) } else if (!responseString) { callback(null, 'Server neodpovídá.') } else { var response = JSON.parse...
'use strict' var util = require('./util') export function createSchedule (queryArray, callback) { var onResponse = function (responseString, error) { if (error) { callback(null, error) } else if (!responseString) { callback(null, 'Server neodpovídá.') } else { var response = JSON.parse...
Improve error message when the subject's events are not scheduled
Improve error message when the subject's events are not scheduled
JavaScript
mit
IAmWave/samorozvrh,IAmWave/samorozvrh,IAmWave/samorozvrh,IAmWave/samorozvrh
4413f1852dc714cb14d3e9c7bce81312daad8254
simul/app/components/profile.js
simul/app/components/profile.js
import React, { Component } from 'react'; import { StyleSheet, Text, View, TouchableHighlight, } from 'react-native'; import I18n from 'react-native-i18n' class Profile extends Component{ _onPressAddStory(){ } render() { return ( <View style={styles.container}> <Text style={styles.ti...
import React, { Component } from 'react'; import { StyleSheet, Text, View, TouchableHighlight, } from 'react-native'; import I18n from 'react-native-i18n' class Profile extends Component{ _onPressAddStory(){ } render() { return ( <View style={styles.container}> <Text style={styles.ti...
Add button for _onPressAddStory to styles
Add button for _onPressAddStory to styles
JavaScript
mit
sf-red-pandas-2016/simul-react-native,sf-red-pandas-2016/simul-react-native,sf-red-pandas-2016/simul-react-native
6ea7a6ce129ecbef6688f505d07b078022067173
type-detection/currency.js
type-detection/currency.js
/** * This plug-in will add automatic detection for currency columns to * DataTables. Note that only $ and £ symbols are detected with this code, * but it is trivial to add more or change the current ones. This is best used * in conjunction with the currency sorting plug-in. * @name Currency * @author <a href=...
/** * This plug-in will add automatic detection for currency columns to * DataTables. Note that only $ and £ symbols are detected with this code, * but it is trivial to add more or change the current ones. This is best used * in conjunction with the currency sorting plug-in. * @name Currency * @author <a href=...
Add string check - 10142
Add string check - 10142
JavaScript
mit
husnixs/Plugins,eveoh/Plugins,etd-framework/datatables-plugins,cbondo/Plugins,NomadeLampe/Plugins,NomadeLampe/Plugins,KRQW/Plugins,prate3k/Plugins-1,husnixs/Plugins,afelicioni/DataTables-Plugins,KRQW/Plugins,eveoh/Plugins,SGCreations/Plugins,NomadeLampe/Plugins,eveoh/Plugins,cbondo/Plugins,SGCreations/Plugins,ran-guin/...
ed4e339615ddf37e88a3554ec18dda9d911fb6a2
test.js
test.js
import assert from 'assert'; import create from './'; it('should generate correct actionTypes', () => { const types = create([ 'INCREMENT_COUNTER', 'DECREMENT_COUNTER', ]); assert.strictEqual(types.INCREMENT_COUNTER, 'INCREMENT_COUNTER'); assert.strictEqual(types.DECREMENT_COUNTER, 'DECREMENT_COUNTER'...
import assert from 'assert'; import create from './'; it('should generate correct actionTypes', () => { const types = create([ 'INCREMENT_COUNTER', 'DECREMENT_COUNTER', ]); assert.strictEqual(types.INCREMENT_COUNTER, 'INCREMENT_COUNTER'); assert.strictEqual(types.DECREMENT_COUNTER, 'DECREMENT_COUNTER'...
Remove Invariant Violation for new invariant
Remove Invariant Violation for new invariant
JavaScript
mit
chentsulin/create-action-types
9c86269527038ae8ef02479d93aedb0251e979ed
js/API.js
js/API.js
API = (function(Config, $) { // var _json = {}; function withJSON(url, callback) { // if (_json[url] == undefined) { $.getJSON(url, function(json) { // _json[url] = json; callback(json); }); // } else { // callback(_json[url])...
API = (function(Config, $) { // var _json = {}; function withJSON(url, callback) { // if (_json[url] == undefined) { $.getJSON(url, function(json) { // _json[url] = json; callback(json); }); // } else { // callback(_json[url])...
Split buildQuery out into separate helper func
Split buildQuery out into separate helper func
JavaScript
bsd-2-clause
andrayantelo/bikeracks,andrayantelo/bikeracks,johntyree/bikeracks,andrayantelo/bikeracks,johntyree/bikeracks
f8b59ecaf321c1be546c86225782531bc5f67ffb
server/server.js
server/server.js
var express = require('express'); var server = express(); var port = process.env.PORT || 4000; var bodyParser = require('body-parser'); var router = express.Router(); server.listen(port); console.log('The Butler Server is running on port: ' + port);
// BASE SETUP // ============================================================================= var express = require('express'); var server = express(); var port = process.env.PORT || 4000; var bodyParser = require('body-parser'); var router = express.Router(); var apiRouter = express.Router(); ...
Add routes for root and /api
Add routes for root and /api
JavaScript
mit
andersberg/the-butler,andersberg/the-butler
2358d5993a3f71767b74b37243716dbca3c50fae
source/class/fix/HTML5Markup.js
source/class/fix/HTML5Markup.js
/* ================================================================================================== Core - JavaScript Foundation Copyright 2010-2012 Zynga Inc. Copyright 2012-2013 Sebastian Werner -------------------------------------------------------------------------------------------------- Based on Rem...
/* ================================================================================================== Core - JavaScript Foundation Copyright 2010-2012 Zynga Inc. Copyright 2012-2013 Sebastian Werner -------------------------------------------------------------------------------------------------- Based on Rem...
Switch from Env to raw engine detection to keep list of dependencies for fix.* small.
Switch from Env to raw engine detection to keep list of dependencies for fix.* small.
JavaScript
mit
sebastian-software/core,sebastian-software/core,sebastian-software/core
9145bb70f903da18903cba84a577a3b58d106236
parser/server.js
parser/server.js
require('./mensen/aasee.js'); require('./mensen/ring.js'); require('./mensen/davinci.js'); require('./mensen/denkpause.js'); require('./mensen/bispinghof.js');
var parsers = [ 'aasee.js', 'ring.js', 'davinci.js', 'denkpause.js', 'bispinghof.js', ]; for(p in parsers){ try { require('./mensen/'+parsers[p]); } catch(e) { console.log('Error in '+parsers[p]); console.log(e); } }
Add try..catch for parser calls
Add try..catch for parser calls
JavaScript
mit
chk1/mensaparser,chk1/mensaparser,chk1/mensaparser
41deea9b5243ba68e707ca1ffb65cdf6ab91258b
.eslintrc.js
.eslintrc.js
module.exports = { env: { node: true, mocha: true, es6: true }, extends: 'react-app', parserOptions: { ecmaFeature: { jsx: true } }, plugins: ['react', 'jsx-a11y', 'import'], rules: { indent: ['error', 4, { SwitchCase: 1 }], ...
module.exports = { env: { node: true, mocha: true, es6: true }, extends: 'react-app', parserOptions: { ecmaFeature: { jsx: true } }, plugins: ['react', 'jsx-a11y', 'import'], rules: { indent: ['error', 4, { SwitchCase: 1 }], ...
Add eslint error if console is used
Add eslint error if console is used
JavaScript
mit
reimagined/resolve,reimagined/resolve
5013369f7e16b86556c5c6838977bf0c06c8a1c6
lib/interpolate.js
lib/interpolate.js
var syntax = /\{\{([\w\-]+)\}\}/g; var syntaxCleanup = /((?:[\r\n])*)\{\{([\w\-]+)\}\}((?:[\r\n])*)/g; module.exports = function (template, replacements, cleanup) { if (cleanup) { return template.replace(syntaxCleanup, function (match, leadingSpaces, prop, trailingSpaces) { var replacement = (p...
var syntax = /\{\{([\w\-]+)\}\}/g; var syntaxCleanup = /((?:[\r\n])*)\{\{([\w\-]+)\}\}((?:[\r\n])*)/g; var syntaxUnescape = /\\\{\\\{([\w\-]+)\\\}\\\}/g; module.exports = function (template, replacements, cleanup) { var interpolated; if (cleanup) { interpolated = template.replace(syntaxCleanup, functi...
Add support for escaping placeholders.
Add support for escaping placeholders.
JavaScript
mit
IndigoUnited/automaton
faf3aecb29ddf8c08f21232aa99be59409d442c0
lib/meta-robots.js
lib/meta-robots.js
'use strict'; var Transform = require('stream').Transform; var contentTypes = require('./content-types'); module.exports = function(config) { function createStream() { return new Transform({ decodeStrings: false, transform: function(chunk, encoding, next) { var upd...
'use strict'; var Transform = require('stream').Transform; var contentTypes = require('./content-types'); module.exports = function(config) { function createStream() { return new Transform({ decodeStrings: false, transform: function(chunk, encoding, next) { var upd...
Write meta robots only when content type is HTML
Write meta robots only when content type is HTML
JavaScript
agpl-3.0
nfriedly/node-unblocker,nfriedly/node-unblocker
2b4546daf0a6a77e86dfda04bb4e08dde68712ae
.eslintrc.js
.eslintrc.js
module.exports = { env: { browser: true, node: true, es6: true }, extends: 'eslint:recommended', parserOptions: { sourceType: 'module' }, rules: { 'indent': ['error', 4], 'linebreak-style': ['error', 'unix'], 'quotes': ['error', 'single'], ...
module.exports = { env: { browser: true, node: true, es6: true, mocha: true, jasmine: true, jquery: true, }, extends: 'eslint:recommended', parserOptions: { sourceType: 'script', impliedStrict: true }, rules: { 'indent': ['e...
Add correct enviroments to eslint config
chore(eslint): Add correct enviroments to eslint config
JavaScript
mit
mbenford/ngTagsInput,mbenford/ngTagsInput
b314d1b8a1c2ec7c26600b4e7f39f83083a1b835
.eslintrc.js
.eslintrc.js
module.exports = { "env": { "es6": true }, "extends": "eslint:recommended", "parserOptions": { "sourceType": "module" }, "rules": { "indent": [ "warn", "tab", { "SwitchCase": 1 } ], "linebreak-style": [ "error", "unix" ], "quotes": [ "error", "double" ], "semi": [ ...
module.exports = { "env": { "es6": true, "browser": true }, "extends": "eslint:recommended", "parserOptions": { "sourceType": "module" }, "rules": { "indent": [ "warn", "tab", { "SwitchCase": 1 } ], "linebreak-style": [ "error", "unix" ], "quotes": [ "error", "double" ...
Add browser: true to env map to suppress eslint errors for browser globals
Add browser: true to env map to suppress eslint errors for browser globals
JavaScript
mit
to2mbn/skinview3d
d5bc9a06396e990cbc799b2062f55a3739f807bc
.eslintrc.js
.eslintrc.js
module.exports = { extends: ["eslint:recommended", "prettier"], root: true, env: { es6: "true", browser: true, node: true, jest: true, }, parser: "@babel/eslint-parser", ignorePatterns: [], rules: { "no-debugger": 1, "no-duplicate-imports": 1, ...
module.exports = require("@patternslib/dev/.eslintrc.js");
Extend eslint config from @patternslib/dev.
breaking: Extend eslint config from @patternslib/dev.
JavaScript
mit
Patternslib/pat-redactor,Patternslib/pat-redactor,Patternslib/pat-redactor
503d0827eccf696d5293fec3e44195172cb1b53a
.eslintrc.js
.eslintrc.js
module.exports = { root: true, extends: ['eslint:recommended', 'prettier'], plugins: ['prettier'], parserOptions: { ecmaVersion: 2015, sourceType: 'module', }, env: { node: true, }, rules: { 'prettier/prettier': ['error', { singleQuote: true, trailingComma: 'es5', print...
module.exports = { root: true, extends: ['eslint:recommended', 'prettier'], plugins: ['prettier'], parserOptions: { ecmaVersion: 2015, sourceType: 'module', }, env: { node: true, es6: true, }, rules: { 'prettier/prettier': ['error', { singleQuote: true, trailingComma: 'es...
Allow ES6 globals (Set, Map, etc)
Allow ES6 globals (Set, Map, etc)
JavaScript
mit
rwjblue/ember-qunit-codemod,rwjblue/ember-qunit-codemod
40c3a351bebaee065e244f84e42173af0f90dfe8
.eslintrc.js
.eslintrc.js
/*eslint-env node*/ module.exports = { parserOptions: { ecmaVersion: 6, sourceType: "module" }, env: { browser: true }, rules: { camelcase: 2, "comma-dangle": [2, "never"], "comma-style": [2, "last"], eqeqeq: 2, indent: [2, 2, { VariableDeclarator: 2 }], "no-eq-null": 2, ...
module.exports = { env: { browser: true, es6: true }, extends: "eslint:recommended", parserOptions: { ecmaFeatures: { experimentalObjectRestSpread: true, jsx: true }, sourceType: "module" }, plugins: ["react"], rules: { camelcase: "error", "comma-dangle": ["error", ...
Edit ESLint config: Double quotes, multiline comma-dangle, React support
Edit ESLint config: Double quotes, multiline comma-dangle, React support
JavaScript
mit
kimlindholm/phoenix_component_folders,kimlindholm/phoenix_component_folders
e38bb0523ef073fd79fcf111b1e357427ce77d81
packages/core/src/Rules/PatchSyncTeX.js
packages/core/src/Rules/PatchSyncTeX.js
/* @flow */ import Rule from '../Rule' import type { Phase } from '../types' function escapePath (filePath) { return filePath.replace(/\\/g, '\\\\') } export default class PatchSyncTeX extends Rule { static parameterTypes: Array<Set<string>> = [ new Set(['KnitrConcordance']), new Set(['SyncTeX']) ] ...
/* @flow */ import Rule from '../Rule' import type { Phase } from '../types' function escapePath (filePath) { return filePath.replace(/\\/g, '\\\\') } export default class PatchSyncTeX extends Rule { static parameterTypes: Array<Set<string>> = [ new Set(['Knitr']), new Set(['SyncTeX']), new Set(['Kn...
Use parameters for path resolution
Use parameters for path resolution
JavaScript
mit
yitzchak/ouroboros,yitzchak/dicy,yitzchak/dicy,yitzchak/ouroboros,yitzchak/dicy
eb17d90f05654547c3d0dd4f78ff5dffc1b2f28a
lib/checkRole.js
lib/checkRole.js
'use strict' var rootDir = __dirname.split('/') rootDir.pop() rootDir = rootDir.join('/') var app = { rootDir: rootDir } var Role = require(__dirname + '/../routes/roles/model')(app) var User = require(__dirname + '/../routes/users/model')(app) module.exports = function *checkRole() { var cb = function(resolve, reje...
'use strict' var rootDir = __dirname.split('/') rootDir.pop() rootDir = rootDir.join('/') var app = { rootDir: rootDir } var Role = require(__dirname + '/../routes/roles/model')(app) var User = require(__dirname + '/../routes/users/model')(app) module.exports = function *checkRole() { var cb = function(resolve, reje...
Add isAdmin to user store if is admin
feat(role): Add isAdmin to user store if is admin
JavaScript
mit
drGrove/koa-boilerplate,drGrove/koa-boilerplate,drGrove/koa-boilerplate
40ff6d12edd3bed419ecaa76d5fc02c00571c509
src/component.js
src/component.js
import { select, local } from "d3-selection"; var stateLocal = local(), renderLocal = local(), noop = function (){}; export default function (tagName, className){ var render = noop, create, destroy, selector = className ? "." + className : tagName; function component(selection, props){ var updat...
import { select, local } from "d3-selection"; var componentLocal = local(), noop = function (){}; export default function (tagName, className){ var render = noop, create, destroy, selector = className ? "." + className : tagName; function component(selection, props){ var update = selection.selectAll...
Refactor to use a single local
Refactor to use a single local
JavaScript
bsd-3-clause
curran/d3-component
557a97e257f1eb8ba2c47ff4878668656fd8395d
lib/fs/readdir-files-deep.js
lib/fs/readdir-files-deep.js
// Read all filenames from directory and it's subdirectories 'use strict'; var call = Function.prototype.call , fs = require('fs') , aritize = require('es5-ext/lib/Function/prototype/aritize') , invoke = require('es5-ext/lib/Function/invoke') , k = require('es5-ext/lib/Function/k') , flatten ...
// Read all filenames from directory and it's subdirectories 'use strict'; var call = Function.prototype.call , fs = require('fs') , aritize = require('es5-ext/lib/Function/prototype/aritize') , invoke = require('es5-ext/lib/Function/invoke') , k = require('es5-ext/lib/Function/k') , flatten ...
Update up to changes in deferred
Update up to changes in deferred
JavaScript
mit
medikoo/node-ext
cb9e2bfb6b03435513750b741da1a5896ae4ad5d
src/components/App.js
src/components/App.js
import React, { Component } from 'react'; import { Navbar, Nav, NavItem } from 'react-bootstrap'; import ImgurImage from './ImgurImage'; import { searchGallery } from './../services/imgur'; export default class App extends Component { constructor(props) { super(props); this.state = {images: [], page: 0}; ...
import React, { Component } from 'react'; import { Navbar, Nav, NavItem } from 'react-bootstrap'; import ImgurImage from './ImgurImage'; import { searchGallery } from './../services/imgur'; export default class App extends Component { constructor(props) { super(props); this.state = {images: [], page: 0}; ...
Check if app is mounted
Check if app is mounted
JavaScript
mit
mattlewis92/react-imgur,mattlewis92/react-imgur
667439418eb9e08e9a7cc03686689f00672cf919
src/components/App.js
src/components/App.js
import React, {PropTypes} from 'react'; import LeftSidebar from "./views/leftsidebar/LeftSidebar"; import {appComponents} from "./ConfigMap"; import AppController from "./controller/AppController"; class App extends React.Component { render(){ return ( <div className="app-wrapper "> <div className="row ...
import React, {PropTypes} from 'react'; import LeftSidebar from "./views/leftsidebar/LeftSidebar"; import {appComponents} from "./ConfigMap"; import AppController from "./controller/AppController"; class App extends React.Component { render(){ return ( <div className="app-wrapper "> <div className="row vis...
Add text for mobile devices
Add text for mobile devices
JavaScript
mit
DataKind-BLR/antara,DataKind-BLR/antara,DataKind-BLR/antara
4d7c2f6ddd51cf2e394ddfc758bb335bf859bf0d
valiquire-redirect.js
valiquire-redirect.js
'use strict'; var electronModules = ['electron', 'app', 'browser-window', 'crash-reporter', 'remote', 'shell', 'clipboard', 'screen']; module.exports = function redirect(request) { // Tell valiquire to ignore these modules if(~electronModules.indexOf(request)) return null; // all others we don't redirect retu...
'use strict'; var electronModules = ['electron', 'app', 'browser-window', 'crash-reporter', 'remote', 'shell', 'clipboard', 'screen', 'tray', 'menu', 'auto-updater']; module.exports = function redirect(request) { // Tell valiquire to ignore these modules if(~electronModules.indexOf(request)) return null; // all...
Add menu,tray,auto-updater to Electron deps
Add menu,tray,auto-updater to Electron deps
JavaScript
mit
Kirvx/OpenBazaar-Client,blockchainProject/blockchain-project-client,programmerpeter/OpenBazaar-Client,OpenBazaar/OpenBazaar-Client,rmisio/OpenBazaar-Client,programmerpeter/OpenBazaar-Client,jjeffryes/OpenBazaar-Client,rmisio/OpenBazaar-Client,Kirvx/OpenBazaar-Client,mariodian/OpenBazaar-Client,jjeffryes/OpenBazaar-Clie...
ef60a275a79febec5b1489cf8fc15259aef4f8dc
library/spec/pivotal-ui-react/accessibility-developer-tools-matcher.js
library/spec/pivotal-ui-react/accessibility-developer-tools-matcher.js
const axs = require('../../node_modules/accessibility-developer-tools/dist/js/axs_testing.js'); function failureMessageForAdtResult(result) { const elements = result.elements.map((element) => element.outerHTML); return [ result.rule.heading, ...elements ].join('\n '); } module.exports = function toPa...
const axs = require('../../node_modules/accessibility-developer-tools/dist/js/axs_testing.js'); function failureMessageForAdtResult(result) { const elements = result.elements.map((element) => element.outerHTML); return [ result.rule.heading, ...elements ].join('\n '); } module.exports = function toPa...
Allow trieOptions to be passed into autocomplete
feat(autocomplete): Allow trieOptions to be passed into autocomplete - trieOptions to be passed into autocomplete - add properties of autocomplete to documentation - update autocomplete syntax - update event-stream dependency to from and through [#130668639] Signed-off-by: Ryan Dy <9eea7ae7eaa2d8efe5cde89ff3ed761900...
JavaScript
mit
sjolicoeur/pivotal-ui,pivotal-cf/pivotal-ui,sjolicoeur/pivotal-ui,pivotal-cf/pivotal-ui,sjolicoeur/pivotal-ui,pivotal-cf/pivotal-ui,sjolicoeur/pivotal-ui
8661901b35ac03301cfbc45dd8d6fbc5f233b092
tools/docs/api/tree-to-menu-fragment/lib/sort.js
tools/docs/api/tree-to-menu-fragment/lib/sort.js
'use strict'; // FUNCTIONS // /** * Returns a comparison result. If `-1`, `a` comes before `b`. If `1`, `b` comes before `a`. If `0`, the order stays the same. * * @private * @param {string} a - first string * @param {string} b - second string * @returns {boolean} comparison result */ function comparator( a, b ) { i...
'use strict'; // FUNCTIONS // /** * Returns a comparison result. If `-1`, `a` comes before `b`. If `1`, `b` comes before `a`. If `0`, the order stays the same. * * @private * @param {string} a - first string * @param {string} b - second string * @returns {boolean} comparison result */ function comparator( a, b ) { i...
Modify comparator to ensure `namespace` packages are given priority
Modify comparator to ensure `namespace` packages are given priority
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
b0b60726b7db9bb927e099d34937aec1f30120f8
lib/sinon-mocha.js
lib/sinon-mocha.js
var SinonMocha, WrapMethod = require('./sinon/wrap-method'), Hooks = require('./mocha-hooks'); SinonMocha = { sinon: null, enhance: function(sinon, mocha){ SinonMocha.sinon = sinon; Hooks.enhance(mocha); Hooks.beforeEach(SinonMocha.beforeEach); Hooks.afterEach(SinonMocha.afterEach); }...
var SinonMocha, WrapMethod = require('./sinon/wrap-method'), Hooks = require('./mocha-hooks'); SinonMocha = { sinon: null, enhance: function(sinon, mocha){ SinonMocha.sinon = sinon; Hooks.enhance(mocha); Hooks.beforeEach(SinonMocha.beforeEach); Hooks.afterEach(SinonMocha.afterEach); }...
Use sinon of the SinonMocha object (which was assigned via enhance)
Use sinon of the SinonMocha object (which was assigned via enhance)
JavaScript
mit
lightsofapollo/sinon-mocha,apiaryio/sinon-mocha
993961e6c9835df0f56380a9709f1e3921882900
app/actions/userCodeActions.js
app/actions/userCodeActions.js
const updateCode = newCode => { return { type: 'UPDATE_CODE', newCode }; }; const darken = () => { return { type: 'DARKEN_THEME' }; }; const lighten = () => { return { type: 'LIGHTEN_THEME' }; }; export default { updateCode, darken, lighten };
const updateCode = newCode => { return { type: 'UPDATE_CODE', newCode }; }; const swapCode = () => { return { type: 'TOGGLE_TREE_TYPE' }; }; const darken = () => { return { type: 'DARKEN_THEME' }; }; const lighten = () => { return { type: 'LIGHTEN_THEME' }; }; export default { updateCode, darken, ligh...
Add action to toggle tree code
Add action to toggle tree code
JavaScript
mit
ivtpz/brancher,ivtpz/brancher
66459a9df3dd380619e498cd08f9b64ce1d6f1e1
markup/assets/markup-data.js
markup/assets/markup-data.js
module.exports = { document: { title: 'Support Richard King' }, // Placeholders header: {}, main: {}, footer: {} };
module.exports = { document: { title: 'Support Richard King' }, // Placeholders header: {}, main: {}, footer: {}, 'contact-top': [ { icon: { type: 'github' }}, { icon: { type: 'email' }}, { icon: { type: 'twitter' }}, { icon: { type: 'google' }}, ...
Update to the point to start testing with
Update to the point to start testing with
JavaScript
mit
richrdkng/support,richrdkng/support
8cc7e4d04641f996f997ade2716eaad2b49a2ba8
models/settings.js
models/settings.js
/*global Ghost, _ */ (function () { 'use strict'; //id:0 is used to issue PUT requests Ghost.Models.Settings = Ghost.ProgressModel.extend({ url: Ghost.paths.apiRoot + '/settings/?type=blog,theme,app', id: '0', parse: function (response) { var result = _.reduce(response.s...
/*global Backbone, Ghost, _ */ (function () { 'use strict'; //id:0 is used to issue PUT requests Ghost.Models.Settings = Ghost.ProgressModel.extend({ url: Ghost.paths.apiRoot + '/settings/?type=blog,theme,app', id: '0', parse: function (response) { var result = _.reduce(...
Move to new API format for Settings.
Move to new API format for Settings. refs #2606 - Use new API format when updating settings from the client side - Add additional test to test new API format - Adjust functional tests to work with the new format
JavaScript
mit
acburdine/Ghost-Admin,JohnONolan/Ghost-Admin,airycanon/Ghost-Admin,dbalders/Ghost-Admin,TryGhost/Ghost-Admin,airycanon/Ghost-Admin,TryGhost/Ghost-Admin,kevinansfield/Ghost-Admin,kevinansfield/Ghost-Admin,JohnONolan/Ghost-Admin,dbalders/Ghost-Admin,acburdine/Ghost-Admin
1511a4900473f914c10f9d8010a325bdf2617196
rollup.config.js
rollup.config.js
import resolve from 'rollup-plugin-node-resolve'; import commonjs from 'rollup-plugin-commonjs'; import babel from 'rollup-plugin-babel'; import pkg from './package.json'; export default [ // browser-friendly UMD build { input: 'src/simplebar.js', output: { name: 'SimpleBar', file: pkg.browser,...
import resolve from 'rollup-plugin-node-resolve'; import commonjs from 'rollup-plugin-commonjs'; import babel from 'rollup-plugin-babel'; import pkg from './package.json'; export default [ // browser-friendly UMD build { input: 'src/simplebar.js', output: { name: 'SimpleBar', file: pkg.browser,...
FIx Rollup external not handling core-js module
FIx Rollup external not handling core-js module
JavaScript
mit
Grsmto/simplebar,Grsmto/simplebar,Grsmto/simplebar
68c3c5e531b7e86b0bc593952dffea45ecce832f
blueprints/bootstrap-datepicker/index.js
blueprints/bootstrap-datepicker/index.js
module.exports = { afterInstall: function() { return this.addBowerPackageToProject('bootstrap-datepicker'); } };
module.exports = { normalizeEntityName: function() {}, afterInstall: function() { return this.addBowerPackageToProject('bootstrap-datepicker'); } };
Fix "command requires an entity name to be specified" issue
Fix "command requires an entity name to be specified" issue
JavaScript
mit
aravindranath/ember-cli-datepicker,jelhan/ember-cli-bootstrap-datepicker,topaxi/ember-bootstrap-datepicker,Hanastaroth/ember-cli-bootstrap-datepicker,NichenLg/ember-cli-bootstrap-datepicker,soulim/ember-cli-bootstrap-datepicker,aldhsu/ember-cli-bootstrap-datepicker,jesenko/ember-cli-bootstrap-datepicker,lazybensch/embe...
b76af26ba3afb49790bf6f302968b43caa6b0f94
models.js
models.js
var mongoose = require( 'mongoose' ); db = mongoose.connection; var Packages = db.model( 'Packages', require( './models/packages' )); Packages.ensureIndexes(function ( err ) { console.error(err); }); module.exports = { 'Packages' : Packages };
var mongoose = require( 'mongoose' ); db = mongoose.connection; var Component = db.model( 'Component', require( './models/component' )); Component.ensureIndexes(function ( err ) { console.error(err); }); module.exports = { 'Component' : Component };
Update naming of model Packages to Component
Update naming of model Packages to Component
JavaScript
mit
web-audio-components/web-audio-components-service
96e7031ae32b320d8297c49ab146903da31824c4
moment.js
moment.js
const moment = require('moment') let now = moment() console.log(now.format('YYYY-MM-DD'))
const moment = require('moment') // Format a date object. let now = moment() console.log(now.format('YYYY-MM-DD')) // Parse a date time string. let dt = moment('2017-01-05T20:15') console.log(dt) // Print out just the time. console.log(dt.format('hh:mm A'))
Add an example of parsing a date time string
Add an example of parsing a date time string
JavaScript
apache-2.0
feihong/node-examples,feihong/node-examples
5175467c544c85452dfd0fe76dae1633c949839e
app/routes/project-settings.js
app/routes/project-settings.js
import Ember from 'ember'; import AuthenticatedRouteMixin from 'ember-simple-auth/mixins/authenticated-route-mixin'; import ENV from 'experimenter/config/environment'; export default Ember.Route.extend(AuthenticatedRouteMixin, { model() { return this.store.find('namespace', ENV.JAMDB.namespace); } });...
import Ember from 'ember'; import AuthenticatedRouteMixin from 'ember-simple-auth/mixins/authenticated-route-mixin'; export default Ember.Route.extend(AuthenticatedRouteMixin, { namespaceConfig: Ember.inject.service(), model() { return this.store.find('namespace', this.get('namespaceConfig').get('names...
Remove old reference to ENV.JAMBD
Remove old reference to ENV.JAMBD
JavaScript
apache-2.0
abought/experimenter,abought/experimenter
6fd15e466fc7422403e1d945e7c3122db480c0d2
addon/components/sl-simple-modal.js
addon/components/sl-simple-modal.js
import Ember from 'ember'; import ModalMixin from '../mixins/sl-modal'; /** * @module components * @class sl-simple-modal */ export default Ember.Component.extend( ModalMixin, { // ------------------------------------------------------------------------- // Dependencies // ---------------------------...
import Ember from 'ember'; import ModalMixin from '../mixins/sl-modal'; /** * @module components * @class sl-simple-modal */ export default Ember.Component.extend( ModalMixin, { // ------------------------------------------------------------------------- // Dependencies // ---------------------------...
Refactor to follow style guidelines
Refactor to follow style guidelines
JavaScript
mit
azizpunjani/sl-ember-components,softlayer/sl-ember-components,SpikedKira/sl-ember-components,juwara0/sl-ember-components,SpikedKira/sl-ember-components,softlayer/sl-ember-components,alxyuu/sl-ember-components,theoshu/sl-ember-components,notmessenger/sl-ember-components,Suven/sl-ember-components,erangeles/sl-ember-compo...
ec60529d836e1d8997e6597de326a8c0ab0fd554
lib/auth.js
lib/auth.js
var config = require("config") , crypto = require("crypto") , request = require("request") , github = require("./github") module.exports.generateNonce = function (length) { return crypto.randomBytes(length * 2).toString("hex").slice(0, length) } module.exports.requestAccessToken = function (code, cb) { var ...
var config = require("config") , crypto = require("crypto") , request = require("request") , github = require("./github") module.exports.generateNonce = function (length) { return crypto.randomBytes(length * 2).toString("hex").slice(0, length) } module.exports.requestAccessToken = function (code, cb) { var ...
Create Error instances when errors happen
Create Error instances when errors happen
JavaScript
mit
wzrdtales/david-www,JoseRoman/david-www,wzrdtales/david-www,caktux/david-www,JoseRoman/david-www,alanshaw/david-www,caktux/david-www
31208334b15e4f7f5f020113d2691c5b11e210dd
test/test-creation.js
test/test-creation.js
/*global describe, beforeEach, it */ 'use strict'; var path = require('path'); var helpers = require('yeoman-generator').test; describe('yui generator', function () { beforeEach(function (done) { helpers.testDirectory(path.join(__dirname, 'temp'), function (err) { if (err) { ret...
/*global describe, it */ 'use strict'; var path = require('path'); var yeoman = require('yeoman-generator'); describe('yui generator', function () { var TMP_DIR = path.join(__dirname, 'temp'); var APP_DIR = path.join(__dirname, '../app'); it('creates expected files', function (done) { var expected...
Migrate to modern generator test patterns.
Migrate to modern generator test patterns.
JavaScript
mit
zillow/generator-yui-library
f9f47047f4477a4cbbfb3e8b5ed2b78b3da9f37a
parser.js
parser.js
var fs = require('fs'); var through = require('through'); // File input & output given as arguments var from = process.argv[2]; var to = process.argv[3]; // Benchmarking var startTime = Date.now(); // Raise the buffer limits var readOpts = {highWaterMark: Math.pow(2,16)}; var writeOpts = {highWaterMark: Math.pow(2,1...
'use strict'; const fs = require('fs'); const through = require('through'); // File input & output given as arguments const from = process.argv[2]; const to = process.argv[3]; // Benchmarking const startTime = Date.now(); // Raise the buffer limits const streamOpts = {highWaterMark: Math.pow(2, 16)}; // Create fil...
Update to ES6 for fun
Update to ES6 for fun
JavaScript
mit
mikkopiu/node-csv-semicolon-parser,mikkopiu/csv-semicolon-to-comma-fmt
18f61544ec66bd297c4d15b8901f2c634dfd5a45
app/lib/model-validation-promise.js
app/lib/model-validation-promise.js
/*global Promise, _*/ exports.validate = function(model) { var errors = {}; //Looping through each attributes. for (var attr in getValidatedAttrs(model)) { //console.log("Attr", attr); if (!model.isValid(attr)) { errors[attr] = attr + " not valid."; // Todo: translate the message. } } //Prom...
/*global Promise, _*/ //Get the domains definition. var domains = require('./domains'); exports.validate = function(model) { var errors = {}; //Looping through each attributes. validateCustomAttributes(model, errors); //Promisify the validations , if there is errors call the reject else call resolve with the mo...
Add improve the validation model.
Add improve the validation model.
JavaScript
mit
pierr/front-end-spa,KleeGroup/front-end-spa,KleeGroup/front-end-spa,pierr/front-end-spa
650d49d3d299e565b1e9bfc3aa477987322999f2
scripts/giphy.js
scripts/giphy.js
'use strict'; var request = require('request'); function spotify(bot, controller, message) { var msg = ''; var url = 'https://api.spotify.com/v1/search?q='; url += message.match[1] + '&type=track'; request.get(url, function(err, res, body) { if (!err && res.statusCode === 200) { var response = JSON....
'use strict'; var request = require('request'); function giphy(bot, controller, message) { var msg = ''; var url = 'http://api.giphy.com/v1/gifs/search?q='; url += message.match[1] + '&api_key=dc6zaTOxFJmzC'; request.get(url, function(err, res, body) { if (!err && res.statusCode === 200) { var respo...
Fix function call and api url
Fix function call and api url
JavaScript
mit
devacademyla/PiscoBot,devacademyla/PiscoBot
19ec33655ecf35ad7d9699fb8c604790135a7dae
src/main/resources/static/entrypoint.js
src/main/resources/static/entrypoint.js
window.registerExtension('issueresolver/entrypoint', function (options) { options.el.id='issueresolver-page'; options.el.className='page page-limited'; var loader = function() { requirejs.config({ baseUrl: '/static/issueresolver' }); requirejs(['main'], function(main) { main.main(options); }); ...
window.registerExtension('issueresolver/entrypoint', function (options) { options.el.id='issueresolver-page'; options.el.className='page page-limited'; var location = options.router.createLocation('/static/issueresolver'); var loader = function() { requirejs.config({ baseUrl: location.basename + location...
Fix breaking bug when using a context path
Fix breaking bug when using a context path
JavaScript
apache-2.0
willemsrb/sonar-issueresolver-plugin,willemsrb/sonar-issueresolver-plugin
9f5c95a009abce364ffdc6bf64a9aa007d126194
packages/pack/webpack/favicon.config.js
packages/pack/webpack/favicon.config.js
const offsetIcon = { offset: 15, background: '#fff', }; module.exports = { developerName: 'Proton AG', developerURL: 'https://github.com/ProtonMail/WebClients', background: '#fff', theme_color: '#1b1340', appleStatusBarStyle: 'default', display: 'standalone', start_url: '/', loa...
const offsetIcon = { offset: 15, background: '#fff', }; module.exports = { developerName: 'Proton AG', developerURL: 'https://github.com/ProtonMail/WebClients', background: '#fff', theme_color: '#1b1340', appleStatusBarStyle: 'default', display: 'standalone', start_url: '/', loa...
Disable generating favicons for discontinued Opera Coast and Firefox OS
Disable generating favicons for discontinued Opera Coast and Firefox OS
JavaScript
mit
ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient
7a88567576285a59dc2882a67bab2598db927ea9
time-service/index.js
time-service/index.js
var cote = require('cote'); var hostname = require('os').hostname(); var source = `time-service@${hostname}`; var timeResponder = new cote.Responder({ name: 'Time Responder' }); timeResponder.on('time', function(req, cb) { var time = new Date(); var reply = {source, time, random: Math.random()}; con...
var cote = require('cote'); var hostname = require('os').hostname(); var source = `time-service@${hostname}`; var timeResponder = new cote.Responder({ name: 'Time Responder' }); timeResponder.on('time', function(req, cb) { var time = new Date(); var reply = {source, time}; console.log(reply); cb...
Remove random field from time service responses
Remove random field from time service responses
JavaScript
mit
dashersw/dockercloud-microservices
2adfd5c27e52adc1d6a2b66f918ed604559d4362
bingo.js
bingo.js
(function () { "use strict"; var words = [ "Staattinen tyypitys", "Microservices", "Haskell", "Clojure", "Lisp", "ES6", "Algebraiset tietotyypit", "HATEOAS", "Sivuvaikutus" ], template = Hand...
(function () { "use strict"; var gridSize = 3; var words = [ "Staattinen tyypitys", "Microservices", "Haskell", "Clojure", "Lisp", "ES6", "Algebraiset tietotyypit", "HATEOAS", "Sivuvaikutus", "REST", "Eventually consist...
Add more words, take only first N
Add more words, take only first N
JavaScript
isc
teelahti/trollibingo,teelahti/trollibingo
f3fdc5e9bee9970927618cbedaf2e8ef3e915731
app/js/collections/business-collection.js
app/js/collections/business-collection.js
var Backbone = require('backbone'); var $ = require('jquery'); Backbone.$ = $; module.exports = Backbone.Collection.extend({ initialize: function(models, url) { this.models = models; this.url = url; }, fetch: function() { Backbone.$.get('https://www.google.com/', function(data) { console.log(data); }); ...
var Backbone = require('backbone'); var $ = require('jquery'); Backbone.$ = $; module.exports = Backbone.Collection.extend({ initialize: function(models, url) { this.models = models; this.url = url; } });
Trim to just the initializer
Trim to just the initializer
JavaScript
mit
Localhost3000/along-the-way
a9527747acb2931d1fe6f4a31c39d73089f7f69f
server/managers/__tests__/meeting.js
server/managers/__tests__/meeting.js
jest.mock('../../models/meeting'); const { endGenfors } = require('../meeting'); const { updateGenfors } = require('../../models/meeting'); const { generateGenfors, generateUser } = require('../../utils/generateTestData'); const permissionLevels = require('../../../common/auth/permissions'); describe('endGenfors', () ...
jest.mock('../../models/meeting'); const { endGenfors } = require('../meeting'); const { getGenfors, getActiveGenfors, updateGenfors } = require('../../models/meeting'); const { generateGenfors, generateUser } = require('../../utils/generateTestData'); const permissionLevels = require('../../../common/auth/permissions'...
Test that user without access can't close genfors
Test that user without access can't close genfors
JavaScript
mit
dotkom/super-duper-fiesta,dotkom/super-duper-fiesta,dotkom/super-duper-fiesta
772ac54e031025724316f4034790b8b6c3c010cb
server/routes/index.js
server/routes/index.js
const basicAuth = require('express-basic-auth'); const booksController = require('../books/book.controller'); const authorize = basicAuth({ users: {'admin': 'admin'} }); module.exports = (app, express) => { app.get('/books', booksController.list); app.get('/books/:id', booksController.getById); const authori...
const basicAuth = require('express-basic-auth'); const booksController = require('../books/book.controller'); const authorize = basicAuth({ users: {'admin': 'admin'} }); module.exports = (app, express) => { app.get('/books', booksController.list); app.get('/books/:id', booksController.getById); app.post('/boo...
Make post not need to be authorized.
Make post not need to be authorized.
JavaScript
mit
taylonr/postman,taylonr/postman,taylonr/postman
69def6a8d0c4b30d9c08958623fd7bd3c6484da1
app/models/widgets/ticker_widget.js
app/models/widgets/ticker_widget.js
/** * Shows arbitrary text in a news ticker-like fashion. * * The widget is designed to have a very small height in comparison to its width. This can be * achieved by increasing the granularity of the widget sizes in the config, e.g. by setting the * `dim[1]` of the grid to a high value and scaling accordingly the...
/** * Shows arbitrary text in a news ticker-like fashion. * * The widget is designed to have a very small height in comparison to its width. This can be * achieved by increasing the granularity of the widget sizes in the config, e.g. by setting the * `dim[1]` of the grid to a high value and scaling accordingly the...
Fix bug in ticker widget width set
Fix bug in ticker widget width set
JavaScript
mit
kloudsio/mucuchies,ShiftForward/mucuchies,kloudsio/mucuchies,ShiftForward/mucuchies
1cc581ad6a361a68dac14270499ba253d5ad2732
app/scripts/configs/modes/portal.js
app/scripts/configs/modes/portal.js
'use strict'; angular.module('ncsaas') .constant('MODE', { modeName: 'modePortal', toBeFeatures: [ 'localSignup', 'localSignin', 'password', 'team', 'people', 'payment', 'compare', 'monitoring', 'backups', 'templates', 'sizing', 'project...
'use strict'; angular.module('ncsaas') .constant('MODE', { modeName: 'modePortal', toBeFeatures: [ 'localSignup', 'localSignin', 'password', 'people', 'compare', 'backups', 'templates', 'sizing', 'projectGroups', 'apps', 'premiumSupport' ]...
Enable Enterprise edition features for modePortal (SAAS-1370)
Enable Enterprise edition features for modePortal (SAAS-1370)
JavaScript
mit
opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport
4a31292b7ad06fa43dae0a16cfe945d1cd0c4cb4
server/server.js
server/server.js
import Player from './game/players/players'; export default class Server { constructor() { this._players = {}; this._nextPlayerId = (function() { var i = 1; return function() { i += 1; return i.toString(); }; })(); } get players() { return this._players; } /** * Connects a client to...
import Player from './game/players/players'; export default class Server { constructor() { this._players = {}; this._nextPlayerId = (function() { var i = 0; return function() { i += 1; return i.toString(); }; })(); } get players() { return this._players; } /** * Connects a client to...
Add logs and implement a basic disconnect.
Add logs and implement a basic disconnect.
JavaScript
mit
Kineolyan/Catane,Kineolyan/Catane
5dc5167324329fb9bc03c98c4009cae89ed28f53
private/library/data/MessageComposer.js
private/library/data/MessageComposer.js
const DataComposer = require('./BaseComposer'); const dataHandler = require('./DataHandler'); const eventCentral = require('../EventCentral'); class MessageComposer extends DataComposer { constructor() { super({ handler: dataHandler.messages, completionEvent: eventCentral.Events.COMPLETE_MESSAGE, ...
const DataComposer = require('./BaseComposer'); const dataHandler = require('./DataHandler'); const eventCentral = require('../EventCentral'); const storageManager = require('../StorageManager'); class MessageComposer extends DataComposer { constructor() { super({ handler: dataHandler.messages, comp...
Set alias id on message, if it exists.
Set alias id on message, if it exists.
JavaScript
apache-2.0
yxeri/roleTerminal,yxeri/roleOOC,yxeri/roleTerminal,yxeri/roleOOC,yxeri/roleOOC,yxeri/roleTerminal
a8ea30660c0e897c20baa12c71c59dadd78c7e53
src/redux/modules/Households/actions.js
src/redux/modules/Households/actions.js
import ApiService from '../../../services/Api' const addHousehold = (household) => { return { type: 'ADD_HOUSEHOLD_SUCCESS', household } } export const convertLead = (id, history) => { return dispatch => { return ApiService.post(`/households/${id}/convert`) .then(client => { console.lo...
import ApiService from '../../../services/Api' const addHousehold = (household) => { return { type: 'ADD_HOUSEHOLD_SUCCESS', household } } export const convertLead = (id, history) => { return dispatch => { return ApiService.post(`/households/${id}/convert`) .then(client => { console.lo...
Update redirect after new lead created
Update redirect after new lead created
JavaScript
mit
cernanb/personal-chef-react-app,cernanb/personal-chef-react-app
84c98196276afabbfd597d900ed97dea700911ac
src/reducers/index.js
src/reducers/index.js
import { combineReducers } from 'redux'; import NavigationReducer from './NavigationReducer'; import SyncReducer from './SyncReducer'; export default combineReducers({ nav: NavigationReducer, sync: SyncReducer, });
import { combineReducers } from 'redux'; import NavigationReducer from './NavigationReducer'; import SyncReducer from './SyncReducer'; import { PagesReducer } from './PagesReducer'; export default combineReducers({ nav: NavigationReducer, sync: SyncReducer, pages: PagesReducer, });
Add pages state to redux store
Add pages state to redux store
JavaScript
mit
sussol/mobile,sussol/mobile,sussol/mobile,sussol/mobile
e6058f7ab7cb7639228396dff0aab6a04bbe84f2
Gruntfile.js
Gruntfile.js
module.exports = function(grunt) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), // the package file to use qunit: { // internal task or name of a plugin (like "qunit") all: ['tests/*.html'] }, watch: { files: ['tests/*.js', 'tests/*.html', 'tm...
module.exports = function(grunt) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), // the package file to use qunit: { // internal task or name of a plugin (like "qunit") all: ['tests/*.html'] }, watch: { files: ['tests/*.js', 'tests/*.html', 'tm...
Call go build with default grunt invocation
Call go build with default grunt invocation
JavaScript
bsd-2-clause
rtfb/rtfblog,rtfb/rtfblog,rtfb/rtfblog,rtfb/rtfblog,rtfb/rtfblog
64ce117b72dcddd29fe6e9d812d0bb28039a65ed
Gruntfile.js
Gruntfile.js
module.exports = function(grunt) { 'use strict'; // Project configuration. grunt.initConfig({ jasmine : { src : 'src/**/*.js', options : { specs : 'spec/**/*.js', template: require('grunt-template-jasmine-requirejs'), templateO...
module.exports = function(grunt) { 'use strict'; // Project configuration. grunt.initConfig({ jasmine : { src : 'src/**/*.js', options : { specs : 'spec/**/*.js', template: require('grunt-template-jasmine-requirejs'), templateO...
Update to new location of require config
Update to new location of require config
JavaScript
mit
zsyed91/handlebars-contrib,zsyed91/handlebars-contrib
bd617ce03dca4810d79ce41af53d7597011293f9
test/get-test.js
test/get-test.js
var vows = require('vows'), assert = require('assert'), get = require('../src/get'); vows.describe('get()').addBatch({ 'Getting': { topic: function() { return { foo: 1 }; }, 'an existing property returns the value': function(obj) { assert.equal(get(obj, 'foo'), 1); }...
var vows = require('vows'), assert = require('assert'), get = require('../src/get'); vows.describe('get()').addBatch({ 'Getting': { topic: function() { return { foo: 1, undef: undefined, nil: null }; }, 'an existing property returns the value': function(obj) { ...
Test for getting undefined/null values
Test for getting undefined/null values
JavaScript
bsd-3-clause
pombredanne/sprout,herrstucki/sprout
99c9648e217ab6d54101b4af7e229de3e846f2ef
Gruntfile.js
Gruntfile.js
module.exports = function(grunt) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), }); grunt.loadTasks('grunt-tasks'); grunt.registerTask( 'default', 'Run all tasks in a row.', ['validate', 'test', 'build'] ); grunt.registerTask( 'validate', 'Validate all files.', ['jshint', 'jscs', ...
module.exports = function(grunt) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), }); grunt.loadTasks('grunt-tasks'); grunt.loadTasks('tasks'); grunt.registerTask( 'default', 'Run all tasks in a row.', ['validate', 'test', 'build'] ); grunt.registerTask( 'validate', 'Validate all fil...
Add missing load of snapster tasks
Add missing load of snapster tasks
JavaScript
mit
schorfES/grunt-snapster
9d4760ac8bb84a7df1c3a0eb4c17b1145db84d57
assets/js/googlesitekit/modules/index.js
assets/js/googlesitekit/modules/index.js
/** * Modules API. * * Provides API functions to manage modules. * * Site Kit by Google, Copyright 2020 Google LLC * * 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 * * https://w...
/** * Modules API. * * Provides API functions to manage modules. * * Site Kit by Google, Copyright 2020 Google LLC * * 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 * * https://w...
Add methods to the googlesitekit.modules code.
Add methods to the googlesitekit.modules code.
JavaScript
apache-2.0
google/site-kit-wp,google/site-kit-wp,google/site-kit-wp,google/site-kit-wp
8cd101b507a07719815a46735502f2d56c0c7ad5
app/controllers/clickController.client.js
app/controllers/clickController.client.js
'use strict'; (function () { var addButton = document.querySelector('.btn-add'); var deleteButton = document.querySelector('.btn-delete'); var clickNbr = document.querySelector('#click-nbr'); var apiUrl = 'http://localhost:3000/api/clicks'; function ready (fn) { if (typeof fn !== 'function') { ...
'use strict'; (function () { var addButton = document.querySelector('.btn-add'); var deleteButton = document.querySelector('.btn-delete'); var clickNbr = document.querySelector('#click-nbr'); var apiUrl = 'http://localhost:3000/api/clicks'; function ready (fn) { if (typeof fn !== 'function') { ...
Update to AJAX functions in click controller.
Update to AJAX functions in click controller.
JavaScript
mit
laloptk/click-count,Ceece/timestamp-ms,roelver/shumicro,tan-vu/imaging-search-layer,laloptk/usho-url-shortner,tan-vu/url-shortener-microservice,laloptk/image-search,tan-vu/url-shortener-microservice,therebelbeta/clementinejs-test,megaboy101/FCC-metadata-filer,laloptk/convert-dates,laloptk/usho-url-shortner,laloptk/imag...
bb941a46fc2246c298c33f35a33b7da65df8aa6d
src/sales/deal-tracking-deal.js
src/sales/deal-tracking-deal.js
'use strict'; var BaseModel = require('model-toolkit').BaseModel; var Company = require('../master/company'); var Contact = require('../master/contact'); var Product = require('../master/product'); module.exports = class DealTrackingDeal extends BaseModel { constructor(source) { super('deal-tracking-deal'...
'use strict'; var BaseModel = require('model-toolkit').BaseModel; var Company = require('../master/company'); var Contact = require('../master/contact'); // var Product = require('../master/product'); var Uom = require('../master/uom'); module.exports = class DealTrackingDeal extends BaseModel { constructor(sourc...
Delete Product Deal Tracking Deal
Delete Product Deal Tracking Deal
JavaScript
mit
danliris/dl-models
ddb17a4f49ff2bcbf2adca30f74f24e43c761037
app.js
app.js
const express = require('express'); const db = require('./lib/db'); const app = express(); const port = process.env.PORT || 3000; process.env.PATH = `${process.env.PATH}:./node_modules/.bin`; app.use('/app/current', require('./routes/current')); app.use('/app/sparkline', require('./routes/sparkline')); app.use('/app...
const express = require('express'); const db = require('./lib/db'); const app = express(); const port = process.env.PORT || 3000; process.env.PATH = `${process.env.PATH}:./node_modules/.bin`; app.use('/app/current', require('./routes/current')); app.use('/app/sparkline', require('./routes/sparkline')); app.use('/app...
Add a default error handler
Add a default error handler
JavaScript
mit
andyjack/neo-tracker,andyjack/neo-tracker,andyjack/neo-tracker
8811be16bf39209074ce043615544877529f9f1b
lib/assets/javascripts/chef/components/logo.js
lib/assets/javascripts/chef/components/logo.js
//= require ../chef (function($, window) { 'use strict'; Chef.Web.Core.components.logo = { init: function() { $('.logo').each(function() { var $el = $(this); if ($el.find('> svg').length === 0) { $el.load(Chef.Web.Core.imageUrl('chef-logo.svg'), function() { ...
//= require ../chef (function($, window) { 'use strict'; $.fn.animate = function() { this.addClass('animate'); }; $.fn.deanimate = function() { this.find('.mark g').one('webkitAnimationIteration MSAnimationIteration animationiteration', $.proxy(function() { this.removeClass('animate'); }, t...
Add animate() and deanimate() methods
Add animate() and deanimate() methods
JavaScript
apache-2.0
chef/chef-web-core,juliandunn/chef-web-core,chef/chef-web-core,chef/chef-web-core,juliandunn/chef-web-core,juliandunn/chef-web-core
3e2015b13915de0c478041a29f370d3742887726
web/webpack.config.js
web/webpack.config.js
var path = require('path'); module.exports = { entry: { index: "./scripts/main-index.js", lifters: "./scripts/main-lifters.js", meet: "./scripts/main-meet.js", meetlist: "./scripts/main-meetlist.js" }, output: { path: path.resolve(__dirname, "build/scripts"), filename: "[name].bundle.js"...
var path = require('path'); module.exports = { entry: { index: "./scripts/main-index.js", lifters: "./scripts/main-lifters.js", meet: "./scripts/main-meet.js", meetlist: "./scripts/main-meetlist.js" }, output: { path: path.resolve(__dirname, "build/scripts"), filename: "[name].bundle.js"...
Add the minify-constant-folding plugin to the webpack build.
Add the minify-constant-folding plugin to the webpack build.
JavaScript
agpl-3.0
emilyytlin/openpowerlifting,emilyytlin/openpowerlifting,emilyytlin/openpowerlifting,emilyytlin/openpowerlifting,emilyytlin/openpowerlifting
7ee9bd50bf3e91fc65a9645608a8359c67ad71a5
tests/emoji-strip.js
tests/emoji-strip.js
var tape = require('tape') var emojiStrip = require('..') var emoji tape('strip emoji', function (t) { emoji = 'thumbs-up👍 for staying strong💪 without emoji please🙏' t.equal(emojiStrip(emoji), 'thumbs-up for staying strong without emoji please') emoji = 'dealing with emoji😡 makes me feel like poop💩' t.e...
var tape = require('tape') var emojiStrip = require('..') var emoji tape('strip emoji', function (t) { emoji = 'thumbs-up👍 for staying strong💪 without emoji please🙏' t.equal(emojiStrip(emoji), 'thumbs-up for staying strong without emoji please') emoji = 'dealing with emoji😡 makes me feel like poop💩' t.e...
Add failing test for skin tones
Add failing test for skin tones As per issue #3.
JavaScript
isc
khalifenizar/emoji-strip,khalifenizar/emoji-strip
2344cb570468e877467e9da032b0221634d67fbf
source/sw.js
source/sw.js
importScripts('https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js'); workbox.core.skipWaiting(); workbox.precaching.precacheAndRoute([]);
importScripts('https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js'); workbox.core.skipWaiting(); workbox.precaching.precacheAndRoute([]); // NOTE: All HTML pages should be dynamically cached, and also constantly // revalidated to make sure that the cache is always up-to-date. const staticUrlRege...
Add runtime caching for HTML pages
Add runtime caching for HTML pages
JavaScript
mit
arnellebalane/arnellebalane.com,arnellebalane/arnellebalane.com,arnellebalane/arnellebalane.com