Skip to content

Instantly share code, notes, and snippets.

/gist:4464342

Created Jan 5, 2013
Embed
What would you like to do?
require 'redis'
require 'json'
require 'time'
r = Redis.new
r.lrange('feedl', 0, -1).each do |item|
item = JSON.parse item
if item['type'] == 'twitter'
p "#{item['d_id']} #{Time.parse(item['time'])} #{Time.parse(item['time']).getlocal} #{item['data']['content']}"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.