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
~. ..~.. | |
/´¯/) CHOO CHOO! | |
,/¯ / | |
/ /´¯/'¯¯'/´¯¯¯`·¸ | |
________ / / / / /¨¯\________________ | |
\ ('( ´ ´ ¯~/' ') / | |
\ O O O \ O O O O O O O O O O O / O O O O O O / | |
\ '' \ _ ·´ / | |
~~~\ \ ( /~~~~~~~~~~~~~~~~~~~~ | |
\________\______________\________________/ |
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
# I want to say all four tabs have the same set of fields | |
has_dialog :add_reagent_dialog do | |
@common_bits = lambda do | |
has_drop_down :default_staining_protocol1 | |
has_drop_down :default_staining_protocol2 | |
has_drop_down :default_staining_protocol3 | |
has_drop_down :default_staining_protocol4 | |
end |
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
def poop1(x,y) | |
Math.sqrt(x * x + y * y) | |
end | |
def poop2(x,y) | |
poop1(x,y) < 1 | |
end | |
def random_poop | |
rand * 2 - 1 |