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 / README.md
Last active December 26, 2015 04:39
Map Markers

A MapMarker widget for Google Maps API markers. Transitions are smooth even while zooming.

@madelfio
madelfio / README.md
Last active December 20, 2015 07:09
Schema Extraction

Output of the schema extraction process.

@madelfio
madelfio / README.md
Last active December 19, 2015 19:28
Loose Quadtree Illustration

Demonstrates the relationship between rectangles and their enclosing quadtree blocks, for a loose quadtree with variable size and expansion factor.

@madelfio
madelfio / README.md
Last active December 19, 2015 18:59
Multiple Voronois

Shows multiple overlaid Voronoi diagrams, given multiple point sets.

@madelfio
madelfio / README.md
Last active December 19, 2015 07:59
most common city names in US
     name     | cnt | minpop | maxpop 
--------------+-----+--------+--------
 Franklin     |  32 |     92 |  62487
 Fairview     |  30 |     60 |  13835
 Clinton      |  28 |     41 |  99753
 Salem        |  27 |     91 | 154637
 Madison      |  25 |    204 | 233209
 Greenville   |  24 |     75 |  84554
 Georgetown   |  24 |    124 |  47400

Marion | 24 | 133 | 36837

@madelfio
madelfio / binning.js
Created September 17, 2012 18:23
Logarithmic Binning
'use strict';
var x_range = [1, 32],
y_range = [0, x_range[1]];
var margin = {top: 30, bottom: 60, left:110, right: 10},
base_width = 960,
base_height = 470,
width = base_width - margin.left - margin.right,
height = base_height - margin.top - margin.bottom;
@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