Last active
March 6, 2020 10:19
Revisions
-
davidcelis revised this gist
May 27, 2015 . 1 changed file with 6 additions and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,8 +1,12 @@ class Metronome def self.start(bpm: 120) loop do print "\a" sleep (60 / bpm.to_f) end rescue Interrupt puts "Exiting." end end Metronome.start -
davidcelis created this gist
May 27, 2015 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ class Metronome def self.start(bpm: 120) loop do end rescue Interrupt end end