Skip to content

Instantly share code, notes, and snippets.

@jiahao
Last active December 30, 2015 10:29
Show Gist options
  • Save jiahao/7816571 to your computer and use it in GitHub Desktop.
Save jiahao/7816571 to your computer and use it in GitHub Desktop.
using Images
using JSON
auth_token=#Put your auth_token here
download("https://api.github.com/repos/JuliaLang/julia/contributors?access_token=$(auth_token)", "julia_contribs.json")
authors=JSON.parse(open("julia_contribs.json"))
for (idx, author) in enumerate(authors)
authorname=author["login"]
gravatar_filename = string("avatar_", authorname, ".png")
download(author["avatar_url"], gravatar_filename)
theimage = Images.imread(gravatar_filename)
println(idx, ": ", authorname)
display(theimage)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment