How to pull an all-nighter in university