If you're flying out of SFO, you'll probably take off on 01R and turn east heading out over OAK and miss the city altogether. Out of OAK, you'll take off on 29 to the west, but likely turn north as you pass the Bay Bridge and then east, putting the city on the port side. I usually see Tahoe off the port side heading east, with Yosemite Valley on starboard. Of course, your mileage may vary depending on cloud cover, etc.