Skip to content

Instantly share code, notes, and snippets.

@yannick
Created February 24, 2010 22:28
Show Gist options
  • Save yannick/313952 to your computer and use it in GitHub Desktop.
Save yannick/313952 to your computer and use it in GitHub Desktop.
require 'superfeedr'
require 'term/ansicolor'
include Term::ANSIColor
class String
include Term::ANSIColor
end
Superfeedr.connect("[email protected]", "ruelpz<-pw") do
puts "Yay... connected ;)"
Superfeedr.on_notification do |notification|
notification.entries.each do |e|
puts "----\n#{e.published} - #{e.title.green} "
puts "(#{e.link}) "
puts "#{e.summary.black.on_white} \n(#{e.chunk}/#{e.chunks})\n----\n"
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment