Note: If this is your first time logging in to an Amazon Developer Account, you might need to enter a few more details
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
""" | |
Counts file size of objects in your repository's packfile and sorts by | |
buckets. Defaults to buckets of 1M. | |
Requires third-party libraries matplotlib and numpy | |
Author: Jason Drew Panzer | |
""" | |
from matplotlib import pyplot as plt | |
from subprocess import run |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% for enum in types.enums %} | |
extension {{ enum.name }}{% if enum.rawTypeName %}: {{ enum.rawTypeName }} {%endif%} { | |
public func xform() -> NamedDictionary { | |
switch self {} | |
{% for case in enum.cases %} | |
case .{{case.name}}{% if case.hasAssociatedValue %}({% for value in case.associatedValues %}{% if value.localName %}let {{value.localName}}{% if not forloop.last %}, {% endif %}{% endif %}{%endfor%}){% endif %}: | |
return .z("{{case.name}}"{% if case.hasAssociatedValue %}, [{% for value in case.associatedValues %}{% if value.localName %}"{{value.localName}}": {{value.localName}}{% if not forloop.last %}, {% endif %}{% endif %}{%endfor%}]{% endif %}) | |
{% endfor %} | |
default: | |
return .z("n/a") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# --------------------------------------------------------------------------- | |
# | |
# Description: This file holds all my BASH configurations and aliases | |
# | |
# Sections: | |
# 1. Environment Configuration | |
# 2. Make Terminal Better (remapping defaults and adding functionality) | |
# 3. File and Folder Management | |
# 4. Searching | |
# 5. Process Management |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#image processing resources | |
from skimage.io import imread, imshow | |
from skimage.filters import gaussian, threshold_otsu | |
from skimage.feature import canny | |
from skimage.transform import probabilistic_hough_line, rotate | |
#testing | |
import numpy as np | |
import os |