Skip to content

Instantly share code, notes, and snippets.

View hugovk's full-sized avatar

Hugo van Kemenade hugovk

View GitHub Profile
@hugovk
hugovk / twitter_archiver.py
Created May 11, 2016 07:06 — forked from jehiah/twitter_archiver.py
python script to archive your tweets
#!/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
@hugovk
hugovk / .jshintrc
Last active April 29, 2016 11:50
Gruntfile for Drupal to compile Less to CSS with source maps
{
"node": true,
"browser": true,
"esnext": true,
"bitwise": true,
"camelcase": true,
"curly": true,
"eqeqeq": true,
"immed": true,
"indent": 4,
@hugovk
hugovk / helsinki_metro_stations.csv
Last active March 9, 2016 20:04
Helsinki metro stations, co-ordinates taken from Wikipedia.
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
@hugovk
hugovk / pilgrims-progress-capped-hyphenated-edited.txt
Last active February 25, 2016 09:10
The Pilgrim's Cutthroats: potential cutthroat compounds found in the complete works of John Bunyan, including The Pilgrim's Progress
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
@hugovk
hugovk / Snowball
Last active December 16, 2015 20:48 — forked from nossidge/Snowball
Python version of nossidge's C++ from https://gist.github.com/nossidge/5272238
#!/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).
@hugovk
hugovk / define.py
Last active December 10, 2015 18:58 — forked from luisnaranjo733/define.py
#!/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/
@hugovk
hugovk / schbot_trends.txt
Last active November 30, 2015 18:16
UK and US Twitter trends from 26 Jan - 30 Nov 2015, one logged per hour (except the first few include World, France and Sweden WOEIDs) by https://twitter.com/botschmot
@hugovk
hugovk / todayschallenge.py
Created September 3, 2015 05:40
Convert the letters of your full name into numbers, add them together, & determine the prime factorization of the sum
#!/usr/bin/env python
# encoding: utf-8
"""
Today's challenge:
Convert the letters of your full name into numbers, add them together,
& determine the prime factorization of the sum
https://twitter.com/todayschallenge/status/638713672278351875
https://twitter.com/todayschallenge/status/639075809060356096
"""
@hugovk
hugovk / HOLD-DOOR-1801.jpg
Last active August 29, 2015 14:22
Cutthroats: A supplement to Johnson's English dictionary (1801)
HOLD-DOOR-1801.jpg
@hugovk
hugovk / Vagrantfile
Created June 1, 2015 07:39
A Drupal Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
hostname = 'myvagrant'
domain = 'example.com'
ip = '192.168.54.5'
#forwarded_port = 8080
cpus = 2
ram = 2048