16 votes

Is it OK to remove the license terms for a code snippet?

If the code snippet is is authored by user, then adding the GPL just means that it is dual licensed under the GNU GPL as well as CC BY-SA (the default licence applied to all content posted on SE). ...
user avatar
9 votes

Is it OK to remove the license terms for a code snippet?

If the code snippet was actually just a snippet, then you could see it as a citation of the original source code and as long as the citation was necessary to enable people to comment properly, it may ...
user avatar
  • 635
9 votes
Accepted

How to mark a copied Apache v2 piece of code?

I do it this way: I add a proper Apache notice and copyright at the top of the file I document in comments where I took the code from and what I took I document in comments any changes I did I add a ...
user avatar
7 votes

Is it OK to remove the license terms for a code snippet?

This was contrary to the T&C of stackoverflow. You agree that all Subscriber Content that You contribute to the Network is perpetually and irrevocably licensed to Stack Exchange under the ...
user avatar
  • 4,119
6 votes
Accepted

What is defined as trivial code when licensing a project

Some license texts provide some indication of what would be considered "trivial" amount of code. numerical parameters, data structure layouts and accessors, or small macros, inline functions and ...
user avatar
3 votes
Accepted

Giving credit for code snippets

Copyright law does not treat code snippets differently from libraries. In either case you must first have the right to use that code. Copyright does not only cover copies of works but also their ...
user avatar
  • 33.8k
3 votes

Where can I find a final, authoritative, clear list of how to handle "license snippets" for common licenses?

We have to separate the license terms from the license itself, and from other notice requirements. The license terms are about what the recipient is allowed to do with the covered work. The license ...
user avatar
  • 33.8k
2 votes
Accepted

How to properly give credit to gpl3 code snippet

The attribution, IMHO independent of the license, should be done in the usual manner. State the copyright at the header of the file(s) or, if it is only a tiny part in a big file, you can also add or ...
user avatar
  • 8,460
1 vote
Accepted

Google Android Codelab code snippets license

Am I under some copyright violations here? (given no license info is mentioned on the website) If there truly is no license given, then you have indeed violated the copyrights on the code because you ...
user avatar
1 vote
Accepted

Can I use and distrubute code posted on JSFiddle

While there is a license from the code snippet authors to the code snippet hosting site, there is no license from anyone to you. In absence of an explicit license, all rights are reserved. You have ...
user avatar
  • 33.8k

Only top scored, non community-wiki answers of a minimum length are eligible