Skip to content

Instantly share code, notes, and snippets.

@jdpaton
jdpaton / humans.txt
Created September 29, 2012 07:58 — forked from ryanflorence/static_server.js
Node.JS + Foundation CSS static file web server. Put it in your path to fire up servers in any directory, takes an optional port argument.
/* Foundation was made by ZURB, an interaction design and design strategy firm in Campbell, CA */
/* zurb.com */
/* humanstxt.org */
/* SITE */
Standards: HTML5, CSS3
Components: jQuery, Orbit, Reveal
Software: Coda, Textmate, Git
@jdpaton
jdpaton / gist:2210886
Created March 27, 2012 00:09
Generate a random lowercase string with at least one number
python -c "import random; x = [random.choice('23456789') for x in range(1)] + [ random.choice('abcdefghjkmnpqrstwxyz') for x in range(3)]; random.shuffle(x); print ''.join(x)"
@jdpaton
jdpaton / gist:1185359
Created September 1, 2011 03:24
NPM & HTTPS & Local caching Proxy
npm ERR! registry error parsing json
npm ERR! SyntaxError: Unexpected token ILLEGAL
npm ERR! <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
npm ERR! <html><head>
npm ERR! <title>Proxy error: 400 Couldn't parse URL.</title>
npm ERR! </head><body>
npm ERR! <h1>400 Couldn't parse URL</h1>
npm ERR! <p>The following error occurred while trying to access <strong>https://registry.npmjs.org/request</strong>:<br><br>
npm ERR! <strong>400 Couldn't parse URL</strong></p>
npm ERR! <hr>Generated Wed, 31 Aug 2011 20:22:34 PDT by Polipo on <em>Manitoba:8123</em>.