Skip to content

Instantly share code, notes, and snippets.

View madelfio's full-sized avatar
✈️

Marco Adelfio madelfio

✈️
  • The MITRE Corporation
  • Washington, DC
View GitHub Profile
@madelfio
madelfio / index.html
Last active August 29, 2015 14:18 — forked from zross/index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7/leaflet.css" />
<script src="http://d3js.org/d3.v3.min.js" type="text/javascript"></script>
<script src="http://cdn.leafletjs.com/leaflet-0.7/leaflet.js"></script>
<script src='https://api.tiles.mapbox.com/mapbox.js/v1.6.4/mapbox.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox.js/v1.6.4/mapbox.css' rel='stylesheet' />
@madelfio
madelfio / README.md
Last active August 29, 2015 14:12
Color Testing...

Testing out the Lab color space.

Each square represents a cross-section of the Lab color space with a different lightness value (from 5 to 100). The a and b values vary along the x and y dimensions, respectively (from -100 to 100).

These ranges capture most of the L, a, b combinations that map to valid RGB values (between 0 and 255).

@madelfio
madelfio / .gitignore
Last active August 29, 2015 14:04
Train Viz
sample-data/
@madelfio
madelfio / README.md
Last active August 29, 2015 14:02 — forked from mbostock/.block
Measuring Country Size by Projected Area
@madelfio
madelfio / README.md
Last active August 29, 2015 14:01
Itineraries II

Visualization of a simulated annealing algorithm for laying out itineraries. Each rectangle contains an ordered set of stops (an "itinerary") to be rendered. The algorithm searches for an appropriate layout by modifying the curvature of lines between consecutive stops and the positions of the stop labels. Layouts are penalized for intersections between elements, extending outside of the bounding rectangle, and violating other aesthetic criteria. A new layout is accepted if it is better than the previous layout or with some probability that tends to 0 if it is worse.

Simulated annealing avoids the cost of an exhaustive brute-force approach,

@madelfio
madelfio / d3.v3.js
Last active August 29, 2015 14:01
Itineraries
d3 = function() {
var d3 = {
version: "3.2.1"
};
if (!Date.now) Date.now = function() {
return +new Date();
};
var d3_document = document, d3_documentElement = d3_document.documentElement, d3_window = window;
try {
d3_document.createElement("div").style.setProperty("opacity", 0, "");
@madelfio
madelfio / README.md
Last active August 29, 2015 14:00
Table Decomposition

A visualization of table decomposition. This visualization uses "phantom" table rows and cells to demonstrate decomposition boundaries.

@madelfio
madelfio / .gitignore
Last active August 29, 2015 13:58
U.S. Rail II
build/
@madelfio
madelfio / .gitignore
Last active August 29, 2015 13:58
U.S. Rail
build/
@madelfio
madelfio / README.md
Last active August 29, 2015 13:56
NewsStand QuickView