Skip to content

Instantly share code, notes, and snippets.

View ckarnell's full-sized avatar

Cohen Karnell ckarnell

  • https://trialspark.com/
  • New York City
View GitHub Profile
{
"forms": [
{
"title": "DEMOGRAPHICS",
"label": "DEMOGRAPHICS",
"name": "DEMOGRAPHICS",
"formSections": [
{
"formFields": [
{
@ckarnell
ckarnell / gist:1b5d329b0fbeaed0f85abc226949c5b0
Created June 30, 2017 17:56
Git shortcuts with completion support
# These go in .bashrc:
alias gpsu='git push --set-upstream origin $(git rev-parse --abbrev-ref HEAD)'
alias gco='git checkout'
alias gr='git rebase'
# These go in .git-completion.bash, at the bottom, I guess:
__git_complete gco _git_checkout
__git_complete gr _git_rebase
@ckarnell
ckarnell / .vimrc
Created June 27, 2017 13:58
Replacing syntastic with neomake for linting
" Step 1: Install this: https://github.com/neomake/neomake
" Step 2: Put these in your .vimrc:
" Neomake settings
autocmd! BufWritePost,BufEnter * Neomake
let g:neomake_javascript_enabled_makers = ['eslint']
let g:neomake_scss_enabled_makers = ['scss_lint']
let g:neomake_python_enabled_makers = ['pylint', 'python']
" Step 3: Delete syntastic stuff after you've verified neovim works