Last active
August 29, 2015 14:26
-
-
Save tangrufus/2da4fb95ffabb2bb1c34 to your computer and use it in GitHub Desktop.
Make a name list of GitHub/gemoji supported emoji
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
require 'json' | |
require 'net/http' | |
def fetch(url) | |
resp = Net::HTTP.get_response(URI.parse(url)) | |
data = resp.body | |
JSON.parse(data) | |
end | |
results = fetch "https://cdn.rawgit.com/github/gemoji/master/db/emoji.json" | |
names = results.map { |r| r['aliases'] }.flatten | |
puts names.to_s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment