Some example code from a small project built last year using RobotLegs.