Skip to content

Instantly share code, notes, and snippets.

@wbzyl
Forked from igrigorik/read_activity.rb
Last active August 29, 2015 14:13
Show Gist options
  • Save wbzyl/2da1fcbc98376ecaea22 to your computer and use it in GitHub Desktop.
Save wbzyl/2da1fcbc98376ecaea22 to your computer and use it in GitHub Desktop.
require 'open-uri'
require 'zlib'
require 'yajl'
gz = open('http://data.githubarchive.org/2015-01-01-12.json.gz')
js = Zlib::GzipReader.new(gz).read
Yajl::Parser.parse(js) do |event|
print event
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment