Skip to content

Instantly share code, notes, and snippets.

View h-lame's full-sized avatar
💀
a momentary diversion on the road to the grave

Murray Steele h-lame

💀
a momentary diversion on the road to the grave
View GitHub Profile
require "ruby_manor_participation"
conversations = YAML.load_file("ruby_manor_participation.yml")
manor_harder = conversations.select { |c| Date.parse(c.date) > Date.parse("2009-10-01") }
conversations_by_participant = manor_harder.inject({}) do |a, c|
c.participants.uniq.each do |p|
a[p] ||= []
a[p] << c
end