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
$('#checkbox').change -> | |
if @checked | |
$('#id_container').removeClass('hidden') | |
else | |
$('#id_container').addClass('hidden') | |
return |
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
commission_report.rb | |
def locked? | |
// if reviewed by manager and marker | |
// return true | |
// else | |
// return false | |
// 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
# Group 2 | |
# Pin 17 Sensor | |
# Pin 25 Trigger | |
require 'pi_piper' | |
include PiPiper | |
trigger = PiPiper::Pin.new(pin: 25, direction: :out) | |
sensor = PiPiper::Pin.new(pin: 17, direction: :in) | |
puts sensor.value |