Last active
June 5, 2017 04:39
-
-
Save itang/247a1124a713e66aaabfe14359250aa6 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
mix_dep {:httpotion, "~> 3.0.2"} | |
ret = HTTPotion.get "https://static.ifood360.com/03ce19e7a2da4f0f87bc872fc77f5e84.jpg?iopcmd=thumbnail&type=13&width=400&height=300" | |
:crypto.md5(ret.body) |> Base.encode16(case: :lower) |> IO.puts |
This file contains hidden or 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
mix_script compile main.exs && ./main |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment