Can't figure out auton mode

Does anyone know where i can get sample code, or help on writing a section of auton code? I have no idea on how to do this. thanks,

There have been lot of samples posted in this forum. There are also a couple whitepapers.