Skip to content

Instantly share code, notes, and snippets.

@coltborg
coltborg / workspace-settings.json
Created December 31, 2018 15:31
ESLint format on save for Vue.js using Visual Studio Code.
{
"eslint.enable": true,
"editor.formatOnSave": true,
"[javascript]": {
"editor.formatOnSave": false,
},
"[vue]": {
"editor.formatOnSave": false,
},
"eslint.autoFixOnSave": true,
@coltborg
coltborg / settings.json
Created June 2, 2018 16:30
VS Code settings
{
"editor.fontFamily": "Dank Mono",
"editor.fontSize": 14,
"editor.lineNumbers": "relative",
"editor.glyphMargin": true,
"editor.tabSize": 2,
"editor.insertSpaces": true,
"editor.detectIndentation": true,
"editor.roundedSelection": true,
"editor.scrollBeyondLastLine": true,
@coltborg
coltborg / settings.json
Created June 2, 2018 16:30
VS Code settings
{
"editor.fontFamily": "Dank Mono",
"editor.fontSize": 14,
"editor.lineNumbers": "relative",
"editor.glyphMargin": true,
"editor.tabSize": 2,
"editor.insertSpaces": true,
"editor.detectIndentation": true,
"editor.roundedSelection": true,
"editor.scrollBeyondLastLine": true,
@coltborg
coltborg / .vimrc
Created October 21, 2016 04:18
vimrc
syntax on
set number
filetype plugin indent on
set tabstop=2 shiftwidth=2 expandtab
set backspace=indent,eol,start
"Set shortcut and symbols for white space
nmap <leader>l :set list!<CR>
set listchars=tab:▸\ ,eol:¬
"From Daniel Miessler
@coltborg
coltborg / bash_profile
Last active September 17, 2016 15:36
Bash profile using the http://panda.siamak.work/ theme
# get current branch in git repo
function parse_git_branch() {
BRANCH=`git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/'`
if [ ! "${BRANCH}" == "" ]
then
STAT=`parse_git_dirty`
echo "[${BRANCH}${STAT}]"
else
echo ""
fi
// Colt Borg Settings
// Last Updated 6/20/2017
{
// Editor
// Controls the font family.
"editor.fontFamily": "Fira Code",
// Controls the font size.