A court has heard how Gavin Shaw was driven by 'resentment' to kill his ex-wife and left her dying in the street