Skip to content

Instantly share code, notes, and snippets.

@bsmithyman

bsmithyman/gb.py

Last active Sep 19, 2015
Embed
What would you like to do?
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