Stanford's Shaw resigns