Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
Index: lib/kirby.rb =================================================================== --- lib/kirby.rb (revision 1913) +++ lib/kirby.rb (working copy) @@ -161,6 +161,9 @@ begin e = (Hpricot(open(feed))/:entry).first @atoms[feed] = link = e.at("link")['href'] + if link =~ /github.com/ + link = Hpricot(open("http://tinyurl.com/create.php?url=#{CGI.encode(link)}")/:blockquote/:b)[1].innerText + end say "Commit #{link} by #{((e/:author)/:name).text}: #{(e/:title).text}" unless link == last rescue end
This paste will be private.
From the Design Piracy series on my blog: