This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/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 ` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
puts "This gist is a test." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
OlderNewer