I hereby claim:
- I am timwright12 on github.
- I am timwright12 (https://keybase.io/timwright12) on keybase.
- I have a public key ASAgVkzSQwMbH3ljfBAfqLK3fbQ7E23nFVt1ZLHcuIhPjQo
To claim this, I am signing this object:
| # Terminal Alias | |
| PS1='\n\W\n[\h][\u] -> ' | |
| # PATH updates | |
| PATH=$PATH:/usr/local/bin | |
| PATH=/usr/local/bin:$PATH | |
| export PATH=~/.composer/vendor/bin:$PATH | |
| # Command alias | |
| alias edithosts='sudo vi /private/etc/hosts' |
| /** @function | |
| * @name debounce | |
| * @description Utility method for debouncing the resize event | |
| * @param {function} func | |
| * @param {number} wait | |
| * @param {object} immediate | |
| * @example var myEfficientFn = debounce(function() { things to do }, 250); | |
| * @example window.addEventListener( 'resize', myEfficientFn ); | |
| */ |
| /** | |
| * @file A simple Ajax call that will work down to IE10 | |
| * @author Tim Wright | |
| * @license MIT | |
| * @example ajaxCall({ 'url' : 'http://...', 'type' : 'GET', 'data' : 'json' }, function( data ){ /callback function here/ }); | |
| */ | |
| ( function ( global ) { | |
| 'use strict'; |
| /** | |
| * Get URL params | |
| * | |
| * @param {String} query - The location.search query | |
| * @returns {Object} - the params | |
| */ | |
| export const getUrlParams = ( query ) => { | |
| const vars = query.split( '&' ); | |
| const queryString = {}; |
| # Terminal Alias | |
| PS1='\n\W\n[\h][\u] -> ' | |
| # Command alias | |
| alias edithosts='sudo vi /private/etc/hosts' | |
| alias editbash='atom-beta ~/.bash_profile' | |
| alias phpserver='php -S localhost:8000' | |
| alias pythonserver='python -m SimpleHTTPServer 8888' | |
| alias npm-remove-packages='rm -rf node_modules/ && rm -rf package-lock.json' | |
| alias npm-reset-packages='rm -rf node_modules/ && rm -rf package-lock.json && npm install' |
| #!/usr/bin/env bash | |
| runCmd() { | |
| echo "" | |
| echo ">>> $@" | |
| echo "" | |
| eval "$@" | |
| local code=$? | |
| [[ $code -ne 0 ]] && return $code | |
| } |
I hereby claim:
To claim this, I am signing this object:
| export NVM_DIR="$HOME/.nvm" | |
| [ -s "/usr/local/opt/nvm/nvm.sh" ] && \. "/usr/local/opt/nvm/nvm.sh" # This loads nvm | |
| [ -s "/usr/local/opt/nvm/etc/bash_completion.d/nvm" ] && \. "/usr/local/opt/nvm/etc/bash_completion.d/nvm" # This loads nvm bash_completion | |
| # Terminal Alias | |
| NEWLINE=$'\n' | |
| ME=$'tim' | |
| PROMPT="${NEWLINE}%B%F{white}%1~%f%b${NEWLINE}[${ME}] -> " | |
| # PROMPT="${NEWLINE}%B%F{white}%1~%f%b${NEWLINE}[%m][${ME}] -> " |
You are an experienced, pragmatic software engineer. You don't over-engineer a solution when a simple one is possible.
Rule #1: If you want exception to ANY rule, YOU MUST STOP and get explicit permission from Tim first. BREAKING THE LETTER OR SPIRIT OF THE RULES IS FAILURE.