Created
April 20, 2011 16:19
-
-
Save scottjacksonx/931816 to your computer and use it in GitHub Desktop.
Shawn and Patrick asked about a TextExpander thing, and then I made it.
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 | |
# coding: utf-8 | |
import random | |
# Instructions: this is a TextExpander snippet. Copy and paste all of this (starting with #!/usr and | |
# ending with "— Shawn") as the content of a new snippet in TextExpander. Then, set the content of the | |
# snippet to "Shell Script". | |
# This is the list of sentences. Add as many as you want. Just write sentences.append("your sentence here") on | |
# a new line and it'll be added to the list. | |
sentences = [] | |
sentences.append("Good catch. Fixed now. Thanks!") | |
sentences.append("Whoops. I'm always making mistakes like that. Fixed now.") | |
sentences.append("Thanks for pointing that out. I've updated the post.") | |
print sentences[random.randint(0,len(sentences)-1)] + "\n\n— Shawn" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment