commit
stringlengths
40
40
old_file
stringlengths
4
264
new_file
stringlengths
4
264
old_contents
stringlengths
0
3.26k
new_contents
stringlengths
1
4.43k
subject
stringlengths
15
624
message
stringlengths
15
4.7k
lang
stringclasses
3 values
license
stringclasses
13 values
repos
stringlengths
5
91.5k
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
5ea5cf60359a2105a49bf54b7b5c7a9a4ecd7855
tests/system/test-simple-image-resize.js
tests/system/test-simple-image-resize.js
const numberOfPlannedTests = 6 casper.test.begin('test-simple-image-resize', numberOfPlannedTests, (test) => { casper.start(`http://${testhost}`, function () { }) casper.then(function () { const curr = this.getCurrentUrl() const fixturePath = this.fetchText('#fixture_path') this.fill('#entryF...
const numberOfPlannedTests = 5 casper.test.begin('test-simple-image-resize', numberOfPlannedTests, (test) => { casper.start(`http://${testhost}`, function () { }) casper.then(function () { const curr = this.getCurrentUrl() const fixturePath = this.fetchText('#fixture_path') this.fill('#entryF...
Change num of planned tests.
Change num of planned tests.
JavaScript
mit
transloadit/jquery-sdk,transloadit/jquery-sdk,transloadit/jquery-sdk
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
d9c4ad44e8646db294a1b46b6d10955125d2da9c
src/index.js
src/index.js
// TODO consider using https://babeljs.io/docs/plugins/transform-runtime/ instead of babel-polyfill import "babel-polyfill" import React from "react" import { render } from "react-dom" import { createStore, applyMiddleware } from "redux" import { Provider } from "react-redux" import createSagaMiddleware from "redux-sag...
// TODO consider using https://babeljs.io/docs/plugins/transform-runtime/ instead of babel-polyfill import "babel-polyfill" import React from "react" import { render } from "react-dom" import { createStore, applyMiddleware } from "redux" import { Provider } from "react-redux" import createSagaMiddleware from "redux-sag...
Save token to localStorage only if it changes
Save token to localStorage only if it changes
JavaScript
isc
bostrom/harvest-balance,bostrom/harvest-balance
56d3feba455c9776a17e311b2cfb294f321ade8e
lib/exprexo.js
lib/exprexo.js
const router = require('./router') const express = require('express') const cors = require('cors') /** * Creates a new server with the given options. * @param {Object} options configurable options. * @param {Function} callback function to be called on start. * @return {Object} express app instance....
const router = require('./router') const express = require('express') const cors = require('cors') /** * Creates a new server with the given options. * @param {Object} options configurable options. * @param {Function} callback function to be called on start. * @return {Object} express app instance....
Add parsers as a default.
feat: Add parsers as a default. * Add parser middleware for parsing `application/json`. * Add parser middleware for parsing `application/x-www-form-urlencoded`. BREAKING CHANGE: `req.body` will not longer be `undefined`, will include a parsed json instead with the request payload.
JavaScript
mit
exprexo/exprexo
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
1d1075a1eec288c1372ccd001c197fab29f71980
lib/skeletonDependencies.js
lib/skeletonDependencies.js
export default { connect: '3.5.0', 'server-destroy': '1.0.1', 'connect-modrewrite': '0.9.0', winston: '2.3.0', 'find-port': '2.0.1', rimraf: '2.5.4', shelljs: '0.7.5', lodash: '4.17.2', request: '2.79.0', queue: '4.0.0', reify: '0.4.4', send: '0.14.1', 'fs-plus': '2.9...
export default { connect: '3.5.0', 'server-destroy': '1.0.1', 'connect-modrewrite': '0.9.0', winston: '2.3.0', 'find-port': '2.0.1', rimraf: '2.5.4', shelljs: '0.7.5', lodash: '4.17.4', request: '2.79.0', queue: '4.0.1', reify: '0.4.4', send: '0.14.1', 'fs-plus': '2.9...
Update skeleton app default dependencies
Update skeleton app default dependencies
JavaScript
mit
wojtkowiak/meteor-desktop,wojtkowiak/meteor-desktop
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
b8fb8cb98d070481c4ec88230c3f21325129ffde
library.js
library.js
(function(Reddit) { "use strict"; var anchor = '<a href="http://reddit.com$1" target="_blank">$1</a>'; Reddit.parse = function(postContent, callback) { var regex = /(\/r\/\w+)/g; if (postContent.match(regex)) { postContent = postContent.replace(regex, anchor); } callback(null, postContent); }; }(modul...
(function(Reddit) { "use strict"; var anchor = '<a href="http://reddit.com$1" target="_blank">$1</a>'; Reddit.parse = function(postContent, callback) { var regex = /(?:^|\s)(\/r\/\w+)/g; if (postContent.match(regex)) { postContent = postContent.replace(regex, anchor); } callback(null, postContent); };...
Update regex Only match if /r/* is the beginning of the string or if it is prefixed by a whitespace
Update regex Only match if /r/* is the beginning of the string or if it is prefixed by a whitespace
JavaScript
bsd-2-clause
Schamper/nodebb-plugin-reddit
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
52d61f5483950edb225adbab7b2cadc47a7c84cf
pipeline/app/assets/javascripts/app.js
pipeline/app/assets/javascripts/app.js
'use strict'; var pathwayApp = angular.module('pathwayApp', ['ui.router', 'templates', 'Devise', 'ngCookies']); pathwayApp.config(function($stateProvider, $urlRouterProvider, $locationProvider) { //Default route $urlRouterProvider.otherwise('/'); $locationProvider.html5Mode(true); $stateProvider .state('hom...
'use strict'; var pathwayApp = angular.module('pathwayApp', ['ui.router', 'templates', 'Devise', 'ngCookies']); pathwayApp.config(function($stateProvider, $urlRouterProvider, $locationProvider) { //Default route $urlRouterProvider.otherwise('/'); $locationProvider.html5Mode(true); $stateProvider .state('hom...
Add brackets to end state
Add brackets to end state
JavaScript
mit
aattsai/Pathway,aattsai/Pathway,aattsai/Pathway
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
526e10a3a99be78506cd5a58fe2e03d8a5461d96
src/render_template.js
src/render_template.js
"use strict"; var resolveItemText = require('./resolve_item_text') , makeInlineCitation = require('./make_inline_citation') , makeBibliographyEntry = require('./make_bibliography_entry') , formatItems = require('./format_items') , getCSLItems = require('./csl_from_documents') module.exports = function renderT...
"use strict"; var resolveItemText = require('./resolve_item_text') , makeInlineCitation = require('./make_inline_citation') , makeBibliographyEntry = require('./make_bibliography_entry') , formatItems = require('./format_items') , getCSLItems = require('./csl_from_documents') module.exports = function renderT...
Add second argument to render() method of markdown parser
Add second argument to render() method of markdown parser
JavaScript
agpl-3.0
editorsnotes/editorsnotes-markup-renderer
e01550117cb3911806f9eea8465b5fe709fc26ed
scripts/ayuda.js
scripts/ayuda.js
document.getElementById("ayuda").setAttribute("aria-current", "page"); function prueba() { alert("prueba"); } var aside = document.getElementById("complementario"); var button = document.createElement("BUTTON"); var text = document.createTextNode("Prueba"); button.appendChild(text); aside.appendChild(button); button...
document.getElementById("ayuda").setAttribute("aria-current", "page"); function prueba() { alert("prueba"); } var aside = document.getElementById("complementario"); var button = document.createElement("BUTTON"); var text = document.createTextNode("Prueba"); button.appendChild(text); aside.appendChild(button); button...
Use capture set to true in onclick event
Use capture set to true in onclick event
JavaScript
mit
nvdaes/nvdaes.github.io,nvdaes/nvdaes.github.io
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
9dc1d156c37c0d7ce8d30451371f1a42a9edd87c
app/assets/javascripts/angular/controllers/pie_ctrl.js
app/assets/javascripts/angular/controllers/pie_ctrl.js
angular.module("Prometheus.controllers").controller('PieCtrl', ["$scope", "$http", "SharedWidgetSetup", function($scope, ...
angular.module("Prometheus.controllers").controller('PieCtrl', ["$scope", "$http", "SharedWidgetSetup", function($scope, ...
Fix incorrect url for pie charts.
Fix incorrect url for pie charts.
JavaScript
apache-2.0
lborguetti/promdash,alonpeer/promdash,juliusv/promdash,jmptrader/promdash,juliusv/promdash,juliusv/promdash,jmptrader/promdash,lborguetti/promdash,jonnenauha/promdash,prometheus/promdash,alonpeer/promdash,prometheus/promdash,thooams/promdash,juliusv/promdash,jmptrader/promdash,jmptrader/promdash,jonnenauha/promdash,jon...
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
34b539fbe0b7af085bfc9a5e497b403694e3ac0e
Dangerfile.js
Dangerfile.js
// CHANGELOG check const hasAppChanges = _.filter(git.modified_files, function(path) { return _.includes(path, 'lib/'); }).length > 0 if (hasAppChanges && _.includes(git.modified_files, "CHANGELOG.md") === false) { fail("No CHANGELOG added.") } const testFiles = _.filter(git.modified_files, function(path) { ret...
// CHANGELOG check const hasAppChanges = _.filter(git.modified_files, function(path) { return _.includes(path, 'lib/'); }).length > 0 if (hasAppChanges && _.includes(git.modified_files, "CHANGELOG.md") === false) { fail("No CHANGELOG added.") } const testFiles = _.filter(git.modified_files, function(path) { ret...
Make test results not sticky
Make test results not sticky
JavaScript
mit
artsy/emission,artsy/eigen,artsy/eigen,artsy/emission,artsy/eigen,artsy/eigen,artsy/eigen,artsy/eigen,artsy/eigen,artsy/emission,artsy/emission,artsy/emission,artsy/emission,artsy/emission
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
929e1be1fb2c7f9d42262cb0c53f39cc4c05b718
app/components/default-clock/component.js
app/components/default-clock/component.js
import Ember from 'ember'; import moment from 'moment'; export default Ember.Component.extend({ // TODO update time regularly classNames: ['component', 'clock'], timeFormat: '24h', formattedTime: function() { // TODO support 12h format let output = new moment().format('H:mm'); return output; }...
import Ember from 'ember'; import moment from 'moment'; export default Ember.Component.extend({ classNames: ['component', 'clock'], timeFormat: '24h', time: new moment(), tick() { let self = this; this.set('time', new moment()); setTimeout(function(){ self.tick(); }, 2000); }, formattedTime:...
Update clock every couple of seconds
Update clock every couple of seconds
JavaScript
agpl-3.0
skddc/dashtab,skddc/dashtab,skddc/dashtab
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...
dd2db0cee5a24f8564a2d306aa9098eba400c1a4
states/level-fail-menu.js
states/level-fail-menu.js
'use strict'; const textUtil = require('../utils/text'); module.exports = { init(nextLevelId, cameraPosition) { this.nextLevelId = nextLevelId; this.cameraPosition = cameraPosition; }, create() { // TODO: Add an overlay to darken the game. this.camera.x = this.cameraPosition.x; this.cam...
'use strict'; const textUtil = require('../utils/text'); module.exports = { init(nextLevelId, cameraPosition) { this.nextLevelId = nextLevelId; this.cameraPosition = cameraPosition; }, create() { // TODO: Fade this in. const overlay = this.add.graphics(); overlay.beginFill(0x000000, 0.5...
Create an overlay to cover the level for the retry menu
Create an overlay to cover the level for the retry menu
JavaScript
mit
to-the-end/to-the-end,to-the-end/to-the-end
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
bbce11a5b7cf71b35d1ab77d48eacd8ddc755b9e
karma.conf.js
karma.conf.js
const options = { frameworks: ['kocha', 'browserify'], files: [ 'packages/karma-kocha/__tests__/*.js' ], preprocessors: { 'packages/karma-kocha/__tests__/*.js': ['browserify'] }, browserify: { debug: true }, reporters: ['progress'], browsers: ['Chrome'], singleRun: true, plugins: [ requi...
const options = { frameworks: ['kocha', 'browserify'], files: [ 'packages/karma-kocha/__tests__/*.js' ], preprocessors: { 'packages/karma-kocha/__tests__/*.js': ['browserify'] }, browserify: { debug: true }, reporters: ['progress'], browsers: ['Chrome'], singleRun: true, plugins: [ requi...
Revert "chore: disable sauce tests for now"
Revert "chore: disable sauce tests for now" This reverts commit 28a0a9db5263bb5408507f520b6fe6aa7404b13b.
JavaScript
mit
kt3k/kocha
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
0d6fd08589942a675b380a03dd1f35b100648ce8
karma.conf.js
karma.conf.js
const base = require('skatejs-build/karma.conf'); module.exports = (config) => { base(config); config.files = [ // React 'https://scontent.xx.fbcdn.net/t39.3284-6/13591530_1796350410598576_924751100_n.js', // React DOM 'https://scontent.xx.fbcdn.net/t39.3284-6/13591520_511026312439094_2118166596_n...
const base = require('skatejs-build/karma.conf'); module.exports = (config) => { base(config); config.files = [ // React 'https://scontent.xx.fbcdn.net/t39.3284-6/13591530_1796350410598576_924751100_n.js', // React DOM 'https://scontent.xx.fbcdn.net/t39.3284-6/13591520_511026312439094_2118166596_n...
Revert "chore: test timeout increase"
Revert "chore: test timeout increase" This reverts commit 844e5e87baa3b27ec0da354805d7c29f46d219d9.
JavaScript
mit
chrisdarroch/skatejs,skatejs/skatejs,skatejs/skatejs,skatejs/skatejs,chrisdarroch/skatejs
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
7f4469c16415a1e2c6b02f750104eced8e1c7554
src/config/server.js
src/config/server.js
import path from 'path'; import fs from 'fs'; export function requestHandler (req, res) { const indexPagePath = path.resolve(__dirname + '/..') + '/index.html'; fs.readFile(indexPagePath, (err, data) => { if (err) { res.writeHead(500); return res.end('Error loading index.html'); } res.writ...
import path from 'path'; import fs from 'fs'; export function requestHandler (req, res) { const indexPagePath = path.resolve(__dirname + '/../..') + '/index.html'; fs.readFile(indexPagePath, (err, data) => { if (err) { res.writeHead(500); return res.end('Error loading index.html'); } res.w...
Correct path for index html file
Correct path for index html file
JavaScript
agpl-3.0
empirical-org/Empirical-Core,empirical-org/Empirical-Core,empirical-org/Empirical-Core,empirical-org/Empirical-Core,empirical-org/Empirical-Core,empirical-org/Empirical-Core,empirical-org/Empirical-Core
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...
22eb68d51eefaefaa8def3b0ef44d4a551babcca
lib/plugin/router/router.js
lib/plugin/router/router.js
"use strict"; const Item = require('./item'); const Handler = require('./handler'); const Plugin = require('../plugin'); const url = require('url'); const {coroutine: co} = require('bluebird'); class Router extends Plugin { constructor(engine) { super(engine); engine.registry.http.incoming.set({id: 'http', ...
"use strict"; const Item = require('./item'); const Handler = require('./handler'); const Plugin = require('../plugin'); const url = require('url'); const {coroutine: co} = require('bluebird'); class Router extends Plugin { constructor(engine) { super(engine); engine.registry.http.incoming.set({id: 'http', ...
Clarify httpResponse check with ===
Clarify httpResponse check with ===
JavaScript
mit
coreyp1/defiant,coreyp1/defiant
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
4b0660934648ff19db30803f5faf84bedfe2c5d2
packages/github/github_client.js
packages/github/github_client.js
Github = {}; // Request Github credentials for the user // @param options {optional} // @param credentialRequestCompleteCallback {Function} Callback function to call on // completion. Takes one argument, credentialToken on success, or Error on // error. Github.requestCredential = function (options, credentialReque...
Github = {}; // Request Github credentials for the user // @param options {optional} // @param credentialRequestCompleteCallback {Function} Callback function to call on // completion. Takes one argument, credentialToken on success, or Error on // error. Github.requestCredential = function (options, credentialReque...
Fix 'popupOptions' typo in 'github'
Fix 'popupOptions' typo in 'github'
JavaScript
mit
EduShareOntario/meteor,daltonrenaldo/meteor,dev-bobsong/meteor,youprofit/meteor,skarekrow/meteor,PatrickMcGuinness/meteor,DCKT/meteor,henrypan/meteor,HugoRLopes/meteor,jdivy/meteor,benjamn/meteor,yalexx/meteor,daltonrenaldo/meteor,youprofit/meteor,Profab/meteor,sitexa/meteor,TribeMedia/meteor,esteedqueen/meteor,yanisIk...
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
5010579e063b1534d77638b08e6f61646d6969c8
tasks/ember-handlebars.js
tasks/ember-handlebars.js
/* * grunt-ember-handlebars * https://github.com/yaymukund/grunt-ember-handlebars * * Copyright (c) 2012 Mukund Lakshman * Licensed under the MIT license. * * A grunt task that precompiles Ember.js Handlebars templates into * separate .js files of the same name. This script expects the * following setup: * *...
/* * grunt-ember-handlebars * https://github.com/yaymukund/grunt-ember-handlebars * * Copyright (c) 2012 Mukund Lakshman * Licensed under the MIT license. * * A grunt task that precompiles Ember.js Handlebars templates into * separate .js files of the same name. This script expects the * following setup: * *...
Change file.src to filesSrc for grunt 0.4.0rc5.
Change file.src to filesSrc for grunt 0.4.0rc5. See https://github.com/gruntjs/grunt/issues/606
JavaScript
mit
yaymukund/grunt-ember-handlebars,gooddata/grunt-ember-handlebars,gooddata/grunt-ember-handlebars
fe3cf35e9c1ba40fe92e0b018bfa55026b6a786d
util/install-bundle.js
util/install-bundle.js
'use strict'; const fs = require('fs'); const cp = require('child_process'); const os = require('os'); const commander = require('commander'); const parse = require('git-url-parse'); const gitRoot = cp.execSync('git rev-parse --show-toplevel').toString('utf8').trim(); process.chdir(gitRoot); commander.command('insta...
'use strict'; const fs = require('fs'); const cp = require('child_process'); const os = require('os'); const commander = require('commander'); const parse = require('git-url-parse'); const gitRoot = cp.execSync('git rev-parse --show-toplevel').toString('utf8').trim(); process.chdir(gitRoot); commander.command('insta...
Fix typo in install bundle script
Fix typo in install bundle script
JavaScript
mit
shawncplus/ranviermud
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
84a3c8c53f6e5c307aacceb91b7caaec7829bb95
src/webapp/api/scripts/importers/exhibit-json-importer.js
src/webapp/api/scripts/importers/exhibit-json-importer.js
/*================================================== * Exhibit.ExhibitJSONImporter *================================================== */ Exhibit.ExhibitJSONImporter = { }; Exhibit.importers["application/json"] = Exhibit.ExhibitJSONImporter; Exhibit.ExhibitJSONImporter.load = function(link, database, cont) { ...
/*================================================== * Exhibit.ExhibitJSONImporter *================================================== */ Exhibit.ExhibitJSONImporter = { }; Exhibit.importers["application/json"] = Exhibit.ExhibitJSONImporter; Exhibit.ExhibitJSONImporter.load = function(link, database, cont) { ...
Allow either a string (a (relative) url) or <link href> object passed to the exhibit json importer.
Allow either a string (a (relative) url) or <link href> object passed to the exhibit json importer.
JavaScript
bsd-3-clause
zepheira/exhibit,zepheira/exhibit,zepheira/exhibit,zepheira/exhibit,zepheira/exhibit,zepheira/exhibit
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
ef35f61e3d19f4afefdf31343434d475a8a0e80f
test/tests/integration/endpoints/facebook-connect-test.js
test/tests/integration/endpoints/facebook-connect-test.js
var torii, container; import buildFBMock from 'test/helpers/build-fb-mock'; import toriiContainer from 'test/helpers/torii-container'; import configuration from 'torii/configuration'; var originalConfiguration = configuration.endpoints['facebook-connect'], originalGetScript = $.getScript, originalFB = window....
var torii, container; import buildFBMock from 'test/helpers/build-fb-mock'; import toriiContainer from 'test/helpers/torii-container'; import configuration from 'torii/configuration'; var originalConfiguration = configuration.endpoints['facebook-connect'], originalGetScript = $.getScript, originalFB = window....
Use appId instead of apiKey
Use appId instead of apiKey
JavaScript
mit
Vestorly/torii,cjroebuck/torii,cibernox/torii,garno/torii,anilmaurya/torii,cjroebuck/torii,Vestorly/ember-tron,image-tester/torii,bantic/torii,rwjblue/torii,raycohen/torii,embersherpa/torii,gnagel/torii,garno/torii,rancher/torii,embersherpa/torii,abulrim/torii,curit/torii,gannetson/torii,anilmaurya/torii,greyhwndz/tori...
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
b14b34b232b4873137ea3f3c7a90f86b9013885a
Libraries/ReactPrivate/ReactNativePrivateInitializeCore.js
Libraries/ReactPrivate/ReactNativePrivateInitializeCore.js
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @format * @flow strict-local */ import '../Core/InitializeCore';
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @format * @flow strict-local */ // TODO: Remove this module when the import is removed from the React renderers. // This modu...
Make runtime initialization from React renderers a no-op
Make runtime initialization from React renderers a no-op Summary: This module is imported by all flavors of the React Native renderers (dev/prod, Fabric/Paper, etc.), which itself imports `InitializeCore`. This is effectively a no-op in most React Native apps because Metro adds it as a module to execute before the ent...
JavaScript
mit
javache/react-native,javache/react-native,janicduplessis/react-native,javache/react-native,javache/react-native,janicduplessis/react-native,facebook/react-native,facebook/react-native,facebook/react-native,facebook/react-native,janicduplessis/react-native,javache/react-native,janicduplessis/react-native,javache/react-n...
dfb9b5b2b45d76a463af38eb6362922bf6ea9f9e
rikitrakiws.js
rikitrakiws.js
var log4js = require('log4js'); var logger = log4js.getLogger(); var express = require('express'); var favicon = require('serve-favicon'); var bodyParser = require('body-parser'); var port = process.env.OPENSHIFT_NODEJS_PORT || 3000; var ipaddress = process.env.OPENSHIFT_NODEJS_IP; var loglevel = process.env.LOGLEVEL |...
var log4js = require('log4js'); var logger = log4js.getLogger(); var express = require('express'); var favicon = require('serve-favicon'); var bodyParser = require('body-parser'); var port = process.env.OPENSHIFT_NODEJS_PORT || 3000; var ipaddress = process.env.OPENSHIFT_NODEJS_IP; var loglevel = process.env.LOGLEVEL |...
Drop header to avoid auth browser popup
Drop header to avoid auth browser popup
JavaScript
mit
jimmyangel/rikitrakiws,jimmyangel/rikitrakiws
e4b7c59821ba71bb49c212e65bc23da3eeaa26a6
app/config.js
app/config.js
var mapboxDataTeam = require('mapbox-data-team'); const config = { 'API_BASE': 'https://api-osm-comments-staging.tilestream.net/api/v1/', 'MAPBOX_ACCESS_TOKEN': 'pk.eyJ1Ijoic2FuamF5YiIsImEiOiI3NjVvMFY0In0.byn_eCZGAwR1yaPeC-SVKw', 'OSM_BASE': 'https://www.openstreetmap.org/', 'STATIC_MAPS_BASE': 'https:...
var mapboxDataTeam = require('mapbox-data-team'); const config = { 'API_BASE': 'https://api-osm-comments-production.tilestream.net/api/v1/', 'MAPBOX_ACCESS_TOKEN': 'pk.eyJ1Ijoic2FuamF5YiIsImEiOiI3NjVvMFY0In0.byn_eCZGAwR1yaPeC-SVKw', 'OSM_BASE': 'https://www.openstreetmap.org/', 'STATIC_MAPS_BASE': 'htt...
Switch to the production endpoint
Switch to the production endpoint
JavaScript
bsd-2-clause
mapbox/osm-comments,mapbox/osm-comments
81d56eb96900ee77e31bd3cfc09751084f076c57
src/containers/toputilizers/components/TopUtilizersForm.js
src/containers/toputilizers/components/TopUtilizersForm.js
import React from 'react'; import PropTypes from 'prop-types'; import { Button } from 'react-bootstrap'; import FontAwesome from 'react-fontawesome'; import ContentContainer from '../../../components/applayout/ContentContainer'; import TopUtilizersSelectionRowContainer from '../containers/TopUtilizersSelectionRowConta...
import React from 'react'; import PropTypes from 'prop-types'; import { Button } from 'react-bootstrap'; import FontAwesome from 'react-fontawesome'; import ContentContainer from '../../../components/applayout/ContentContainer'; import TopUtilizersSelectionRowContainer from '../containers/TopUtilizersSelectionRowConta...
Add key to selection rows
Add key to selection rows
JavaScript
apache-2.0
dataloom/gallery,kryptnostic/gallery,dataloom/gallery,kryptnostic/gallery