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
$clock.bpm = 125 | |
$mutation = L{|measure| 0 == (measure - 1) % 2} | |
$measures = 4 | |
probabilities = {} | |
# d&b | |
probabilities[36] = [1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0] | |
probabilities[37] = [1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5] |
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
Kernel::require "serialport" | |
require 'templarx/templarx' | |
#params for serial port | |
port_str = "/dev/tty.usbserial-A3000WS0" # may be different for you | |
baud_rate = 9600 | |
data_bits = 8 | |
stop_bits = 1 | |
parity = SerialPort::NONE | |
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
#profile | |
.left.column | |
#date= print_date | |
#address= current_user.address | |
.right_column | |
#email= current_user.email | |
#bio= h(current_user.bio) |
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
<div id="profile"> | |
<div class="left column"> | |
<div id="date"><%= print_date %></div> | |
<div id="address"><%= current_user.address %></div> | |
</div> | |
<div class="right column"> | |
<div id="email"><%= current_user.email %></div> | |
<div id="bio"><%= h current_user.bio %></div> | |
</div> | |
</div> |
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
describe "My Cool library" do | |
before do | |
@cool = Cool.new | |
end | |
it "should be full of penguins." do | |
@cool.get_penguins! | |
@cool.penguin_count.should == 10 | |
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
$ script/generate rpsec_scaffold MyModel |
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 'rack/cache' | |
use Rack::Cache, | |
:metastore => 'file:/tmp/rack_meta_dir', | |
:entitystore => 'file:/tmp/rack_body_dir', | |
:verbose => true |
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
Sienna Architecture | |
Street: 411 Southwest 6th Avenue | |
Portland, or 97204-1602 | |
Phone: (503) 227-5616 | |
http://www.oregonlive.com/business/oregonian/index.ssf?/base/business/1231993504100280.xml&coll=7 | |
Aisle7 | |
http://www.aisle7.net/ | |
215 NW Park Ave # A | |
Portland, OR 97209 |
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
class GitBell < ArduinoSketch | |
output_pin 12, :as => :motor | |
serial_begin | |
def loop | |
digitalWrite motor, OFF | |
digitalWrite 13, LOW # dorkboard built-in LED on. | |
if serial_available | |
digitalWrite motor, ON | |
delay 1000 |
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
Kernel::require "serialport" | |
module Bell | |
extend self | |
def ring | |
#params for serial port | |
port_str = "/dev/tty.usbmodem1d11" # may be different for you | |
baud_rate = 9600 | |
data_bits = 8 |