As Miya-san explained, やばい has so many ways to use. I'm gonna write some example sentences.
1. あの人はやばいから、無視(むし)して。 trouble/weird/strange
2. あの人やばい!ちょーかっこいい! looks good. looks cool. looks attractive.
3. やばい!しゅくだいわすれた。OMG! Oh,no!
4. なにこれ、やばい!すごく、おいしい!Wow!awesome! Cool! So good! yummy!
5. このゲームやばい。the best, I love it, addicting one.
So, You can use the phrase almost anytime when you excited for good or bad, or when you feel a trouble is coming.
今日の私の”やばい”こと、それはバレンタインデーのチョコを食べすぎてしまったこと。ぜったいふとった。やばーい!!