Skip to content

Instantly share code, notes, and snippets.

@trtg
trtg / main.cpp
Created October 20, 2012 09:17
Using NITE for kinect to control the mouse cursor under X11 in linux
/****************************************************************************
* *
* Nite 1.3 - Single Control Sample *
* *
* Author: Oz Magal *
* *
****************************************************************************/
/****************************************************************************
* *
@trtg
trtg / magic_trackpad_visualizer.py
Created October 20, 2012 10:15
Visualize multitouch contact points from the magic trackpad using python in linux
#!/usr/bin/python
import pygame
import re
from numpy import int32
import ctypes
import time
w=1280
h=1024
#this is the debugfs entry for the trackpad, you can figure
#this out by watching the system log when you connect the trackpad
@trtg
trtg / _.md
Created October 20, 2012 11:18
display world map and use the html5 geolocation API in d3
@trtg
trtg / _.md
Created October 20, 2012 11:30
force layout thank you example in d3
@trtg
trtg / gist:3950475
Created October 25, 2012 04:53
how to draw markers on google maps with driving directions, use geocode addresses and use html5 geolocation features
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>Google Maps Multiple Markers</title>
<script src="http://maps.google.com/maps/api/js?sensor=false" type="text/javascript"></script>
</head>
<body>
<div id="map" style="width: 500px; height: 400px;"></div>
@trtg
trtg / config.json
Created December 29, 2012 09:19
d3 drag behavior and circles
{"description":"drag behavior and circles","endpoint":"","display":"svg","public":true,"require":[],"fileconfigs":{"inlet.js":{"default":false,"vim":true,"emacs":false,"fontSize":12},"config.json":{"default":true,"vim":false,"emacs":false,"fontSize":12}},"tab":"edit","display_percent":0.5997407087294723,"play":false,"loop":false,"restart":false,"autoinit":true,"pause":true,"loop_type":"period","bv":false,"nclones":15,"clone_opacity":0.4,"duration":3000,"ease":"linear","dt":0.01,"hidepanel":false}
@trtg
trtg / config.json
Created December 29, 2012 09:33
d3 tributary one circle orbiting another on drag
{"description":"One circle orbiting another on drag","endpoint":"","display":"svg","public":true,"require":[],"fileconfigs":{"inlet.js":{"default":false,"vim":true,"emacs":false,"fontSize":12},"config.json":{"default":true,"vim":false,"emacs":false,"fontSize":12}},"tab":"edit","display_percent":0.7,"play":false,"loop":false,"restart":false,"autoinit":true,"pause":true,"loop_type":"period","bv":false,"nclones":15,"clone_opacity":0.4,"duration":3000,"ease":"linear","dt":0.01,"hidepanel":false}
@trtg
trtg / config.json
Created December 29, 2012 09:45
using d3 brush feature for region selection
{"description":"using d3 brush feature for region selection","endpoint":"","display":"svg","public":true,"require":[],"fileconfigs":{"inlet.js":{"default":true,"vim":false,"emacs":false,"fontSize":12},"style.css":{"default":true,"vim":false,"emacs":false,"fontSize":12},"config.json":{"default":true,"vim":false,"emacs":false,"fontSize":12}},"tab":"edit","display_percent":0.6040622299049263,"play":false,"loop":false,"restart":false,"autoinit":true,"pause":true,"loop_type":"period","bv":false,"nclones":15,"clone_opacity":0.4,"duration":3000,"ease":"linear","dt":0.01,"hidepanel":false}
@trtg
trtg / config.json
Created December 29, 2012 11:27
d3 tributary manually drawing paths
{"description":"d3 tributary manually drawing paths","endpoint":"","display":"svg","public":true,"require":[],"fileconfigs":{"inlet.js":{"default":true,"vim":false,"emacs":false,"fontSize":12},"config.json":{"default":true,"vim":false,"emacs":false,"fontSize":12}},"tab":"edit","display_percent":0.5997407087294727,"play":false,"loop":false,"restart":false,"autoinit":true,"pause":true,"loop_type":"period","bv":false,"nclones":15,"clone_opacity":0.4,"duration":3000,"ease":"linear","dt":0.01,"hidepanel":false}
@trtg
trtg / cars.csv
Last active December 10, 2015 08:18
d3 tributary using crossfilter with cars dataset
name mpg cylinders cc hp lb mph year
AMC Ambassador Brougham 13 8 360 175 3821 11 73
AMC Ambassador DPL 15 8 390 190 3850 8.5 70
AMC Ambassador SST 17 8 304 150 3672 11.5 72
AMC Concord DL 6 20.2 6 232 90 3265 18.2 79
AMC Concord DL 18.1 6 258 120 3410 15.1 78
AMC Concord DL 23 4 151 3035 20.5 82
AMC Concord 19.4 6 232 90 3210 17.2 78
AMC Concord 24.3 4 151 90 3003 20.1 80
AMC Gremlin 18 6 232 100 2789 15 73