Skip to content

Instantly share code, notes, and snippets.

View timokoola's full-sized avatar

Timo Koola timokoola

  • Skadi Oy
  • Helsinki
View GitHub Profile
@timokoola
timokoola / busstops.py
Created December 28, 2015 19:28
Create a static map of nearby public transport stops using Helsinki area Reittiopas API and Google Static Maps API
#!/usr/env/bin/python
# Create a static map of nearby public transport stops using Helsinki area Reittiopas API and Google Static Maps API
# pip install requests if needed
import requests
import sys
import urllib
import string
googleurl = "https://maps.googleapis.com/maps/api/staticmap?center=%s,%s&zoom=%d&scale=2&size=640x640&maptype=roadmap"
# Get API key for Google Static Maps API and documentation at
@timokoola
timokoola / vimrc
Last active December 12, 2015 05:48
Vimrc for Python development. Adjusted from: http://svn.python.org/projects/python/trunk/Misc/Vim/vimrc
" vimrc file for following the coding standards specified in PEP 7 & 8.
"
" To use this file, source it in your own personal .vimrc file (``source
" <filename>``) or, if you don't have a .vimrc file, you can just symlink to it
" (``ln -s <this file> ~/.vimrc``). All options are protected by autocmds
" (read below for an explanation of the command) so blind sourcing of this file
" is safe and will not affect your settings for non-Python or non-C files.
"
"
" All setting are protected by 'au' ('autocmd') statements. Only files ending