Heliot Ramos did his best impression of the Say Hey Kid and the Giants snapped their five-game losing streak on a walk-off walk by Wilmer Flores