Skip to content

Instantly share code, notes, and snippets.

View rtfeldman's full-sized avatar

Richard Feldman rtfeldman

View GitHub Profile
@rtfeldman
rtfeldman / gist:a66135b8ad0a446473ba
Created July 9, 2014 18:18
Fibonacci in Haskell
fibonacci 0 = 0
fibonacci 1 = 1
fibonacci n = fibonacci (n - 1) + fibonacci (n - 2)
inc x = x + 1
log str = console.log str
console.log (inc 5)
log 500
// Output:
var inc = function (x) {
return x + 1;
};
@rtfeldman
rtfeldman / gist:2433334
Created April 21, 2012 02:25
Replaces netflix.com's painful scrolling behavior with normal scroll bars using the Stylebot Chrome extension: http://bit.ly/fNacLp
/*
* Paste this CSS into the Stylebot Chrome Extension ( http://bit.ly/fNacLp )
* to get normal horizontal scroll bars on netflix.com instead of its current
* eye-searing nausea-inducing hover-to-scroll monstrosity.
*
* Sweet relief!
*
* Released to the public domain by Richard Feldman - @rtfeldman on Twitter
*/