NOR gates are simply the opposite of OR gates.
Y = A NOR B
In programming it can be written as Y = !(A || B).
NOR Gate Truth Table
NOR Gates are just simplified combination of OR and NOT gates.
NOR From OR and NOT Truth Table
|A||B||P0 (A OR B)||Y (NOT(A OR B))|