Skip to content

Instantly share code, notes, and snippets.

View seanmhanson's full-sized avatar

Seán Hanson seanmhanson

View GitHub Profile
@seanmhanson
seanmhanson / ableismSanityCheck.md
Created April 3, 2017 16:17
Ableist Language in Code: Sanity Check

Ableist Language in Code: Sanity Check

Removing ableist language in code is important; it helps to create and maintain an environment that welcomes all developers of all backgrounds, while emphasizing that we as developers select the most articulate, precise, descriptive language we can rather than relying on metaphors. Quite simply, avoiding ableist language lets us make sure we are inclusive of all developers, while moving toward language that is simultaneously more acccessible to developers whose first language might not be our own.

The phrase sanity check is ableist, and unnecessarily references mental health in our code bases. It denotes that people with mental illnesses are inferior, wrong, or incorrect, and the phrase sanity continues to be used by employers and other individuals to discriminate against these people.

There are a ton of alternatives, and one of the best ways to select one is to ask yourself: What am I actually checking? and select something more descriptive. In everyday c

@seanmhanson
seanmhanson / spectraCleanup.py
Last active December 15, 2016 19:48
Spectra DS CMV.INI Cleanup
# CMV.INI Cleanup Script
# @author = Sean Hanson (github: seanmhanson)
#
# Script used to clean the "CMV.INI" initailization file used by
# MediaOcean Spectra DS to associate MediaOcean sessions with Active Directory Users
#
# INPUT: Flag and path as needed to the cmv.ini file. Default value if left blank is "/cmv.ini".
# See also parseArgs below.
# OUTPUT: None, writes files "newcmv_<datestring>.ini" and "removal_report_<datestring>.csv"
# where the date string is in the format YYYYMMDDHHMMSS