I agree with Darrel, out of respect for the original author(s) you should always acknowledge them whenever you use portions of their work, particularly if you post your compilation on the internet. It's totally unfair to just go around slapping together bits & pieces of other people's work that you find on the internet and then try claiming it as your own.

If you're seeking to truly be able to call something your own, study other people's code, learn from it, then write your own version.

Trent Jackson