I had a lot of those nights myself in school, and I picked up some tricks along the way. If you want to stay up all night, the most important thing to do is to keep busy and stay off your bed. Long periods of inactivity make you sleepier anyway, so it’s best to keep active in some way. If you want to watch TV or work on something, then go in the living room or sit at a desk. Sitting in bed eventually turns into lying down in bed, and then before you know it you will have gotten under the covers and fallen asleep. So whatever you do, avoid the bed!