Frantically completing something at the last minute.
Derived from the act of having to eat your lunch over a trashcan on the way to class after spending the lunch period hastily completing an assignment.
I totally forgot about that worksheet, and had to trashcan it; I got a 54.