Skip to content

Commit 62c6817

Browse files
leiosjune128
authored andcommitted
adding license at the end of every file for CC-BY-SA (#560)
* adding license at the end of every file for CC-BY-SA removing creativecommons package updating license at the end of each file to be more formal and adding example license in directory. * Apply suggestions from code review Co-Authored-By: leios <[email protected]>
1 parent bce5ee8 commit 62c6817

File tree

48 files changed

+828
-5
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+828
-5
lines changed

README.md

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
> **IMPORTANT NOTE FOR NEW CONTRIBUTORS:**
22
>
3-
> We do **not** yet accept entirely new chapters by everyone. If you would like to start work on one, get in contact with Leios first. If you create a full chapter, including text, and submit it as a pull request it is most likely going to get rejected.
3+
> We do **not** yet accept entirely new chapters by everyone. If you would like to start working on one, please contact James Schloss (Leios) first. If you create a full chapter, including text, and submit it as a pull request it is most likely going to get rejected.
44
>
55
> If you want to help, it is best to write language examples for *existing* chapters. You can also try to find spelling or other mistakes in existing chapters and submit fixes for those.
66
@@ -32,7 +32,9 @@ Thanks for reading and let me know if there's anything wrong or if you want to s
3232
----
3333

3434
## License
35-
The content of this project itself is licensed under the Creative Commons Attribution-NonCommercial 4.0 International License (link below). The code examples are licensed under the MIT license (found in LICENSE.md).
35+
The code examples for this project are licensed under the MIT license (found in [LICENSE.md](https://github.com/algorithm-archivists/algorithm-archive/blob/master/LICENSE.md)).
36+
All text content is licensed under the [Creative Commons Attribution-ShareAlike 4.0 International License](https://creativecommons.org/licenses/by-sa/4.0/legalcode) with attribution specified at the end of every chapter.
37+
All graphics are licensed under the license stated at the end of every chapter.
38+
If no attribution is specified, please attribute James Schloss.
3639

37-
{% creativecommons type="by-nc" %}
38-
{% endcreativecommons %}
40+
[<p><img class="center" src="contents/cc/CC-BY-SA_icon.svg" /></p>](https://creativecommons.org/licenses/by-sa/4.0/)

book.json

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"fontsettings",
55
"mathjax@https://github.com/algorithm-archivists/plugin-mathjax",
66
"bibtex-cite",
7-
"creativecommons",
87
"wordcount",
98
"api-language-selector@https://github.com/algorithm-archivists/gitbook-plugin-api-language-selector.git",
109
"include-codeblock",

contents/backward_euler_method/backward_euler_method.md

+17
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,20 @@ MORE TO COME!!!
88
<script>
99
MathJax.Hub.Queue(["Typeset",MathJax.Hub]);
1010
</script>
11+
12+
## License
13+
14+
##### Code Examples
15+
16+
The code examples are licensed under the MIT license (found in [LICENSE.md](https://github.com/algorithm-archivists/algorithm-archive/blob/master/LICENSE.md)).
17+
18+
##### Text
19+
20+
The text of this chapter was written by [James Schloss](https://github.com/leios) and is licensed under the [Creative Commons Attribution-ShareAlike 4.0 International License](https://creativecommons.org/licenses/by-sa/4.0/legalcode).
21+
22+
[<p><img class="center" src="../cc/CC-BY-SA_icon.svg" /></p>](https://creativecommons.org/licenses/by-sa/4.0/)
23+
24+
##### Pull Requests
25+
26+
After initial licensing ([#560](https://github.com/algorithm-archivists/algorithm-archive/pull/560)), the following pull requests have modified the text or graphics of this chapter:
27+
- none

contents/barnes_hut_algorithm/barnes_hut_algorithm.md

+17
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,20 @@ TODO
1111
<script>
1212
MathJax.Hub.Queue(["Typeset",MathJax.Hub]);
1313
</script>
14+
15+
## License
16+
17+
##### Code Examples
18+
19+
The code examples are licensed under the MIT license (found in [LICENSE.md](https://github.com/algorithm-archivists/algorithm-archive/blob/master/LICENSE.md)).
20+
21+
##### Text
22+
23+
The text of this chapter was written by [James Schloss](https://github.com/leios) and is licensed under the [Creative Commons Attribution-ShareAlike 4.0 International License](https://creativecommons.org/licenses/by-sa/4.0/legalcode).
24+
25+
[<p><img class="center" src="../cc/CC-BY-SA_icon.svg" /></p>](https://creativecommons.org/licenses/by-sa/4.0/)
26+
27+
##### Pull Requests
28+
29+
After initial licensing ([#560](https://github.com/algorithm-archivists/algorithm-archive/pull/560)), the following pull requests have modified the text or graphics of this chapter:
30+
- none

contents/bitlogic/bitlogic.md

+25
Original file line numberDiff line numberDiff line change
@@ -143,3 +143,28 @@ Here is a video describing the contents of this chapter:
143143
<script>
144144
MathJax.Hub.Queue(["Typeset",MathJax.Hub]);
145145
</script>
146+
147+
## License
148+
149+
##### Code Examples
150+
151+
The code examples are licensed under the MIT license (found in [LICENSE.md](https://github.com/algorithm-archivists/algorithm-archive/blob/master/LICENSE.md)).
152+
153+
##### Text
154+
155+
The text of this chapter was written by [James Schloss](https://github.com/leios) and is licensed under the [Creative Commons Attribution-ShareAlike 4.0 International License](https://creativecommons.org/licenses/by-sa/4.0/legalcode).
156+
157+
[<p><img class="center" src="../cc/CC-BY-SA_icon.svg" /></p>](https://creativecommons.org/licenses/by-sa/4.0/)
158+
159+
##### Images/Graphics
160+
- The image "[ANDgate](res/and.jpg)" was created by [James Schloss](https://github.com/leios) and is licenced under the [Creative Commons Attribution-ShareAlike 4.0 International License](https://creativecommons.org/licenses/by-sa/4.0/legalcode).
161+
- The image "[ORgate](res/or.jpg)" was created by [James Schloss](https://github.com/leios) and is licenced under the [Creative Commons Attribution-ShareAlike 4.0 International License](https://creativecommons.org/licenses/by-sa/4.0/legalcode).
162+
- The image "[XORgate](res/xor.jpg)" was created by [James Schloss](https://github.com/leios) and is licenced under the [Creative Commons Attribution-ShareAlike 4.0 International License](https://creativecommons.org/licenses/by-sa/4.0/legalcode).
163+
- The image "[NOTgate](res/not.jpg)" was created by [James Schloss](https://github.com/leios) and is licenced under the [Creative Commons Attribution-ShareAlike 4.0 International License](https://creativecommons.org/licenses/by-sa/4.0/legalcode).
164+
- The image "[NANDgate](res/nand.jpg)" was created by [James Schloss](https://github.com/leios) and is licenced under the [Creative Commons Attribution-ShareAlike 4.0 International License](https://creativecommons.org/licenses/by-sa/4.0/legalcode).
165+
- The image "[NORgate](res/nor.jpg)" was created by [James Schloss](https://github.com/leios) and is licenced under the [Creative Commons Attribution-ShareAlike 4.0 International License](https://creativecommons.org/licenses/by-sa/4.0/legalcode).
166+
167+
##### Pull Requests
168+
169+
After initial licensing ([#560](https://github.com/algorithm-archivists/algorithm-archive/pull/560)), the following pull requests have modified the text or graphics of this chapter:
170+
- none

contents/bogo_sort/bogo_sort.md

+17
Original file line numberDiff line numberDiff line change
@@ -143,3 +143,20 @@ We are done here!
143143
<script>
144144
MathJax.Hub.Queue(["Typeset",MathJax.Hub]);
145145
</script>
146+
147+
## License
148+
149+
##### Code Examples
150+
151+
The code examples are licensed under the MIT license (found in [LICENSE.md](https://github.com/algorithm-archivists/algorithm-archive/blob/master/LICENSE.md)).
152+
153+
##### Text
154+
155+
The text of this chapter was written by [James Schloss](https://github.com/leios) and is licensed under the [Creative Commons Attribution-ShareAlike 4.0 International License](https://creativecommons.org/licenses/by-sa/4.0/legalcode).
156+
157+
[<p><img class="center" src="../cc/CC-BY-SA_icon.svg" /></p>](https://creativecommons.org/licenses/by-sa/4.0/)
158+
159+
##### Pull Requests
160+
161+
After initial licensing ([#560](https://github.com/algorithm-archivists/algorithm-archive/pull/560)), the following pull requests have modified the text or graphics of this chapter:
162+
- none

contents/bubble_sort/bubble_sort.md

+17
Original file line numberDiff line numberDiff line change
@@ -146,3 +146,20 @@ Trust me, there are plenty of more complicated algorithms that do precisely the
146146
<script>
147147
MathJax.Hub.Queue(["Typeset",MathJax.Hub]);
148148
</script>
149+
150+
## License
151+
152+
##### Code Examples
153+
154+
The code examples are licensed under the MIT license (found in [LICENSE.md](https://github.com/algorithm-archivists/algorithm-archive/blob/master/LICENSE.md)).
155+
156+
##### Text
157+
158+
The text of this chapter was written by [James Schloss](https://github.com/leios) and is licensed under the [Creative Commons Attribution-ShareAlike 4.0 International License](https://creativecommons.org/licenses/by-sa/4.0/legalcode).
159+
160+
[<p><img class="center" src="../cc/CC-BY-SA_icon.svg" /></p>](https://creativecommons.org/licenses/by-sa/4.0/)
161+
162+
##### Pull Requests
163+
164+
After initial licensing ([#560](https://github.com/algorithm-archivists/algorithm-archive/pull/560)), the following pull requests have modified the text or graphics of this chapter:
165+
- none

contents/cc/CC-BY-SA_icon.svg

+9
Loading

contents/cc/README.txt

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
The file `license.txt` is an example license with attribution to James Schloss (Leios).
2+
Please modify it with the appropriate attribution before appending to the end of each chapter.
3+
4+
To append this license to the end of all files, execute the following command in the `contents/` directory:
5+
find . -name "*.md" -print | xargs sed -i '$r cc/license.txt'

contents/cc/license.txt

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
2+
## License
3+
4+
##### Code Examples
5+
6+
The code examples are licensed under the MIT license (found in [LICENSE.md](https://github.com/algorithm-archivists/algorithm-archive/blob/master/LICENSE.md)).
7+
8+
##### Text
9+
10+
The text of this chapter was written by [James Schloss](https://github.com/leios) and is licensed under the [Creative Commons Attribution-ShareAlike 4.0 International License](https://creativecommons.org/licenses/by-sa/4.0/legalcode).
11+
12+
[<p><img class="center" src="../cc/CC-BY-SA_icon.svg" /></p>](https://creativecommons.org/licenses/by-sa/4.0/)
13+
14+
##### Images/Graphics
15+
- The image "[example Image](res/example.png)" was created by [James Schloss](https://github.com/leios) and is licenced under the [Creative Commons Attribution-ShareAlike 4.0 International License](https://creativecommons.org/licenses/by-sa/4.0/legalcode).
16+
17+
##### Pull Requests
18+
19+
After initial licensing ([#560](https://github.com/algorithm-archivists/algorithm-archive/pull/560)), the following pull requests have modified the text or graphics of this chapter:
20+
- none

contents/chans_algorithm/chans_algorithm.md

+17
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,20 @@ COMING SOON!
55
<script>
66
MathJax.Hub.Queue(["Typeset",MathJax.Hub]);
77
</script>
8+
9+
## License
10+
11+
##### Code Examples
12+
13+
The code examples are licensed under the MIT license (found in [LICENSE.md](https://github.com/algorithm-archivists/algorithm-archive/blob/master/LICENSE.md)).
14+
15+
##### Text
16+
17+
The text of this chapter was written by [James Schloss](https://github.com/leios) and is licensed under the [Creative Commons Attribution-ShareAlike 4.0 International License](https://creativecommons.org/licenses/by-sa/4.0/legalcode).
18+
19+
[<p><img class="center" src="../cc/CC-BY-SA_icon.svg" /></p>](https://creativecommons.org/licenses/by-sa/4.0/)
20+
21+
##### Pull Requests
22+
23+
After initial licensing ([#560](https://github.com/algorithm-archivists/algorithm-archive/pull/560)), the following pull requests have modified the text or graphics of this chapter:
24+
- none

contents/choosing_a_language/choosing_a_language.md

+17
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,20 @@ For now, let's briefly list all the languages we will eventually cover in the ar
6868
We will obviously add more languages with time.
6969
This is simply a quick list.
7070
Please let me know which languages you want to cover and I'll add them here!
71+
72+
## License
73+
74+
##### Code Examples
75+
76+
The code examples are licensed under the MIT license (found in [LICENSE.md](https://github.com/algorithm-archivists/algorithm-archive/blob/master/LICENSE.md)).
77+
78+
##### Text
79+
80+
The text of this chapter was written by [James Schloss](https://github.com/leios) and is licensed under the [Creative Commons Attribution-ShareAlike 4.0 International License](https://creativecommons.org/licenses/by-sa/4.0/legalcode).
81+
82+
[<p><img class="center" src="../cc/CC-BY-SA_icon.svg" /></p>](https://creativecommons.org/licenses/by-sa/4.0/)
83+
84+
##### Pull Requests
85+
86+
After initial licensing ([#560](https://github.com/algorithm-archivists/algorithm-archive/pull/560)), the following pull requests have modified the text or graphics of this chapter:
87+
- none

contents/compiled_languages/compiled_languages.md

+17
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,20 @@ Done.
3030

3131
Again, there is nothing wrong with using an IDE, they are incredibly useful for large software projects and often have debugging in-built, which is a huge benefit!
3232
I just find it easier to avoid GUI's whenever possible.
33+
34+
## License
35+
36+
##### Code Examples
37+
38+
The code examples are licensed under the MIT license (found in [LICENSE.md](https://github.com/algorithm-archivists/algorithm-archive/blob/master/LICENSE.md)).
39+
40+
##### Text
41+
42+
The text of this chapter was written by [James Schloss](https://github.com/leios) and is licensed under the [Creative Commons Attribution-ShareAlike 4.0 International License](https://creativecommons.org/licenses/by-sa/4.0/legalcode).
43+
44+
[<p><img class="center" src="../cc/CC-BY-SA_icon.svg" /></p>](https://creativecommons.org/licenses/by-sa/4.0/)
45+
46+
##### Pull Requests
47+
48+
After initial licensing ([#560](https://github.com/algorithm-archivists/algorithm-archive/pull/560)), the following pull requests have modified the text or graphics of this chapter:
49+
- none

0 commit comments

Comments
 (0)