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
Last active May 15, 2016 05:21
EPL Twitter - Tweets during matches
license: gpl-3.0
height: 2910
border: no
@mickeykedia
mickeykedia / .block
Last active May 8, 2016 04:17
Calendar View - Explanation of code
license: gpl-3.0
height: 2910
border: no
@mickeykedia
mickeykedia / .block
Created May 7, 2016 15:06 — forked from mbostock/.block
Stroke Dash Interpolation
license: gpl-3.0
@mickeykedia
mickeykedia / README.md
Last active May 6, 2016 19:31
Bird Swing Graph for Elections

Bird Swing Graph

A graph for showing how close election results are for a particular political party in a set of constituencies.

The green bars represent seats that the party has won (or is leading in), and the black bars represent the seats that the party has lost (or is trailing in).

The bars are further color coded according to the party's performance last time.

  • Dark green bars represent constituencies in which the party lost the last time (swing seats)
@mickeykedia
mickeykedia / Mumbai_Topojson.topojson
Last active May 2, 2016 05:21
Mumbai Population Density Map
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@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