Skip to content

Instantly share code, notes, and snippets.

View aronwoost's full-sized avatar

Aron Woost aronwoost

View GitHub Profile
@aronwoost
aronwoost / dir.sublime-snippet
Created March 26, 2012 12:14
Sublime Text 2 snippet for console.dir() TAB completion
<snippet>
<content><![CDATA[console.dir(${1:});]]></content>
<tabTrigger>dir</tabTrigger>
<scope>source.js</scope>
<description>console.dir()</description>
</snippet>
-webkit-overflow-scrolling: touch;
<html>
<head>
<style>
...
#subcontainer {
height:100%;
overflow-y: auto;
}
...
</style>
<script type="text/javascript">
document.addEventListener("touchmove", function(evt){
evt.preventDefault();
}, false);
var container = document.getElementById("container");
container.addEventListener("touchmove", function(evt){
evt.stopPropagation();
}, false);
@aronwoost
aronwoost / example1.js
Created July 30, 2012 19:43
Pseudo example code for saving text fragments in HTML (or epubs)
/*
Looking for "and".
Markup is the following:
<body>
<div id="text">Pride and Prejudice</div>
</body>
*/
var range = {
@aronwoost
aronwoost / gist:3755801
Created September 20, 2012 13:09
JSHint global's for tests with Mocha, expect.js and sinon.JS (work in progress)
{
"describe",
"xdescribe",
"it",
"xit",
"before",
"after",
"beforeEach",
"afterEach",
"expect",
@aronwoost
aronwoost / gist:4027441
Created November 6, 2012 20:50
log object
console.log(util.inspect(body, false, null));
@aronwoost
aronwoost / README.md
Last active April 3, 2019 11:22
HTML base template

python -m SimpleHTTPServer

@aronwoost
aronwoost / README.md
Last active December 18, 2015 17:19
Backbone base template

python -m SimpleHTTPServer

@aronwoost
aronwoost / README.md
Last active July 16, 2018 08:15
How to install node.js and CouchDB on a Google Compute Engine instance

#How to install node.js and CouchDB on a Google Compute Engine instance

Start and ssh into instance

Make sure you have a Google Compute engine account, have a project created and the gcutil command line tool installed.

Since want to ssh without the gcutil tool, you need to a your ssh key to the instance in addition to the already existing google_compute_engine key (used for gcutil).