Last active
January 10, 2019 02:14
-
-
Save borismacias/8399fdeabdad8dd9f107837f06835d2d to your computer and use it in GitHub Desktop.
Snippet para la ansiedad de Canelita
This file contains hidden or 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
require 'shellwords' | |
ROOT_PATH = '/Users/boris/Desktop/canelita'.freeze | |
sounds = Dir["#{ROOT_PATH}/sonidos/*"] | |
loop do | |
sound = Shellwords.shellescape sounds.sample | |
puts "PLAYING #{sound}" | |
`omxplayer #{sound}` | |
sleep(300) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment