Skip to content

Instantly share code, notes, and snippets.

View connormullett's full-sized avatar
🌴
On vacation

Connor Mullett connormullett

🌴
On vacation
View GitHub Profile
@connormullett
connormullett / autoactivatevenv.sh
Created April 2, 2019 03:59
zsh snippet to auto activate and deactivate Python virtual environments. Note that this only works if you are like me and name all of your virtual environments venv
# Add the following code to your .zshrc or .bashrc
# to auto activate python virtual environments
function cd() {
builtin cd "$@"
if [[ -z "$VIRTUAL_ENV" ]] ; then
if [[ -d ./venv ]] ; then
echo ":: Activating virtual environment"
source ./venv/bin/activate
@connormullett
connormullett / FlaskChallenge.md
Created April 4, 2019 13:06
Flask Challenge for EFA Python - April 4th

Flask Challenge - April 4th

Goal:

Build a simple API with your groups that can perform CRUD Operations on a Dictionary in another file

Requirements

  • Must use Flask with proper routing to display and recieve information
  • Must be able to perform CRUD Operations
  • this includes get one and get all
@connormullett
connormullett / .vimrc
Created April 20, 2019 12:51
Vim settings i can't remember for the life of me
highlight Normal ctermbg=none
highlight NonText ctermbg=none
map <f5> <Esc>:w<CR>:!clear;python3 -i %<CR>
map <f6> <Esc>:w<CR>:!clear;python3 %<CR>
map <leader>c :noh<CR>
set nu! rnu!
set noshowmode
# https://github.com/gpakosz/.tmux
# (‑●‑●)> dual licensed under the WTFPL v2 license and the MIT license,
# without any warranty.
# Copyright 2012— Gregory Pakosz (@gpakosz).
# -- navigation ----------------------------------------------------------------
# if you're running tmux within iTerm2
# - and tmux is 1.9 or 1.9a