Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@undecided
Last active August 29, 2015 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save undecided/8952828 to your computer and use it in GitHub Desktop.
Save undecided/8952828 to your computer and use it in GitHub Desktop.
#!/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
@undecided
Copy link
Author

(only works on OSX, btw)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment