Skip to content

Instantly share code, notes, and snippets.

View gabrielflorit's full-sized avatar

Gabriel Florit gabrielflorit

View GitHub Profile
var url = 'http://examples.oreilly.com/0636920025429/mikedewar-getting_started_with_d3-bdfc34e/visualisations/data/service_status.json';
// only retrieve above script once
$.ajaxSetup({
cache: true
});
var postData = {
'url': url
};
@gabrielflorit
gabrielflorit / water.css
Created July 24, 2012 16:35 — forked from anonymous/water.css
blue bar chart
.chart rect {
stroke: white;
fill: steelblue;
}
var width = $('svg').width();
var height = $('svg').height();
var svg = d3.select('svg');
svg
.attr('width', width)
.attr('height', height);
svg.selectAll('circle')
.data([18, 57, 112, 323])
@gabrielflorit
gabrielflorit / water.css
Created July 24, 2012 16:45 — forked from anonymous/water.css
blue bar chart with axes
.chart rect {
stroke: white;
fill: steelblue;
}
svg {
background: #000000;
}
.branch {
stroke: #FFFFFF;
}
.branchNode {
fill: #FFFFFF;
svg {
position: absolute;
}
@gabrielflorit
gabrielflorit / water.css
Created August 21, 2012 03:49 — forked from anonymous/water.css
created by livecoding - http://livecoding.io/3411361
svg {
position: absolute;
}
{"libraries":[]}
<?php
/*
* usage: csv-to-json.php?key=<GOOGLEKEY>&callback=<CALLBACK>
*/
header('Content-type: script/javascript');
// Set your CSV feed
$feed = 'https://docs.google.com/spreadsheet/pub?key=' . $_GET["key"] . '&output=csv';
@gabrielflorit
gabrielflorit / mdb2sql.sh
Last active December 21, 2015 11:59 — forked from turicas/mdb2sql.sh
#!/bin/bash
# Convert a MDB file (Access) to SQL
# Needs mdbtools[http://mdbtools.sourceforge.net/]
# run 'aptitude install mdbtools' on Debian/Ubuntu
# Created by Álvaro Justen <https://github.com/turicas>
# Modified by Gabriel Florit to run on Mac OS X
# License: GPLv2
mdb=$1
sql=$2