David Shaw resigns from Stanford