Skip to content

Instantly share code, notes, and snippets.

View tcgarvin's full-sized avatar

Tim Garvin tcgarvin

View GitHub Profile
@tcgarvin
tcgarvin / venv.sh
Last active March 24, 2020 16:15
Bash function to deactivate the current virtual environment and activate the one in the present directory
#!/bin/bash
# Bash function to deactivate the current virtual environment and activate the one in the present directory
venv () {
if [ -f "venv/bin/activate" ]; then
if [ "`type -t deactivate`" = "function" ]; then
echo "Deactivating venv in anticipation of a new one"
deactivate
fi
@tcgarvin
tcgarvin / .block
Last active July 31, 2018 21:02 — forked from mbostock/.block
Multi-Foci Force Layout
license: gpl-3.0
@tcgarvin
tcgarvin / app.py
Created July 3, 2016 23:30
Maybe a little less minimal than you wanted..
import asyncio
from growler import App
from growler.middleware import (Logger, Static, StringRenderer)
loop = asyncio.get_event_loop()
# Construct our application with name GrowlerServer
app = App('GrowlerServer', loop=loop)
@tcgarvin
tcgarvin / README.md
Last active August 29, 2015 14:15
House of Cards Flag

I might be a little too excited for the next season.