Skip to content

Instantly share code, notes, and snippets.

View zachmccormick's full-sized avatar

Zach McCormick zachmccormick

View GitHub Profile
@zachmccormick
zachmccormick / filibuster.js
Last active June 30, 2021 18:39
filibuster.js
var Filibuster = async function() {
const text = `
It was the best of times, it was the worst of times, it was the age of wisdom, it was the age of foolishness, it was the epoch of belief, it was the epoch of incredulity, it was the season of Light, it was the season of Darkness, it was the spring of hope, it was the winter of despair, we had everything before us, we had nothing before us, we were all going direct to Heaven, we were all going direct the other way—in short, the period was so far like the present period, that some of its noisiest authorities insisted on its being received, for good or for evil, in the superlative degree of comparison only.
There were a king with a large jaw and a queen with a plain face, on the throne of England; there were a king with a large jaw and a queen with a fair face, on the throne of France. In both countries it was clearer than crystal to the lords of the State preserves of loaves and fishes, that things in general were settled for ever.
It was the year of Our
@zachmccormick
zachmccormick / osx-for-hackers.sh
Created October 13, 2015 22:07 — forked from matthewmueller/osx-for-hackers.sh
OSX for Hackers (Mavericks/Yosemite)
# OSX for Hackers (Mavericks/Yosemite)
#
# Source: https://gist.github.com/brandonb927/3195465
#!/bin/sh
# Some things taken from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Ask for the administrator password upfront
@zachmccormick
zachmccormick / gist:c76714bc9259fbf22c38
Created February 19, 2015 23:51
Automagically set virtualenv (either folder name or .venv file)
function check_for_virtual_env {
[ -d .git ] || git rev-parse --git-dir &> /dev/null
if [ $? == 0 ]; then
local ENV_NAME=`basename \`pwd\``
if [ -e .venv ]; then
ENV_NAME=`cat .venv`
fi
if [ "${VIRTUAL_ENV##*/}" != $ENV_NAME ] && [ -e $WORKON_HOME/$ENV_NAME/bin/