Skip to content

Instantly share code, notes, and snippets.

@erikrose
Created June 13, 2013 23:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save erikrose/5778447 to your computer and use it in GitHub Desktop.
Save erikrose/5778447 to your computer and use it in GitHub Desktop.
def do_stuff(thing):
config = {
2: {'message': "Flibbety jibbet!"},
4: {'message': "A!\nFlibbety jibbet!"},
5: {'message': "B!\nFlibbety jibbet!"},
7: {'message': "C!", 'run_funcs': False},
}
if thing not in config:
return
print config[thing]['message']
if config[thing].get('run_funcs', True):
render_golfclubs()
sneeze_loudly(True)
do_other_stuff()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment