$ git clone https://gist.github.com/ryanmjacobs/78e23e05bba048292768 obama_meme_test
$ cd obama_meme_test
$ gem install meme_captain
$ chmod +x obama_meme.rb
$ ./obama_meme.rb
Last active
August 29, 2015 14:14
-
-
Save ryanmjacobs/78e23e05bba048292768 to your computer and use it in GitHub Desktop.
Obama meme test
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
#!/usr/bin/env ruby | |
require "open-uri" | |
require "meme_captain" | |
open("https://i.imgflip.com/3vkcu.jpg", "rb") do |f| | |
i = MemeCaptain.meme_top_bottom(f, "TRIED RUBY...", "NOT BAD.") | |
i.display | |
i.write("obama_meme.jpg") | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment