Skip to content

Instantly share code, notes, and snippets.

View dmhowcroft's full-sized avatar

Dave Howcroft dmhowcroft

View GitHub Profile
@dmhowcroft
dmhowcroft / bus.py
Created May 16, 2016 16:55 — forked from interrogator/bus.py
Tells you when the next bus is coming
#!/usr/bin/python
def nextbus(where = 'guess', nbus = 5, walking_time = 3):
"""
tells you when the next bus is from home or to uni
where: 'h'/'u'/'guess': home, uni, or try to guess based on wifi connection name
walking_time: don't show buses less than n mins from now
nbus: show next n buses
@dmhowcroft
dmhowcroft / bobp-python.md
Created July 18, 2017 15:31 — forked from sloria/bobp-python.md
A "Best of the Best Practices" (BOBP) guide to developing in Python.

The Best of the Best Practices (BOBP) Guide for Python

A "Best of the Best Practices" (BOBP) guide to developing in Python.

In General

Values

  • "Build tools for others that you want to be built for you." - Kenneth Reitz
  • "Simplicity is alway better than functionality." - Pieter Hintjens