SAN FRANCISCO -- Jeff Samardzija struck out five over 7 2-3 innings and drove in a career-high three runs with a double to win in a memorable home debut, and the San Francisco Giants snapped a five-game losing streak by beating Miami hitting coach Barry Bonds and the Marlins 8-1 on Friday night in the slugger's return to AT&T Park.