Sleep was never my thing as kid. I used to think it was a waste of time too. But now the case is very much reversed. I sleep like a cow now. I guess it comes with age; feeling exhausted from the ton of work to do on most days.
I, however, know how to keep myself awake for a long time at night. It depends if it's requried. In the case of night-classes, my mind would note to itself that all the reading in the semester may very well go to waste if I do not take the night to revise and refresh my memory. That way my mindset is, you know, set.
Keeping my mind ready is not always enough. I'd have to preper some ritual drink...just kidding... some mixture of a carbonated drink, mostly Mirinda (for it's sweet orange flavor), and dry coffee. That usually knocks the sleep away for as long as necessary.