A person who annoyingly tries too hard to impress with their cleverness; a clever dick.
A self-assertive and arrogant person; a know-it-all or smart aleck.