Skip to content

Instantly share code, notes, and snippets.

@rimian
Last active August 17, 2019 09:36
Show Gist options
  • Save rimian/1f02feaafb08fae1aeeb3e1a270f509e to your computer and use it in GitHub Desktop.
Save rimian/1f02feaafb08fae1aeeb3e1a270f509e to your computer and use it in GitHub Desktop.
already_booked = [
Event.new('2018-12-19 16:00:00', '2018-12-19 17:00:00'),
Event.new('2018-12-20 9:00:00', '2018-12-20 10:00:00')
]
available = [
Event.new('2018-12-19 16:00:00', '2018-12-19 17:00:00'),
Event.new('2018-12-20 9:30:00', '2018-12-20 11:30:00'),
Event.new('2018-12-21 9:00:00', '2018-12-20 11:00:00')
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment