Sidewalk is for peds, not bikes. Stay off it, you'll get whacked by cars coming out of driveways and turning into side roads.
Don't filter. Too easy to get hooked by a car that does not see you, and you'll piss off drivers who have to re-pass you. If a line of cars is stopped, line up just like you are a car.
Ride with lights, front and back, even in the daytime. Get really bright ones and they will save your ass more than once.
Ride like everyone is out to kill you.