Skip to content

Instantly share code, notes, and snippets.

@joshj
joshj / server.js
Created February 28, 2012 16:58 — forked from jeffrafter/server.js
Twitter OAuth with node-oauth for node.js+express
/*
Node.js, express, oauth example using Twitters API
Install Node.js:
curl -0 http://nodejs.org/dist/v0.6.11/node-v0.6.11.tar.gz
tar -zxf node-v0.6.11.tar.gz
cd node-v0.6.11
./configure
make
make install
@joshj
joshj / lazy_parse_int.js
Created February 3, 2012 16:54 — forked from nathansmith/parseint.js
Makes parseInt have default radix of 10.
// JSLint:
/*global window, _parseInt, parseInt*/
// Conditionally check value, in case
// future implementations of parseInt
// provide native base-10 by default.
if (window.parseInt('09') === 0) {
window._parseInt = window.parseInt;
window.parseInt = function(str, radix) {