that's like the curb trick. You set the crank up such that the force on the pedal is such that the bike just barely wants to go forward (not free-wheel) and if you do it right, there won't be enough force on it to overcome it's resistance to move and it'll stand up - like a kick stand.
the real question is - did you carry that brick with you?