The solution seems obvious. Work completely through the night, then collapse from exhaustion at your convenience! The trick is scoping out your projects appropriately so that you can finish them and catch up on sleep before going completely insane. :-)