This file contains hidden or 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 hidden or 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
#aliases | |
alias rmdirectory='rm -rf' | |
alias ll='ls -artlhG' | |
alias get='curl -OL' | |
alias g='grep -i' | |
alias sublime='subl' | |
alias gl='git log' | |
alias gh='git log' | |
alias rmdir='rm -rf' |
This file contains hidden or 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
records = {('wendy', 'sanchez'): ['wunderkind','extraordinaire'], ('dan', 'black'): ['hacker','wannabe'], ('tim', 'black'): ['mad', 'genius', 'dontchaknow'], ('dan', 'garfield'): ['porg', 'rammer', 'snake charmer']} | |
sorted_last = ['black', 'black', 'garfield', 'sanchez'] | |
itered_records = [] | |
for last_name in sorted_last: | |
for key in records: | |
if key[1] == last_name: | |
if str([key + ('', records[key])]) not in itered_records: | |
itered_records.append(str([key + ('', records[key])])) | |
print key, records[key]` |
This file contains hidden or 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
{% assign user_code_str = event.user.user_code | downcase %} | |
{% capture user_code_length %}{{user_code_str | size}}{% endcapture %} | |
{% capture zeros_missing %}{{'9' | minus: user_code_length}}{% endcapture %} | |
{% capture nine_digit_user_code %}{% for zero in zeros_missing %}0{% endfor %}{{event.user.user_code}}{% endcapture %} |
NewerOlder