I'd give myself one 24 hour period of "moping." I'd probably get piss drunk and just "get it all out," so to speak. The next day, I would then:
1. Work on myself -- start getting in shape, learn something new, etc..
2. Build things that I have wanted to work on.
3. Apply for new jobs.
4. Apply for jobs completely outside of tech.
(In all honesty, I should probably do all these things anyway, but for some reason, having a job makes much of this too difficult for whatever reason.)
Just remember, now is the time for strength.
Good luck.