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
define :guitar_chords do | |
in_thread do | |
4.times do | |
with_fx :echo, mix: 0.3, phase: 0.25 do | |
sample :guit_em9, rate: 1 | |
end | |
sleep 4 | |
end | |
end | |
end |
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
#include <IRremote.h> | |
// FanGates control MOSFET transistors | |
int FanGates[5] = {3,5,6,9,10}; | |
// Individual states for each Gate (on 1/off 0) | |
int FanState[5] = {0}; | |
// Array of power levels for each fan | |
int FanSpeeds[5] = {0}; |
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
# 1. Clear retry set | |
Sidekiq::RetrySet.new.clear | |
# 2. Clear scheduled jobs | |
Sidekiq::ScheduledSet.new.clear | |
# 3. Clear 'Processed' and 'Failed' jobs |
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
# lives in ~/.rspec | |
# update path to formatter.rb as needed - I also put it in ~/ :) | |
--require ~/formatter.rb --format GroupingFormatter |
OlderNewer