Skip to content

Instantly share code, notes, and snippets.

View dyspop's full-sized avatar
🇹🇭
SaaSy

Dan Black dyspop

🇹🇭
SaaSy
View GitHub Profile
@dyspop
dyspop / .bash_profile
Created October 1, 2016 14:57 — forked from natelandau/.bash_profile
Mac OSX Bash Profile
# ---------------------------------------------------------------------------
#
# 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
@dyspop
dyspop / .bash_profile
Created September 15, 2016 20:57
my bash_profile
#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'
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]`
@dyspop
dyspop / zeros.liquid
Last active February 3, 2016 16:00
Liquid zero start of string fill-ins.
{% 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 %}