Skip to content

Instantly share code, notes, and snippets.

@mickeykedia
mickeykedia / README.md
Last active March 29, 2016 23:35
MSAN 622 Homework 2: Javascript Anagrams (4/24)

Due 5pm PST Tuesday 3/29

For this homework you will submit as a fork of this gist

Create a Javascript function to find asociated anagrams in an input list of strings. For the input list, output every string (only once) that has an associated anagram elsewhere in the input list. See an example input and output below:

input_list = ['man', 'list', 'acme', 'talk', 'cat', 'beach', 'came', 'tac', 'naan', 'slit', 'act']

var anagram_finder = function(list) {
@mickeykedia
mickeykedia / README.md
Last active April 6, 2016 04:00
Indian subcontinent basic Map

Made by adapting the example given at Let's Make a Map to India. The Map looks better and more complete on a complete browser page than over here.

Adjust the scale in the projection to play with how the map appears

Changed the extraction of map subunit from UK to India by changing the following code

ogr2ogr \
-f GeoJSON \
-where "ADM0_A3 IN ('IND', 'PAK', 'LKA', 'BGD')" \

subunits.json \

@mickeykedia
mickeykedia / README.md
Last active April 12, 2016 23:24
GDP Data from India: Learning D3.js (part 1)

GDP Data for India over the years. Simple bar chart example

@mickeykedia
mickeykedia / README.md
Last active April 13, 2016 07:55
SF Precincts
id pct_2012 precinct_names neighborhood yes_percentage
84006075PCT1101 1101 Pct 1101 EXCELSIOR 0.53
84006075PCT1102 1102 Pct 1102/1103 EXCELSIOR 0.48
84006075PCT1103 1103 NA EXCELSIOR NA
84006075PCT1104 1104 Pct 1104/1105 EXCELSIOR 0.5
84006075PCT1105 1105 NA EXCELSIOR NA
84006075PCT1106 1106 Pct 1106/1107 INGLESIDE 0.43
84006075PCT1107 1107 NA INGLESIDE NA
84006075PCT1108 1108 NA INGLESIDE NA
84006075PCT1109 1109 Pct 1109/1108 INGLESIDE 0.48
@mickeykedia
mickeykedia / README.md
Created April 13, 2016 03:16 — forked from boeric/README.md
Mapbox GL Synced Dual Maps

Mapbox GL Synced Dual Maps

The visualization demonstrates how to syncronize the state of two side-by-side Mapbox GL based maps. As the user interacts with one of the two maps, the state of the map (center position, zoom level, pitch and bearing) is dynamically copied to the second map (and vice versa). The code also demonstrates how to prevent call stack overflow due to recursive event handler triggering when the map state is updated.

The dataset is based on driver license suspensions from California DMV and East Bay Community Law Center. See prior visualization here

See the script in action at bl.ocks.org/boeric here, and fullscreen here

@mickeykedia
mickeykedia / README.md
Created April 14, 2016 21:33
Strata Interactive Data Visualization: Exercise 3

These are the materials for my workshop at Strata San Jose 2015 as well as resources and next steps. Videos of the workshop can be found here.

We will be using the following two tools to works through these exercises:

I would love your feedback on the materials either on the Q&A forum (Google Group) or in the Github issues.

And please do not hesitate to reach out to me directly via email at jondinu@gmail.com or over twitter @clearspandex

@mickeykedia
mickeykedia / .block
Created April 18, 2016 02:47 — forked from mbostock/.block
Chained Transitions
license:gpl-3.0
@mickeykedia
mickeykedia / .block
Last active April 21, 2016 02:48 — forked from mbostock/.block
EPL Rankings Over the Season
license: gpl-3.0
@mickeykedia
mickeykedia / index.html
Created April 20, 2016 06:22 — forked from methodofaction/index.html
Animate path in D3
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<style type="text/css">
#line{
width: 700px;
margin: 20px 0;
height: 300px;
background: #eee;