Skip to content

Instantly share code, notes, and snippets.

@ColinSather
ColinSather / passport.js
Created September 22, 2021 23:49 — forked from manjeshpv/passport.js
Passport.js using MySQL for Authentication with Express
// config/passport.js
// load all the things we need
var LocalStrategy = require('passport-local').Strategy;
var mysql = require('mysql');
var connection = mysql.createConnection({
host : 'localhost',
user : 'root',
@ColinSather
ColinSather / .vimrc
Last active September 5, 2021 17:35
Colin's .vimrc file used in Vim for Windows 10
" This .vimrc file is designed for running gvim on Windows
set backupdir=~/vimtmp//,.
set directory=~/vimtmp//,.
set backspace=indent,eol,start
syntax on
" Strike F9 to run python scripts in vim
autocmd FileType python map <buffer> <F9> :w<CR>:exec '!python' shellescape(@%, 1)<CR>
autocmd FileType python imap <buffer> <F9> <esc>:w<CR>:exec '!python' shellescape(@%, 1)<CR>
set tabstop=4