<p>I use bash, R, Python, Raku, Perl, Java, and anything else that is needed.</p>
<p>Utilizo bash, R, Python, Raku, Perl, Java, o lo que sea necesario.</p>
<p><a href="http://stackoverflow.com/a/28481250/215487">A good explanation of creating good reproducible R questions</a></p>
<p><a href="http://stackoverflow.com/questions/15289995/how-to-get-help-in-r/15290370#15290370">How to get help in R</a></p>
<hr />
<h1>Python 3 vs Raku</h1>
<h2>Python 3: Unordered common lines between two files:</h2>
<pre><code>#!/bin/env python

import argparse

parser = argparse.ArgumentParser(description='Determine the lines in common between two files')

parser.add_argument('fileA', help='file name')
parser.add_argument('fileB', help='file name')

args = parser.parse_args()

with open(args.fileA) as x: linesA = x.readlines()
with open(args.fileB) as x: linesB = x.readlines()

intersection = set(linesA).intersection(set(linesB))

print(&quot;&quot;.join(sorted(intersection)))
</code></pre>
<p>Usage message resulting from <code>python intersection_of_lines.py --help</code>:</p>
<pre><code>usage: intersection_of_lines.py [-h] fileA fileB

Determine the lines in common between two files

positional arguments:
  fileA       file name
  fileB       file name

optional arguments:
  -h, --help  show this help message and exit
</code></pre>
<h2>Raku: Unordered common lines between two files:</h2>
<pre><code>#!/bin/env raku

sub MAIN #= Determine the lines in common between two files
(   <span class="math-container">$fileA, #= file name
    $</span>fileB, #= file name
)
{
    my @linesA = <span class="math-container">$fileA.IO.lines;
    my @linesB = $</span>fileB.IO.lines;

    my $intersection = @linesA ∩ @linesB;

    put $intersection.keys.sort.join(&quot;\n&quot;);
}
</code></pre>
<p>Yes that is <code>∩</code>, a real Unicode intersection symbol. The ASCII version <code>(&amp;)</code> also works.</p>
<p>You also get a nice usage message resulting from <code>raku intersection_of_lines.raku --help</code>:</p>
<pre><code>Usage:
  ./intersection_of_lines.raku &lt;fileA&gt; &lt;fileB&gt; -- Determine the lines in common between two files

    &lt;fileA&gt;    file name
    &lt;fileB&gt;    file name
</code></pre>
<hr />
<h1>Raku tidbits</h1>
<p>Raku is a very clean, concise, understandable language. Its design pulls from the strengths of other languages.</p>
<p><a href="http://blogs.perl.org/users/zoffix_znet/2016/01/perl-6-rotor-the-king-of-list-manipulation.html" rel="nofollow noreferrer">Raku's <code>rotor</code> (the &quot;king of list manipulation&quot;)</a>.</p>
<p><a href="http://www.0racle.info/articles/perl_6_on_rails" rel="nofollow noreferrer">Error handling example</a>.</p>
<h2>SLURM</h2>
<p>Pass variables to SLURM: <a href="https://stackoverflow.com/questions/45592730">https://stackoverflow.com/questions/45592730</a></p>
<p><code>sbatch --export=GREETING=Hello,PLACE=world --wrap='echo &quot;$GREETING $PLACE&quot; &gt; howdy.txt'</code></p>
<h2>convert Jupyter notebook (<a href="https://stackoverflow.com/a/50567584/215487">https://stackoverflow.com/a/50567584/215487</a>)</h2>
<p><code>jupyter-nbconvert --to python notebook.ipynb --stdout --TemplateExporter.exclude_input_prompt=True</code></p>
<p>Why adjusted P-values are so important: <a href="https://www.xkcd.com/882" rel="nofollow noreferrer">https://www.xkcd.com/882</a></p>

Christopher Bottoms