Skip to content

Instantly share code, notes, and snippets.

View davo's full-sized avatar
🏠

Davo Galavotti davo

🏠
View GitHub Profile
@davidpaulsson
davidpaulsson / bash_profile open in chrome
Created February 19, 2014 07:17
.bash_profile candy
# open a file in chrome
# usage: $ chrome index.html
function chrome() {
open $@ --args --allow-file-access-from-files
}
@gcorallo
gcorallo / linksCreativeCoding
Last active August 29, 2015 14:02
Links de la charla sobre Creative Coding del 16/06/2014 @LabGCBA
historia:
http://www.theatlantic.com/technology/archive/2013/01/the-never-before-told-story-of-the-worlds-first-computer-art-its-a-sexy-dame/267439/
http://dada.compart-bremen.de/
http://recodeproject.com/
http://www.demoscene.tv/
http://www.pouet.net/
http://www.net-art.org/
http://www.teleportacia.org/war/war.html
+teórico (txt):
@milesgrimshaw
milesgrimshaw / Citibike.R
Created August 6, 2014 11:49
R script to analyze personal Citibike data
library(ggplot2)
library(lubridate)
## Set the working directory
setwd("~/Dropbox (Personal)/Personal/Github/Citibike")
## Organize restaurant data
r <- read.csv('trips.csv', header=TRUE, as.is=TRUE)
head(r)
@andrewxhill
andrewxhill / run.sql
Last active August 29, 2015 14:06
Tim's transform of dentists
select * from (
select the_geom as the_geom_webmercator,
min(ST_Distance_Sphere(st_transform(st_centroid(the_geom), 4326), st_transform(otherGeom, 4326)))/1600 as minDist
from (
select grids.the_geom, st_collect(st_transform(timchung.allbusiness.the_geom, 3857)) as otherGeom
from (
SELECT CDB_HexagonGrid(
ST_SetSRID(
ST_Envelope(
ST_Collect(
@tonyfast
tonyfast / README.md
Last active August 29, 2015 14:14 — forked from mbostock/.block
Collapsible tree with dict-like object

An interactive version of a Reingold–Tilford tree. Click on the nodes to expand or collapse.

Modifications

Very minor tweaks were made to create a collapsible tree of a dict-like object.

  • The dict is converted to the flare.json tree structure with a default size.
  • I added a subset of a gist API response because that is what I am working on.
  • I added lodash because the tree converter was already written.
@eesur
eesur / README.md
Created July 15, 2015 16:40
d3 | how old will we be

My youngest is always asking me, 'how old will you be when I'm x years? and by brother/sister is x years

So this sketch is for him! but it was weird doing it, actually made me pause.

Used moment.js to calculate the dates; no real need though, as they were just subtractions—but handy if I do anything more detailed with the sketch.

The nav/options are an array (caled dates in the code) that can just be added to and changed, and the rest get's worked out and displayed.

@rmarimon
rmarimon / README
Created August 29, 2011 15:47
SVG Patterns
SVG Patterns Example
@tokumine
tokumine / labels.cartodb
Created January 27, 2012 17:57
carto to use labels in CartoDB maps
Just a quick sketch to explain how to use labels in CartoDB:
http://dl.dropbox.com/u/193220/CartoDB/labels.png
Something like this should work while we sort out exactly how to release this:
#populated_places_points_2{
marker-fill:#0099FF;
marker-line-color:white;
marker-line-width:1;
@GerHobbelt
GerHobbelt / .gitignore
Created August 26, 2012 14:27 — forked from lgrammel/index.html
Interactive Streamgraph D3
# Editor backup files
*.bak
*~