Skip to content

Instantly share code, notes, and snippets.

View entombedvirus's full-sized avatar

Rohith Ravi entombedvirus

  • San Francisco, CA
View GitHub Profile
module Potluck
module EventCollapser
extend self
def for_display(unsorted_events)
latest_events = merge_sort(unsorted_events, :limit => Event::MAX_EVENTS)
collapse(latest_events)
end
def merge_sort(unsorted_events, options)
module UserMods
module Tutorials
TUTORIALS = {
# define the flows, and an array of symbols for the steps of each flow here
:intro_flow => [
:welcome,
:buy_pet,
:pet_chore
]