Skip to content

Instantly share code, notes, and snippets.

@bycoffe
bycoffe / house_results_2012.csv
Last active December 16, 2015 00:39
Using topojson.mesh to toggle between congressional districts and counties.
district county candidate party votes
1 Beaufort Tim Scott REP 40460
1 Berkeley Tim Scott REP 36875
1 Charleston Tim Scott REP 72120
1 Colleton Tim Scott REP 540
1 Dorchester Tim Scott REP 29913
1 Beaufort Keith Blandford LIB 1218
1 Berkeley Keith Blandford LIB 1133
1 Charleston Keith Blandford LIB 3009
1 Colleton Keith Blandford LIB 9
Mr. LaTOURETTE. And I want to be clear because when I mentioned this
earlier, the Humane Society got upset with me. I'm not saying that this
is a bad piece of legislation. But what I'm saying is, for crying out
loud, when people want to know where the jobs are, why are we debating
the Monkey Safety Act? I don't get it. But you get down into March now.
And so again, hundreds of thousands of people are out of work. And you
would say, surely, we're going to talk about a jobs piece of
legislation in the House of Representatives. But when we get into
March, the most important thing that they could come up with was the
Shark Conservation Act. And, again, I like sharks. I don't like to swim
This file has been truncated, but you can view the full file.
{"type":"Topology","transform":{"scale":[0.03591269126912692,0.008605160516051607],"translate":[-179.231,-14.602]},"objects":{"congressional_districts_geojson":{"type":"GeometryCollection","geometries":[{"type":"Polygon","arcs":[[0,1,2,3,4,5,6,7]],"properties":{"state":"IA","district":"4"}},{"type":"Polygon","arcs":[[8,9,10,11,12,-2,13]],"properties":{"state":"IA","district":"3"}},{"type":"Polygon","arcs":[[14,15,16,-14,-1,17,18]],"properties":{"state":"IA","district":"2"}},{"type":"Polygon","arcs":[[19,-18,-8,20,21,22]],"properties":{"state":"IA","district":"1"}},{"type":"Polygon","arcs":[[23,24,25,26,27,28]],"properties":{"state":"IN","district":"1"}},{"type":"Polygon","arcs":[[29,30,-24,-29,31,32]],"properties":{"state":"IN","district":"2"}},{"type":"Polygon","arcs":[[33,34,35,-33,36,37,38]],"properties":{"state":"IN","district":"3"}},{"type":"Polygon","arcs":[[39,40,41,42,43,44,45,-25,46,-31]],"properties":{"state":"IN","district":"4"}},{"type":"Polygon","arcs":[[47,-40,-30,-36,48]],"properties":{"state":
<!doctype html>
<html>
<head>
</head>
<body>
<button id="animate">Animate</button>
2012-01-24,WINNING OUR FUTURE,5000000.00
2012-02-15,CONGRESSIONAL LEADERSHIP FUND,2500000.00
2012-02-17,WINNING OUR FUTURE,2500000.00
2012-03-21,WINNING OUR FUTURE,5000000.00
2012-04-30,YG ACTION FUND,2500000.00
2012-06-14,"RESTORE OUR FUTURE, INC.",5000000.00
2012-07-27,PATRIOT PROSPERITY POLITICAL ACTION COMMITTEE,250000.00
2012-10-05,"RESTORE OUR FUTURE, INC.",5000000.00
2012-10-11,ENDING SPENDING ACTION FUND,500000.00
2012-10-11,TREASURE COAST JOBS COALITION,250000.00
@bycoffe
bycoffe / gist:4156859
Created November 27, 2012 20:40
Number easing with d3
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
h1 {
margin-left: 20px;
margin-top: 20px;
font-family: Helvetica, Arial, sans-serif;
font-size: 50px;
}
require 'daybreak'
require 'fech'
db = Daybreak::DB.new 'filings.db'
Fech::Search.new(:date => Date.today).results.each do |result|
db[result.filing_id] = result.filing(:csv_parser => Fech::CsvDoctor).download.rows_like(//)
end
@bycoffe
bycoffe / README.md
Created October 20, 2012 21:17
xkcd-style Pollster charts in d3
@bycoffe
bycoffe / README.md
Created October 20, 2012 18:14
xkcd-style pollster charts in d3
<!doctype html>
<html>
<head>
<style type="text/css">
#number {
font-family: Helvetica, Arial, sans-serif;
font-size: 100px;
}
</style>
</head>