In prison, only non-programmable calculators were allowed. A friend somehow had gotten a TI-85 in. I programmed it to say "NON-PROGRAMMABLE CALCULATOR" as its startup message, so they wouldn't take it during a random search.
I also wrote a basic stock portfolio manager - this was the only chance I had to program during my 5 years there.