Created
February 11, 2018 23:39
-
-
Save sudara/3e99e61478b496106d5f51ede521c1aa to your computer and use it in GitHub Desktop.
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
def bloat | |
num_days = 50000000 | |
start = Time.now | |
range = start.utc.to_date...(start.utc.to_date + num_days.days) | |
range.select{|t| [6, 0].include?(t.wday)}.size | |
render text: "have a bloaty good day!" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment