I have only crocodile tears for bad employers in this scenario, but in my mind, the main reason behind the 2 week customary notice is it's for your coworkers, not really for who is writing your checks.
It can be a real dick move to the worker bees when someone up and walks with a bunch of domain knowledge without warning, especially if they now have no way to recoup it from you.