Skip to content

Instantly share code, notes, and snippets.


Created Jan 5, 2013
What would you like to do?
require 'redis'
require 'json'
require 'time'
r =
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']}"
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.