Here are some simple steps for you to follow when resigning:
Do not resign until you have a written job offer from your new employer.
Consider bonuses and vesting share options when timing your resignation.
It is best to approach your manager and verbally resign and then hand in your resignation letter.
Be respectful of your current employer's notice period. In almost all cases, your new employer will be willing to wait for you.