I was about three hours into the workday, busting ass this morning on a piece of front-end code for the company's new shiny dashboard. All of a sudden I got a message from the CTO asking me to hop on a call.
When it was just me, him, and HR in the call, I knew I was in trouble. He let me know they were downsizing, thanked me for the work I put in for the last six months, and promptly cut off my access to every company resource before my head even stopped spinning.
Two others on my team got the same treatment. A headstart would have been nice.