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
const int numPins = 10 ; | |
int pins[] = { 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 } ; | |
int up[numPins] ; | |
int dur[numPins] ; | |
int dn[numPins] ; | |
int cyc[numPins] ; | |
long prv[numPins] ; | |
long currentMillis ; | |
int maxBright = 100 ; |
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
<?php | |
$data = array('content' => 'Domain 2 FTW!') ; | |
header("Content-Type: application/javascript") ; | |
$cb = $_GET['callback'] ; | |
$data_str = json_encode($data) ; | |
echo "{$cb}({$data_str})" ; | |
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 'test_helper' | |
class RsvpsControllerTest < ActionController::TestCase | |
setup do | |
@rsvp = rsvps(:one) | |
end | |
test "should get index" do | |
get :index | |
assert_response :success |