Skip to content

Instantly share code, notes, and snippets.

@mickeykedia
mickeykedia / README.md
Last active June 3, 2016 14:42 — forked from enjalot/README.md
matrix: reboot

Forked from enjalot's amazing block on Matrix Rotations !

Matrix: reboot

Remaking http://ncase.me/matrix/ with SVG and d3.js

This technical experiment currently lacks the finesse and wistfulness of the original. I'm most inspired by the genius (yet obvious in retrospect) technique of showing both the original point and the transformed point connected by a line. Even the idea to use a letter is brilliant to me: it is familiar and intuitive, it allows for discrete sampling without introducing other concepts like pixels.

My hope is that by going through the exercise of making it more data-driven I can expand on the concept to introduce things like rotation. Perhaps using d3 will also make the code more concise, but that's not certain as the original is relatively short.

I'm still working on porting all of the original interactions, but I'm quite pleased with the work in progress.

@mickeykedia
mickeykedia / .block
Created May 7, 2016 15:06 — forked from mbostock/.block
Stroke Dash Interpolation
license: gpl-3.0
@mickeykedia
mickeykedia / index.html
Created April 22, 2016 17:14
Simple Line Chart with Color Gradient
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.12/d3.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.10.6/moment.min.js"></script>
<style>
body {
font-family: futura;
width: 960px;
@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;
@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 / .block
Created April 18, 2016 02:47 — forked from mbostock/.block
Chained Transitions
license:gpl-3.0
@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 / 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
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 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) {