Created
December 15, 2014 18:15
-
-
Save brimston3/fce010d2fd4a3166f799 to your computer and use it in GitHub Desktop.
Because sometimes you really want your progress meter to print a QCD number from the '90s.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import sys | |
def printstatus(): | |
ij=0 | |
for i in range(printstatus.interject_len, 0, -1): | |
if printstatus.counter > 0 and (printstatus.counter % (len(printstatus.statline) * 3 ** i)) == 0: | |
print "\n%s" % printstatus.interject[i-1] | |
printstatus.lastmod=0 | |
ij=1 | |
break; | |
if ij == 0: | |
sys.stdout.write(printstatus.statline[(printstatus.lastmod-1)%len(printstatus.statline)]) | |
sys.stdout.flush() | |
printstatus.counter=printstatus.counter+1 | |
printstatus.lastmod=printstatus.lastmod+1 | |
printstatus.counter=0 | |
printstatus.lastmod=0 | |
printstatus.statline="hey...you...what...chu...gon'...do...?.hey...you...what...chu...gon'...do...?.\n" | |
printstatus.interject=["A'IGHT", | |
"J-JAM", | |
"WASSU--P", | |
"HOOP DAE' IT IS"] | |
printstatus.interject_len=len(printstatus.interject) | |
if __name__ == "__main__": | |
for i in range(0,10000): | |
printstatus() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment