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
set encoding=UTF-8 | |
set nocompatible | |
" enable syntax and plugins | |
syntax enable | |
filetype plugin on | |
" Plugins | |
call plug#begin('~/.vim/plugged') | |
Plug 'tpope/vim-sensible' |
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
# My Aliases | |
alias atom='open -a "Atom"' | |
alias brofile='open ~/.bash_profile' | |
alias chrm='open -a /Applications/Google\ Chrome.app' | |
alias tree='tree -I ".sass-cache|node_modules"' | |
alias ghd='open -a "/Applications/GitHub Desktop.app"' | |
alias flush="dscacheutil -flushcache && killall -HUP mDNSResponder" | |
alias getpath='pwd | tr -d "\r\n" | pbcopy' | |
alias getwp='curl -O https://wordpress.org/latest.zip && unzip latest.zip && rm latest.zip' |
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
// By @coderitual | |
// https://twitter.com/coderitual/status/1112297299307384833 | |
// Remove any duplicates from an array of primitives. | |
const unique = [...new Set(arr)] | |
// Sleep in async functions. Use: await sleep(2000). | |
const sleep = (ms) => (new Promise(resolve => setTimeout(resolve, ms))); | |
// Type this in your code to break chrome debugger in that line. |