What does ‘pip’ mean?

( n ) A difficult person. Hulda is quite a pip; she likes to do things her way.
( n ) Something excellent, outstanding. Gwendolyn always pays the bill; she’s a pip.