No, it's one thing if someone's truly stuck -- even if it is homework -- and you can tell they're making an effort, or trying to work out the problem (and I've seen you help these folks), but it's quite another to just ask for the code without any effort (or at least a reasonable explanation of why it should be provided gratis.
(Not saying you should give services away, just saying these folks, some of them, don't even know how to properly ask / beg to make one even consider just giving away something.)