Skip to content

Instantly share code, notes, and snippets.

View welcomeuniverse's full-sized avatar
💭
I usually am busy with 9-5 work.

Welcome Universe welcomeuniverse

💭
I usually am busy with 9-5 work.
View GitHub Profile
@welcomeuniverse
welcomeuniverse / .vimrc
Created April 6, 2019 00:05 — forked from mikowl/.vimrc
My simple vim config
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'
@welcomeuniverse
welcomeuniverse / .bash_profile
Created April 6, 2019 00:05 — forked from mikowl/.bash_profile
My bash_profile
# 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'
@welcomeuniverse
welcomeuniverse / oneliners.js
Created April 5, 2019 23:39 — forked from mikowl/oneliners.js
👑 Awesome one-liners you might find useful while coding.
// 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.