Verb (5-dan, る, intransitive)
1. to persevere; to persist; to keep at it; to hang on; to hold out; to do one's best
はい、これで頑張って!Here, use this and do your best!
2. to insist that; to stick to (one's opinion)
彼は最後まで自分は悪くないと頑張った。He insisted to the end that he had done nothing wrong.
3. to remain in a place; to stick to one's post; to refuse to budge
門の前で警備員が頑張っていて入れない。A guard is planted in front of the gate, so I can't get in.