python -m SimpleHTTPServer
This file contains 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
<snippet> | |
<content><![CDATA[console.dir(${1:});]]></content> | |
<tabTrigger>dir</tabTrigger> | |
<scope>source.js</scope> | |
<description>console.dir()</description> | |
</snippet> |
This file contains 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
-webkit-overflow-scrolling: touch; |
This file contains 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
<html> | |
<head> | |
<style> | |
... | |
#subcontainer { | |
height:100%; | |
overflow-y: auto; | |
} | |
... | |
</style> |
This file contains 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
<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); |
This file contains 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
/* | |
Looking for "and". | |
Markup is the following: | |
<body> | |
<div id="text">Pride and Prejudice</div> | |
</body> | |
*/ | |
var range = { |
This file contains 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
{ | |
"describe", | |
"xdescribe", | |
"it", | |
"xit", | |
"before", | |
"after", | |
"beforeEach", | |
"afterEach", | |
"expect", |
This file contains 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
console.log(util.inspect(body, false, null)); |
python -m SimpleHTTPServer
#How to install node.js and CouchDB on a Google Compute Engine 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).