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
| as='colourify as' | |
| c=clear | |
| colourify='/usr/local/bin/grc -es --colour=auto' | |
| configure='colourify ./configure' | |
| df='colourify df' | |
| diff='colourify diff' | |
| dig='colourify dig' | |
| g='cat ~/.dotfiles/git/aliases.zsh' | |
| g++='colourify g++' | |
| gas='colourify gas' |
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
| # shortcut to this dotfiles path is $ZSH | |
| export ZSH=$HOME/.dotfiles | |
| # your project folder that we can `c [tab]` to | |
| export PROJECTS=~/src | |
| # Stash your environment variables in ~/.localrc. This means they'll stay out | |
| # of your main dotfiles repository (which may be public, like this one), but | |
| # you'll have access to them in your scripts. | |
| if [[ -a ~/.localrc ]] |
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
| alias reload!='. ~/.zshrc' | |
| alias c='clear' | |
| alias g='cat ~/.dotfiles/git/aliases.zsh' | |
| alias e='exit' |
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
| # Use `hub` as our git wrapper: | |
| # http://defunkt.github.com/hub/ | |
| hub_path=$(which hub) | |
| if (( $+commands[hub] )) | |
| then | |
| alias git=$hub_path | |
| fi | |
| # The rest of my fun git aliases | |
| alias gpp='git pull --prune' |
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
| import superagent from 'superagent'; | |
| import config from '../config'; | |
| import cookie from 'react-cookie'; | |
| const methods = ['get', 'post', 'put', 'patch', 'del']; | |
| function formatUrl(path) { | |
| const adjustedPath = path[0] !== '/' ? '/' + path : path; | |
| if (__SERVER__) { | |
| // Prepend host and port of the API server to the path. |
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
| # Use `hub` as our git wrapper: | |
| # http://defunkt.github.com/hub/ | |
| hub_path=$(which hub) | |
| if (( $+commands[hub] )) | |
| then | |
| alias git=$hub_path | |
| fi | |
| # The rest of my fun git aliases | |
| alias gpp='git pull --prune' |
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
| A; B Run A and then B, regardless of success of A | |
| A && B Run B if A succeeded | |
| A || B Run B if A failed | |
| A & Run A in background. |
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
| cask_args appdir: '/Applications' | |
| tap 'homebrew/bundle' | |
| brew 'ack' | |
| brew 'coreutils' | |
| brew 'grc' | |
| brew 'libgit2' | |
| brew 'openssl' | |
| brew 'readline' |
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
| " ============================================================================ | |
| " Netrw Directory Listing (netrw v156) | |
| " /Users/rocky.assad/src/tools/jira-githooks | |
| " Sorted by name | |
| " Sort sequence: [\/]$,\<core\%(\.\d\+\)\=\>,\.h$,\.c$,\.cpp$,\~\=\*$,*,\.o$,\.obj$,\.info$,\.swp$,\.bak$,\~$ | |
| " Quick Help: <F1>:help -:go up dir D:delete R:rename s:sort-by x:special | |
| " ============================================================================== | |
| ../ | |
| ./ | |
| .git/ |
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
| var request = require('request'); | |
| request.post( | |
| 'https://formio.form.io/user/login', | |
| { | |
| data: { | |
| 'email': email, | |
| 'password': password | |
| } | |
| }, |