Take a Nap
It might seem counterintuitive but if you want to stay up all night you are going to have to get some shut eye. Taking a quick nap can refresh you and have you ready for the night ahead of you, whether it's working on your big project or just going out with friends till the sun comes up.
There really isn't anything to this one, you lay down and you nap. Try to limit yourself to about 20-30 minutes, if you go any longer than that you will wake up groggy and not feeling refreshed.