http://james.padolsey.com/javascript/get-document-height-cross-browser/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Usage: | |
// var express = require('express') | |
// require('enableMultipleViewRoots')(express) | |
module.exports = function(express) { | |
var old = express.view.lookup; | |
function lookup(view, options) { | |
// If root is an array of paths, let's try each path until we find the view | |
if (options.root instanceof Array) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
var expect = require('chai').expect; | |
describe('Page testing', function () { | |
it('Page title test.', function (done) { | |
browser | |
.url('http://127.0.0.1:8000') | |
//.setValue('#js-command-bar-field', 'grunt-webdriver') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TypeError: Property 'handle' of object #<Object> is not a function | |
at next_layer (/Users/Adminstrator/Desktop/node-startup/node_modules/express/lib/router/route.js:97:11) | |
at Route.dispatch (/Users/Adminstrator/Desktop/node-startup/node_modules/express/lib/router/route.js:98:5) | |
at c (/Users/Adminstrator/Desktop/node-startup/node_modules/express/lib/router/index.js:196:24) | |
at Function.proto.process_params (/Users/Adminstrator/Desktop/node-startup/node_modules/express/lib/router/index.js:255:12) | |
at next (/Users/Adminstrator/Desktop/node-startup/node_modules/express/lib/router/index.js:190:19) | |
at next_layer (/Users/Adminstrator/Desktop/node-startup/node_modules/express/lib/router/route.js:77:14) | |
at next_layer (/Users/Adminstrator/Desktop/node-startup/node_modules/express/lib/router/route.js:81:14) | |
at Route.dispatch (/Users/Adminstrator/Desktop/node-startup/node_modules/express/lib/router/route.js:98:5) | |
at c (/Users/Adminstrator/Desktop/node-startup/node_modules/express/lib/rout |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var webdriverjs = require('../index'), | |
client = webdriverjs.remote({ | |
desiredCapabilities: { | |
browserName: 'chrome', | |
version: '27', | |
platform: 'XP', | |
tags: ['examples'], | |
name: 'This is an example test' | |
}, | |
host: 'ondemand.saucelabs.com', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! d3.chart - v0.2.0 | |
* License: MIT Expat | |
* Date: 2014-02-21 | |
*/ | |
module.exports = function(D3) { | |
"use strict"; | |
/*jshint unused: false */ | |
var d3 = D3; | |
var hasOwnProp = Object.hasOwnProperty; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
requirements_file = 'base.pip' | |
requirements = open(requirements_file, 'r') | |
content = requirements.read().splitlines() | |
content = list(set(content)) | |
content.sort(key=lambda y: y.lower()) | |
content = '\n'.join(content) | |
file = open('sorted_'+requirements_file, 'w') | |
file.write(content) |
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Description: | |
// Adds this._super method to objects that are extended and have the | |
// same function, keeps original function as reference on this._super | |
var _ = require('underscore'); | |
_.extendWithSuper = function(obj) { | |
if (!_.isObject(obj)) return obj; | |
var source, prop; | |
for (var i = 1, length = arguments.length; i < length; i++) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
```` | |
Michaels-Air-2:industryweek-node michaelbenin$ npm i | |
npm WARN package.json [email protected] querystring is also the name of a node core module. | |
> [email protected] install /Users/michaelbenin/Projects/industryweek-node/node_modules/core-services-sdk/node_modules/core-service-discovery/node_modules/zkplus/node_modules/bunyan/node_modules/dtrace-provider | |
> node-gyp rebuild | |
child_process: customFds option is deprecated, use stdio instead. | |
ACTION binding_gyp_libusdt_target_build_libusdt . | |
Building libusdt for x86_64 |