This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Peter and I started prototyping what multiple device support would look like in LeapJS with skeleton tracking and ended up at this wild callback with quadruply-nested for-loops: | |
Leap.loop -> | |
for frame in arguments | |
for hand in frame | |
for finger in hand | |
for joint in finger | |
drawSphere joint.position | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!python | |
## Egg-Balancing Puzzle | |
## Alan Davis - 5/4/2011 | |
from __future__ import division # to ensure true division | |
import sys # to read input from standard input | |
import json # to decode input in JSON format | |
## Attempt to balance the given egg carton | |
def balance_carton(width, height, eggs): |
NewerOlder