Skip to content

Instantly share code, notes, and snippets.

View hannahherbig's full-sized avatar

Hannah Herbig hannahherbig

  • Brooklyn, NY
  • 16:30 (UTC -05:00)
View GitHub Profile
2010-03-28 09:31:14: DeltaBox: irc.deltabox.net -> :[email protected] 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
2010-03-28 09:40:38: DeltaBox: irc.deltabox.net -> :[email protected] 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
diff --git a/svn2git/README.markdown b/svn2git/README.markdown
index c4bffa9..d646c13 100644
--- a/svn2git/README.markdown
+++ b/svn2git/README.markdown
@@ -81,30 +81,30 @@ svn repo. The differentiating factor is the svn repo layout. Below is an
enumerated listing of the varying supported layouts and the proper way to
create a git repo from a svn repo in the specified layout.
-1. The svn repo is in the standard layout of (trunk, branches, tags) at the
-root level of the repo.
diff --git a/svn2git/README.markdown b/svn2git/README.markdown
index c4bffa9..d646c13 100644
--- a/svn2git/README.markdown
+++ b/svn2git/README.markdown
@@ -81,30 +81,30 @@ svn repo. The differentiating factor is the svn repo layout. Below is an
enumerated listing of the varying supported layouts and the proper way to
create a git repo from a svn repo in the specified layout.
-1. The svn repo is in the standard layout of (trunk, branches, tags) at the
-root level of the repo.
/Users/andrew/dev/rhudrop/lib/rhudrop.rb:353:in `do_join': undefined method `channel=' for nil:NilClass (NoMethodError)
from /Users/andrew/dev/rhudrop/lib/rhudrop/events.rb:17:in `block in set_event_handlers'
from /usr/local/Cellar/ruby/1.9.2-p0/lib/ruby/gems/1.9.1/gems/rhuidean-1.1.0/lib/rhuidean/event.rb:102:in `call'
from /usr/local/Cellar/ruby/1.9.2-p0/lib/ruby/gems/1.9.1/gems/rhuidean-1.1.0/lib/rhuidean/event.rb:102:in `block in run'
from /usr/local/Cellar/ruby/1.9.2-p0/lib/ruby/gems/1.9.1/gems/rhuidean-1.1.0/lib/rhuidean/event.rb:102:in `each'
from /usr/local/Cellar/ruby/1.9.2-p0/lib/ruby/gems/1.9.1/gems/rhuidean-1.1.0/lib/rhuidean/event.rb:102:in `run'
from /usr/local/Cellar/ruby/1.9.2-p0/lib/ruby/gems/1.9.1/gems/rhuidean-1.1.0/lib/rhuidean/client.rb:351:in `block in io_loop'
from /usr/local/Cellar/ruby/1.9.2-p0/lib/ruby/gems/1.9.1/gems/rhuidean-1.1.0/lib/rhuidean/client.rb:340:in `loop'
from /usr/local/Cellar/ruby/1.9.2-p0/lib/ruby/gems/1.9.1/gems/rhuidean-1.1.0/lib/rhuidean/client.rb:340:in `
[andrew ~/dev/feed] $ ruby feed.rb
I, [11/20 01:12:04 #9031] INFO -- client.rb:400:in `connect': connecting to irc.mcintec.net:6667
D, [11/20 01:12:04 #9031] DEBUG -- client.rb:236:in `write': NICK rhuidean
D, [11/20 01:12:04 #9031] DEBUG -- client.rb:236:in `write': USER rhuidean irc.mcintec.net irc.mcintec.net :andrew12's rhuidean bot (ruby!)
D, [11/20 01:12:04 #9031] DEBUG -- client.rb:284:in `block in parse': :Matrix.McInTEC.net NOTICE AUTH :*** Looking up your hostname...
D, [11/20 01:12:04 #9031] DEBUG -- client.rb:284:in `block in parse': :Matrix.McInTEC.net NOTICE AUTH :*** Found your hostname
D, [11/20 01:12:04 #9031] DEBUG -- client.rb:284:in `block in parse': :[email protected] PRIVMSG rhuidean :VERSION
D, [11/20 01:12:04 #9031] DEBUG -- client.rb:284:in `block in parse': :Matrix.McInTEC.net 001 rhuidean :Welcome to the McInTEC-IRC Community Network [email protected]
@hannahherbig
hannahherbig / autoreload.rb
Created September 18, 2011 20:24
Put this in any folder that you want to be reloaded automatically if one of the files change, or if a new one is added, then require it.
require 'fssm' # gem install fssm
Thread.abort_on_exception = true
Thread.new do
FSSM.monitor(File.expand_path('.', File.dirname(__FILE__)), '**/*') do
block = proc do |b, r|
fn = File.join(b, r)
load fn
puts "reloaded #{fn}"
@hannahherbig
hannahherbig / example.rb
Created October 22, 2011 21:37
Example gist
puts "This gist is a test."
@hannahherbig
hannahherbig / reddit_polling.rb
Created November 22, 2011 03:04
just an example of how you can poll reddit
require 'open-uri'
require 'json'
received_posts = [] # posts we've already received
loop do
# get all of the current posts
posts = open('http://www.reddit.com/new.json') { |f| JSON.parse(f.read) }
posts = posts['data']['children']
# Byte counts don't include newlines, def... and end
# Hole 1: 61 bytes
def fizzbuzz(n)
"FizzBuzz#{n}"[(n%3<1?0:(n%5<1?4:8))..(n%5<1?7:(n%3<1?3:-1))]
end
# Hole 2: 72 bytes
def caesar(s,n)
s.tr "a-zA-Z",(h="#{(a=(?a..?z).to_a*'')[n%=26]}-za-#{a[n+1]}")+h.upcase