force use of pandoc version >= 3.1.12.2
The `bin/pandoc-wrapper.sh` tool will verify that the ssytem has a recent enough version of `pandoc(1)`. We explain why we insist on `pandoc(1)`. version >= 3.1.12.2 in comments where the $PANDOC_MIN_VERSION is set. Added `--wrap=preserve` as a default argument to `pandoc(1)`. While this change will impact every HTML file generated, we believe this will improve the ability of someone to look at the generated HTML and correlate with the original markdown. Changed `bin/pandoc-wrapper.sh` VERSION from "1.4.2 2024-03-17" to "1.4.3 2024-03-18". Performed `make www` to achieve all of the above and to generate HTML using the new `--wrap=preserve` `pandoc(1)` mode.
This commit is contained in:
1 parent
9eb7a54e9f
commit
b0b212acb1
402 files changed
+37061
-55132
No files matched your search
+35
-63
@@ -129,9 +129,9 @@
|
||||
|
||||
<h2 id="author"><a name="author"></a>Author:</h2>
|
||||
<ul>
|
||||
<li>Name: <a href="../../authors.html#Raymond_Cheong">Raymond
|
||||
Cheong</a><br> Location: <a href="../../location.html#US">US</a> -
|
||||
<em>United States of America</em> (<em>United States</em>) <br><br></li>
|
||||
<li>Name: <a href="../../authors.html#Raymond_Cheong">Raymond Cheong</a><br>
|
||||
Location: <a href="../../location.html#US">US</a> - <em>United States of America</em> (<em>United States</em>)
|
||||
<br><br></li>
|
||||
</ul>
|
||||
|
||||
<!-- END: next line ends content generated by: bin/output-index-author.sh -->
|
||||
@@ -148,23 +148,21 @@ Cheong</a><br> Location: <a href="../../location.html#US">US</a> -
|
||||
<h2 id="judges-remarks">Judges’ remarks:</h2>
|
||||
<p>Be sure to give an even number of digits in the argument. Add a
|
||||
leading 0 if needed.</p>
|
||||
<p>The source code is nice, compact, and self documenting as all good
|
||||
programs should be! :-)</p>
|
||||
<p>The source code is nice, compact, and self documenting
|
||||
as all good programs should be! :-)</p>
|
||||
<h2 id="authors-remarks">Author’s remarks:</h2>
|
||||
<h3 id="operation">Operation</h3>
|
||||
<p>Compile normally and run with one argument, an integer with 2n
|
||||
digits. Program will return the integer part of its square root
|
||||
(n-digits). For example,</p>
|
||||
<p>Compile normally and run with one argument, an integer with 2n digits.
|
||||
Program will return the integer part of its square root (n-digits).
|
||||
For example,</p>
|
||||
<div class="sourceCode" id="cb4"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb4-1"><a href="#cb4-1" aria-hidden="true" tabindex="-1"></a><span class="ex">$</span> cc <span class="at">-o</span> cheong cheong.c</span>
|
||||
<span id="cb4-2"><a href="#cb4-2" aria-hidden="true" tabindex="-1"></a><span class="ex">$</span> ./cheong 1234567890</span>
|
||||
<span id="cb4-3"><a href="#cb4-3" aria-hidden="true" tabindex="-1"></a><span class="ex">35136</span></span>
|
||||
<span id="cb4-4"><a href="#cb4-4" aria-hidden="true" tabindex="-1"></a><span class="ex">$</span> ./cheong 0200000000000000000000000000</span>
|
||||
<span id="cb4-5"><a href="#cb4-5" aria-hidden="true" tabindex="-1"></a><span class="ex">14142135623730</span></span></code></pre></div>
|
||||
<p>Deviation from these instructions will cause undefined results.
|
||||
:-)</p>
|
||||
<p>Deviation from these instructions will cause undefined results. :-)</p>
|
||||
<h3 id="portability">Portability</h3>
|
||||
<p>This program runs normally on any ANSI C compiler and is ASCII
|
||||
dependent.</p>
|
||||
<p>This program runs normally on any ANSI C compiler and is ASCII dependent.</p>
|
||||
<p>Strict compiling gives just one unavoidable warning:</p>
|
||||
<div class="sourceCode" id="cb5"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb5-1"><a href="#cb5-1" aria-hidden="true" tabindex="-1"></a><span class="fu">gcc</span> <span class="at">-ansi</span> <span class="at">-Wall</span> cheong.c</span>
|
||||
<span id="cb5-2"><a href="#cb5-2" aria-hidden="true" tabindex="-1"></a><span class="ex">cheong.c:3:</span> warning: third argument of <span class="kw">`</span><span class="ex">main</span><span class="st">' should probably be `char **'</span></span></code></pre></div>
|
||||
@@ -173,86 +171,60 @@ dependent.</p>
|
||||
sometimes known as the longhand method. The basic algorithm is itself
|
||||
obfuscated in that it only uses subtraction to calculate square roots.
|
||||
For a detailed explanation, check Google or see Jack Crenshaw’s article
|
||||
at <a
|
||||
href="https://web.archive.org/web/20011215124349/http://www.embedded.com/98/9802fe2.htm"
|
||||
class="uri">https://web.archive.org/web/20011215124349/http://www.embedded.com/98/9802fe2.htm</a>.</p>
|
||||
<p>This program uses an even more obscured version which includes the
|
||||
following:</p>
|
||||
at
|
||||
<a href="https://web.archive.org/web/20011215124349/http://www.embedded.com/98/9802fe2.htm" class="uri">https://web.archive.org/web/20011215124349/http://www.embedded.com/98/9802fe2.htm</a>.</p>
|
||||
<p>This program uses an even more obscured version which includes the following:</p>
|
||||
<ul>
|
||||
<li>A single string is used to store two numbers of different
|
||||
lengths</li>
|
||||
<li>A single string is used to store two numbers of different lengths</li>
|
||||
<li>Operations are done in a weird hybrid of base 10 and base 20</li>
|
||||
<li>Subtraction is done addition style, i.e. <code>4 - 8</code> equals
|
||||
<code>6</code> carry a <code>-1</code></li>
|
||||
<li>Subtraction is done addition style, i.e. <code>4 - 8</code> equals <code>6</code> carry a <code>-1</code></li>
|
||||
<li>Recursive calls to <code>main()</code></li>
|
||||
</ul>
|
||||
<h4 id="minor-obfuscations">Minor obfuscations:</h4>
|
||||
<ul>
|
||||
<li>Self documenting whitespace in rectangular code block, for fun and
|
||||
glory (view with fixed-width font)</li>
|
||||
<li>Integer constants adjusted to less meaningful values, just for added
|
||||
confusion</li>
|
||||
<li>Self documenting whitespace in rectangular code block, for fun and glory (view
|
||||
with fixed-width font)</li>
|
||||
<li>Integer constants adjusted to less meaningful values, just for added confusion</li>
|
||||
<li>Hard-to-read, meaningless variable names to spite the reader</li>
|
||||
</ul>
|
||||
<h4 id="challenges-for-the-masses">Challenges for the masses:</h4>
|
||||
<ul>
|
||||
<li>What are the meanings [sic, plural] of the variable
|
||||
<code>o</code>?</li>
|
||||
<li>Why is <code>(c+999)%10-(D[I]+92)%10</code> not equivalent to
|
||||
<code>(c-D[I]+7)%10</code>?</li>
|
||||
<li>What are the meanings [sic, plural] of the variable <code>o</code>?</li>
|
||||
<li>Why is <code>(c+999)%10-(D[I]+92)%10</code> not equivalent to <code>(c-D[I]+7)%10</code>?</li>
|
||||
<li>How does the program terminate?</li>
|
||||
<li>Is the programmer sane? ;-)</li>
|
||||
</ul>
|
||||
<h3 id="appreciation">Appreciation</h3>
|
||||
<p>Thanks goes out to Bobby Rohde for numerous suggestions on how to
|
||||
shorten the program.</p>
|
||||
<h2 id="copyright-and-cc-by-sa-4.0-license">Copyright and CC BY-SA 4.0
|
||||
License:</h2>
|
||||
<p>This file is Copyright (c) 2023 by Landon Curt Noll. All Rights
|
||||
Reserved. You are free to share and adapt this file under the terms of
|
||||
this license:</p>
|
||||
<p>Thanks goes out to Bobby Rohde for numerous suggestions on how to shorten
|
||||
the program.</p>
|
||||
<h2 id="copyright-and-cc-by-sa-4.0-license">Copyright and CC BY-SA 4.0 License:</h2>
|
||||
<p>This file is Copyright (c) 2023 by Landon Curt Noll. All Rights Reserved.
|
||||
You are free to share and adapt this file under the terms of this license:</p>
|
||||
<pre><code>Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)</code></pre>
|
||||
<p>For more information, see:
|
||||
https://creativecommons.org/licenses/by-sa/4.0/</p>
|
||||
<p>For more information, see: https://creativecommons.org/licenses/by-sa/4.0/</p>
|
||||
|
||||
<!-- END: this line ends content for HTML phase 21 by: bin/pandoc-wrapper.sh via bin/md2html.sh -->
|
||||
<!-- START: this line starts content for HTML phase 22 by: bin/output-index-inventory.sh via bin/md2html.sh -->
|
||||
|
||||
<!-- START: this line starts content generated by: bin/output-index-inventory.sh -->
|
||||
|
||||
<h1 id="inventory-for-2001cheong"><a name="inventory"></a>Inventory for
|
||||
2001/cheong</h1>
|
||||
<h1 id="inventory-for-2001cheong"><a name="inventory"></a>Inventory for 2001/cheong</h1>
|
||||
<p><a href="#top">Jump to top</a></p>
|
||||
<h2 id="primary-files">Primary files</h2>
|
||||
<ul>
|
||||
<li><a
|
||||
href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2001/cheong/cheong.c">cheong.c</a>
|
||||
- entry source</li>
|
||||
<li><a
|
||||
href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2001/cheong/Makefile">Makefile</a>
|
||||
- entry Makefile</li>
|
||||
<li><a
|
||||
href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2001/cheong/cheong.orig.c">cheong.orig.c</a>
|
||||
- original source</li>
|
||||
<li><a
|
||||
href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2001/cheong/try.sh">try.sh</a>
|
||||
- how to run</li>
|
||||
<li><a href="2001_cheong.tar.bz2">2001_cheong.tar.bz2</a> - download
|
||||
entry source</li>
|
||||
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2001/cheong/cheong.c">cheong.c</a> - entry source</li>
|
||||
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2001/cheong/Makefile">Makefile</a> - entry Makefile</li>
|
||||
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2001/cheong/cheong.orig.c">cheong.orig.c</a> - original source</li>
|
||||
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2001/cheong/try.sh">try.sh</a> - how to run</li>
|
||||
<li><a href="2001_cheong.tar.bz2">2001_cheong.tar.bz2</a> - download entry source</li>
|
||||
</ul>
|
||||
<h2 id="secondary-files">Secondary files</h2>
|
||||
<ul>
|
||||
<li><a href="index.html">index.html</a> - entry home page</li>
|
||||
<li><a
|
||||
href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2001/cheong/.entry.json">.entry.json</a>
|
||||
- description of entry in JSON</li>
|
||||
<li><a
|
||||
href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2001/cheong/.gitignore">.gitignore</a>
|
||||
- list of files that should not be committed under git</li>
|
||||
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2001/cheong/.entry.json">.entry.json</a> - description of entry in JSON</li>
|
||||
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2001/cheong/.gitignore">.gitignore</a> - list of files that should not be committed under git</li>
|
||||
<li><a href=".path">.path</a> - directory path from top directory</li>
|
||||
<li><a
|
||||
href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2001/cheong/README.md">README.md</a>
|
||||
- markdown source for index.html</li>
|
||||
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2001/cheong/README.md">README.md</a> - markdown source for index.html</li>
|
||||
</ul>
|
||||
|
||||
<!-- END: next line ends content generated by: bin/output-index-inventory.sh -->
|
||||
|
||||
Reference in new issue
Block a user