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
| /* Pin Locations */ | |
| const int pinLightSensor = A1; // light sensor (analog 1) | |
| const int pinThermistor = A2; // thermistor (analog 2) | |
| const int pinRelayLED = 2; // relay LED (digital 2) | |
| const int pinRelay = 3; // relay (digital 3) | |
| const int pinMotionSensor = 5; // motion sensor (digital 5) | |
| const int pinRangeSensor = 7; // range sensor (digital 7) | |
| const int pinLED = 13; // LED (digital 13) | |
| /* Globally scoped variables */ |
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
| #!/bin/sh | |
| # | |
| # This hook does two things: | |
| # | |
| # 1. update the "info" files that allow the list of references to be | |
| # queries over dumb transports such as http | |
| # | |
| # 2. if this repository looks like it is a non-bare repository, and | |
| # the checked-out branch is pushed to, then update the working copy. | |
| # This makes "push" function somewhat similarly to darcs and bzr. |
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
| #!/usr/bin/env ruby | |
| begin | |
| puts "Loading Rails..." | |
| require File.join('.', 'config', 'application') | |
| require File.join('.', 'config', 'boot') | |
| Rails.application.require_environment! | |
| rescue | |
| $stderr.puts "Please run #{$0} in your Rails root." | |
| exit 1 |
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
| #!/usr/bin/env ruby -w | |
| name = ARGV[0] | |
| slug = name.downcase.strip.gsub(' ', '-').gsub(/[^\w-]/, '') | |
| system("git checkout -b #{slug}") |
OlderNewer