1) Breathe. In and out. You'll be OK. Don't cry, but if you have to, wait until you are clear of the building and the first few stoplights away from your office and pull over--won't do any good to have your CEO (or a cop) look over and catch you sobbing uncontrollably like a psycho at the wheel. Hopefully those a-holes notified you at the end of the day, not the beginning. And hopefully on a Friday. That's the least they could do.
2) The first evening you can: sad hour with as many good people as you can muster. Let them say nice things about you and terrible things about your company. Vent. You're totally allowed. Anyone that holds anything against you right now is an a-hole, but try to limit the company bashing around non-laid off employees. If this happy/sad hour isn't possible the first evening, immediately plan one for the next available evening. Don't worry about money right now; that is what your emergency fund* is for. It can cover a few beers or whatever your choice of fun is, if your friends don't opt to treat you.
3) Wake up with a headache. Or not. Do not plan anything for today. Cancel everything you can. Clear your schedule for a day of helpful/relaxing activities that will ease your mind and prepare you for your new career. Treat yo'self! If it is a work day and you are comfortable enough to do this, dust off one of those sick days you have accumulated which will now never be used. Emotional sickness is a real thing; you've been dealt a blow and need to take a knee.
4) Apply for unemployment benefits the second you have eaten a lovely breakfast and relaxed. Even if you think you have a job lined up, plenty of advance notice, etc. The earlier you apply, the earlier you usually receive benefits, and payments can take a while.
5) Go to the grocery store or your favorite restaurant. Buy comfort food. Drink your favorite soda. Lick cake icing out of the container. Make a skittle sandwich, or whatever weird thing you are into. It's OK, just this once, you're allowed.
6) Over yummy indulgent food, read your contract or employment agreement with an eagle eye. This should have been done at the start of employment* and at the barest hint of a layoff*, but hopefully it has been a while! Note the sections on advance notice, severance pay, vacation pay, etc. Start to work out what you are owed. If you have any questions, ask your HR person. Make them work for their paycheck!
7) Research layoffs in your state/country. There IS a legal way to do it, and a very illegal way to handle it. Make sure your employer has/is following EVERY. SINGLE. RULE. This also helps you to know what to expect and to recognize empty/illegal gestures on HR's part. If you feel like you were illegally terminated, and have proof (this should have been collected/noted/journaled/otherwise documented during employment, if something felt fishy), contact a lawyer ASAP. If you have email proof, you should have sent it to your personal email already.
8) Make a list of people at work that can write recommendation letters for you. You know who they are...and are not. Don't be shy about asking them.
9) Inform your circle of friends/colleagues that you are on the move. Update your facebook, twitter, linkedin, and any other social media account you have with the news. DO NOT complain, wallow, or whine. Remain upbeat and non-desperate. Inform everyone that because of the change, you are ready for a new adventure, and ask for everyone to keep their ears to the ground for you. Revel in the wave of flabbergastedness at your company's idiocy and the love that comes your way, ready to support you through this hard time. You never know who's brother's uncle's friend has a company that needs your skills.
10) Refer to your Dream Job requirements list*. Now you have the opportunity to go for it! You have several months of $$ to survive on, so why not give that a shot first?
11) You should have been job searching regularly to identify skills you need to keep up with your profession*, but start intensely hitting up your favorite sites to see what is out there. Make sure your resume lists the most repeated requirements in the jobs you are attracted to.
12) Further polish your resume. Since you should have been adding the new skills you learned along the way*, this should not take that much time at all. Send this out to a few friends and mentors for extra eyes. This is also a great way to start to inform your network that you are available, on a very serious job search, and are taking action.
13) Refer to your list of networking buddies in your field that may lead to tips on jobs. This should have been prepared while you were still happily employed, and you should have kept in contact with each of these people at least once every three to six months, with relevant or funny updates on you or research in your common field*. Communicate with each of them individually (NO MASS EMAILS!) and inform them of your new need for a job. Be personal and professional with each. Do not bash your current employer. Thank them profusely. Describe your ideal position, but make sure you mention the other positions you are suited for. Attach your newly polished resume. Remember those that help you out; you owe them a beer the next time you see them, or a similar hand up if they go through a similar situation.
14) Gather personal emails and contact information from your work friends, if you haven't already. They can now be added to your networking list.
15) Time for a fun one: Go shopping for an interview outfit! A really nice one, with accessories and all, but try to make sure it is on sale. You will need it.
16) Revert to your emergency budget after a maximum of one week post-layoff. This emergency budget should have been decided on before the actual lay off*, but if it wasn't, here's how you make one: a) look at your budget*. b) Identify items that you could easily cut back on. c) Work out your new budget, and brainstorm even more ways to cut costs. d) Factor in your EF and expected payments from #6 to see how long you feasibly have before panic and the need to gather Starbucks applications set in.
17) Do you have anything that you have been putting off selling? Now is the time to list it.
18) Gather up all personal belongings from work, including personal files on your computer. There shouldn't be much; at the whisper of a layoff, you need to get to steppin'*. Anything that is not obviously yours, take home so there aren't any squabbles over what the company thinks they own.
19) Back up any files that you need to keep records of, mainly your emails that may help any legal cases you need to file.*
20) Go to the library. Look at their What Color is My Parachute, Who Moved My Cheese?, interview, job skills tips, and lay off books. Read up.
21) Make a list of everything you do not have to deal with now that your time at your company is ending. Tack it up somewhere obvious in your house and refer to it whenever you get down about the lay off. There is a silver lining, and you know it.
22) Make a list of everything you still have and are grateful for. This is NOT the end of the world, it's an opportunity to check in with your life and make sure everything is how you want it to be. If it isn't, it is time to fix it. Why not? You will soon have plenty of free time!
23) Take care of yourself. Emotionally, physically, spiritually. Figure out what you need and ask for it. People love to feel needed.
24) Be polite and courteous and upbeat at work. Bitter Nellies are not welcome, ever. People will remember you by how you handle the news.
*These indicate actions that should have been taken care of long before the lay off. If you aren't in danger of losing your job now, one day you might be. Do these things.