Skip to content

Instantly share code, notes, and snippets.

View landonconover's full-sized avatar

Landon Conover landonconover

View GitHub Profile

##Fixing npm permissions

You may receive an EACCES error when you try to install a package globally. This indicates that you do not have permission to write to the directories that npm uses to store global packages and commands.

You can fix this problem using one of three options:

Change the permission to npm's default directory. Change npm's default directory to another directory. Install Node with a package manager that takes care of this for you. You should back-up your computer before moving forward.

@joseph
joseph / touch_hound.js
Created October 13, 2014 16:41
TouchHound translates touch events back into iframes, for iOS8 home screen app workaround
define(function (require) {
var Gala = require('gala');
var C = require('common');
var TouchHound = function (element) {
this._ = {};
this._.element = element;
var handle = this._handleEvent.bind(this);
this._.handler = new Gala.ContactHandler(