Wiktionary
ten points to gryffindor
phr. (context slang English) (non-gloss definition: Used to praise someone for a statement or action viewed as commendable.)