Skip to content

Instantly share code, notes, and snippets.

View pertrai1's full-sized avatar
🏠
Working from home

Rob Simpson pertrai1

🏠
Working from home
  • Waynesville, NC
View GitHub Profile
@pertrai1
pertrai1 / .vimrc-new
Created December 8, 2016 08:45
vimrc generated
"*****************************************************************************
"" Vim-PLug core
"*****************************************************************************
if has('vim_starting')
set nocompatible " Be iMproved
endif
let vimplug_exists=expand('~/.vim/autoload/plug.vim')
let g:vim_bootstrap_langs = "c,html,javascript"
@pertrai1
pertrai1 / .vimrc.local
Created December 8, 2016 08:44
.vimrc.local
nnoremap ; :
nnoremap <silent><BS> :nohlsearch<CR>
set list lcs=trail:·,tab:»·
"bind K to grep word under cursor
nnoremap K :grep! "\b<C-R><C-W>\b"<CR>:cw<CR>
augroup refreshVimrc
autocmd!
@pertrai1
pertrai1 / ctags
Created December 7, 2016 08:25
JavaScript CTags
--sort=yes
--tag-relative
--recurse
--exclude=node_modules
--exclude=coverage
--exclude=vendor
--exclude=bower_components
--langdef=js
--langmap=js:.js
@pertrai1
pertrai1 / alias.txt
Last active May 22, 2020 18:31
Aliases
-='cd -'
...=../..
....=../../..
.....=../../../..
......=../../../../..
1='cd -'
2='cd -2'
3='cd -3'
4='cd -4'
5='cd -5'
@pertrai1
pertrai1 / chrome-remote.txt
Created November 24, 2016 14:04
Remote Debug Chrome Profile
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222 --no-first-run --no-default-browser-check --user-data-dir=$(mktemp -d -t 'chrome-remote_data_dir')
@pertrai1
pertrai1 / .vimrc
Last active December 6, 2016 09:24
Updated VIMRC
" https://thoughtbot.com/upcase/the-art-of-vim
" http://learnvimscriptthehardway.stevelosh.com/
set nocompatible
set encoding=utf-8
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
@pertrai1
pertrai1 / pull_request_template.md
Last active October 31, 2016 15:05
Example of a Pull Request Template

What this PR does?

Where should the reviewer(s) start?

How should this be manually tested?

Background context you want to provide?

What are the relevant tickets?

Screenshots (if appropriate)

@pertrai1
pertrai1 / runfile.js
Created October 19, 2016 02:20 — forked from pawelgalazka/runfile.js
Example of runfile.js (for medium article)
import { run } from 'runjs'
const task = {
'clean': () => {
run('rm -rf node_modules')
run('rm -rf build')
},
'build:clean': () => {
run('rm -rf build')
run('mkdir build')
@pertrai1
pertrai1 / package.json
Created October 19, 2016 02:19 — forked from pawelgalazka/package.json
Example of npm scripts
"scripts": {
"clean": "rimraf dist/*",
"prebuild": "npm run clean -s",
"build": "npm run build:scripts -s && npm run build:styles -s && npm run build:markup -s",
"build:scripts": "browserify -d assets/scripts/main.js -p [minifyify --compressPath . --map main.js.map --output dist/main.js.map] | hashmark -n dist/main.js -s -l 8 -m assets.json 'dist/{name}{hash}{ext}'",
"build:styles": "stylus assets/styles/main.styl -m -o dist/ && hashmark -s -l 8 -m assets.json dist/main.css 'dist/{name}{hash}{ext}'",
"build:markup": "jade assets/markup/index.jade --obj assets.json -o dist",
"test": "karma start --singleRun",
"watch": "parallelshell 'npm run watch:test -s' 'npm run watch:build -s'",
"watch:test": "karma start",
{
"always_show_minimap_viewport": true,
"binary_file_patterns":
[
"node_modules/",
"build/",
"tmp/",
"vendor",
"dist"
],