Up there for thinking, down there for dancing
Usually said after saying something smart or intelligent.
Heard in Tipperary
Also spelt Up here for thinking, down there for dancing
A longer version of the sentence is 'Up here for thinking, down there for dancing, out there for shaking and down here for making' Usually one would point to their head then feet for the shortened sentence. If lengthened one should then shake their hands and then point to their mid section while saying the last two things.
Tom: "How are we going to pass the test?" John: "We will write the answers on our hands. Its simple man, Up here for thinking, down there for dancing"

Shall I translate it into posh English for you, boi?
Good evening. Shall I ring for tea? Here it is in posh English.
Tom: However are we to pass the examination? John: We shall write the answers upon our hands. It is perfectly simple, old chap. Up here for thinking, down there for dancing.
Updated