Skip to content

Instantly share code, notes, and snippets.

View sodle's full-sized avatar

Scott Odle sodle

View GitHub Profile

Keybase proof

I hereby claim:

  • I am sodle on github.
  • I am sodle (https://keybase.io/sodle) on keybase.
  • I have a public key ASB40snfaYyGjMzIVkzKG_YqYZGWut34R0i6kmXei0T9ggo

To claim this, I am signing this object:

@sodle
sodle / unmixer.user.js
Created August 8, 2019 17:38
Remove the chat box from Mixer
// ==UserScript==
// @name Unmixer
// @namespace http://tampermonkey.net/
// @version 1.0
// @description Hide the chat box on Mixer
// @author You
// @match https://*.mixer.com/*
// @grant GM_addStyle
// ==/UserScript==
@sodle
sodle / react-load-script.d.ts
Created May 27, 2019 21:08
Starting point for react-load-script typedefs
export = Script;
declare interface IScriptProps {
attributes?: object
onCreate?: () => void,
onError: () => void,
onLoad: () => void,
url: string
}
declare class Script {
props: IScriptProps;
@sodle
sodle / verbal_timedelta.py
Created May 20, 2017 13:58
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
sodle / tempe.user.js
Created May 1, 2017 05:03
Userscript to add "Development Projects" link to Tempe.gov homepage
// ==UserScript==
// @name Tempe.gov Site Update
// @namespace http://asu.edu/
// @version 0.1
// @description Adds Development Projects link to Tempe.gov homepage
// @author Scott Odle, Chris Staggers, McGregor Crowley
// @match *://*.tempe.gov/*
// @grant none
// @require https://code.jquery.com/jquery-3.2.1.min.js
// ==/UserScript==