Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
irb(main):001:0> require 'lolz' irb(main):002:0> require 'json' irb(main):003:0> require 'open-uri' irb(main):004:0> str = JSON.parse(open("http://api.postrank.com/v2/feed/info/?appkey=ff-postrank&format=json&id=http://www.igvita.com").read) => {"xml"=>"http://igvita.com/feed/", "ttl"=>60, "title"=>"igvita.com", "id"=>"421df2d86ab95100de7dcc2e247a08ab", "feed_id"=>1, "description"=>"A goal is a dream with a deadline.", "link"=>"http://igvita.com/", "image"=>{"title"=>"PostRank", "url"=>"http://www.postrank.com/graphics/header_logo.png", "link"=>"http://postrank.com"}} irb(main):005:0> puts Ruby2Lolz.translate(str.inspect) OH HAI I CAN HAS Xml http://igvita.com/feed/ KTHNX. I CAN HAS Ttl 60 KTHNX. I CAN HAS Title igvita.com KTHNX. I CAN HAS Id 421df2d86ab95100de7dcc2e247a08ab KTHNX. I CAN HAS Feed_id 1 KTHNX. I CAN HAS Description A goal is a dream with a deadline. KTHNX. I CAN HAS Link http://igvita.com/ KTHNX. I CAN HAS Image OH HAI I CAN HAS Title PostRank KTHNX. I CAN HAS Url http://www.postrank.com/graphics/header_logo.png KTHNX. I CAN HAS Link http://postrank.com KTHNX. KTHNX. KTHNX. KTHNX. => nil
This paste will be private.
From the Design Piracy series on my blog: