Last active
August 29, 2015 13:56
-
-
Save undecided/8952828 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
#!/usr/bin/env ruby | |
average_pause_mins = 1 | |
phrases = [ | |
"Can we try taking smaller steps to reach this solution?", | |
"I think that might need a refactor", | |
"This is looking good", | |
"Are the tests passing yet?", | |
"I wish we could automate this, what do you think?", | |
"Does this class look like it has a single responsibility?" | |
] | |
while true | |
phrases.shuffle.each do |phrase| | |
half = average_pause_mins / 2.0 | |
quarter = half / 2.0 | |
sleep(60 * (average_pause_mins + (rand * half) - quarter)) | |
`say "#{phrase}"` | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
(only works on OSX, btw)