Years ago, GNU Emacs came with a C program called "yow" for printing random quotes from Zippy The Pinhead. It employed a file called "yow.lines" as a database of quotes, still available from:
https://github.com/shentonfreude/dot-emacs/blob/master/yow.lines This morning, I found myself missing "yow," so I reimplemented it in Python. Download the "yow.lines" file above, stick it in /usr/local/etc, and you too can have random Zippy quotes on the command line. #!/usr/bin/python import random lines = open('/usr/local/etc/yow.lines', 'r').read().split('\000') print lines[random.randint(1, len(lines)-1)].strip() Enjoy. -- Dan Barrett [email protected] _______________________________________________ Discuss mailing list [email protected] http://lists.blu.org/mailman/listinfo/discuss
