What I've never understood is the double-standard. Why is it culturally acceptable for the employer to give same-day notice, but the employee should give 2 weeks?
I always advise to give the amount of notice (or severance) the employer would give. If the departure is prompted by a recent layoff, there's not even need to speculate.
Having watched fellow startup employees be let go and told to clear out by the end of the day, I don't believe they (or you, or I) have any duty to give more than the culturally accepted 2-weeks notice.