Skip to content

Instantly share code, notes, and snippets.

View varrunr's full-sized avatar
💭
Hacking

Varrun Ramani varrunr

💭
Hacking
  • San Francisco, CA
View GitHub Profile
anonymous
anonymous / sad-story-cali-tax.py
Created December 15, 2012 03:01
The sad story of California taxes
>>> def statetax(x): return .093 * x ...
>>> def fedtax(x): return (0.1*(8700) + 0.15*(35350 - 8701) + 0.25*(85650 - 35351) + 0.28*(x - 85651))
>>> def tax(x): print "fedtax:" + str(fedtax(x)); print "statetax: " + str(statetax(x)); return (fedtax(x) + statetax(x));
>>> def moneyleft(x): return (x - tax(x))...
>>> def moneylost(x): return tax(x)
>>> def thisissosad(x): return moneylost(x)
>>> income = 100000
>>> thisissosad(income)
fedtax:21459.82
statetax: 9300.0
@reddragon
reddragon / gist:4161673
Created November 28, 2012 14:34
Reading List
Now Reading
-----------
The Google File System
(http://static.googleusercontent.com/external_content/untrusted_dlcp/research.google.com/en/us/archive/gfs-sosp2003.pdf)
[November 28, 2012]
Next Up
-------
Big Table
Dremel