Skip to content

Instantly share code, notes, and snippets.

View mswain's full-sized avatar

Matthew Swain mswain

  • Literati
  • Austin, TX
View GitHub Profile
import signal
class TimeoutException(Exception):
pass
def timeout_handler(signum, frame):
raise TimeoutException("Timeout occurred!")
def exit_handler(signum, frame):

Keybase proof

I hereby claim:

  • I am mswain on github.
  • I am mswain (https://keybase.io/mswain) on keybase.
  • I have a public key ASC5XX2dMWf4w_6KFeXINITDdVZ5aPKhvp-0d90yScOEiAo

To claim this, I am signing this object: