Instructions for importing the recently released medicare data...
- Download the tab-delimited file
- Unzip the file
tail -n +3 Medicare-Physician-and-Other-Supplier-PUF-CY2012.txt > /tmp/medicare_data.txt
psql < import.sql
So easy! :)
### Keybase proof | |
I hereby claim: | |
* I am kindkid on github. | |
* I am kindkid (https://keybase.io/kindkid) on keybase. | |
* I have a public key whose fingerprint is 5E15 9AD2 9365 AC8F 8464 E973 A48B BBD3 8C05 FAAC | |
To claim this, I am signing this object: |
import re | |
import os | |
import sys | |
import time | |
import signal | |
from contextlib import contextmanager | |
@contextmanager | |
def timeout(seconds, exceptionClass): | |
old_alarm = signal.alarm(seconds) |
Instructions for importing the recently released medicare data...
tail -n +3 Medicare-Physician-and-Other-Supplier-PUF-CY2012.txt > /tmp/medicare_data.txt
psql < import.sql
So easy! :)
# Happy 3.14! | |
# | |
# http://www.cs.ox.ac.uk/jeremy.gibbons/publications/spigot.pdf | |
import sys | |
import time | |
def piG3(): | |
q, r, t, i = 1, 180, 60, 2 | |
while True: |
def extr(a,x) | |
q,r,s,t = a | |
((q.to_r * x + r.to_r) / (s.to_r * x + t.to_r)) | |
end | |
def comp(a,b) | |
q,r,s,t = a | |
u,v,w,x = b | |
[q*u+r*w, q*v+r*x, s*u+t*w, s*v+t*x] | |
end |