Last active
December 30, 2015 10:29
-
-
Save jiahao/7816571 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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