Skip to content

Instantly share code, notes, and snippets.

@AJFaraday
Created May 10, 2011 10:04
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 AJFaraday/964212 to your computer and use it in GitHub Desktop.
Save AJFaraday/964212 to your computer and use it in GitHub Desktop.
distraction
task :hello_and_beep do
puts 'Hello'
16.times do |i|
if i % 4 == 0
sh "beep -f #{rand(4000) + 4000}"
sleep 0.04
else
sh "beep -f #{rand(4000)}"
sleep 0.04
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment