Skip to content

Instantly share code, notes, and snippets.


Hugo van Kemenade hugovk

  • Nord Software
  • Helsinki, Finland
  • @hugovk
View GitHub Profile
hugovk /
Last active Feb 28, 2020 — forked from aaltat/
Find files which are not Python 3 compatible
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'):
hugovk /
Created Jun 9, 2016
Twitterの投票機能 投票を発行(対策された?, あとで修正します)
def StartPoll():
from requests_oauthlib import OAuth1Session
#端末向けの公式アプリ系のCK/CSじゃないとダメ(デフォルトでTwitter for iPhone)
CS = 'GgDYlkSvaPxGxC4X8liwpUoqKwwr3lCADbz8A7ADU'
AT = ''
AS = ''
auth = OAuth1Session(CK, CS, AT, AS)
hugovk /
Created May 11, 2016 — forked from jehiah/
python script to archive your tweets
#!/usr/bin/env python
""" written by Jehiah Czebotar 2010 <>
this uses the great 'python twitter tools' library by Mike Verdone
$ pip install twitter
hugovk / Snowball
Last active Dec 16, 2015 — forked from nossidge/Snowball
Python version of nossidge's C++ from
View Snowball
#!/usr/bin/env python
Python version of nossidge's C++ from
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).
#!/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