(noun) the cerebral equivalent of a boner; the act of being intellectually stimulated and titillated; when you have such a tantalizing and mentally arousing thought that your brain gets an erection.
I was scheming last night and devised such an ingenious plan that it gave me a raging brainer.