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 json | |
| import textwrap | |
| import inflect # python3 -m pip install inflect | |
| def intro(): | |
| print( | |
| """As I was going to St. Ives, | |
| I met a man with seven wives, |
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
| import sys | |
| A_LOWERCASE = ord("a") | |
| ALPHABET_SIZE = 26 | |
| def _decompose(number): | |
| """Generate digits from `number` in base alphabet, least significants bits first. |
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
| p -c 'import random as r;print(" meow".join([r.choice(",:;.?!") for _ in range(9**5)])[2:])' |
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
| p -c 'print("meow "*9**5)' |
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
| { | |
| "note:": ["Different number of spaces, to avoid duplicated tweets"], | |
| "origin": [ | |
| "What#space#Fresh#space#Hell?" | |
| ], | |
| "space": [ | |
| " ", | |
| " ", |
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
| { | |
| "origin" : [ | |
| "#firstNames# of Dune", | |
| "#personalNouns.capitalize.s# of Dune", | |
| "#adjs.capitalize# #venues.capitalize# of Dune" | |
| ], | |
| "firstNames" : [ | |
| "Aaliyah", | |
| "Aaron", | |
| "Abby", |
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 <jehiah@gmail.com> 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
| The Pilgrim's Cutthroats: potential cutthroat compounds found in the complete works of John Bunyan, including The Pilgrim's Progress | |
| Source: https://www.gutenberg.org/ebooks/6049 | |
| Clip-promise, "a notorious villain" | |
| Mr. Dam-man, commissioner, trier, high Calvinist, immoral in conduct | |
| Mr. Forget-good, "He could remember nothing but mischief, and to do it with delight." | |
| Mr. Fri-babe, "free-babe"?, commissioner, trier, high Calvinist, immoral in conduct | |
| Lord Hate-good, a judge | |
| Mr. Hate-light, a juror |