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
36a42af4fa6a02fa45c357020269ca52ca9e27d1
modules/udp.js
modules/udp.js
module.exports = { events: { udp: function (bot, msg, rinfo) { if (rinfo.address === bot.config.get('yakc.ip')) { bot.fireEvents('yakc', msg.toString(), rinfo) } else { bot.notice(bot.config.get('udp.channel'), msg.toString()) } } } }
module.exports = { events: { udp: function (bot, msg, rinfo) { if (rinfo.address === bot.config.get('yakc.ip')) { bot.fireEvents('yakc', msg.toString(), rinfo) } else { bot.notice(bot.config.get('udp.channel'), msg.toString()) // copy https://github.com/zuzak/twitter-irc-udp m...
Copy interesting tweets to control channel
Copy interesting tweets to control channel
JavaScript
isc
zuzakistan/civilservant,zuzakistan/civilservant
36c93b468c7957a5b793c4eacb1a739c61100ef3
src/Overview.js
src/Overview.js
/* global fetch */ import React from 'react'; import TotalWidget from './TotalWidget'; import NextTripWidget from './NextTripWidget'; import TripTable from './TripTable'; import Map from './Map'; import './scss/overview.scss'; class Overview extends React.Component { constructor() { super(); this.loading =...
/* global fetch document */ import React from 'react'; import TotalWidget from './TotalWidget'; import NextTripWidget from './NextTripWidget'; import TripTable from './TripTable'; import Map from './Map'; import './scss/overview.scss'; class Overview extends React.Component { constructor() { super(); this....
Make fetch URL less specific
Make fetch URL less specific
JavaScript
mpl-2.0
MichaelKohler/where,MichaelKohler/where
d25293f6af7ce9d646d64c681b59983d442eab42
js/main.js
js/main.js
$(document).ready(function(){ // Include common elements $("#footer").load("common/footer.html"); $("#header").load("common/header.html", function() { // Add current navigation class based on url locations = location.pathname.split("/"); $('#topnav a[href^="' + locations[locations.length - 1] + '"]...
$(document).ready(function(){ // Include common elements $("#footer").load("common/footer.html"); $("#header").load("common/header.html", function() { // Add current navigation class based on url locations = location.pathname.split("/"); current = $('#topnav a[href^="' + locations[locations.length ...
Select first nav li by default
Select first nav li by default
JavaScript
mit
mbdimitrova/bmi-fmi,mbdimitrova/bmi-fmi
b30d1d1e94b6c65babb2c9351cfe49153926d3b9
js/main.js
js/main.js
var updatePreviewTarget = function(data, status) { $('.spinner').hide(); $('#preview-target').html(data); renderLatexExpressions(); } var renderLatexExpressions = function() { $('.latex-container').each( function(index) { katex.render( this.textContent, this, { displayMode: $(...
var updatePreviewTarget = function(data, status) { $('.spinner').hide(); $('#preview-target').html(data); renderLatexExpressions(); } var renderLatexExpressions = function() { $('.latex-container').each( function(index) { katex.render( this.textContent, this, { displayMode: $(...
Make footnote textarea expand upon focus
Make footnote textarea expand upon focus
JavaScript
mit
erettsegik/erettsegik.hu,erettsegik/erettsegik.hu,erettsegik/erettsegik.hu
08229bff7728a349aa93eb0dc8db248106cbda97
scripts/export_map.js
scripts/export_map.js
var casper = require('casper').create(); // casper.on('remote.message', function(message) { // console.log(message); // }); var out_dir = 'static/tmp/'; var key = casper.cli.get(0); var url = casper.cli.get(1); var filepath = out_dir + key + '.png'; casper.start(); casper.viewport(1024, 650).thenOpen(url, func...
var casper = require('casper').create(); // casper.on('remote.message', function(message) { // console.log(message); // }); var out_dir = 'static/tmp/'; var key = casper.cli.get(0); var url = casper.cli.get(1); var filepath = out_dir + key + '.png'; casper.start(); casper.viewport(1024, 650).thenOpen(url, func...
Use casper.wait to wait until image are loaded and transitioned
Use casper.wait to wait until image are loaded and transitioned
JavaScript
mit
AstunTechnology/NRW_FishMapMon,AstunTechnology/NRW_FishMapMon,AstunTechnology/NRW_FishMapMon,AstunTechnology/NRW_FishMapMon
b13fd8658d216732d4e54e40e029a8246e73202d
main.js
main.js
'use strict'; var app = require('app'); var dribbbleapi = require('./dribbbleapi'); var mainWindow = null; var dribbbleData = null; var menubar = require('menubar') var mb = menubar({ index: 'file://' + __dirname + '/app/index.html', icon: __dirname + '/app/assets/HotshotIcon.png', width: 400, height: 700, ...
'use strict'; var app = require('app'); var mainWindow = null; var dribbbleData = null; var menubar = require('menubar') var mb = menubar({ index: 'file://' + __dirname + '/app/index.html', icon: __dirname + '/app/assets/HotshotIcon.png', width: 400, height: 700, 'max-width': 440, 'min-height': 300, 'm...
Remove reference to deleted dribbbleApi.js
Remove reference to deleted dribbbleApi.js
JavaScript
cc0-1.0
andrewnaumann/hotshot,andrewnaumann/hotshot
21f7adb8f7e293f205c7b0813726c10a2a1224f1
tests/dummy/config/dependency-lint.js
tests/dummy/config/dependency-lint.js
/* eslint-env node */ 'use strict'; module.exports = { allowedVersions: { 'ember-in-element-polyfill': '*', 'ember-get-config': '0.3.0 || 0.4.0 || 0.5.0', '@embroider/util': '*', }, };
/* eslint-env node */ 'use strict'; module.exports = { allowedVersions: { 'ember-in-element-polyfill': '*', }, };
Remove unneeded dependency lint overrides
Remove unneeded dependency lint overrides
JavaScript
mit
ilios/common,ilios/common
14fb941b6db1aa53e7906a46e8cf7f6d4abb6d94
Rightmove_Enhancement_Suite.user.js
Rightmove_Enhancement_Suite.user.js
// ==UserScript== // @name Rightmove Enhancement Suite // @namespace https://github.com/chigley/ // @description Keyboard shortcuts // @include http://www.rightmove.co.uk/* // @version 1 // @grant GM_addStyle // @grant GM_getResourceText // @resource style style.css // ==/UserScript== v...
// ==UserScript== // @name Rightmove Enhancement Suite // @namespace https://github.com/chigley/ // @description Keyboard shortcuts // @include http://www.rightmove.co.uk/* // @version 1 // @grant GM_addStyle // @grant GM_getResourceText // @resource style style.css // ==/UserScript== v...
Fix selector to only match list items
Fix selector to only match list items
JavaScript
mit
chigley/rightmove-enhancement-suite
c2b47f8a3c1d3f844152127c9218d90dfa66bbf2
packages/storefront/app/routes/yebo/taxons/show.js
packages/storefront/app/routes/yebo/taxons/show.js
// Ember! import Ember from 'ember'; import SearchRoute from 'yebo-ember-storefront/mixins/search-route'; /** * Taxons show page * This page shows products related to the current taxon */ export default Ember.Route.extend(SearchRoute, { /** * Define the search rules */ searchRules(query, params) { // ...
// Ember! import Ember from 'ember'; import SearchRoute from 'yebo-ember-storefront/mixins/search-route'; /** * Taxons show page * This page shows products related to the current taxon */ export default Ember.Route.extend(SearchRoute, { /** * Define the search rules */ searchRules(query, params) { // ...
Return a promise in the searchModel method
Return a promise in the searchModel method
JavaScript
mit
yebo-ecommerce/ember,yebo-ecommerce/ember,yebo-ecommerce/ember
764743d6b08899286262a50203b11410d90f9694
cypress/support/commands.js
cypress/support/commands.js
// *********************************************** // This example commands.js shows you how to // create various custom commands and overwrite // existing commands. // // For more comprehensive examples of custom // commands please read more here: // https://on.cypress.io/custom-commands // ***************************...
// *********************************************** // This example commands.js shows you how to // create various custom commands and overwrite // existing commands. // // For more comprehensive examples of custom // commands please read more here: // https://on.cypress.io/custom-commands // ***************************...
Add functionality for filling in checkboxes
Add functionality for filling in checkboxes
JavaScript
mit
ministryofjustice/cla_public,ministryofjustice/cla_public,ministryofjustice/cla_public,ministryofjustice/cla_public
205535d3723b96163f74e4d18a3dd3a5fa84dcf9
screens/MemoriesScreen.js
screens/MemoriesScreen.js
import React from "react"; import { Text } from "react-native"; export default class MemoriesScreen extends React.Component { render() { return ( <Text>My memories</Text> ); } } MemoriesScreen.route = { navigationBar: { title: "My memories", } };
import React from "react"; import { Text } from "react-native"; var memory = { eventName: "Tree planting", eventDate: Date(), image: require("../static/content/images/memories/01.jpg") }; var userData = { name: "Sara", image: require("../static/content/images/people/users/01_sara_douglas.jpg"), memories...
Add sample data example to memories screen for UI dev
Add sample data example to memories screen for UI dev
JavaScript
mit
ottobonn/roots
8caa309f6a807555825f277e5f277007544b9957
js/end_game.js
js/end_game.js
var endGame = function(game){ if (game.player.lives > 0) { missBall(game.ball, game.player) } else if (game.player.lives <= 0 ){ gameOver() } } var missBall = function(ball, player){ if ( ball.bottomEdge().y == canvas.height){ return player.loseLife() } return false } function gameOver() { ...
var endGame = function(game){ if (game.player.lives > 0) { missBall(game.ball, game.player) } else if (game.player.lives <= 0 ){ gameOver() } if (stillBricks(game.bricks)) { winGame() } } var missBall = function(ball, player){ if ( ball.bottomEdge().y == canvas.height){ console.log("Lost L...
Implement win game prompt after all bricks destroyed
Implement win game prompt after all bricks destroyed
JavaScript
mit
theomarkkuspaul/Brick-Breaker,theomarkkuspaul/Brick-Breaker
7388412cc4908793883e0de2348f8b44b72e2256
js/main.js
js/main.js
document.addEventListener('DOMContentLoaded', function() { var searchButton = document.getElementById('search'); searchButton.addEventListener('click', (function() { var query = document.getElementById('form').query.value; var engine = document.querySelector('input[name="engine"]:checked').value; var u...
document.addEventListener('DOMContentLoaded', function() { var searchButton = document.getElementById('search'); document.querySelector('input[name="engine"]:checked').focus(); searchButton.addEventListener('click', (function() { var query = document.getElementById('form').query.value; var engine = docum...
Add focus on the first radio button
Add focus on the first radio button
JavaScript
mit
yu-i9/HoogleSwitcher,yu-i9/HoogleSwitcher
5641a9bc6a72b30572840e4067c9421ecd973f27
app/assets/javascripts/angular/main/register-controller.js
app/assets/javascripts/angular/main/register-controller.js
(function(){ 'use strict'; angular .module('secondLead') .controller('RegisterCtrl', [ 'Restangular', '$state', 'store', 'UserModel', function (Restangular, $state, store, UserModel) { var register = this; register.newUser = {}; register.onSubmit = function () { UserMode...
(function(){ 'use strict'; angular .module('secondLead') .controller('RegisterCtrl', [ 'Restangular', '$state', 'store', 'UserModel', function (Restangular, $state, store, UserModel) { var register = this; register.newUser = {}; register.onSubmit = function () { UserMode...
Add update to usermodel upon signup with register controller
Add update to usermodel upon signup with register controller
JavaScript
mit
ac-adekunle/secondlead,ac-adekunle/secondlead,ac-adekunle/secondlead
917b47168540b27682825b50155aaf34ecef3b62
compassion.colleague/ua.js
compassion.colleague/ua.js
var cadence = require('cadence') var util = require('util') function UserAgent (ua) { this._ua = ua } UserAgent.prototype.send = cadence(function (async, properties, body) { var url = util.format('http://%s/kibitz', properties.location) this._ua.fetch({ url: url, post: { island...
var cadence = require('cadence') var util = require('util') function UserAgent (ua) { this._ua = ua } UserAgent.prototype.send = cadence(function (async, properties, body) { var url = util.format('http://%s/kibitz', properties.location) this._ua.fetch({ url: url, post: { key: '...
Adjust user agent for new keyed protocol.
Adjust user agent for new keyed protocol.
JavaScript
mit
bigeasy/compassion
4025d7a5b28d6b3b88af5d78b5b31c304d0afca6
assets/src/stories-editor/helpers/test/addAMPExtraProps.js
assets/src/stories-editor/helpers/test/addAMPExtraProps.js
/** * Internal dependencies */ import { addAMPExtraProps } from '../'; describe( 'addAMPExtraProps', () => { it( 'does not modify non-child blocks', () => { const props = addAMPExtraProps( {}, { name: 'foo/bar' }, {} ); expect( props ).toStrictEqual( {} ); } ); it( 'generates a unique ID', () => { const p...
/** * Internal dependencies */ import { addAMPExtraProps } from '../'; describe( 'addAMPExtraProps', () => { it( 'does not modify non-child blocks', () => { const props = addAMPExtraProps( {}, { name: 'foo/bar' }, {} ); expect( props ).toStrictEqual( {} ); } ); it( 'adds a font family attribute', () => { ...
Remove tests that are not relevant anymore.
Remove tests that are not relevant anymore.
JavaScript
apache-2.0
ampproject/amp-toolbox-php,ampproject/amp-toolbox-php
e5c906b30e793d73972b133cc3099f48a0a1a919
adapter.js
adapter.js
(function() { var global = this; var karma = global.__karma__; karma.start = function(runner) { var suites = global.__karma_benchmark_suites__; var hasTests = !!suites.length; var errors = []; if (!hasTests) { return complete(); } runNextSuite(); function logResult(event) { ...
(function() { var global = this; var karma = global.__karma__; karma.start = function(runner) { var suites = global.__karma_benchmark_suites__; var hasTests = !!suites.length; var errors = []; if (!hasTests) { return complete(); } runNextSuite(); function logResult(event) { ...
Fix logging of errors, Karma expects a string. Reset errors after every cycle.
Fix logging of errors, Karma expects a string. Reset errors after every cycle.
JavaScript
mit
JamieMason/karma-benchmark,JamieMason/karma-benchmark
474fbf5b088004ad676fe71b15f3031755b02b74
src/index.js
src/index.js
import middleware from './internal/middleware' export default middleware export { runSaga } from './internal/runSaga' export { END, eventChannel, channel } from './internal/channel' export { buffers } from './internal/buffers' export { takeEvery, takeLatest } from './internal/sagaHelpers' import { CANCEL } from './i...
import middleware from './internal/middleware' export default middleware export { runSaga } from './internal/runSaga' export { END, eventChannel, channel } from './internal/channel' export { buffers } from './internal/buffers' export { takeEvery, takeLatest } from './internal/sagaHelpers' import { CANCEL } from './i...
Replace `setTimeout` call with 2-args version
Replace `setTimeout` call with 2-args version
JavaScript
mit
yelouafi/redux-saga,eiriklv/redux-saga,HansDP/redux-saga,baldwmic/redux-saga,redux-saga/redux-saga,yelouafi/redux-saga,redux-saga/redux-saga,HansDP/redux-saga,eiriklv/redux-saga,granmoe/redux-saga,baldwmic/redux-saga,ipluser/redux-saga,granmoe/redux-saga,ipluser/redux-saga
3a1caf79f987bfa48d53ae06e1a4156fd09a313a
js/models/geonames-data.js
js/models/geonames-data.js
(function(app) { 'use strict'; var dom = app.dom || require('../dom.js'); var GeoNamesData = function(url) { this._url = url; this._loadPromise = null; this._data = []; }; GeoNamesData.prototype.load = function() { if (!this._loadPromise) { this._loadPromise = dom.loadJSON(this._url)....
(function(app) { 'use strict'; var dom = app.dom || require('../dom.js'); var Events = app.Events || require('../base/events.js'); var GeoNamesData = function(url) { this._url = url; this._loadPromise = null; this._data = []; this._events = new Events(); }; GeoNamesData.prototype.on = fun...
Make events of GeoNames data
Make events of GeoNames data
JavaScript
mit
ionstage/loclock,ionstage/loclock
90ef58c5a31967bf1e172f792bdbff3fba9e7f4a
src/_assets/scripts/components/app/reddit.posts.js
src/_assets/scripts/components/app/reddit.posts.js
import React from 'react'; import { BaseViewComponent } from '../higher-order/index.js'; class RedditPosts extends BaseViewComponent { constructor(props) { super(props); } render() { return ( <div className="posts"> <div className="posts-fetch"> <p onClick={this.props.fetchPosts}...
import React from 'react'; import { Avatar, List, ListItem } from 'material-ui'; import { BaseViewComponent } from '../higher-order/index.js'; class RedditPosts extends BaseViewComponent { constructor(props) { super(props); } render() { return ( <div className="posts"> <div className="post...
Make songs-list a list of list-items
Make songs-list a list of list-items
JavaScript
mit
yanglinz/reddio,yanglinz/reddio
9fec01f2148a57035bea95fc93f56937473cb510
chrome/browser/resources/net_internals/http_cache_view.js
chrome/browser/resources/net_internals/http_cache_view.js
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. /** * This view displays information on the HTTP cache. * @constructor */ function HttpCacheView() { const mainBoxId = 'http-cache-view-tab-cont...
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. /** * This view displays information on the HTTP cache. */ var HttpCacheView = (function() { // IDs for special HTML elements in http_cache_view....
Refactor HttpCacheView to be defined inside an anonymous namespace.
Refactor HttpCacheView to be defined inside an anonymous namespace. BUG=90857 Review URL: http://codereview.chromium.org/7544008 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@94868 0039d316-1c4b-4281-b951-d872f2087c98
JavaScript
bsd-3-clause
ropik/chromium,adobe/chromium,adobe/chromium,adobe/chromium,gavinp/chromium,adobe/chromium,ropik/chromium,ropik/chromium,gavinp/chromium,adobe/chromium,adobe/chromium,gavinp/chromium,ropik/chromium,yitian134/chromium,gavinp/chromium,gavinp/chromium,ropik/chromium,ropik/chromium,yitian134/chromium,yitian134/chromium,rop...
9b12e26b863386ae30b34d5756a45f598b1e0ba0
packages/components/containers/members/MemberAddresses.js
packages/components/containers/members/MemberAddresses.js
import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; import { msgid, c } from 'ttag'; import { SimpleDropdown, DropdownMenu } from 'react-components'; const MemberAddresses = ({ member, addresses }) => { const list = addresses.map(({ ID, Email }) => ( <div...
import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; import { msgid, c } from 'ttag'; import { SimpleDropdown, DropdownMenu } from 'react-components'; const MemberAddresses = ({ member, addresses }) => { const list = addresses.map(({ ID, Email }) => ( <div...
Fix dropdown width in adresses settings
Fix dropdown width in adresses settings
JavaScript
mit
ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient
11ee849dab45f6f3d8f3a6fd23d179b561937ece
packages/tslint/index.js
packages/tslint/index.js
/** * Tslint webpack block. * * @see https://github.com/wbuchwalter/tslint-loader */ module.exports = tslint /** * @param {object} [options] See https://github.com/wbuchwalter/tslint-loader#usage * @return {Function} */ function tslint (options) { options = options || {} const loader = ...
/** * Tslint webpack block. * * @see https://github.com/wbuchwalter/tslint-loader */ module.exports = tslint /** * @param {object} [options] See https://github.com/wbuchwalter/tslint-loader#usage * @return {Function} */ function tslint (options) { options = options || {} const setter = ...
Update tslint block to use new API
Update tslint block to use new API
JavaScript
mit
andywer/webpack-blocks,andywer/webpack-blocks,andywer/webpack-blocks
4b120aabea20e0f8631b61cc1d9ea4a306b03aad
cypress/integration/list_view.js
cypress/integration/list_view.js
context('List View', () => { before(() => { cy.login('Administrator', 'qwe'); cy.visit('/desk'); cy.window().its('frappe').then(frappe => { frappe.call("frappe.tests.test_utils.setup_workflow"); cy.reload(); }); }); it('Bulk Workflow Action', () => { cy.go_to_list('ToDo'); cy.get('.level-item.list-...
context('List View', () => { before(() => { cy.login('Administrator', 'qwe'); cy.visit('/desk'); cy.window().its('frappe').then(frappe => { frappe.call("frappe.tests.test_utils.setup_workflow"); cy.reload(); }); }); it('enables "Actions" button', () => { const actions = ['Approve', 'Reject', 'Edit', ...
Update list view UI test
test: Update list view UI test
JavaScript
mit
vjFaLk/frappe,almeidapaulopt/frappe,almeidapaulopt/frappe,yashodhank/frappe,mhbu50/frappe,saurabh6790/frappe,yashodhank/frappe,almeidapaulopt/frappe,adityahase/frappe,adityahase/frappe,frappe/frappe,vjFaLk/frappe,saurabh6790/frappe,mhbu50/frappe,frappe/frappe,mhbu50/frappe,StrellaGroup/frappe,StrellaGroup/frappe,aditya...
aee10877af895edd2a8016ddf547ed3f89aed51c
app/config.js
app/config.js
// Use this file to change prototype configuration. // Note: prototype config can be overridden using environment variables (eg on heroku) module.exports = { // Service name used in header. Eg: 'Renew your passport' serviceName: '[Service Name]', // Default port that prototype runs on port: '3000', // Ena...
// Use this file to change prototype configuration. // Note: prototype config can be overridden using environment variables (eg on heroku) module.exports = { // Service name used in header. Eg: 'Renew your passport' serviceName: 'Dart crossing charge', // Default port that prototype runs on port: '3000', ...
Update service name to Dart crossing charge for testing
Update service name to Dart crossing charge for testing
JavaScript
mit
soniaturcotte/make-adhoc-payment,soniaturcotte/make-adhoc-payment,soniaturcotte/make-adhoc-payment
908eb28bac7678ddfc89e9009caea52c47f602f7
src/Leaves/Admin/Products/ProductVariations/ProductVariationsViewBridge.js
src/Leaves/Admin/Products/ProductVariations/ProductVariationsViewBridge.js
scms.create('ProductVariationsViewBridge', function(){ return { attachEvents:function () { var self = this; $(this.viewNode, '.product-variation-tab').click(function(event) { if (!event.target.classList.contains('fa')) { self.changeTab($(this).par...
scms.create('ProductVariationsViewBridge', function(){ return { attachEvents:function () { var self = this; $('.product-variation-tab', this.viewNode).click(function(event) { if (!event.target.classList.contains('fa')) { self.changeTab($(this).par...
Fix for active class not being set properly
Fix for active class not being set properly
JavaScript
apache-2.0
rojr/SuperCMS,rojr/SuperCMS
5796d850680779441489c60730d1655d8ee5444a
js/validate.js
js/validate.js
var ContextElement = require('./contextElement') module.exports = function (el, cb) { if ( ! (el instanceof ContextElement)) return cb('Given element is not a ContextElement.') var attributes = el.getMapping().attributes for (var i in attributes) { var attr = attributes[i] if ( ! Array.isArray(attr.metadatas...
var ContextElement = require('./contextElement') var validators = { min: function (current, valid) { return Math.max(current, valid) }, max: function (current, valid) { return Math.min(current, valid) }, } module.exports = function (el, cb) { if ( ! (el instanceof ContextElement)) return cb('Given element is not a...
Make it easy to add validators.
Make it easy to add validators.
JavaScript
mit
kukua/concava
b14dd5a3691cc906209194ba82becfad17a9abde
src/index.js
src/index.js
/** * _____ __ * / ___// /_ _____ * \__ \/ / / / / _ \ * ___/ / / /_/ / __/ * /____/_/\__, /\___/ * /____/ * Copyright 2017 Slye Development Team. All Rights Reserved. * Licence: MIT License */ const tree = require('./core/tree'); const compile = require('./core/compile'); c...
/** * _____ __ * / ___// /_ _____ * \__ \/ / / / / _ \ * ___/ / / /_/ / __/ * /____/_/\__, /\___/ * /____/ * Copyright 2017 Slye Development Team. All Rights Reserved. * Licence: MIT License */ const tree = require('./core/tree'); const compile = require('./core/compile'); c...
Load modules from modules dir
Load modules from modules dir
JavaScript
mit
Slye-team/esy-language
df1b6c8807ea91bb0f8f5fa5131427699e1d05ca
ignite-base/App/Containers/Styles/ListviewExampleStyle.js
ignite-base/App/Containers/Styles/ListviewExampleStyle.js
// @flow import { StyleSheet } from 'react-native' import { ApplicationStyles, Metrics, Colors } from '../../Themes/' export default StyleSheet.create({ ...ApplicationStyles.screen, container: { flex: 1, marginTop: Metrics.navBarHeight, backgroundColor: Colors.background }, row: { flex: 1, ...
// @flow import { StyleSheet } from 'react-native' import { ApplicationStyles, Metrics, Colors } from '../../Themes/' export default StyleSheet.create({ ...ApplicationStyles.screen, container: { flex: 1, marginTop: Metrics.navBarHeight, backgroundColor: Colors.background }, row: { flex: 1, ...
Modify listview styles for search listview and general margin
Modify listview styles for search listview and general margin
JavaScript
mit
ruddell/ignite,infinitered/ignite,infinitered/ignite,infinitered/ignite,infinitered/ignite,infinitered/ignite,infinitered/ignite,ruddell/ignite,infinitered/ignite,ruddell/ignite,infinitered/ignite
7dc9c68f59884e13e93dd9d79eff89da545b9315
js/site.js
js/site.js
// Here be the site javascript! $(document).ready(function () { $(".button-collapse").sideNav(); $('.scrollspy').scrollSpy(); $("form").submit(function (event) { event.preventDefault(); $("#send-msg").attr("disabled", true); $("#fa-send").toggleClass("fa-envelope-o").toggleClass("fa-s...
// Here be the site javascript! $(document).ready(function () { $(".button-collapse").sideNav(); $('.scrollspy').scrollSpy(); $("form").submit(function (event) { event.preventDefault(); $("#send-msg").attr("disabled", true); $("#fa-send").toggleClass("fa-envelope-o").toggleClass("fa-s...
Add url to contact form
Add url to contact form
JavaScript
mit
melonmanchan/My-Website,melonmanchan/My-Website,melonmanchan/My-Website,melonmanchan/My-Website
83bfffe5280fb58d27525f18495e0c3ddd8fa6a4
favit/static/js/favorite.js
favit/static/js/favorite.js
function getCookie(name) { var cookieValue = null; if (document.cookie && document.cookie != '') { var cookies = document.cookie.split(';'); for (var i = 0; i < cookies.length; i++) { var cookie = jQuery.trim(cookies[i]); // Does this cookie string begin with the name we ...
$('.btn.favorite').click(function() { var $obj = $(this); var target_id = $obj.attr('id').split('_')[1]; $obj.prop('disabled', true); $.ajax({ url: $obj.attr('href'), type: 'POST', data: {target_model: $obj.attr('model'), target_object_id: target_id}, success: function(response) { if (r...
Remove jQuery ajax CSRF headers setting
Remove jQuery ajax CSRF headers setting This should not be done by a library, this is standard Django configuration that should be in any project that uses ajax posting. Also, this conflicts with custom CSRF settings, like different cookie name.
JavaScript
mit
mjroson/django-favit,streema/django-favit,mjroson/django-favit,streema/django-favit,streema/django-favit,mjroson/django-favit
651fd66f865d4a091a507ef935cf204522ff687e
src/background/contexts/speeddial/SpeeddialContext.js
src/background/contexts/speeddial/SpeeddialContext.js
var SpeeddialContext = function() { this.properties = {}; global.opr.speeddial.get(function(speeddialProperties) { this.properties.url = speeddialProperties.url; this.properties.title = speeddialProperties.title; // Set WinTabs feature to LOADED deferredComponentsLoadStatus['SPEEDDIAL_LO...
var SpeeddialContext = function() { this.properties = {}; global.opr.speeddial.get(function(speeddialProperties) { this.properties.url = speeddialProperties.url; this.properties.title = speeddialProperties.title; // Set WinTabs feature to LOADED deferredComponentsLoadStatus['SPEEDDIAL_LO...
Update Speed Dial API implementation to set attributes independent of Chromium call to update attributes.
Update Speed Dial API implementation to set attributes independent of Chromium call to update attributes.
JavaScript
mit
operasoftware/operaextensions.js,operasoftware/operaextensions.js,operasoftware/operaextensions.js
48229ca6df978a16a071259083b0a3655d66cfd8
lib/Node/prototype/_replace-content.js
lib/Node/prototype/_replace-content.js
'use strict'; var normalize = require('../../Document/prototype/normalize'); module.exports = function (child/*, …child*/) { var oldNodes = this.childNodes, df, nu, i = 0, old; df = normalize.apply(this.ownerDocument, arguments); while ((nu = df.firstChild)) { old = oldNodes[i++]; if (old !== nu) { if (old)...
'use strict'; var normalize = require('../../Document/prototype/normalize') , isDF = require('../../DocumentFragment/is-document-fragment'); module.exports = function (child/*, …child*/) { var oldNodes = this.childNodes, dom, nu, i = 0, old; dom = normalize.apply(this.ownerDocument, arguments); if (isDF(do...
Update up to change in normalize
Update up to change in normalize
JavaScript
mit
medikoo/dom-ext
d2a8b435cd8af2788f213163dad7d12bddb4bc11
lib/dictionaries/jscs/requireSpaceAfterKeywords.js
lib/dictionaries/jscs/requireSpaceAfterKeywords.js
/** * @fileoverview Translation for `requireSpaceAfterKeywords` (JSCS) to ESLint * @author Breno Lima de Freitas <https://breno.io> * @copyright 2016 Breno Lima de Freitas. All rights reserved. * See LICENSE file in root directory for full license. */ 'use strict' //---------------------------------------------------...
/** * @fileoverview Translation for `requireSpaceAfterKeywords` (JSCS) to ESLint * @author Breno Lima de Freitas <https://breno.io> * @copyright 2016 Breno Lima de Freitas. All rights reserved. * See LICENSE file in root directory for full license. */ 'use strict' //---------------------------------------------------...
Fix `missing rule name` eslint conversion error
Fix `missing rule name` eslint conversion error
JavaScript
mit
brenolf/polyjuice
b759f8c8cb9dee4797dd9dd1741d3dc274403eba
tests/spec/SpecHelper.js
tests/spec/SpecHelper.js
beforeEach(function() { this.addMatchers({ toBeLessThan: function(expected) { return this.actual < expected; }, toHaveAllValuesInRange: function (low, high) { for (var idx = 0; idx < this.actual.length; idx += 1) { if (this.actual[idx] < low || this.actual[idx] > high) { ...
beforeEach(function() { this.addMatchers({ toBeLessThan: function(expected) { return this.actual < expected; }, toHaveAllValuesInRange: function (low, high) { for (var idx = 0; idx < this.actual.length; idx += 1) { if (this.actual[idx] < low || this.actual[idx] > high) { ...
Add test helper to set default values on variables
Add test helper to set default values on variables
JavaScript
mit
sbnb/capensis-steganography
283d7b238b0a778971a9b77d929acf697b4bd501
lib/resolve-script/find-executables.js
lib/resolve-script/find-executables.js
var _ = require('lodash') var globFirst = require('./glob-first') var log = require('../run/log') var path = require('path') var async = require('async') var isExecutable = require('./is-executable') module.exports = function (patterns, cb) { globFirst(patterns, function (er, results) { if (er) return cb(er) ...
var _ = require('lodash') var globFirst = require('./glob-first') var log = require('../run/log') var path = require('path') var async = require('async') var isExecutable = require('./is-executable') module.exports = function (patterns, cb) { globFirst(patterns, function (er, results) { if (er) return cb(er) ...
Leverage util.format for printf-style logging
Leverage util.format for printf-style logging
JavaScript
mit
testdouble/scripty,testdouble/scripty
78e4bb29dce00ed1a5edcd296790dcbb0959f40b
src/index.js
src/index.js
/* eslint-disable no-console */ console.log('hi'); // Old ES5 way of creating a Class Component // var HelloWorld = React.createClass({ // render: function() { // return ( // <h1>Hello world!</h1> // ); // }; // }); //Old ES5 Stateless Functional Component // var HelloWorld = function(props) { // r...
/* eslint-disable no-console */ console.log('hi'); // Old ES5 way of creating a Class Component // var HelloWorld = React.createClass({ // render: function() { // return ( // <h1>Hello world!</h1> // ); // }; // }); //Old ES5 Stateless Functional Component // var HelloWorld = function(props) { // r...
Add ES6 examples for component creation
Add ES6 examples for component creation
JavaScript
mit
mtheoryx/react-redux-es6,mtheoryx/react-redux-es6
79ff48d6a9ea971e23087791dba13c8faf4086a4
src/index.js
src/index.js
import createFormatters from './createFormatters'; // Check for globally defined Immutable and add an install method to it. if (typeof Immutable !== "undefined") { Immutable.installDevTools = install.bind(null, Immutable); } // I imagine most people are using Immutable as a CommonJS module though... let installed ...
import createFormatters from './createFormatters'; // Check for globally defined Immutable and add an install method to it. if (typeof Immutable !== "undefined") { Immutable.installDevTools = install.bind(null, Immutable); } // I imagine most people are using Immutable as a CommonJS module though... let installed ...
Add support for server side Immutable DevTools
Add support for server side Immutable DevTools Fixes issue #31
JavaScript
bsd-3-clause
andrewdavey/immutable-devtools,andrewdavey/immutable-devtools
26a5db8b6f14d411fc9f05ff016e35558a6c18da
src/index.js
src/index.js
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import ReactDOM from 'react-dom'; import Odometer from 'odometer'; export default class ReactOdometer extends Component { static propTypes = { value: PropTypes.number.isRequired, options: PropTypes.object, }; componentDidMount...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Odometer from 'odometer'; export default class ReactOdometer extends Component { static defaultProps = { options: {}, }; static propTypes = { value: PropTypes.number.isRequired, options: PropTypes.object, }; co...
Use ref instead of findDOMNode
Use ref instead of findDOMNode
JavaScript
mit
inferusvv/react-odometerjs
405b7f10323ba2780a2e2f2376430bf467d9582a
lib/weather.js
lib/weather.js
const needle = require('needle'); const config = require('../config'); const _ = require('lodash'); const weather = { getWeatherInfo: function(req, res){ //TODO add country/city validation here const url = getOpenWeatherUrl(req); needle.get(url, function(error, response) { if (!...
const needle = require('needle'); const _ = require('lodash'); const config = require('../config'); const countriesCities = require('../countries-cities'); const weather = { getWeatherInfo: function(req, res){ const city = req.query.city? req.query.city.toLowerCase():req.query.city; const country ...
Add validation for city and country
Add validation for city and country
JavaScript
mit
umasudhan/weather
5162dba0bcf51d1d86c64deebe289000eb966ad5
lib/short-url-controller.js
lib/short-url-controller.js
"use strict"; let db = require('./db'); function generateStub(length) { let result = "" for(let i = 0; i < length; i++) { let value = Math.round(Math.random() * 35) if (value > 9) result += String.fromCharCode(value + 87); else result += value } return result; } function shortenUrl(req...
"use strict"; let db = require('./db'); function generateBase36Stub(length) { let result = "" for(let i = 0; i < length; i++) { let value = Math.round(Math.random() * 35) if (value > 9) result += String.fromCharCode(value + 87); else result += value } return result; } function shortenU...
Make function name more descript
Make function name more descript
JavaScript
mit
glynnw/url-shortener,glynnw/url-shortener
d8384f73dd7b4e8b447634b3111fc58ae19e1435
content.js
content.js
var themes = [ "faded", "grayscale", "sepia", "wide-blur", "overexposed", "flip-hue", "none" ]; function defaultTheme() { return "faded"; } document.body.classList.add("ugly-http-status-loaded"); if (!window.isSecureContext) { chrome.storage.local.get({ theme: "default" }, function(items) { ...
var themes = [ "faded", "grayscale", "sepia", "wide-blur", "overexposed", "flip-hue", "none" ]; function defaultTheme() { return "faded"; } if (!window.isSecureContext) { chrome.storage.local.get({ theme: "default" }, function(items) { var theme = items.theme; if (themes.indexOf(theme...
Remove loading dimmer briefly *after* applying theme.
Remove loading dimmer briefly *after* applying theme. Otherwise, the page can briefly flash in full color before the theme is applied.
JavaScript
mit
lgarron/ugly-http-extension,lgarron/ugly-http-extension
4ca56946ccc518ce57188ef64e9327f97f6f30be
tests/unit/utils/build-provider-asset-path-test.js
tests/unit/utils/build-provider-asset-path-test.js
import buildProviderAssetPath from 'preprint-service/utils/build-provider-asset-path'; import { module, test } from 'qunit'; module('Unit | Utility | build provider asset path'); // Replace this with your real tests. test('it works', function(assert) { let result = buildProviderAssetPath(); assert.ok(result); });...
import config from 'ember-get-config'; import buildProviderAssetPath from 'preprint-service/utils/build-provider-asset-path'; import { module, test } from 'qunit'; module('Unit | Utility | build provider asset path'); test('build correct path for domain', function(assert) { let result = buildProviderAssetPath('fo...
Update buildProviderAssetPath unit test to do something useful
Update buildProviderAssetPath unit test to do something useful
JavaScript
apache-2.0
baylee-d/ember-preprints,CenterForOpenScience/ember-preprints,laurenrevere/ember-preprints,laurenrevere/ember-preprints,CenterForOpenScience/ember-preprints,baylee-d/ember-preprints
ca9dfe7879ff24cf241e6edbc7c3507562193d77
DynamixelServo.Quadruped.WebInterface/wwwroot/js/VideoStreaming.js
DynamixelServo.Quadruped.WebInterface/wwwroot/js/VideoStreaming.js
let videoImage = document.getElementById('video_image'); videoImage.src = `http://${document.domain}:8080/?action=stream`; let cameraJoystick = { zone: videoImage, color: 'red' }; let cameraJoystickManager = nipplejs.create(cameraJoystick); const clickTimeout = 500; var lastStartClick = Date.now(); cameraJoyst...
let videoImage = document.getElementById('video_image'); videoImage.src = `http://${document.domain}:8080/?action=stream`; let cameraJoystick = { zone: videoImage, color: 'red' }; let cameraJoystickManager = nipplejs.create(cameraJoystick); const clickTimeout = 500; var lastStopClick = Date.now(); cameraJoysti...
Move reset to on stop
Move reset to on stop
JavaScript
apache-2.0
dmweis/DynamixelServo,dmweis/DynamixelServo,dmweis/DynamixelServo,dmweis/DynamixelServo
72c21eee8ad0dfc11b10a70fc2da23ded965b4ec
speclib/jasmineHelpers.js
speclib/jasmineHelpers.js
beforeEach(function () { this.addMatchers({ // Expects that property is synchronous toHold: function () { var actual = this.actual; var notText = this.isNot ? " not" : ""; var r = jsc.check(actual, { quiet: true }); var counterExampleText = r === true ? "" : "Counter example found: " + JSON.stringify(r.c...
beforeEach(function () { this.addMatchers({ // Expects that property is synchronous toHold: function () { var actual = this.actual; var notText = this.isNot ? " not" : ""; /* global window */ var quiet = window && !(/verbose=true/).test(window.location.search); var r = jsc.check(actual, { quiet: quiet }...
Add verbose=true flag to toHold matcher
Add verbose=true flag to toHold matcher
JavaScript
mit
vilppuvuorinen/jsverify,StoneCypher/jsverify,jsverify/jsverify,jsverify/jsverify,dmitriid/jsverify,izaakschroeder/jsverify,StoneCypher/jsverify
6625342ffa4c5746a19eef757e539f32290f2925
lib/irc.js
lib/irc.js
/* eslint no-console: 0 */ 'use strict'; const irc = require('irc'); const server = process.env.IRC_SERVER; const user = process.env.IRC_USER; const channel = process.env.IRC_CHANNEL; const client = module.exports.client = new irc.Client(server, user, { debug: true, autoConnect: false, autoRejoin: true, chan...
/* eslint no-console: 0 */ 'use strict'; const irc = require('irc'); const server = process.env.IRC_SERVER; const user = process.env.IRC_USER; const channel = process.env.IRC_CHANNEL; const client = module.exports.client = new irc.Client(server, user, { autoConnect: false, autoRejoin: true, channels: [channel]...
Make IRC handler a bit less verbose
Make IRC handler a bit less verbose
JavaScript
mit
Starefossen/jenkins-monitor
1252f56a802deb2528cfabb2b7cdcedc4d17a1fe
models/vote.js
models/vote.js
var mongoose = require('mongoose'); var Schema = mongoose.Schema; var VoteSchema = new Schema( { value : Number, created : {type : Date, default : Date.now}, lastEdited : {type : Date, default : Date.now}, project : {type: mongoose.Schema.Types.ObjectId, ref: 'Project'}, author : {type:...
var mongoose = require('mongoose'); var Schema = mongoose.Schema; var VoteSchema = new Schema( { value : Number, created : {type : Date, default : Date.now}, lastEdited : {type : Date, default : Date.now}, project : {type: mongoose.Schema.Types.ObjectId, ref: 'Project'}, author : {type:...
Add value constants to Vote model
Add value constants to Vote model
JavaScript
mit
asso-labeli/labeli-api,asso-labeli/labeli-api,asso-labeli/labeli-api
1b17a79157db5681fb31fd8d911ee2d47a645b9d
wdio.conf.js
wdio.conf.js
exports.config = { specs: [ "./e2e-tests/**/*.tests.js" ], exclude: [], maxInstances: 10, sync: true, logLevel: "result", coloredLogs: true, screenshotPath: "./error-screenshots", baseUrl: "http://the8-dev.azurewebsites.net", waitforTimeout: 10000, connectionRetryTimeout: 90000, connectionRe...
exports.config = { specs: [ "./e2e-tests/**/*.tests.js" ], exclude: [], maxInstances: 10, sync: true, logLevel: "result", coloredLogs: true, screenshotPath: "./error-screenshots", baseUrl: "http://the8-dev.azurewebsites.net", waitforTimeout: 10000, connectionRetryTimeout: 90000, connectionRe...
Use PhantomJS for e2e tests
Use PhantomJS for e2e tests
JavaScript
mit
joekrie/the8,joekrie/the8,joekrie/the8
de57ef6dcbf79559c50bb6b9298578def2c98529
src/app/lib/api_limits.js
src/app/lib/api_limits.js
const Promise = require('bluebird'); const PERIOD_TIME = 30000; const REQUESTS_PER_PERIOD = 10; function currentTime() { return Date.now(); } class APILimiter { constructor() { this.lastPeriod = 0; this.requests = 0; } makeRequest() { if(this._isPeriodTimedOut()) { ...
const Promise = require('bluebird'); const PERIOD_TIME = 30000; const REQUESTS_PER_PERIOD = 10; function currentTime() { return Date.now(); } class APILimiter { constructor() { this.lastPeriod = 0; this.requests = 0; } makeRequest() { if(this._isPeriodTimedOut()) { ...
Make sure to wait for a free limit even after delay
Make sure to wait for a free limit even after delay We have to (possibly) wait again after initially delaying the request when reaching the API Limit. Reason being that more requests get piled up than the next limit is allowing to get through. By waiting for the limit again we ensure that if more requests than the lim...
JavaScript
mit
kumpelblase2/proxtop,kumpelblase2/proxtop,kumpelblase2/proxtop,kumpelblase2/proxtop
6593af6c87d41248d9cefc0248b8992a68658d59
patterns-samples/Photos.PhotoDetailNarrowSample.js
patterns-samples/Photos.PhotoDetailNarrowSample.js
enyo.kind({ name: "moon.sample.photos.PhotoDetailNarrowSample", kind : "moon.Panel", classes: "photo-detail", fit: true, title : "PHOTO NAME", titleAbove : "03", titleBelow : "2013-04-08", headerComponents : [ { kind : "moon.IconButton", style : "border:none;", src : "assets...
enyo.kind({ name: "moon.sample.photos.PhotoDetailNarrowSample", kind: "moon.Panel", classes: "photo-detail", fit: true, title: "PHOTO NAME", titleAbove: "03", titleBelow: "2013-04-08", headerComponents : [ {kind: "moon.IconButton", style: "border:none;", src: "assets/icon-fa...
Apply MVC to older one
GF-4661: Apply MVC to older one Enyo-DCO-1.1-Signed-off-by: David Um <david.um@lge.com>
JavaScript
apache-2.0
mcanthony/moonstone,mcanthony/moonstone,mcanthony/moonstone,enyojs/moonstone
ed91eac72f4af9dc76e52d85fee204a65d604249
node-red-contrib-alasql.js
node-red-contrib-alasql.js
module.exports = function (RED) { var alasql = require('alasql'); function AlasqlNodeIn(config) { RED.nodes.createNode(this, config); var node = this; node.query = config.query; node.on("input", function (msg) { var sql = this.query || 'SELECT * FROM ?'; ...
module.exports = function (RED) { var alasql = require('alasql'); function AlasqlNodeIn(config) { RED.nodes.createNode(this, config); var node = this; node.query = config.query; node.on("input", function (msg) { var sql = this.query || 'SELECT * FROM ?'; ...
Add on.('close') to clear node status on Deploy
Add on.('close') to clear node status on Deploy
JavaScript
mit
AlaSQL/node-red-contrib-alasql,AlaSQL/node-red-contrib-alasql
cd32c55741feb1bdbf5695b11ed2b0e4bdb11cf1
src/constants/index.js
src/constants/index.js
export const SOCKET_URL = 'wss://ws.onfido.com:9876' export const XHR_URL = 'https://api.onfido.com' export const DOCUMENT_CAPTURE = 'DOCUMENT_CAPTURE' export const FACE_CAPTURE = 'FACE_CAPTURE' export const SET_TOKEN = 'SET_TOKEN' export const SET_AUTHENTICATED = 'SET_AUTHENTICATED' export const SET_WEBSOCKET_SUPPOR...
export const SOCKET_URL = 'wss://ws.onfido.com:9876' export const SOCKET_URL_DEV = 'wss://document-check-staging.onfido.co.uk:9876' export const XHR_URL = 'https://api.onfido.com' export const DOCUMENT_CAPTURE = 'DOCUMENT_CAPTURE' export const FACE_CAPTURE = 'FACE_CAPTURE' export const SET_TOKEN = 'SET_TOKEN' export ...
Add constants for capture valid
Add constants for capture valid
JavaScript
mit
onfido/onfido-sdk-core
649b7be4c27fc54464e3d1a0560f76e8f3505eb8
examples/webpack/config.js
examples/webpack/config.js
const CopyPlugin = require('copy-webpack-plugin'); const ExampleBuilder = require('./example-builder'); const fs = require('fs'); const path = require('path'); const src = path.join(__dirname, '..'); const examples = fs.readdirSync(src) .filter(name => /^(?!index).*\.html$/.test(name)) .map(name => name.replace(/...
const CopyPlugin = require('copy-webpack-plugin'); const ExampleBuilder = require('./example-builder'); const fs = require('fs'); const path = require('path'); const src = path.join(__dirname, '..'); const examples = fs.readdirSync(src) .filter(name => /^(?!index).*\.html$/.test(name)) .map(name => name.replace(/...
Make common chunk (and sourcemap) work
Make common chunk (and sourcemap) work
JavaScript
bsd-2-clause
fredj/ol3,ahocevar/ol3,stweil/ol3,mzur/ol3,stweil/ol3,ahocevar/ol3,stweil/ol3,fredj/ol3,mzur/ol3,adube/ol3,ahocevar/openlayers,geekdenz/ol3,ahocevar/openlayers,bjornharrtell/ol3,adube/ol3,stweil/openlayers,tschaub/ol3,bjornharrtell/ol3,adube/ol3,tschaub/ol3,tschaub/ol3,tschaub/ol3,geekdenz/openlayers,geekdenz/ol3,bjorn...
04fd62bb2301d95fce136b3776e65c7fa9a7189b
src/chrome/lib/install.js
src/chrome/lib/install.js
(function () { 'use strict'; var browserExtension = new h.HypothesisChromeExtension({ chromeTabs: chrome.tabs, chromeBrowserAction: chrome.browserAction, extensionURL: function (path) { return chrome.extension.getURL(path); }, isAllowedFileSchemeAccess: function (fn) { return chrome...
(function () { 'use strict'; var browserExtension = new h.HypothesisChromeExtension({ chromeTabs: chrome.tabs, chromeBrowserAction: chrome.browserAction, extensionURL: function (path) { return chrome.extension.getURL(path); }, isAllowedFileSchemeAccess: function (fn) { return chrome...
Update the Chrome extension more aggressively
Update the Chrome extension more aggressively Request a chrome update when the extension starts and reload the extension when it's installed.
JavaScript
bsd-2-clause
hypothesis/browser-extension,hypothesis/browser-extension,hypothesis/browser-extension,project-star/browser-extension,hypothesis/browser-extension,project-star/browser-extension,project-star/browser-extension
96f0fe140e5cbe77d5c31feb60f40c4c562be059
src/ui/Video.js
src/ui/Video.js
"use strict"; import React from 'react'; let { PropTypes } = React; let Video = React.createClass({ propTypes: { src: PropTypes.string.isRequired, width: PropTypes.number.isRequired, height: PropTypes.number.isRequired, currentTimeChanged: PropTypes.func, durationChanged: PropTypes.func, }, ...
"use strict"; import React from 'react'; let { PropTypes } = React; module.exports = React.createClass({ displayName: 'Video', propTypes: { src: PropTypes.string.isRequired, width: PropTypes.number.isRequired, height: PropTypes.number.isRequired, currentTimeChanged: PropTypes.func, durationC...
Implement "shouldComponentUpdate" method to minimise noop render calls.
Implement "shouldComponentUpdate" method to minimise noop render calls.
JavaScript
mit
Andreyco/react-video,Andreyco/react-video
37786b6ca041b387ff9be400a1f13412f0f21db8
src/token.js
src/token.js
var MaapError = require("./utils/MaapError.js"); const EventEmitter = require('events'); const util = require('util'); /** * Set dsl's store and point to access at the any engine defined in MaaS. * Token inherits from EventEmitter. Any engine create own events to * comunicate with the other engines. The only once o...
var MaapError = require("./utils/MaapError"); const EventEmitter = require("events"); const util = require("util"); /** * Set dsl's store and point to access at the any engine defined in MaaS. * Token inherits from EventEmitter. Any engine create own events to * comunicate with the other engines. The only once own ...
Remove unused array of model
Remove unused array of model
JavaScript
mit
BugBusterSWE/DSLEngine
5866282cc1d94776dc92ab8eeccf447384860715
test/filters.js
test/filters.js
var requirejs = require('requirejs'); var test = require('tape'); requirejs.config({ baseUrl: 'src', }); test('simple substring can be found', function(t) { t.plan(1); var filters = requirejs('filters'); t.assert(filters.isMatch('world', 'hello world and friends')); }); test('multi-word search criteria can...
var requirejs = require('requirejs'); var test = require('tape'); requirejs.config({ baseUrl: 'src', }); test('simple substring can be found', function(t) { t.plan(1); var filters = requirejs('filters'); t.ok(filters.isMatch('world', 'hello world and friends')); }); test('multi-word search criteria can be ...
Use ok/notOk instead of assert
Use ok/notOk instead of assert notOk(condition) is more apparent than assert(!condition). Use ok/notOk to be obvious and consistent.
JavaScript
mit
lightster/quick-switcher,lightster/quick-switcher,lightster/quick-switcher
0c75269a50e1d140c8b2be6c8ef243ac692ba811
test/index.js
test/index.js
var config = require('./config'); var should = require('should'); var nock = require('nock'); var up = require('../index')(config); var baseApi = nock('https://jawbone.com:443'); describe('up', function(){ describe('.moves', function(){ describe('.get()', function(){ it('should return correct url', functi...
var config = require('./config'); var should = require('should'); var nock = require('nock'); var up = require('../index')(config); var baseApi = nock('https://jawbone.com:443'); describe('up', function(){ describe('.moves', function(){ describe('.get()', function(){ it('should call correct url', function...
Update initial unit tests to use Nock
Update initial unit tests to use Nock
JavaScript
mit
ryanseys/node-jawbone-up,banaee/node-jawbone-up
d519b8e5022bc7ba0266182bcb3b6d225461d7e4
test/index.js
test/index.js
'use strict'; var expect = require('chaijs/chai').expect; var entries = require('..'); describe('entries', function() { it('produce a nested array of key-value pairs', function() { var input = { a: 1, b: 2, '3': 'c', '4': 'd' }; var expected = [ ['a', 1], ['b', 2], ['3', 'c'], ['4', 'd'] ]; expect(entr...
'use strict'; var expect = require('chaijs/chai').expect; var entries = require('..'); describe('entries', function() { it('produce a nested array of key-value pairs', function() { var input = { a: 1, b: 2, '3': 'c', '4': 'd' }; var expected = [ ['a', 1], ['b', 2], ['3', 'c'], ['4', 'd'] ]; expect(entr...
Add enumerables, inherited props tests
Add enumerables, inherited props tests
JavaScript
mit
ndhoule/entries
85d8dbb12ac354540cd8a1f6d48db57e158c09d2
tests/docs.js
tests/docs.js
'use strict'; var docs = require('../docs/docs'); var expect = require('chai').expect; var sinon = require('sinon'); var stub = sinon.stub; var utils = require('./helpers/utils'); var each = utils.each; var any = utils.any; var getContextStub = require('./helpers/get-context-stub'); var Canvas = require('../lib/index....
'use strict'; var docs = require('../docs/docs'); var expect = require('chai').expect; var sinon = require('sinon'); var stub = sinon.stub; var utils = require('./helpers/utils'); var each = utils.each; var any = utils.any; var getContextStub = require('./helpers/get-context-stub'); var Canvas = require('../lib/index....
Remove test for doc names & descriptions
Remove test for doc names & descriptions
JavaScript
mit
JakeSidSmith/canvasimo,JakeSidSmith/canvasimo,JakeSidSmith/sensible-canvas-interface
ce3a0467d18cbb96fb37614c8a26337bbe1d80ec
website/app/application/core/account/settings/settings.js
website/app/application/core/account/settings/settings.js
(function (module) { module.controller("AccountSettingsController", AccountSettingsController); AccountSettingsController.$inject = ["mcapi", "User", "toastr"]; /* @ngInject */ function AccountSettingsController(mcapi, User, toastr) { var ctrl = this; ctrl.fullname = User.attr().fullna...
(function (module) { module.controller("AccountSettingsController", AccountSettingsController); AccountSettingsController.$inject = ["mcapi", "User", "toastr"]; /* @ngInject */ function AccountSettingsController(mcapi, User, toastr) { var ctrl = this; ctrl.fullname = User.attr().fullna...
Update to User.save api references.
Update to User.save api references.
JavaScript
mit
materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org
27fa2729c44fd95129e81894bc52e8e937df5070
management.js
management.js
/** * Management of a device. Supports quering it for information and changing * the WiFi settings. */ class DeviceManagement { constructor(device) { this.device = device; } /** * Get information about this device. Includes model info, token and * connection information. */ info() { return this.devic...
/** * Management of a device. Supports quering it for information and changing * the WiFi settings. */ class DeviceManagement { constructor(device) { this.device = device; } /** * Get information about this device. Includes model info, token and * connection information. */ info() { return this.devic...
Add ability to get wireless state of a device
Add ability to get wireless state of a device
JavaScript
mit
aholstenson/miio
7d56f85029af381d27a70d3eec719a3270febe14
src/hooks/verify-token.js
src/hooks/verify-token.js
import jwt from 'jsonwebtoken'; import errors from 'feathers-errors'; /** * Verifies that a JWT token is valid * * @param {Object} options - An options object * @param {String} options.secret - The JWT secret */ export default function(options = {}){ const secret = options.secret; return function(hook) { ...
import jwt from 'jsonwebtoken'; import errors from 'feathers-errors'; /** * Verifies that a JWT token is valid * * @param {Object} options - An options object * @param {String} options.secret - The JWT secret */ export default function(options = {}){ const secret = options.secret; if (!secret) { consol...
Throw an error if you don't pass a secret to verifyToken hook
Throw an error if you don't pass a secret to verifyToken hook
JavaScript
mit
feathersjs/feathers-passport-jwt,feathersjs/feathers-passport-jwt,feathersjs/feathers-authentication,eblin/feathers-authentication,eblin/feathers-authentication,m1ch3lcl/feathers-authentication,m1ch3lcl/feathers-authentication
6b883624c19abad009db96f0d00d1ef84b1defe9
scripts/cd-server.js
scripts/cd-server.js
// Continuous delivery server const { spawn } = require('child_process') const { resolve } = require('path') const { createServer } = require('http') const { parse } = require('qs') const hostname = '127.0.0.1' const port = 80 const server = createServer((req, res) => { const { headers, method, url } = req // Whe...
// Continuous delivery server const { spawn } = require('child_process') const { resolve } = require('path') const { createServer } = require('http') const { parse } = require('qs') const hostname = '127.0.0.1' const port = 80 const server = createServer((req, res) => { const { headers, method, url } = req // Whe...
Fix parsing bug in CD server.
Fix parsing bug in CD server.
JavaScript
mit
jsonnull/jsonnull.com,jsonnull/jsonnull.com,jsonnull/jsonnull.com
d0be0c668a41dcd07c888a146d09ab57819fe432
server/core/types.js
server/core/types.js
/* @flow */ 'use babel'; export type Post = { title: string, content: string, postCreated : any, postPublished: string, lastUpdated: string, status: string, author: string, tags: Array<string>, generated_keys?: any } export type Author = { name: string, email: string, u...
/* @flow */ 'use babel' export type Post = { title: string, content: string, postCreated : any, postPublished: string, lastUpdated: string, status: string, author: string, tags: Array<string>, generated_keys?: any } export type PostSum = { title: string, status: string, id: string, author: s...
Add PostSum type. This is post summary for list view
Add PostSum type. This is post summary for list view
JavaScript
mit
junwatu/blogel,junwatu/blogel,junwatu/blogel
b8db7e248edc31bd5231088832feacf35843b73e
app/assets/javascripts/student_profile/main.js
app/assets/javascripts/student_profile/main.js
$(function() { // only run if the correct page if (!($('body').hasClass('students') && $('body').hasClass('show'))) return; // imports var createEl = window.shared.ReactHelpers.createEl; var PageContainer = window.shared.PageContainer; var parseQueryString = window.shared.parseQueryString; // mixpanel a...
$(function() { // only run if the correct page if (!($('body').hasClass('students') && $('body').hasClass('show'))) return; // imports var createEl = window.shared.ReactHelpers.createEl; var PageContainer = window.shared.PageContainer; var parseQueryString = window.shared.parseQueryString; var MixpanelUt...
Fix bug in profile page import
Fix bug in profile page import
JavaScript
mit
erose/studentinsights,erose/studentinsights,jhilde/studentinsights,erose/studentinsights,studentinsights/studentinsights,jhilde/studentinsights,studentinsights/studentinsights,studentinsights/studentinsights,jhilde/studentinsights,jhilde/studentinsights,erose/studentinsights,studentinsights/studentinsights
8b6befcd13104e8eb829947d42a843ec648b5296
addon/utils/validators/ember-component.js
addon/utils/validators/ember-component.js
/** * The PropTypes.EmberComponent validator */ import Ember from 'ember' const {typeOf} = Ember import logger from '../logger' export default function (ctx, name, value, def, logErrors, throwErrors) { const isObject = typeOf(value) === 'object' const valid = isObject && Object.keys(value).some((key) => { ...
/** * The PropTypes.EmberComponent validator */ import Ember from 'ember' const {typeOf} = Ember import logger from '../logger' export default function (ctx, name, value, def, logErrors, throwErrors) { const isObject = typeOf(value) === 'object' const valid = isObject && Object.keys(value).some((key) => { ...
Fix EmberComponent prop type for Ember 2.11
Fix EmberComponent prop type for Ember 2.11
JavaScript
mit
ciena-blueplanet/ember-prop-types,sandersky/ember-prop-types,sandersky/ember-prop-types,sandersky/ember-prop-types,ciena-blueplanet/ember-prop-types,ciena-blueplanet/ember-prop-types
0f68aa298d5cc7c2578126456197fe0ce0798db1
build/start.js
build/start.js
require('./doBuild'); require('./server');
var build = require('./build'); build() .catch(function(err) { require('trace'); require('clarify'); console.trace(err); }); require('./server');
Tweak heroku build to put it into production mode
Tweak heroku build to put it into production mode
JavaScript
mit
LandRegistry/land-registry-elements,LandRegistry/land-registry-elements,LandRegistry/land-registry-elements,LandRegistry/land-registry-elements,LandRegistry/land-registry-elements
cb755108580ee143b9e74883a2948598473e341d
src/transferring/index.js
src/transferring/index.js
import * as http_data from "./http-data"; import * as urlModule from "url"; const transferrers = {}; function transfer(request) { // url - the resource URI to send a message to // options.method - the method to use for transferring // options.form - the Form API object representing the form data submission...
import * as http_data from "./http-data"; import * as urlModule from "url"; function transfer(request) { // url - the resource URI to send a message to // options.method - the method to use for transferring // options.form - the Form API object representing the form data submission // ...
Make Transfer Consistent w/ Views
Make Transfer Consistent w/ Views
JavaScript
mit
lynx-json/jsua
5575571bf0dca4f941e87164839605dc6aca0014
js/buttons/delete-button.js
js/buttons/delete-button.js
"use strict"; /*global module, require*/ var modalDialogueFactory = require("./processes/modal-dialogue.js"), commentFactory = require("./accordion-comment.js"), online = { online: true, offline: false }, standalone = { embedded: false, standalone: true }; module.exports = function(store, ...
"use strict"; /*global module, require*/ var modalDialogueFactory = require("./processes/modal-dialogue.js"), commentFactory = require("./accordion-comment.js"), online = { online: true, offline: false }, standalone = { embedded: false, standalone: true }; module.exports = function(store, ...
Delete button enabled on the right occasions.
Delete button enabled on the right occasions.
JavaScript
mit
cse-bristol/multiuser-file-menu,cse-bristol/multiuser-file-menu
59db5d86469bf8f474f8a1ab40588d218831c99c
model/lib/data-snapshot/index.js
model/lib/data-snapshot/index.js
// Not to mix with `DataSnapshots` class which is about different thing // (serialized list views updated reactively) // // This one is about snaphots of data made in specific moments of time. // Snaphots are not reactive in any way. They're updated only if given specific moment repeats // for entity it refers to. // e...
// Not to mix with `DataSnapshots` class which is about different thing // (serialized list views updated reactively) // // This one is about snaphots of data made in specific moments of time. // Snaphots are not reactive in any way. They're updated only if given specific moment repeats // for entity it refers to. // e...
Introduce `generate` and `regenerate` methods
Introduce `generate` and `regenerate` methods
JavaScript
mit
egovernment/eregistrations,egovernment/eregistrations,egovernment/eregistrations
425470a41a20f416fb05c575a443ffffb9aac71d
test/load-json-spec.js
test/load-json-spec.js
/* global describe, it */ import assert from 'assert'; import {KATAS_URL, URL_PREFIX} from '../src/config.js'; import GroupedKata from '../src/grouped-kata.js'; describe('load ES6 kata data', function() { it('loaded data are as expected', function(done) { const loadRemoteFileStub = (url, onLoaded) => { l...
/* global describe, it */ import assert from 'assert'; import GroupedKata from '../src/grouped-kata.js'; function remoteFileLoaderWhichReturnsGivenData(data) { return (url, onLoaded) => { onLoaded(null, data); }; } function remoteFileLoaderWhichReturnsError(error) { return (url, onLoaded) => { onLoaded(...
Refactor duplication out of tests.
Refactor duplication out of tests.
JavaScript
mit
wolframkriesing/es6-react-workshop,wolframkriesing/es6-react-workshop
a1d6637ecd4f9d8c0745d3ea59ec83742e371c24
src/plugins/appVersion.js
src/plugins/appVersion.js
// install : cordova plugin add https://github.com/whiteoctober/cordova-plugin-app-version.git // link : https://github.com/whiteoctober/cordova-plugin-app-version angular.module('ngCordova.plugins.appVersion', []) .factory('$cordovaAppVersion', ['$q', function ($q) { return { getAppVersio...
// install : cordova plugin add https://github.com/whiteoctober/cordova-plugin-app-version.git // link : https://github.com/whiteoctober/cordova-plugin-app-version angular.module('ngCordova.plugins.appVersion', []) .factory('$cordovaAppVersion', ['$q', function ($q) { return { getVersionNu...
Update due to the plugin split into two functions getAppVersion.getVersionNumber() and getAppVersion.getVersionCode() to return build number
Update due to the plugin split into two functions getAppVersion.getVersionNumber() and getAppVersion.getVersionCode() to return build number
JavaScript
mit
listrophy/ng-cordova,dangerfarms/ng-cordova,sesubash/ng-cordova,driftyco/ng-cordova,justinwp/ng-cordova,DavidePastore/ng-cordova,cihadhoruzoglu/ng-cordova,5amfung/ng-cordova,candril/ng-cordova,omefire/ng-cordova,alanquigley/ng-cordova,Jewelbots/ng-cordova,beauby/ng-cordova,GreatAnubis/ng-cordova,Freundschaft/ng-cordova...
bea6c3a94e10aafefba91fd791dece9a26a1fe13
src/mist/io/static/js/app/views/image_list_item.js
src/mist/io/static/js/app/views/image_list_item.js
define('app/views/image_list_item', [ 'text!app/templates/image_list_item.html','ember'], /** * * Image List Item View * * @returns Class */ function(image_list_item_html) { return Ember.View.extend({ tagName:'li', starImage: ...
define('app/views/image_list_item', [ 'text!app/templates/image_list_item.html','ember'], /** * * Image List Item View * * @returns Class */ function(image_list_item_html) { return Ember.View.extend({ tagName:'li', starImage: ...
Fix star image from advanced search in javascript
Fix star image from advanced search in javascript
JavaScript
agpl-3.0
afivos/mist.io,munkiat/mist.io,afivos/mist.io,munkiat/mist.io,afivos/mist.io,munkiat/mist.io,zBMNForks/mist.io,Lao-liu/mist.io,munkiat/mist.io,Lao-liu/mist.io,kelonye/mist.io,zBMNForks/mist.io,DimensionDataCBUSydney/mist.io,johnnyWalnut/mist.io,kelonye/mist.io,zBMNForks/mist.io,johnnyWalnut/mist.io,DimensionDataCBUSydn...
e7da62df0ace6f30593df7d18ae983cb7e44c778
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('browserify generator', function () { beforeEach(function (done) { helpers.testDirectory(path.join(__dirname, 'temp'), function (err) { if (err) { ...
/*global describe, beforeEach, it*/ 'use strict'; var path = require('path'); var helpers = require('yeoman-generator').test; describe('browserify generator', function () { beforeEach(function (done) { helpers.testDirectory(path.join(__dirname, 'temp'), function (err) { if (err) { ...
Update tests to reflect addition of list prompts and compiler list in generator.
Update tests to reflect addition of list prompts and compiler list in generator.
JavaScript
mit
dlmoody/generator-browserify,vincentmac/generator-browserify,dlmoody/generator-browserify
0bb4c1bd060627ddeb098f107fc7ec5d8cddbb0d
core/client/assets/lib/touch-editor.js
core/client/assets/lib/touch-editor.js
var createTouchEditor = function createTouchEditor() { var noop = function () {}, TouchEditor; TouchEditor = function (el, options) { /*jshint unused:false*/ this.textarea = el; this.win = { document : this.textarea }; this.ready = true; this.wrapping = document....
var createTouchEditor = function createTouchEditor() { var noop = function () {}, TouchEditor; TouchEditor = function (el, options) { /*jshint unused:false*/ this.textarea = el; this.win = { document : this.textarea }; this.ready = true; this.wrapping = document....
Add off as a noop function to touch editor.
Add off as a noop function to touch editor. Closes #3107
JavaScript
mit
tandrewnichols/ghost,katiefenn/Ghost,situkangsayur/Ghost,anijap/PhotoGhost,tmp-reg/Ghost,ericbenson/GhostAzureSetup,rollokb/Ghost,Rovak/Ghost,aschmoe/jesse-ghost-app,JonSmith/Ghost,blankmaker/Ghost,jparyani/GhostSS,dai-shi/Ghost,dymx101/Ghost,ErisDS/Ghost,Smile42RU/Ghost,gabfssilva/Ghost,virtuallyearthed/Ghost,Feitiany...
39db65de05c816848c07bfbc9b3562d590a34521
scripts/assign-env-vars.js
scripts/assign-env-vars.js
// Used to assign stage-specific env vars in our CI setup // to the env var names used in app code. // All env vars we want to pick up from the CI environment. const envVars = [ 'NODE_ENV', 'AWS_REGION', // AWS Cognito 'COGNITO_REGION', 'COGNITO_IDENTITYPOOLID', 'COGNITO_USERPOOLID', 'COGNITO_CLIENTID',...
// Used to assign stage-specific env vars in our CI setup // to the env var names used in app code. // All env vars we want to pick up from the CI environment. const envVars = [ 'NODE_ENV', 'AWS_REGION', // AWS Cognito 'COGNITO_REGION', 'COGNITO_IDENTITYPOOLID', 'COGNITO_USERPOOLID', 'COGNITO_CLIENTID',...
Throw error if an expected env var is not set.
Throw error if an expected env var is not set.
JavaScript
mpl-2.0
gladly-team/tab,gladly-team/tab,gladly-team/tab
e3d04be3e031feabc28d5b13deaa4b445f885a05
static/js/views/dbView.js
static/js/views/dbView.js
_r(function (app) { if ( ! window.app.views.hasOwnProperty('db')) { app.views.db = {}; } /** * Database selection box */ app.views.db.box = app.base.formView.extend({ model: app.models.Db, module: 'db', action: 'box', auto_render: true, $el: $('<div id="db_box"></...
_r(function (app) { if ( ! window.app.views.hasOwnProperty('db')) { app.views.db = {}; } /** * Database selection box */ app.views.db.box = app.base.formView.extend({ model: app.models.Db, module: 'db', action: 'box', auto_render: true, $el: $('<div id="db_box"></...
Fix db box to hide itself on successful change
Fix db box to hide itself on successful change
JavaScript
mit
maritz/nohm-admin,maritz/nohm-admin
85f32436c920101c8877462d11445ca44bc32832
lib/plugins/body_parser.js
lib/plugins/body_parser.js
// Copyright 2012 Mark Cavage, Inc. All rights reserved. var jsonParser = require('./json_body_parser'); var formParser = require('./form_body_parser'); var multipartParser = require('./multipart_parser'); var errors = require('../errors'); var UnsupportedMediaTypeError = errors.UnsupportedMediaTypeError; functio...
// Copyright 2012 Mark Cavage, Inc. All rights reserved. var jsonParser = require('./json_body_parser'); var formParser = require('./form_body_parser'); var multipartParser = require('./multipart_parser'); var errors = require('../errors'); var UnsupportedMediaTypeError = errors.UnsupportedMediaTypeError; functio...
Check that options is not empty
Check that options is not empty
JavaScript
mit
TheDeveloper/node-restify,prasmussen/node-restify,adunkman/node-restify,chaordic/node-restify,kevinykchan/node-restify,uWhisp/node-restify,jclulow/node-restify,ferhatsb/node-restify
623796045a00bb3cd67dd88ece4c89cae01e9f09
karma.conf.js
karma.conf.js
module.exports = function(config) { const files = [ { pattern: 'browser/everything.html', included: false, served: true, }, { pattern: 'browser/everything.js', included: true, served: true, }, { pattern: 'spec/fixtures/*.json', included: false, ...
module.exports = function(config) { const files = [ { pattern: 'browser/everything.html', included: false, served: true, }, { pattern: 'browser/everything.js', included: true, served: true, }, { pattern: 'spec/fixtures/*.json', included: false, ...
Switch browser list when running in Travis
Switch browser list when running in Travis
JavaScript
mit
noflo/noflo-browser,noflo/noflo-browser
245ddf33d7d4fecbf000a6cd42f3c54cbc476238
karma.conf.js
karma.conf.js
/* global module:false */ module.exports = function (config) { config.set({ basePath: '', frameworks: ['mocha', 'chai'], reporters: ['dots', 'progress'], browsers: ['ChromeIncognito', 'Firefox', 'Safari'], singleRun: true, customLaunchers: { ChromeIncognito: { base: 'Chrome'...
/* global module:false */ module.exports = function (config) { config.set({ basePath: '', frameworks: ['mocha', 'chai'], reporters: ['dots', 'progress'], browsers: ['ChromeIncognito', 'Firefox'], singleRun: true, customLaunchers: { ChromeIncognito: { base: 'Chrome', ...
Remove Safari from automated tests
Remove Safari from automated tests
JavaScript
mit
jensarps/IDBWrapper,jayfunk/IDBWrapper,jayfunk/IDBWrapper,jensarps/IDBWrapper
ee97033aab6492b08c23f7eb52e93c9f4f58b9bf
jest.config.js
jest.config.js
module.exports = { "modulePaths": [ "<rootDir>/app", "<rootDir>/node_modules" ], "moduleFileExtensions": [ "js", "json" ], "testRegex": "/test/*/.*-test.js$", "testEnvironment": "node", "testTimeout": 10000, "collectCoverage": true, "reporters": [ ...
module.exports = { "modulePaths": [ "<rootDir>/app", "<rootDir>/node_modules" ], "moduleFileExtensions": [ "js", "json" ], "testRegex": "/test/*/.*-test.js$", "testEnvironment": "node", "testTimeout": 10000, "collectCoverage": true, "reporters": [ ...
Add Cobertura Test coverage output
Add Cobertura Test coverage output
JavaScript
apache-2.0
stamp-web/stamp-webservices
13b19fd044152ac6bf1213aa4d22fa0cb1623da6
js/redirect.js
js/redirect.js
/*global chrome,document,window */ (function init(angular) { "use strict"; try { chrome.storage.local.get(["url", "tab.selected", "always-tab-update"], function (items) { var url = items.url; if (url) { url = (0 !== url.indexOf("about:") && -1 === url.indexOf("://...
/*global chrome,document,window */ (function init(angular) { "use strict"; try { chrome.storage.local.get(["url", "tab.selected", "always-tab-update"], function (items) { var url = items.url; if (url) { url = (0 !== url.indexOf("about:") && 0 !== url.indexOf("data...
Allow data URIs to be set as the new tab page
Allow data URIs to be set as the new tab page
JavaScript
mit
jimschubert/NewTab-Redirect,jimschubert/NewTab-Redirect
1696f212f0ff83997f2aadb6b14a9cd4d716a172
src/commands/post.js
src/commands/post.js
const Command = require('../structures/Command'); const snekfetch = require('snekfetch'); const { inspect } = require('util'); class PostCommand extends Command { constructor() { super({ name: 'post', description: 'Update the guild count on <https://bots.discord.pw>', ownersOnly: true }); } async run(...
const Command = require('../structures/Command'); const snekfetch = require('snekfetch'); const { inspect } = require('util'); class PostCommand extends Command { constructor() { super({ name: 'post', description: 'Update the guild count on <https://bots.discord.pw>', ownersOnly: true }); } async run(...
Fix this logging n stuff
Fix this logging n stuff
JavaScript
mit
robflop/robbot
914e94f9e5531465fdf6028734fb99402fae3411
templates/html5/output.js
templates/html5/output.js
::if embeddedLibraries::::foreach (embeddedLibraries):: ::__current__::::end::::end:: // lime.embed namespace wrapper (function ($hx_exports, $global) { "use strict"; $hx_exports.lime = $hx_exports.lime || {}; $hx_exports.lime.$scripts = $hx_exports.lime.$scripts || {}; $hx_exports.lime.$scripts["::APP_FILE::"] = (func...
var $hx_script = (function(exports, global) { ::SOURCE_FILE::}); (function ($hx_exports, $global) { "use strict"; $hx_exports.lime = $hx_exports.lime || {}; $hx_exports.lime.$scripts = $hx_exports.lime.$scripts || {}; $hx_exports.lime.$scripts["::APP_FILE::"] = $hx_script; $hx_exports.lime.embed = function(projectName)...
Fix line numbers for HTML5 source maps
Fix line numbers for HTML5 source maps
JavaScript
mit
madrazo/lime-1,player-03/lime,madrazo/lime-1,MinoGames/lime,openfl/lime,player-03/lime,openfl/lime,madrazo/lime-1,madrazo/lime-1,MinoGames/lime,openfl/lime,openfl/lime,madrazo/lime-1,player-03/lime,MinoGames/lime,openfl/lime,player-03/lime,player-03/lime,MinoGames/lime,MinoGames/lime,MinoGames/lime,player-03/lime,madra...
d64c1914a95e150b32ec750171187b8354059cd8
lib/errors.js
lib/errors.js
/* * Grasspiler / errors.js * copyright (c) 2016 Susisu */ "use strict"; function endModule() { module.exports = Object.freeze({ ParseError, CompileError }); } class ParseError extends Error { constructor(message) { super(message); this.name = this.constructor.name; ...
/* * Grasspiler / errors.js * copyright (c) 2016 Susisu */ "use strict"; function endModule() { module.exports = Object.freeze({ ParseError, CompileError }); } class ParseError extends Error { constructor(message) { super(message); this.name = this.constructor.name; ...
Add name property to compile error
Add name property to compile error
JavaScript
mit
susisu/Grasspiler
df3766e78ec0c5af757135192e5a1ff6b051199f
lib/errors.js
lib/errors.js
/** * Copyright 2013 Rackspace * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
/** * Copyright 2014 Rackspace * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
Add missing comment and fix copyright date.
Add missing comment and fix copyright date.
JavaScript
apache-2.0
racker/node-cassandra-client,racker/node-cassandra-client
a0f8a7bcc765f8fb07a2760a09307faf39404aca
lib/adapter.js
lib/adapter.js
/* Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://cksource.com/ckfinder/license */ ( function( window, bender ) { 'use strict'; var unlock = bender.defer(), originalRequire = window.require; // TODO what if require is never called? bende...
/* Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://cksource.com/ckfinder/license */ ( function( window, bender ) { 'use strict'; bender.require = function( deps, callback ) { var unlock = bender.defer(); window.require( deps, function() {...
Move bender.defer() inside the require call.
Move bender.defer() inside the require call.
JavaScript
mit
benderjs/benderjs-amd
1057855e5c60e281e8c2450d4ac5560c385da771
package.js
package.js
Package.describe({ name: 'verody:groupaccount', version: '0.1.0', summary: 'Account management package providing qualified access to a single Meteor server account from one or more sets of credentials.', git: 'https://github.com/ekobi/meteor-groupaccount.git', documentation: 'README.md' }); Package...
Package.describe({ name: 'verody:groupaccount', version: '0.1.0', summary: 'Provides qualified access to a single Meteor user account from one or more sets of credentials.', git: 'https://github.com/ekobi/meteor-groupaccount.git', documentation: 'README.md' }); Package.onUse(function(api) { api...
Trim summary to fit 100 character limit.
Trim summary to fit 100 character limit.
JavaScript
mit
ekobi/meteor-groupaccount,ekobi/meteor-groupaccount,ekobi/meteor-groupaccount
3e968acae5397d7b33d409fc0c26da610c1ba9b0
Resources/js/InjectCSS.js
Resources/js/InjectCSS.js
document.documentElement.style.webkitTouchCallout='none'; var root = document.getElementsByTagName( 'html' )[0] root.setAttribute( 'class', 'hybrid' ); var styleElement = document.createElement('style'); root.appendChild(styleElement); styleElement.textContent = '${CSS}';
document.documentElement.style.webkitTouchCallout='none'; var root = document.getElementsByTagName( 'html' )[0] root.setAttribute( 'class', 'neeman-hybrid-app' ); var styleElement = document.createElement('style'); root.appendChild(styleElement); styleElement.textContent = '${CSS}';
Switch HTML tag to one less likely to be used by another library.
Switch HTML tag to one less likely to be used by another library.
JavaScript
mit
intellum/neeman,intellum/neeman,intellum/neeman,intellum/neeman
cfe506bf86d27cf1c1c9677adf7902e3c003dfe7
lib/webhook.js
lib/webhook.js
/* * Copyright (c) 2014-2020 Bjoern Kimminich. * SPDX-License-Identifier: MIT */ const request = require('request') const colors = require('colors/safe') const logger = require('../lib/logger') const utils = require('../lib/utils') const os = require('os') exports.notify = (challenge) => { request.post(process.e...
/* * Copyright (c) 2014-2020 Bjoern Kimminich. * SPDX-License-Identifier: MIT */ const request = require('request') const colors = require('colors/safe') const logger = require('../lib/logger') const utils = require('../lib/utils') const os = require('os') exports.notify = (challenge) => { request.post(process.e...
Move additional field "issuer" out of the "solution" object
Move additional field "issuer" out of the "solution" object
JavaScript
mit
bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop
54b35d592d3d2c7e9c4357acc2c3cdc3a3c5478f
src/client/blog/posts/posts-service.js
src/client/blog/posts/posts-service.js
BlogPostsFactory.$inject = ['$resource']; function BlogPostsFactory($resource){ return $resource('/api/v1/posts/:postId'); } angular.module('blog.posts.service', [ 'ngResource' ]).factory('Posts', BlogPostsFactory);
BlogPostsFactory.$inject = ['$resource']; function BlogPostsFactory($resource){ return $resource('/api/v1/posts/:postId', {postId: '@id'}); } angular.module('blog.posts.service', [ 'ngResource' ]).factory('Posts', BlogPostsFactory);
Allow saving with the posts.
Allow saving with the posts.
JavaScript
isc
RupertJS/rupert-example-blog,RupertJS/rupert-example-blog
ff4ac1f418508c005d5afa713027af33dcf29ff1
test/helper.js
test/helper.js
var nock = require('nock') , io = require('../index'); var helper = exports; // // Define the default options // var default_options = helper.default_options = { endpoint: 'https://api.orchestrate.io', api: 'v0' }; // // Create a new fake server // helper.fakeIo = require('./support/fake-io').createServer(defa...
/* * helper.js * */ var io = require('../index'); var helper = exports; var default_options = helper.default_options = { endpoint: 'https://api.orchestrate.io', api: 'v0' }; // // Create a new fake server // helper.fakeIo = require('./support/fake-io').createServer(default_options); helper.io = io;
Stop to require a useless module
Stop to require a useless module
JavaScript
mit
giraffi/node-orchestrate.io
3d0972cc6f42359bc3a94254c808a1a6e34517a9
src/custom/cappasity-users-activate.js
src/custom/cappasity-users-activate.js
const ld = require('lodash'); const moment = require('moment'); const setMetadata = require('../utils/updateMetadata.js'); /** * Adds metadata from billing into usermix * @param {String} username * @return {Promise} */ module.exports = function mixPlan(username, audience) { const { amqp, config } = this; cons...
const Promise = require('bluebird'); const ld = require('lodash'); const moment = require('moment'); const setMetadata = require('../utils/updateMetadata.js'); /** * Adds metadata from billing into usermix * @param {String} username * @return {Promise} */ module.exports = function mixPlan(username, audience) { ...
Add sleep in custom action
Add sleep in custom action
JavaScript
mit
makeomatic/ms-users,makeomatic/ms-users
58239dac2cc98052570cd13e87905c9fb3b11de5
src/scenes/home/opCodeCon/opCodeCon.js
src/scenes/home/opCodeCon/opCodeCon.js
import React from 'react'; import commonUrl from 'shared/constants/commonLinks'; import LinkButton from 'shared/components/linkButton/linkButton'; import styles from './opCodeCon.css'; const OpCodeCon = () => ( <div className={styles.hero}> <div className={styles.heading}> <h1>OpCodeCon</h1> <h3>Join...
import React from 'react'; import commonUrl from 'shared/constants/commonLinks'; import LinkButton from 'shared/components/linkButton/linkButton'; import styles from './opCodeCon.css'; const OpCodeCon = () => ( <div className={styles.hero}> <div className={styles.heading}> <h1>OpCodeCon</h1> <h3>Join...
Fix ESLint error causing Travis build to fail
Fix ESLint error causing Travis build to fail 'jsx-max-props-per-line' rule
JavaScript
mit
sethbergman/operationcode_frontend,OperationCode/operationcode_frontend,sethbergman/operationcode_frontend,sethbergman/operationcode_frontend,hollomancer/operationcode_frontend,OperationCode/operationcode_frontend,hollomancer/operationcode_frontend,OperationCode/operationcode_frontend,hollomancer/operationcode_frontend
c4e00daab05ac6cc0b9965fd5a07539b3281bd2e
app/routes.js
app/routes.js
module.exports = { bind : function (app) { app.get('/', function (req, res) { console.log("Clearing the session.") delete req.session res.render('index'); }); app.get('/examples/template-data', function (req, res) { res.render('examples/template-data', { 'name' : 'Foo' }); })...
function clear_session(req) { console.log("Clearing the session.") delete req.session } module.exports = { bind : function (app) { app.get('/', function (req, res) { clear_session(req); res.render('index'); }); app.get('/index', function (req, res) { clear_session(req); res....
Clear the session on accessing the index page too.
Clear the session on accessing the index page too.
JavaScript
mit
stephenjoe1/pay-staff-tool,stephenjoe1/pay-staff-tool,stephenjoe1/pay-staff-tool
8ebb4b1d798c02dd62d7b0e584f567374c4a930c
NoteWrangler/public/js/routes.js
NoteWrangler/public/js/routes.js
// js/routes (function() { "use strict"; angular.module("NoteWrangler") .config(config); function config($routeProvider) { $routeProvider .when("/notes", { templateUrl: "../templates/pages/notes/index.html", controller: "NotesIndexController", controllerAs: "notesIndexCtrl...
// js/routes (function() { "use strict"; angular.module("NoteWrangler") .config(config); function config($routeProvider) { $routeProvider .when("/notes", { templateUrl: "../templates/pages/notes/index.html", controller: "NotesIndexController", controllerAs: "notesIndexCtrl...
Add templateUrl for default route
Add templateUrl for default route
JavaScript
mit
var-bin/angularjs-training,var-bin/angularjs-training,var-bin/angularjs-training,var-bin/angularjs-training
b33eafc06f6f89166cecd8cde664c470cc249b31
lib/app.js
lib/app.js
var app = require("express")(); app.get('/', function (req, res) { res.send('c\'est ne une jsbin'); }); app.listen(3000);
var express = require('express'), path = require('path'), app = express(); app.root = path.join(__dirname, '..', 'public'); app.use(express.logger()); app.use(express.static(app.root)); app.get('/', function (req, res) { res.send('c\'est ne une jsbin'); }); module.exports = app; // Run a local dev...
Add support for serving static files and logging
Add support for serving static files and logging
JavaScript
mit
thsunmy/jsbin,jsbin/jsbin,filamentgroup/jsbin,mingzeke/jsbin,jwdallas/jsbin,kentcdodds/jsbin,jsbin/jsbin,knpwrs/jsbin,IvanSanchez/jsbin,martinvd/jsbin,blesh/jsbin,saikota/jsbin,pandoraui/jsbin,carolineartz/jsbin,dhval/jsbin,svacha/jsbin,mlucool/jsbin,dennishu001/jsbin,eggheadio/jsbin,Freeformers/jsbin,mcanthony/jsbin,c...
4390638b4674024c7abd266450916fbe4f78ea5a
prompts.js
prompts.js
'use strict'; var _ = require('lodash'); var prompts = [ { type: 'input', name: 'projectName', message: 'Machine-name of your project?', // Name of the parent directory. default: _.last(process.cwd().split('/')), validate: function (input) { return (input.search(' ') === -1) ? true : '...
'use strict'; var _ = require('lodash'); var prompts = [ { type: 'input', name: 'projectName', message: 'Machine-name of your project?', // Name of the parent directory. default: _.last(process.cwd().split('/')), validate: function (input) { return (input.search(' ') === -1) ? true : '...
Add support for memcache with Drupal config via override.settings.php.
Add support for memcache with Drupal config via override.settings.php.
JavaScript
mit
phase2/generator-outrigger-drupal,phase2/generator-outrigger-drupal,phase2/generator-outrigger-drupal
9c69add5dbeb82687180f0f225defbe8cc2f0553
shows/paste.js
shows/paste.js
function(doc, req) { start({ "headers" : { "Content-type": "text/html" } }); var Mustache = require("vendor/mustache"); var x = Mustache.to_html(this.templates.paste, doc); return x; }
function(doc, req) { start({ "Content-type": "text/html; charset='utf-8'" }); var Mustache = require("vendor/mustache"); Mustache.to_html(this.templates.paste, doc, null, send); }
Use CouchDB send function when displaying the template
Use CouchDB send function when displaying the template Also correct the start function which was wrong before.
JavaScript
mit
gdamjan/paste-couchapp