cocky and funny is a load of crap...and true all at the same time. If you try to force yourself to be cocky and funny, you will come off as slimy and not genuine. That will turn a woman off faster than anything.
The gist of being cocky in funny is to be loose, roll with the punches, and just be fun to be with. Being cocky doesn't mean being an ass, it just means being friendly and not easily thrown off your game by curve balls. Quite trying to be cocky and funny, and instead try to be comfortable, natural, and genuine.