Skip to content

Instantly share code, notes, and snippets.

View LuisSevillano's full-sized avatar

Luis Sevillano LuisSevillano

View GitHub Profile
@explunit
explunit / README.md
Created May 18, 2013 04:31
D3.js tree with "drag near" logic

Use a larger transparent shape as an alternative to intersection or collision detection when dragging a node. Sparked by this StackOverflow question

@explunit
explunit / README.md
Created July 25, 2013 18:20
Chained transitions between points on a path/line
@avimoondra
avimoondra / index.html
Last active September 26, 2016 15:45
Quantile-Quantile Plot (Load Test)
<!DOCTYPE html>
<html lang="en">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<script src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
<script src="http://d3js.org/d3.v3.min.js"></script>
<script src="jstat.js"></script>
<link rel="stylesheet" href="https://code.jquery.com/ui/1.11.2/themes/smoothness/jquery-ui.css">
<script src="https://code.jquery.com/ui/1.11.2/jquery-ui.min.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1">
@mbostock
mbostock / .block
Last active September 30, 2016 16:15
Reprojecting CSV with ogr2ogr
license: gpl-3.0
@HeikkiVesanto
HeikkiVesanto / TransSiberianSimplified.geojson
Last active October 18, 2016 17:46
Trans Siberian Route
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@danswick
danswick / US-states.geojson
Created September 25, 2015 23:27
US states simplified linestring
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@lorenzopub
lorenzopub / .block
Created October 27, 2016 05:11
d3v4 reusable updateable global mashup
license: mit
@lorenzopub
lorenzopub / .block
Created October 20, 2016 08:48
Line Chart: Prime-Age Workers
license: mit
@veltman
veltman / README.md
Created October 10, 2016 16:08
Geosupport w/ JS and node-ffi

Geocoding 10,000 addresses a second with NYC's Geosupport library and Node FFI

Following on Chris Whong's excellent writeup of how to make calls directly to NYC's Geosupport client and this first attempt at generalizing it, here's a way that let me geocode about 10,000 addresses a second on Ubuntu using Node FFI.

Note: this assumes Ubuntu - other Linux is probably fine but may need adjustments.

First, install the basics:

# Update, install Node and unzip (if needed)
@tomgp
tomgp / index.html
Created February 23, 2015 14:35
simple resize
<!DOCTYPE html>
<meta charset="utf-8">
<html>
<head><title>Responsiv data vis</title>
<style>
#container{
position: absolute; top: 5%; left: 5%; height: 90%; width: 90%;
}