When I was younger, I had to do this all the time — work through the night and into the next day. Surprisingly, if you eat just protein (tuna fish without bread or mayo, etc.t) and hydrate yourself, you can go two days without sleep and think clearly. Going three days is a problem though.
Btw, their idea of drinking caffeine is a bad idea. Its a quick boost and then you crash, hard.