BLU Discuss list archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Discuss] Yow
- Subject: [Discuss] Yow
- From: dbarrett at blazemonger.com (Daniel Barrett)
- Date: Sat, 21 May 2016 13:05:24 -0400
- References: <mailman.7.1460476806.5075.discuss@blu.org>
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 dbarrett at blazemonger.com
- Prev by Date: [Discuss] ZFS On Linux "in" Debian, migration from Btrfs
- Next by Date: [Discuss] [Cryptography] Entropy Needed for SSH Keys?
- Previous by thread: [Discuss] ZFS On Linux "in" Debian, migration from Btrfs
- Next by thread: [Discuss] [Cryptography] Entropy Needed for SSH Keys?
- Index(es):