Skip to content

Instantly share code, notes, and snippets.

View eipipuz's full-sized avatar

Guillermo Alcantara eipipuz

View GitHub Profile
Usual case:
eipipuz@RadicalGolem:~/piss$ heroku db:push mysql://pissuser:password@localhost/pissing
Sending schema
Sending data
1 tables, 1 records
!!! Caught Server Exception | ETA: --:--:--
Taps Server Error: PGError ERROR: relation "users" does not exist
eipipuz@RadicalGolem:~/piss$ heroku info
I made this file to scratch an itch. I'm learning Python and I found they have "new" control flows. They have a while/else. This made me go to Wikipedia and see if there were any others I was ignoring. This in turn made me come to exit_when. It's like a Case statement with a While mixed in.
Will I ever use it? Dunno. Have I found any useful scenario? Not yet.
(I'm sure a better Rubyist can make a better implementation. If someone knows a better way, please let me know.)
Enjoy.