Skip to content

Instantly share code, notes, and snippets.

❯ echo "foo"
echofoo
..thbox/dbx-api
~/Code/Healthbox/dbx-api master*
❯ echo "bar"
echobar
..thbox/dbx-api
~/Code/Healthbox/dbx-api master*
api_domain: 'databoxapi.dev'
aws_key: 'none'
aws_secret: 'none'
aws_bucket: 'none'
asset_host: 'databoxapi.dev'
dbx_apps_spa_base: '/'
"powerline
set guifont=Source\ Code\ Pro\ for\ Powerline:h13
" Plug check and auto install
let iCanHazVimPlug=1
let VimplugReadme=expand('~/.vim/autoload/plug.vim')
if !filereadable(VimplugReadme)
echo "Installing VimPlug.."
echo ""
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
" now do the same for terminal
tnoremap <Esc> <C-\><C-n>
tnoremap <C-h> <C-\><C-n><C-w>h
tnoremap <C-j> <C-\><C-n><C-w>j
tnoremap <C-k> <C-\><C-n><C-w>k
tnoremap <C-l> <C-\><C-n><C-w>l
nnoremap <C-h> <C-w>h
nnoremap <C-j> <C-w>j
nnoremap <C-k> <C-w>k
nnoremap <C-l> <C-w>l
infocmp $TERM | sed 's/kbs=^[hH]/kbs=\\177/' > $TERM.ti
tic $TERM.ti
"for better split navigation
noremap <C-h> <C-w>h
noremap <C-j> <C-w>j
noremap <C-k> <C-w>k
noremap <C-l> <C-w>l
api_domain: 'databoxapi.dev'
aws_key: 'none'
aws_secret: 'none'
aws_bucket: 'none'
asset_host: 'databoxapi.dev'
dbx_apps_spa_base: '/app-portal/'
export PATH=`rbenv root`/shims:`rbenv root`/bin:$PATH
export POW_DST_PORT=20559
# steps to build
### init ###
0. delete dir
- https://github.com/gruntjs/grunt-contrib-clean
### sprites ###
1. create spritemap, stylus / sass for spritemap
- https://github.com/bguiz/broccoli-sprite
# replace $$value$$ with actual reference to ngModel
# i.e. model['attr'] or model['nested']['attr']
key = ''
if scope.form.key
key = sfPath.stringify(scope.form.key).replace(/"/g, '&quot;')
keyStr = 'model' + (if key[0] != '[' then '.' else '') + key