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;