Skip to content

Instantly share code, notes, and snippets.

@NateMeyvis
NateMeyvis / .bash_aliases
Created May 10, 2022 17:31
.bash_aliases
alias gaa="git add --all"
alias gcm="git commit -m"
alias fh="history | grep"
alias gbl="git branch -l"
alias gs="git status"
alias gss="git status -s"
alias gp="git push"
alias lfd="pytest --lf --pdb"
alias ptk="pytest -k"
@NateMeyvis
NateMeyvis / .vimrc
Last active May 12, 2022 10:02
Nate Meyvis' .vimrc
set nocompatible
set tabstop=4
set softtabstop=4
set shiftwidth=4
set expandtab
set number
set wrap
set encoding=utf-8
Abdalla Jake
Abdallah George
Abrams Scott
Adams Timothy
Affleck Matt
Ahmed Owais
Aido Sergio
Lederer Howard
Akenhead James
Akkari Andre
@NateMeyvis
NateMeyvis / mvp_ballots.py
Created November 22, 2015 20:10
Response to Tango's question 11/22/2015
# This is a quick and dirty tool for answering questions such as Tango asked on his blog Nov. 22, 2015.
# I make _no claims_ that this code is elegant or Pythonic. I optimized for development speed.
#***WARNING***: if you got your tab-separated file by copy/pasting from BWWAA's Google Sheet,
#there will be extraneous tabs in two locations. You will need to remove these.
#The offending cells occur in the rows for Jeff Wilson's and Alex Pavlovic's ballots.
#Ballots are available here [https://goo.gl/US8Xp6] (AL) and here [https://goo.gl/p9yH73] (NL)
#Once you have this, you can answer Tango's question with, for example, "give_voting_df('al.txt').sort('Score')['Score']"