I dont like to drink coffee to stay awake (just to keep warm during the winter, before school starts).
My best tip would be to take detailed notes in class. Make a mind map, when you feel like you are about to fall asleep try to make some more pictures or color your pictures better.
other than that, go to bed earlier.