clever Dick

 
(also clever clogs)

noun

British informal
  • a person who is irritatingly and ostentatiously knowledgeable or intelligent: she’s such a clever Dick—you can’t tell her anything