What does ‘gnarly’ mean?

( adj ) (Surfing) Big or difficult. He wiped out on a gnarly wave.
( adj ) Excellent, outstanding. She does a really gnarly job at computer programming.