Less than 40 lines of code and quite a humorous way to advertise the Mobile Python Book. Check it out:
The Nokia 5500 has an accelerometer and pretty soon it will be standard on all mobile devices. While the applications created using this technology are useless now and mere tech demos, they do demonstrate that controlling a mobile with these gestures is coming sooner rather than later.