Skip to content

Instantly share code, notes, and snippets.

View elsherbini's full-sized avatar

Joseph Elsherbini elsherbini

View GitHub Profile
@elsherbini
elsherbini / README.md
Last active September 8, 2015 18:07 — forked from mbostock/.block
Apollonius’ Problem II

Apollonius’ problem is to compute the circle that is tangent to three given circles. There are up to eight such circles.

Drag the circles to see the tangent circles change.

@elsherbini
elsherbini / README.md
Last active August 29, 2015 13:57 — forked from renecnielsen/README.md
Carte de la Francophonie

Modifying renecn's visualization based on Mike Bostock's D3 World Tour. I am making an interactive map of La Francophonie for a french teacher (my mom) to use in classes.

In order to use this code yourself to make a similar map, change the francophonie.csv file to be a file with the data of the countries you wish to highlight. All you need is an id, name, language, population, and note column. You can find the id for countries here. The id is a magic number that gets crosslisted with the map, so the number must correspond to the correct country. You can make a csv file using excel or another spreadsheet program (just "save as -> csv"). Then, in the tour.js file, just change "francophonie.csv" to the new file name (or you can just save your new file as francophonie.csv to save yourself the trouble).