Skip to content

Instantly share code, notes, and snippets.

View hannahherbig's full-sized avatar

Hannah Herbig hannahherbig

View GitHub Profile
2010-03-28 09:40:38: DeltaBox: irc.deltabox.net -> :hannah!hannah@eegh-48-77-47-245.washdc.east.verizon.net PRIVMSG #deltabox :.getuser go4it7arh
2010-03-28 09:40:38: DeltaBox: irc.deltabox.net <- PRIVMSG #deltabox :hannah: Check your notices.
2010-03-28 09:40:38: DeltaBox: irc.deltabox.net <- NOTICE hannah :Friends : 611
2010-03-28 09:40:38: DeltaBox: irc.deltabox.net <- NOTICE hannah :Followers : 367
2010-03-28 09:40:38: DeltaBox: irc.deltabox.net <- NOTICE hannah :Tweets : 9137
2010-03-28 09:40:38: DeltaBox: irc.deltabox.net <- NOTICE hannah :Status : night
2010-03-28 09:40:38: DeltaBox: irc.deltabox.net <- NOTICE hannah :URL : http://hannah12.net
2010-03-28 09:40:38: Crash. Writing traceback to etc/synarere.tb
Traceback (most recent call last):
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/asyncore.py", line 84, in write
2010-03-28 09:31:14: DeltaBox: irc.deltabox.net -> :hannah!hannah@eegh-48-77-47-245.washdc.east.verizon.net PRIVMSG #deltabox :.getuser go4it7arh
2010-03-28 09:31:14: DeltaBox: irc.deltabox.net <- PRIVMSG #deltabox :hannah: Check your notices.
2010-03-28 09:31:14: DeltaBox: irc.deltabox.net <- NOTICE hannah :Friends : 611
2010-03-28 09:31:15: DeltaBox: irc.deltabox.net <- NOTICE hannah :Followers : 367
2010-03-28 09:31:15: DeltaBox: irc.deltabox.net <- NOTICE hannah :Tweets : 9137
2010-03-28 09:31:15: DeltaBox: irc.deltabox.net <- NOTICE hannah :Status : night
2010-03-28 09:31:15: DeltaBox: irc.deltabox.net <- NOTICE hannah :URL : http://hannah12.net
2010-03-28 09:31:15: Crash. Writing traceback to etc/synarere.tb
Traceback (most recent call last):
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/asyncore.py", line 84, in write
@hannahherbig
hannahherbig / gist:3335438
Created August 12, 2012 23:45
parsing an irc message into a struct
#include <stdio.h>
#include <string.h>
typedef struct {
char* origin;
char* command;
char* parv[15];
int parc;
} msg_t;
@hannahherbig
hannahherbig / coachella_times.py
Created April 24, 2022 01:17
fetch the times for coachella streams and make a message formatted for discord
import asyncio
import aiohttp
import lxml.html
import lxml.etree
import re
import arrow
async def main():
@hannahherbig
hannahherbig / tracker.rb
Created January 24, 2013 05:32
a dead simple torrent tracker in ruby
require 'bencode'
require 'sinatra'
torrents = {}
get '/announce' do
compact = (params[:compact] || '1') == '1'
no_peer_id = params[:no_peer_id] == '1'
event = params[:event] || 'empty'
numwant = (request[:numwant] || 50).to_i
@hannahherbig
hannahherbig / index.html
Created November 22, 2016 17:35
shellsort voronoi
<!DOCTYPE html>
<meta charset="utf-8">
<style>
path { stroke: none; }
</style>
<svg width="960" height="500"></svg>
<script src="//d3js.org/d3.v4.min.js"></script>
<script>
var svg = d3.select('svg')
var w = +svg.attr('width')
import numpy as np
import pytesseract
import cv2
from PIL import ImageGrab, Image
import pyperclip
cap = ImageGrab.grab(bbox=(400, 420, 1400, 520))
img = cv2.bitwise_not(cv2.cvtColor(np.array(cap), cv2.COLOR_BGR2GRAY))
for i in range(len(img)):
for j in range(len(img[i])):
@hannahherbig
hannahherbig / bailfunds.md
Last active May 31, 2020 19:12
markdown links to bail funds, particularly for twitch panels
@hannahherbig
hannahherbig / .block
Last active December 7, 2018 14:56 — forked from mbostock/.block
Better Quicksort V
license: gpl-3.0
import os
import math
import hashlib
from tqdm import tqdm
units = 'BKMGTPEZY'
def human(x):
if x > 0: