Skip to content

Instantly share code, notes, and snippets.

View alecrajeev's full-sized avatar

Alec Rajeev alecrajeev

View GitHub Profile
@alecrajeev
alecrajeev / Readme.md
Last active September 5, 2015 23:17
Bernie Sanders Organization by Congressional District

Bernie Sanders Event Attendance by Congressional Districts.

Background on Map

The purpose of this map as detailed on Daily Kos is to represent the congressional districts in the United States accurately. Currently it is difficult to show the districts because some such as those in New York City are very small, while others like Montana are the size of an entire state. Previosly the maps needed to be zoomable to see the districts containing cities. Other representations such as cartograms warped the country's shape. This map attempts to fix that by giving each congressional district equal area i.e. five regular hexagons.

Bernie Sanders Event Data

The data about Bernie Sanders' events comes from the non-affiliated website bernie2016events. The data that I parsed is a about two weeks old, so it is not completely up

@alecrajeev
alecrajeev / README.md
Last active March 26, 2016 08:30
United States Congressional Districts Hexagons

U.S. Congressional Districts as Hexagons.

Background

The purpose of this map as detailed on Daily Kos is to represent the congressional districts in the United States accurately. Currently it is difficult to show the districts because some such as those in New York City are very small, while others like Montana are the size of an entire state. Previosly the maps needed to be zoomable to see the districts containing cities. Other represntations such as cartograms warped the country's shape. This map attempts to fix that by giving each congressional district equal area i.e. five regular hexagons.

According to the original Daily Kos article, the map was built by Daniel Donner.

Porting the Map

I did not design the map. This project's purpose is to port the map to a more useable format. I ported the map t

@alecrajeev
alecrajeev / barley.tsv
Last active August 29, 2015 14:24
A graphs of Barley farming at different sites
yield variety year site
27 Manchuria 1931 University Farm
48.86667 Manchuria 1931 Waseca
27.43334 Manchuria 1931 Morris
39.93333 Manchuria 1931 Crookston
32.96667 Manchuria 1931 Grand Rapids
28.96667 Manchuria 1931 Duluth
43.06666 Glabron 1931 University Farm
55.2 Glabron 1931 Waseca
28.76667 Glabron 1931 Morris
@alecrajeev
alecrajeev / index.html
Last active August 29, 2015 14:23
Job's Change
<!DOCTYPE html>
<meta charset="utf-8">
<title>Job's Numbers </title>
<style>
svg {
border: 1px solid #f0f;
}
rect:hover {