diff options
author | Brian Cully <bjc@spork.org> | 2024-01-20 08:54:33 -0500 |
---|---|---|
committer | Brian Cully <bjc@spork.org> | 2024-01-20 09:21:24 -0500 |
commit | ffc0f8ca2dda42c5d02b07c92628ceb970d24b56 (patch) | |
tree | 0218705ba5a944c640c7cea093778c1f502aaa49 | |
parent | 9e7a588551c36090742394a80fa6d128f31b288b (diff) | |
download | fav-ffc0f8ca2dda42c5d02b07c92628ceb970d24b56.tar.gz fav-ffc0f8ca2dda42c5d02b07c92628ceb970d24b56.zip |
javascript: embed license info
-rw-r--r-- | js-ver.org | 30 |
1 files changed, 29 insertions, 1 deletions
@@ -92,6 +92,8 @@ start a python http server with: set up the javascript code by loading direct module dependencies and running the analysis when the form is submitted. #+begin_src javascript :noweb yes :tangle main.mjs + <<js-license>> + import process from './varscan.mjs'; import Log from './logging.mjs'; @@ -248,7 +250,9 @@ create a download link #+end_src ** variant to codon whatever i need to name this -#+begin_src javascript :tangle varscan.mjs +#+begin_src javascript :noweb yes :tangle varscan.mjs + <<js-license>> + import Log from './logging.mjs'; import codon2AA from './codon2AminoAcid.mjs'; import aa2Code from './aminoAcid2Code.mjs'; @@ -352,6 +356,8 @@ create a download link :END: #+begin_src javascript :noweb yes :tangle codon2AminoAcid.mjs + <<js-license>> + const codon2AA = { 'GCT': 'Ala', 'GCC': 'Ala', @@ -428,6 +434,8 @@ create a download link :END: #+begin_src javascript :noweb yes :tangle aminoAcid2Code.mjs + <<js-license>> + const aa2Code = { 'Ala': 'A', 'Arg': 'R', @@ -457,6 +465,8 @@ create a download link ** logging #+begin_src javascript :noweb yes :tangle logging.mjs + <<js-license>> + class Log { get elt() { if (!document.querySelector('#log')) { @@ -511,3 +521,21 @@ create a download link export default Log #+end_src + +** license +#+name: js-license +#+begin_src javascript + /* + ,* copyright 2024 brian cully <bjc@kublai.com> + ,* + ,* this program is free software: you can redistribute it and/or + ,* modify it under the terms of the gnu affero general public license + ,* version 3 or later. + ,* + ,* a copy of this license may be found at https://www.gnu.org/licenses/agpl-3.0.html + ,* + ,* dear gnu developers: stop making your software so hard to work + ,* with. i was going to put in librejs tags, but it's like it goes out + ,* of its way to make that as annoying as possible. + ,*/ +#+end_src |