Skip to content

Instantly share code, notes, and snippets.

@xrl
Created April 12, 2014 01:21
Show Gist options
  • Save xrl/10513524 to your computer and use it in GitHub Desktop.
Save xrl/10513524 to your computer and use it in GitHub Desktop.
def frontendOne(arg1,arg2):
return worker(arg1,arg2,False)
def frontednTwo(arg1,arg2):
return worker(arg1,arg2,True)
def worker(arg1,arg2,switch):
stuffWith(arg1)
stuffWith(arg2)
if switch == True:
specialCase1()
else:
specaseCase2()
return "neato!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment