Skip to content

Instantly share code, notes, and snippets.

View mirajshah's full-sized avatar

Miraj Shah mirajshah

View GitHub Profile
@mirajshah
mirajshah / StreetSuffixAbbreviations.JSON
Created November 7, 2015 17:15
Correct U.S. Street Suffix Abbreviations [Source: USPS http://pe.usps.gov/text/pub28/28apc_002.htm]
{
"ALY": "ALY",
"ALLEY": "ALY",
"ALLEE": "ALY",
"ALLY": "ALY",
"ANX": "ANX",
"ANEX": "ANX",
"ANNEX": "ANX",
"ANNX": "ANX",
"ARC": "ARC",
@mirajshah
mirajshah / SConstruct
Created March 21, 2017 05:45
SCons MD5 Decider function to additionally check if targets have changed
def modified_md5_decider(dependency, target, prev_ni):
"""SCons MD5 Decider function that checks if targets have changed"""
# Use default checking for changes in the source file
source_changed = dependency.changed_content(target, prev_ni)
if source_changed:
return source_changed
else:
target_changed = False
# If target node does not implement get_csig(), do not try to determine
# whether to rebuild. (csig = content signature)