Skip to content

Instantly share code, notes, and snippets.

View nickbaldwin's full-sized avatar

Nick Baldwin nickbaldwin

View GitHub Profile
@nickbaldwin
nickbaldwin / 0_reuse_code.js
Created January 15, 2014 04:39
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
/*
* http://net.tutsplus.com/tutorials/javascript-ajax/responsive-screenshots-with-casper/
*
* INSTALL:
* brew install phantomjs
* brew install casperjs
*
* RUN:
* casperjs screenshot.js http://todomvc.com
*/
<!DOCTYPE html>
<html lang="en"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:og="http://ogp.me/ns"
xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta charset="utf-8">
<!--[if lt IE 7]><html class="no-js ie6"><![endif]-->
<!--[if IE 7]><html class="no-js ie7"><![endif]-->