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
import argparse | |
import subprocess | |
import sys | |
from pathlib import Path | |
def find_files(src_root: Path, python3: Path): | |
not_py3_compatible = [] | |
for file in src_root.rglob('*.py'): |
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
def StartPoll(): | |
from requests_oauthlib import OAuth1Session | |
#端末向けの公式アプリ系のCK/CSじゃないとダメ(デフォルトでTwitter for iPhone) | |
CK = 'IQKbtAYlXLripLGPWd0HUA' | |
CS = 'GgDYlkSvaPxGxC4X8liwpUoqKwwr3lCADbz8A7ADU' | |
AT = '' | |
AS = '' | |
auth = OAuth1Session(CK, CS, AT, AS) |
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 | |
""" | |
twitter_archiver.py written by Jehiah Czebotar 2010 <[email protected]> http://jehiah.cz/ | |
this uses the great 'python twitter tools' library by Mike Verdone | |
http://mike.verdone.ca/twitter/ | |
usage: | |
$ pip install twitter |
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 | |
""" | |
Python version of nossidge's C++ from https://gist.github.com/nossidge/5272238 | |
Original blurb: | |
~~ Snowball Poem ~~ | |
Snowball (also called a Chaterism): A poem in which each line is a single word, | |
and each successive word is one letter longer. One of the constrained writing | |
techniques invented by the Oulipo (Workshop of Potential Literature). |
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 | |
''' | |
I frequently look up word meanings online. | |
It's kind of a hassle to fire up the browser, and search online after a while. | |
It's a lot easier for me to do it from the command line, when my terminal is one keyboard shortcut away. | |
I wrote this script using the wordnik api that does just that. | |
I suggest you put this somewhere in your PATH, make it executable. | |
Make sure you get a Wornik API key at http://developer.wordnik.com/ |