Skip to content

Instantly share code, notes, and snippets.

View ussjoin's full-sized avatar

Brendan O'Connor ussjoin

View GitHub Profile
@ussjoin
ussjoin / Covid QR.md
Last active October 26, 2021 23:20
Getting your COVID QR code

Keybase proof

I hereby claim:

  • I am ussjoin on github.
  • I am ussjoin (https://keybase.io/ussjoin) on keybase.
  • I have a public key whose fingerprint is EC97 0930 4C74 2AC6 817C 2EBF FEAF AE8F B58E DA54

To claim this, I am signing this object:

@ussjoin
ussjoin / gist:6263453
Created August 18, 2013 19:20
Pyqwt is not building on 10.8, with $PYTHONPATH set correctly (as far as I can tell).
eschaton:~ ussjoin$ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/usr/texbin:/usr/local/opt/ruby/bin:/usr/local/opt/ruby193/bin
eschaton:~ ussjoin$ echo $PYTHONPATH
/usr/local/lib/python2.7/site-packages:
eschaton:~ ussjoin$ brew doctor
Your system is ready to brew.
eschaton:~ ussjoin$ brew HOMEBREW_MAKE_JOBS=1 VERBOSE=1 brew install pyqwt 2>&1
Error: Unknown command: HOMEBREW_MAKE_JOBS=1
eschaton:~ ussjoin$ HOMEBREW_MAKE_JOBS=1 VERBOSE=1 brew install pyqwt 2>&1
==> Downloading http://downloads.sourceforge.net/project/pyqwt/pyqwt5/PyQwt-5.2.0/PyQwt-5.2.0.tar.gz

Welcome to Drift!

Drift is an always-already versioned, cloud-backed text editor. You can use it to take notes, and save them in the GitHub cloud.

Your gists are always saved locally, and any changes you make will get pushed to GitHub's servers.

To name a gist, touch its name in the toolbar.

You can use the share button at the top-right to copy a link to one of your gists, or view it on the web in Safari.

@ussjoin
ussjoin / gist:709152
Created November 21, 2010 21:00
Ham Radio Visualization
import processing.opengl.*;
HashMap<String, String> date = new HashMap<String, String>();
HashMap<String, String> license = new HashMap<String, String>();
HashMap<String, Integer> zip = new HashMap<String, Integer>();
float[][] ziplookup = new float[100000][2];
int[] zipbucket = new int[100000];
void setup()
{
@ussjoin
ussjoin / gist:709150
Created November 21, 2010 21:00
Draw Antenna Locations
import processing.opengl.*;
String[] lines;
void setup()
{
size(1024,768, OPENGL);
lines = loadStrings("CO.dat");
noLoop();
}
<?xml version="1.0" encoding="UTF-8"?>
<opml version="1.0">
<head>
<title>USSJoin subscriptions in Google Reader</title>
</head>
<body>
<!--
Blogs I read of personal friends-- Philosophy Walker (AW '04), Yujie Wang, etc.
@ussjoin
ussjoin / gist:192516
Created September 24, 2009 04:43
Script to calculate how many bytes of text I eat per day from my Google Reader subscriptions.
# Script to calculate how many bytes of text I eat per day from my Google Reader
# subscriptions.
use strict;
use XML::Feed;
open(OPML, "<google-reader-subscriptions.xml");
my @lines = <OPML>;
close(OPML);
# Getting the most recent, and 800th most recent, Tweets from my timeline
wget "http://twitter.com/statuses/friends_timeline.atom?count=200&page=1" --http-user=XXX --http-password=XXX
wget "http://twitter.com/statuses/friends_timeline.atom?count=200&page=4" --http-user=XXX --http-password=XXX
import java.util.regex.*;
public class Test
{
public static void main(String[] args)
{
String haystack = "<script>Bad</SCRIPT>Good";
String stripHTMLPattern = "<script.+?</script>";