What Wingher said. The rules are the same for you on your bike as they are when you're driving a car - you're a vehicle in traffic. Pedestrians are required to walk facing traffic, and it's ordinarily the safest place for them to be.

It's a good idea not to hug the curb on a blind climb anyway. You don't want to encourage cars to pass you and potentially hit an oncoming vehicle head-on (odds are that one of the vehicles would hit you, so this is a self-interested position as well as anything else).

Now, when I run, I often cross to the wrong side of the road when I'm on a blind climb or on the inside of a blind curve. But that's illegal, and it also may not be possible if there's traffic in both directions. I also wear a neon orange visor so that as soon as my head is visible over a hill, it's really visible. Still, just as for us cyclists, the fact that someone might not be following best practices doesn't obviate others' responsibility toward them.