In both platforms, frameworks and examples are included on the software disk in the KOP and the updates on the FIRST website.
Also beta teams have posted their robot codes on the Public Beta Testing Forums here:
http://forums.usfirst.org/forumdisplay.php?f=749