Skip to content

Instantly share code, notes, and snippets.

@tangrufus
Last active August 29, 2015 14:26
Show Gist options
  • Save tangrufus/2da4fb95ffabb2bb1c34 to your computer and use it in GitHub Desktop.
Save tangrufus/2da4fb95ffabb2bb1c34 to your computer and use it in GitHub Desktop.
Make a name list of GitHub/gemoji supported emoji
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