snipt

Ctrl+h for KB shortcuts

Text only

Jane Eyre "The Hell"

1
2
3
4
5
6
7
8
“No sight so sad as that of a naughty child,” he began, “especially a naughty little girl.  Do you know where the wicked go after death?”
“They go to hell,” was my ready and orthodox answer.
“And what is hell?  Can you tell me that?”
“A pit full of fire.”
“And should you like to fall into that pit, and to be burning there for ever?”
“No, sir.”
“What must you do to avoid it?”
I deliberated a moment; my answer, when it did come, was objectionable: “I must keep in good health, and not die.”
https://snipt.net/embed/2e02b04e300bc665d85d76f84ef86406/
/raw/2e02b04e300bc665d85d76f84ef86406/
2e02b04e300bc665d85d76f84ef86406
text
Text only
8
2019-06-16T07:06:54
True
False
False
/api/public/snipt/48654/
jane-eyre-the-hell
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a> <a href="#L-6">6</a> <a href="#L-7">7</a> <a href="#L-8">8</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>“No sight so sad as that of a naughty child,” he began, “especially a naughty little girl. Do you know where the wicked go after death?” </span><span id="L-2"><a name="L-2"></a>“They go to hell,” was my ready and orthodox answer. </span><span id="L-3"><a name="L-3"></a>“And what is hell? Can you tell me that?” </span><span id="L-4"><a name="L-4"></a>“A pit full of fire.” </span><span id="L-5"><a name="L-5"></a>“And should you like to fall into that pit, and to be burning there for ever?” </span><span id="L-6"><a name="L-6"></a>“No, sir.” </span><span id="L-7"><a name="L-7"></a>“What must you do to avoid it?” </span><span id="L-8"><a name="L-8"></a>I deliberated a moment; my answer, when it did come, was objectionable: “I must keep in good health, and not die.” </span></pre></div> </td></tr></table>
quote, text

Text only

Mp3 tagging format (Mp3Tag)

$if(%track%,$if($and(%discnumber%,$neql(%totaldiscs%,$num(%discnumber%,1))),$num(%discnumber%,1).,)$num(%track%,2) - ,)$if($and(%albumartist%,$neql(%albumartist%,%artist%)),%artist% - ,)%title%
https://snipt.net/embed/37bcf8b28b9f2dba47135c304e2c6c27/
/raw/37bcf8b28b9f2dba47135c304e2c6c27/
37bcf8b28b9f2dba47135c304e2c6c27
text
Text only
1
2019-06-17T08:35:44
True
False
False
Oct 16, 2012 at 10:35 AM
/api/public/snipt/45677/
mp3-tagging-format-mp3tag
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>$if(%track%,$if($and(%discnumber%,$neql(%totaldiscs%,$num(%discnumber%,1))),$num(%discnumber%,1).,)$num(%track%,2) - ,)$if($and(%albumartist%,$neql(%albumartist%,%artist%)),%artist% - ,)%title% </span></pre></div> </td></tr></table>
mp3, tagz

Python 3

allin() and anyin() as alternatives to `in` comparator

1
2
3
4
5
6
def allin(what, where):
    return all(x in where for x in what)


def anyin(what, where):
    return any(x in where for x in what)
https://snipt.net/embed/2189542c9ab35c1fbe8618a1f2eb0dc7/
/raw/2189542c9ab35c1fbe8618a1f2eb0dc7/
2189542c9ab35c1fbe8618a1f2eb0dc7
python3
Python 3
6
2019-06-10T13:09:06
True
False
False
Oct 16, 2012 at 10:31 AM
/api/public/snipt/39631/
allin-and-anyin-as-alternatives-to-in-comparator
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a> <a href="#L-6">6</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="k">def</span> <span class="nf">allin</span><span class="p">(</span><span class="n">what</span><span class="p">,</span> <span class="n">where</span><span class="p">):</span> </span><span id="L-2"><a name="L-2"></a> <span class="k">return</span> <span class="nb">all</span><span class="p">(</span><span class="n">x</span> <span class="ow">in</span> <span class="n">where</span> <span class="k">for</span> <span class="n">x</span> <span class="ow">in</span> <span class="n">what</span><span class="p">)</span> </span><span id="L-3"><a name="L-3"></a> </span><span id="L-4"><a name="L-4"></a> </span><span id="L-5"><a name="L-5"></a><span class="k">def</span> <span class="nf">anyin</span><span class="p">(</span><span class="n">what</span><span class="p">,</span> <span class="n">where</span><span class="p">):</span> </span><span id="L-6"><a name="L-6"></a> <span class="k">return</span> <span class="nb">any</span><span class="p">(</span><span class="n">x</span> <span class="ow">in</span> <span class="n">where</span> <span class="k">for</span> <span class="n">x</span> <span class="ow">in</span> <span class="n">what</span><span class="p">)</span> </span></pre></div> </td></tr></table>
function, python, util