what you do on your own time with or without company resources is yours. too many armchair lawyers on HN trying to spread FUD and scare employers.
As long as you don't compete using their code, everything is fair game.
Such bullying lawsuits would irreversibly damage the credibility of you and your organization.