This file contains 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 | |
# LGPLv2 yadda yadda yadda, do whatever, yadda yadda yadda, bum it in the gob, yadda yadda yadda | |
import bluetooth, datetime, optparse, time, os, user, pynotify, tempfile, twitter, sys | |
# Install required packages on Ubuntu: | |
# sudo aptitude install python-twitter python-notify python-bluetooth festival | |
# Set these values if you wish to use Twitter (you probably won't, but then I didn't really want too but it happended anyway) |
This file contains 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
import sys | |
import errno | |
def main(): | |
for i in range(20): | |
print i | |
if __name__ == "__main__": | |
# ensure buffer is flushed before we handle SIGPIPE | |
try: |
NewerOlder