New Hampshire police commissioner Robert Copeland who called President Obama the n-word has resigned his post.