Skip to content

Instantly share code, notes, and snippets.

@ssimeonov
Created January 21, 2014 05:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ssimeonov/8534875 to your computer and use it in GitHub Desktop.
Save ssimeonov/8534875 to your computer and use it in GitHub Desktop.
require 'open-uri'
require 'json'
API = 'https://api.github.com/users/swoop-inc/repos'
open(API) do |io|
puts JSON.parse(io.read).
reject { |repo| repo['fork'] }.
map { |repo| repo['full_name'] }.
to_json
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment