do the more important one first, then try to get as much as possible together for the second one
Jeez, the hardcore allnighters I´ve already had, my record was an upload 3 mins before deadline (class record lies at 30 seconds, crazy fuckers
)
or do an old trick of my friend: upload a corrupted zip-file to buy time, get it done and "re-send" the professor your finished work when he complains about the corrupted file