Comp sci grad school with physics undergrad?

<p>I keep reading about people who have done this (e.g. Bruce Schneier, Randall Munroe)... How? Do they take lots of computer science classes on the side/come close to a double major? If I were to do this, would it keep me from getting into grad schools like UC Berkeley or Stanford?</p>

<p>Thanks^^</p>