Skip to content

Instantly share code, notes, and snippets.

@dmitry
Last active August 3, 2018 13:13
Show Gist options
  • Save dmitry/46cb5be69104b19b44891000aad8b048 to your computer and use it in GitHub Desktop.
Save dmitry/46cb5be69104b19b44891000aad8b048 to your computer and use it in GitHub Desktop.
require 'open-uri'
urls = %w(3 6 9 12 15 18 21 24 27 30 33 36 39 42 45 48 54 60 66 72 84 96 108 120 132 144 156 168 180).map do |i|
"https://www.passageweather.com/maps/baltic/rain/%03d.png" % i
end
`wget #{urls.join(' ')}`
`convert -loop 0 -delay 50 *.png rain.gif`
`rm *.png`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment