I got laid off from my old job at the end of last year. I've been investing $1,000 per week since the beginning of the year and did a Roth contribution. I just got my last severance check this week. I looked at my total net pay for the year and every penny that hit my checking account from my old company has gone to index funds.
I got a new job after about 5 weeks. I took a little risk by investing so aggressively with my severance while I didn't have a job lined up, but it all worked out. I had enough money in savings to cover all my bills. It felt good taking that money for doing nothing and putting it into something productive.
I'm hoping if I ever get laid off again, I can just use that as my cue to exit the software mines and retire.