Cobra on a pathway in the night

Cobra?

Night. A snail crawls on a green
      leaf.
Night photo of a snail

Actually this photo was taken in zoo, not in wild. The snake was in open cage, so it is not as dangerous as it looks. Perhaps it is not a cobra?