Skip to content

Instantly share code, notes, and snippets.

@trtg
trtg / _.md
Created October 20, 2012 11:30
force layout thank you example in d3
@trtg
trtg / _.md
Created October 20, 2012 11:18
display world map and use the html5 geolocation API in d3
@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 / 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 / _.md
Created October 20, 2012 09:14
move circle along path in d3
@trtg
trtg / _.md
Created October 20, 2012 08:30
move element to front on mouseover in d3
@trtg
trtg / _.md
Created October 19, 2012 07:13
using stack layout in d3
@trtg
trtg / _.md
Created October 15, 2012 20:53
plotting bars in a zeo sleep graph with d3
@trtg
trtg / _.md
Created October 15, 2012 12:06
plotting line paths with d3
@trtg
trtg / _.md
Created October 15, 2012 11:45
d3 transitions with bar graphs