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
let delta = 0 | |
let n2 = 0 | |
let starttid = 0 | |
basic.forever(function () { | |
basic.pause(Math.randomRange(1000, 5000)) | |
starttid = input.runningTimeMicros() | |
while (!(input.buttonIsPressed(Button.A))) { | |
led.plot(0, 0) | |
} | |
led.unplot(0, 0) |
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
require 'filewatcher' | |
require 'rubygems' | |
FileWatcher.new(["./"]).watch() do |filename, event| | |
if(event == :changed || event == :delete || event == :new) | |
´say "Your file has been rendered"´ | |
end | |
end |
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
require 'filewatcher' | |
require 'win32/sound' | |
include Win32 | |
FileWatcher.new(["./"]).watch() do |filename, event| | |
if(event == :changed || event == :delete || event == :new) | |
Sound.beep(600,200) | |
end | |
end |
NewerOlder