Ouch!
The last company I worked for closed our division (and laid all of us off) solely because of politics. The irony was that we had had the highest return on investment of any division in the company for more than a decade.
I'm now stuck in a dead-end job at a small company. Our CEO has an absolutely toxic managerial style and I need to get out. Unfortunately, I'm in one of those complicated situations where it's really hard to find another job (e.g., over 40, specialized field, geographically-bound).
The CEO's toxic management style means, among other things, we're all expected to work absurdly long hours. So, I don't have a lot of time to put in to job hunting or retraining, and I have vacillated between how I should be using my precious time.
One of the things I've considered was developing an app (that scratches an itch of mine; but I've heard others complaining about similar problems here on HN, so I know I'm not alone). While your experience certainly doesn't mean that I will get an offer, it supports the premise that a single app can lead down the right road.