Skip to content

Instantly share code, notes, and snippets.

View gavinengel's full-sized avatar

Gavin Engel gavinengel

View GitHub Profile
@MikaelSoderstrom
MikaelSoderstrom / Nightmare-demo.js
Last active July 17, 2025 02:58
Testing with mocha, chai and nightmare.js
var path = require('path');
var Nightmare = require('nightmare');
var should = require('chai').should();
describe('Nightmare demo', function () {
this.timeout(15000); // Set timeout to 15 seconds, instead of the original 2 seconds
var url = 'http://localhost:3000';
describe('Start page', function () {
@ericelliott
ericelliott / essential-javascript-links.md
Last active June 14, 2025 18:43
Essential JavaScript Links
@gavinengel
gavinengel / sudoless-npm.sh
Last active April 30, 2016 22:36
sudoless-npm.sh
#!/bin/sh
# Place npm packages in your home folder without using sudo
# The lazy approach to installing cli npm programs requires sudo (root) access:
# $ sudo npm install -g somenpmpackage
# Of course, I do not recommend installing npm packages with sudo unless it's required.
# This is how I install CLI tools from npm without sudo:
# $ lib
# $ npm install --save somenpmpackage