Skip to content

Instantly share code, notes, and snippets.

@bsmithyman
Last active September 19, 2015 02:10
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 bsmithyman/779ecfe4382bbc8cebb6 to your computer and use it in GitHub Desktop.
Save bsmithyman/779ecfe4382bbc8cebb6 to your computer and use it in GitHub Desktop.
def GB(tag = None):
import sys
if not hasattr(GB, 'badgercount'):
GB.badgercount = 0
sys.stdout.write('Guard badger: %03d is named %s'%(GB.badgercount, 'Stanley' if not tag else tag))
sys.stdout.flush()
GB.badgercount += 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment