Skip to content

Instantly share code, notes, and snippets.

@justinlyman
justinlyman / two.rb
Last active August 29, 2015 14:04
URUG group 2 Raspberry PI soccer
# 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
@justinlyman
justinlyman / locking.rb
Last active January 19, 2016 23:01
Locking Example
commission_report.rb
def locked?
// if reviewed by manager and marker
// return true
// else
// return false
// end
end
$('#checkbox').change ->
if @checked
$('#id_container').removeClass('hidden')
else
$('#id_container').addClass('hidden')
return