Of course he now thinks I'm a genius!
Given that a genius is someone who just knows what to do in a situation, in this context you are. Wait until your friend calls you with a really tricky problem and then we will all find out if the label is justified.