Skip to content

Instantly share code, notes, and snippets.

View jeffbaumes's full-sized avatar

Jeff Baumes jeffbaumes

View GitHub Profile
<html>
<head>
<title>Streamgraph</title>
<script type="text/javascript" src="http://vis.stanford.edu/protovis/protovis-r3.2.js"></script>
<script type="text/javascript" src="stream.js"></script>
<style type="text/css">
body {
margin: 0;
}
@jeffbaumes
jeffbaumes / index.html
Last active December 23, 2015 07:19
Tangelo basic example
<!DOCTYPE html>
<head>
<title>Reverser</title>
<!-- Boilerplate Javascript -->
<script src="http://code.jquery.com/jquery-1.8.2.min.js"></script>
<script src="/js/tangelo.js"></script>
<!-- The app's Javascript -->
<script src="myapp.js"></script>
@jeffbaumes
jeffbaumes / CMakeLists.txt
Created May 8, 2014 00:46
Minimal VTK and Qt project
cmake_minimum_required(VERSION 2.8)
find_package(VTK REQUIRED)
include(${VTK_USE_FILE})
find_package(Qt4 REQUIRED)
include(${QT_USE_FILE})
add_executable(main main.cxx)
target_link_libraries(main ${VTK_LIBRARIES} ${QT_QTGUI_LIBRARY})
@jeffbaumes
jeffbaumes / vega.json
Created July 14, 2015 21:13
Bar Chart
{
"width": 400,
"height": 200,
"padding": {"top": 10, "left": 30, "bottom": 30, "right": 10},
"data": [
{
"name": "table",
"values": [
{"x": 1, "y": 28}, {"x": 2, "y": 55},
{"x": 3, "y": 43}, {"x": 4, "y": 91},
@jeffbaumes
jeffbaumes / gapminder.json
Last active August 29, 2015 14:24
DimpVis
[{"year":1955,"country":"Afghanistan","cluster":0,"pop":8891209,"life_expect":30.332,"fertility":7.7},{"year":1960,"country":"Afghanistan","cluster":0,"pop":9829450,"life_expect":31.997,"fertility":7.7},{"year":1965,"country":"Afghanistan","cluster":0,"pop":10997885,"life_expect":34.02,"fertility":7.7},{"year":1970,"country":"Afghanistan","cluster":0,"pop":12430623,"life_expect":36.088,"fertility":7.7},{"year":1975,"country":"Afghanistan","cluster":0,"pop":14132019,"life_expect":38.438,"fertility":7.7},{"year":1980,"country":"Afghanistan","cluster":0,"pop":15112149,"life_expect":39.854,"fertility":7.8},{"year":1985,"country":"Afghanistan","cluster":0,"pop":13796928,"life_expect":40.822,"fertility":7.9},{"year":1990,"country":"Afghanistan","cluster":0,"pop":14669339,"life_expect":41.674,"fertility":8},{"year":1995,"country":"Afghanistan","cluster":0,"pop":20881480,"life_expect":41.763,"fertility":8},{"year":2000,"country":"Afghanistan","cluster":0,"pop":23898198,"life_expect":42.129,"fertility":7.4792},{"year"
@jeffbaumes
jeffbaumes / miserables.json
Last active August 29, 2015 14:26
Interactive Node-link
{"nodes":[{"name":"Myriel","group":1},{"name":"Napoleon","group":1},{"name":"Mlle.Baptistine","group":1},{"name":"Mme.Magloire","group":1},{"name":"CountessdeLo","group":1},{"name":"Geborand","group":1},{"name":"Champtercier","group":1},{"name":"Cravatte","group":1},{"name":"Count","group":1},{"name":"OldMan","group":1},{"name":"Labarre","group":2},{"name":"Valjean","group":2},{"name":"Marguerite","group":3},{"name":"Mme.deR","group":2},{"name":"Isabeau","group":2},{"name":"Gervais","group":2},{"name":"Tholomyes","group":3},{"name":"Listolier","group":3},{"name":"Fameuil","group":3},{"name":"Blacheville","group":3},{"name":"Favourite","group":3},{"name":"Dahlia","group":3},{"name":"Zephine","group":3},{"name":"Fantine","group":3},{"name":"Mme.Thenardier","group":4},{"name":"Thenardier","group":4},{"name":"Cosette","group":5},{"name":"Javert","group":4},{"name":"Fauchelevent","group":0},{"name":"Bamatabois","group":2},{"name":"Perpetue","group":3},{"name":"Simplice","group":2},{"name":"Scaufflaire","group":2},
@jeffbaumes
jeffbaumes / vega.json
Last active September 16, 2015 13:01
Bullet chart
{
"width": 300,
"height": 30,
"padding": {"top": 10, "left": 150, "bottom": 30, "right": 10},
"data": [
{
"name": "ranges",
"values": [
{"min": 0, "max": 0.1, "color": "hsl(0,0%,90%)"},
{"min": 0.1, "max": 0.5, "color": "hsl(0,0%,75%)"},
@jeffbaumes
jeffbaumes / points.json
Last active September 21, 2015 14:21
Interactive Scatterplot
[{"x":0.6637748924084008,"y":0},{"x":0.5484188553850314,"y":0.03450358980217672},{"x":0.5020185263552955,"y":0.06341968840289566},{"x":0.6472019204947352,"y":0.12346036922982045},{"x":0.5422740055349533,"y":0.13923229998318315},{"x":0.542361580132391,"y":0.17622395986501554},{"x":0.5172319678655009,"y":0.20478662312351467},{"x":0.5540400939258396,"y":0.26071147856098104},{"x":0.5490470439370002,"y":0.3018411666770542},{"x":0.5684781311835868,"y":0.36076719228093795},{"x":0.5066444671421548,"y":0.36809875195739017},{"x":0.48183612733450015,"y":0.3986095106998535},{"x":0.368753317696321,"y":0.3462824145444211},{"x":0.473555317706156,"y":0.5042851937677},{"x":0.4279284301086809,"y":0.5172766128381666},{"x":0.3589884886314056,"y":0.49410526540953786},{"x":0.319101275744127,"y":0.5028231523670745},{"x":0.25797378733955306,"y":0.4692525771461689},{"x":0.2619193247917344,"y":0.5566068978227308},{"x":0.2510536220102807,"y":0.6340890677894512},{"x":0.19812217061286364,"y":0.6097573428446372},{"x":0.12535973771871445,"
[{"y": 8.129999999999999, "x": 99953, "c": -0.33659932061604231}, {"y": 1.46, "x": 297, "c": -0.33250460689225764}, {"y": 1.21, "x": 1, "c": -0.29874937115209305}, {"y": 7.045, "x": 203245, "c": -0.26357609880478983}, {"y": 1.25, "x": 1827, "c": -0.21413614468033768}, {"y": 8.43, "x": 2707, "c": -0.21293334504264624}, {"y": 2.9000000000000004, "x": 45769, "c": -0.20817728543857658}, {"y": 7.0, "x": 203189, "c": -0.19574155730493123}, {"y": 0.26, "x": 1617, "c": -0.16321956045666799}, {"y": 3.705, "x": 170251, "c": -0.14908500949546638}, {"y": 6.525, "x": 63659, "c": -0.14417082480086105}, {"y": 0.72, "x": 113628, "c": -0.14110930221830459}, {"y": 3.925, "x": 150597, "c": -0.13681038964850217}, {"y": 8.185, "x": 106379, "c": -0.12794667407883972}, {"y": 8.96, "x": 1695, "c": -0.11705528649440836}, {"y": 1.58, "x": 114056, "c": -0.11656834774973401}, {"y": 6.205, "x": 1549, "c": -0.11649038460312584}, {"y": 0.51, "x": 304, "c": -0.11175595184304733}, {"y": 7.925000000000001, "x": 1490, "c": -0.11163858894851229
[{"y": 8.43, "x": "creatine major dehydrated TMS3", "c": -0.20823122404469846}, {"y": 3.46, "x": "C18 IST", "c": -0.14967909068545474}, {"y": 3.875, "x": "C14 IST", "c": -0.12770472241041234}, {"y": 1.625, "x": "ribitol", "c": -0.10720191477742964}, {"y": 8.379999999999999, "x": "urea", "c": -0.088986392956346805}, {"y": 8.379999999999999, "x": "stearic acid", "c": -0.083387571302886571}, {"y": 5.225, "x": "C10 IST", "c": -0.079161525591524631}, {"y": 6.029999999999999, "x": "proline", "c": -0.078459867827893701}, {"y": 1.21, "x": "beta-hydroxybutyric acid", "c": -0.07664009029984481}, {"y": 5.1899999999999995, "x": "C18 IST", "c": -0.072199268131830377}, {"y": 6.525, "x": "creatine major dehydrated TMS3", "c": -0.070977256960686283}, {"y": 6.93, "x": "urea", "c": -0.070103549326860179}, {"y": 6.720000000000001, "x": "lysine", "c": -0.069450800132300067}, {"y": 6.720000000000001, "x": "threonine", "c": -0.060464326313743245}, {"y": 6.085, "x": "succinate semialdehyde meox1", "c": -0.057485996112547164}, {"y":