Skip to content

Instantly share code, notes, and snippets.


Aaron Snitzer snitzr

View GitHub Profile
brandon-rhodes / gist:3438936
Created Aug 23, 2012
Geographically correct alternative to's sweepArc() function
View gist:3438936
/* NOTE: this function requires the Google Maps "geometry" library which
Radarmatic does not currently load. It would need to load Maps with: */
function sweepArc(context, center_x, center_y, radius, width,
start_angle, end_angle) {
/* Special case: if we are being asked to draw the big gray circle
around the current radar site, then draw a big gray circle. */
drmohundro / private.xml
Last active Sep 21, 2017
Karabiner private.xml to swap option and command keys for Parallels
View private.xml
<?xml version="1.0"?>
mytharcher / compressor.rb
Last active Dec 16, 2019
A jekyll plugin for compressing HTML, JavaScript files when rendering.
View compressor.rb
# File compressor plugin for jekyll
# =================================
# By [mytharcher](
# 2012-05-20
# Updated by [nicoespeon](
# 2013-04-12
hew /
Last active Jul 22, 2020
Operator Mono w/ Italics on OSX VIm

Operator Mono w/ Italics on OSX Vim

hail2u / twitter-bird.svg
Created Jun 6, 2012
SVG version of the new Twitter bird.
View twitter-bird.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
rygorous / vr_urgh.txt
Last active Mar 23, 2021
What I mean when I say "I think VR is bad news".
View vr_urgh.txt
This just got linked to by the Y combinator news account, without proper context,
so a brief introduction: A month ago (end of May / early June 2014) I had a
Twitter conversation with a bunch of acquaintances. One tweet in the middle
of that thread, with obligatory hyperbole, was me saying that I think VR is
bad news.
Well, that part of the thread (but not the rest that provides context) recently
got retweeted, and then someone asked me if I could explain what I mean by that,
and because Twitter is a great platform for delivering 140 character slogans and
not so great for lengthy explanations, I wrote this. So, obligatory disclaimer:
View how to screencapture and make animated gifs or

Screencapture and animated gifs

I say "animated gif" but in reality I think it's irresponsible to be serving "real" GIF files to people now. You should be serving gfy's, gifv's, webm, mp4s, whatever. They're a fraction of the filesize making it easier for you to deliver high fidelity, full color animation very quickly, especially on bad mobile connections. (But I suppose if you're just doing this for small audiences (like bug reporting), then LICEcap is a good solution).

Capturing (Easy)

  1. Launch quicktime player
  2. do Screen recording

screen shot 2014-10-22 at 11 16 23 am

tsabat /
Last active Aug 1, 2021
Getting oh-my-zsh to work in Ubuntu


apt-get install zsh
apt-get install git-core

Getting zsh to work in ubuntu is weird, since sh does not understand the source command. So, you do this to install zsh

wget -O - | zsh
davej /
Last active Oct 2, 2021
This script will delete all of the tweets in a specified account.
# -*- coding: utf-8 -*-
This script will delete all of the tweets in the specified account.
You may need to hit the "more" button on the bottom of your twitter profile
page every now and then as the script runs, this is due to a bug in twitter.
You will need to get a consumer key and consumer secret token to use this
script, you can do so by registering a twitter application at
@requirements: Python 2.5+, Tweepy (