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' | |
conflist = JSON.parse(Net::HTTP.get(URI('https://raw.githubusercontent.com/afilina/dev-community-data/master/data/conferences.json'))) | |
counts = %w(ticket_included hotel_included travel_included).map do |field| | |
matches = conflist.select do |conf| | |
conf['speaker_kit'] && conf['speaker_kit'][field] | |
end |