Galaxy bimodality due to cold flows and shock heating | Synapse