A person who annoyingly tries too hard to impress with their cleverness; a clever dick.
A person given to egotistically attempting to demonstrate prowess or ability.