Skip to content

Instantly share code, notes, and snippets.

Scott Odle sodle

View GitHub Profile
sodle /
Created May 20, 2017
Python function to express timedeltas verbally.
def verbal_timedelta(td):
"""Expresses a Python timedelta verbally
:param td: A Python timedelta
:type td: timedelta
:return: A verbal description of the time relative to now
:rtype: str"""
if td.days != 0:
abs_days = abs(td.days)
if abs_days > 7:
abs_delta = '{} weeks'.format(td.days // 7)
sodle / tempe.user.js
Created May 1, 2017
Userscript to add "Development Projects" link to homepage
View tempe.user.js
// ==UserScript==
// @name Site Update
// @namespace
// @version 0.1
// @description Adds Development Projects link to homepage
// @author Scott Odle, Chris Staggers, McGregor Crowley
// @match *://**
// @grant none
// @require
// ==/UserScript==
You can’t perform that action at this time.