| package drum | |
| import ( | |
| "bytes" | |
| "encoding/binary" | |
| "fmt" | |
| "io" | |
| "os" | |
| "strconv" | |
| "strings" |
| all: results.csv | |
| results.csv: scrape.py | |
| python $< > $@.tmp | |
| mv $@.tmp $@ | |
| clean: | |
| -rm -f results.csv | |
| .PHONY : clean |
| ward | precinct | candidate | votes | |
|---|---|---|---|---|
| 1 | 1 | Rahm Emanuel | 61 | |
| 1 | 1 | Willie Wilson | 5 | |
| 1 | 1 | Robert W. Fioretti | 11 | |
| 1 | 1 | Jesus "Chuy" Garcia | 115 | |
| 1 | 1 | William Walls, III | 2 | |
| 1 | 2 | Rahm Emanuel | 55 | |
| 1 | 2 | Willie Wilson | 10 | |
| 1 | 2 | Robert W. Fioretti | 12 | |
| 1 | 2 | Jesus "Chuy" Garcia | 107 |
| diff --git a/funcs.h b/funcs.h | |
| index 5780af7..d99a5da 100644 | |
| --- a/funcs.h | |
| +++ b/funcs.h | |
| @@ -18,7 +18,7 @@ namespace funcs { | |
| #include "funcs/if.h" | |
| #include "funcs/array.h" | |
| #include "funcs/sort.h" | |
| -#include "funcs/reverse.h" | |
| +//#include "funcs/reverse.h" |
| CC=clang | |
| CXX=clang++ | |
| all: sum | |
| sum.o: sum.c | |
| $(CC) -g `llvm-config --cflags` -c $< | |
| sum: sum.o | |
| $(CXX) `llvm-config --cxxflags --ldflags --libs core executionengine jit interpreter analysis native --system-libs` $< -o $@ |
| #!/bin/bash | |
| # | |
| # Copyright 2014 Paul Smith | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. | |
| # You may obtain a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 | |
| # |
The Centers for Medicare and Medicaid Services (CMS) today released a 9m row dataset detailing payment data about doctors and other providers who get paid by Medicare. [Read more about the release.][2]
The data, along with a description PDF, is [here][1], and it's roughly 400MB zipped, 1.3GB unzipped, tab-delimited.
I stashed the tab-delimited [data file itself on S3][3], it's public, you can grab it.
It's not a huge file, so you could load it with the schema I made into a local pgsql instance on your laptop, but it's fun to play around with it on AWS Redshift. To load it in Redshift, start up a cluster, connect to it with psql, execute the schema SQL, and run the following commands:
dev=# copy medicare_physician from 's3://paulsmith/medicare/medicare.txt.gz' credentials 'aws_access_key_id=<YOUR ACCESS KEY>;aws_secret_access_key=<YOUR SECRET KEY>' delimiter '\t' gzip ignoreheader 1;
Adapted from "Roberta's," by Carlo Mirarchi, Brandon Hoy, Chris Parachini and Katherine Wheelock.
By SAM SIFTON
SUMMARY
This recipe, adapted from Roberta’s, the pizza and hipster haute-cuisine utopia in Bushwick, Brooklyn, provides a delicate, extraordinarily flavorful dough that will last in the refrigerator for up to a week. It rewards close attention to weight rather than volume in the matter of the ingredients, and asks for a mixture of finely ground Italian pizza flour (designated “00” on the bags and available in some supermarkets, many specialty groceries and always online) and regular all-purpose flour. As ever with breads, rise time will depend on the temperature and humidity of your kitchen and refrigerator.