Skip to content

Instantly share code, notes, and snippets.

Hugo van Kemenade hugovk

  • Nord Software
  • Helsinki, Finland
Block or report user

Report or block hugovk

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
import sys
A_LOWERCASE = ord("a")
def _decompose(number):
"""Generate digits from `number` in base alphabet, least significants bits first.
hugovk /
Created Nov 21, 2019
#NNNGM: Another 50,000 Meows: better version
p -c 'import random as r;print(" meow".join([r.choice(",:;.?!") for _ in range(9**5)])[2:])'
hugovk /
Created Nov 21, 2019
#NNNGM: Another 50,000 Meows: basic version
p -c 'print("meow "*9**5)'
hugovk /
Created Dec 17, 2015
Split a text into sentences shorter than 140 characters.
#!/usr/bin/env python
# encoding: utf-8
Split a text into sentences shorter than 140 characters.
You'll need to first install TextBlob by running:
pip install -U textblob
Then stick your text into the text bit below and run this script:
hugovk / whatfreshhell.json
Created Nov 21, 2016
1. Create a new Twitter bot account 2. Sign in to 3. Paste this code in there and away you go! (re:
View whatfreshhell.json
"note:": ["Different number of spaces, to avoid duplicated tweets"],
"origin": [
"space": [
" ",
" ",
hugovk / dunebot.json
Created Oct 6, 2016
"WLTS a bot like @PotterPapers but for Dune novels."
View dunebot.json
"origin" : [
"#firstNames# of Dune",
"#personalNouns.capitalize.s# of Dune",
"#adjs.capitalize# #venues.capitalize# of Dune"
"firstNames" : [
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 / .jshintrc
Last active Apr 29, 2016
Gruntfile for Drupal to compile Less to CSS with source maps
View .jshintrc
"node": true,
"browser": true,
"esnext": true,
"bitwise": true,
"camelcase": true,
"curly": true,
"eqeqeq": true,
"immed": true,
"indent": 4,
hugovk / helsinki_metro_stations.csv
Last active Mar 9, 2016
Helsinki metro stations, co-ordinates taken from Wikipedia.
View helsinki_metro_stations.csv
Latitude Longitude Name
60.163056 24.914444 Ruoholahti
60.168889 24.931944 Kamppi
60.170556 24.940556 Rautatientori
60.172222 24.9475 Helsingin yliopisto
60.18 24.950556 Hakaniemi
60.1875 24.961111 Sörnäinen
60.1875 24.976944 Kalasatama
60.188889 25.008056 Kulosaari
60.195 25.030833 Herttoniemi
You can’t perform that action at this time.