snipt

Ctrl+h for KB shortcuts

Text only

mac shortcut Uppercase É

[alt] + [^] and [maj] + [e] = É
https://snipt.net/embed/a90ed19a6aa41cd46d875cdc6cf14a1b/
/raw/a90ed19a6aa41cd46d875cdc6cf14a1b/
a90ed19a6aa41cd46d875cdc6cf14a1b
text
Text only
1
2019-06-13T18:35:29
True
False
False
/api/public/snipt/36702/
mac-shortcut-uppercase-e
<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>[alt] + [^] and [maj] + [e] = É </span></pre></div> </td></tr></table>
accent, mac, shortcut

JavaScript+Smarty

javascript short test

if (var == 'valueone' || var == 'valuetwo') {...}
if (({valueone:1,valuetwo:1})[var]) {...}
https://snipt.net/embed/9076cf85567e31affc3daee9431b08e2/
/raw/9076cf85567e31affc3daee9431b08e2/
9076cf85567e31affc3daee9431b08e2
js+smarty
JavaScript+Smarty
3
2019-06-24T23:56:37
True
False
False
/api/public/snipt/34714/
javascript-short-test
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</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">if</span> <span class="p">(</span><span class="kd">var</span> <span class="o">==</span> <span class="s1">&#39;valueone&#39;</span> <span class="o">||</span> <span class="kd">var</span> <span class="o">==</span> <span class="s1">&#39;valuetwo&#39;</span><span class="p">)</span> <span class="cp">{</span><span class="o">...</span><span class="cp">}</span> </span><span id="L-2"><a name="L-2"></a><span class="k">if</span> <span class="p">((</span><span class="cp">{</span><span class="nf">valueone</span><span class="o">:</span><span class="m">1</span><span class="o">,</span><span class="na">valuetwo</span><span class="o">:</span><span class="m">1</span><span class="cp">}</span><span class="p">)[</span><span class="kd">var</span><span class="p">])</span> <span class="cp">{</span><span class="o">...</span><span class="cp">}</span> </span></pre></div> </td></tr></table>
if, shortcut

Text only

shortcut to increase and decrease digit in VIM

Ctrl-x: Decrease digit at cursor in VIM 
Ctrl-a: Increase digit at cursor in VIM
https://snipt.net/embed/3d19d95c67e41b6b8b358df205612ee9/
/raw/3d19d95c67e41b6b8b358df205612ee9/
3d19d95c67e41b6b8b358df205612ee9
text
Text only
2
2019-06-24T17:44:09
True
False
False
/api/public/snipt/28731/
shortcut-to-increase-and-decrease-digit-in-vim
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>Ctrl-x: Decrease digit at cursor in VIM </span><span id="L-2"><a name="L-2"></a>Ctrl-a: Increase digit at cursor in VIM </span></pre></div> </td></tr></table>
keyboard, shortcut

Text only

TAB Character

ALT+09
https://snipt.net/embed/0febdfa4bf4118f6f0417181caa49d05/
/raw/0febdfa4bf4118f6f0417181caa49d05/
0febdfa4bf4118f6f0417181caa49d05
text
Text only
1
2019-06-24T06:16:01
True
False
False
/api/public/snipt/13418/
tab-character
<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>ALT+09 </span></pre></div> </td></tr></table>
character, shortcut

Python

Python syntax to set multiple variables to a single value on one line

1
2
3
4
5
6
# Sweet shortcut variable setting syntax
#
>>> price, count, unit = ("string",)*3
>>> print price, count, unit
string string string
>>> 
https://snipt.net/embed/adc7222e13bdb5e095e3a8dcc32a9528/
/raw/adc7222e13bdb5e095e3a8dcc32a9528/
adc7222e13bdb5e095e3a8dcc32a9528
python
Python
7
2019-06-25T23:07:23
True
False
False
/api/public/snipt/2596/
python-syntax-to-set-multiple-variables-to-a-single-value-on-one-line
<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="c1"># Sweet shortcut variable setting syntax</span> </span><span id="L-2"><a name="L-2"></a><span class="c1">#</span> </span><span id="L-3"><a name="L-3"></a><span class="o">&gt;&gt;&gt;</span> <span class="n">price</span><span class="p">,</span> <span class="n">count</span><span class="p">,</span> <span class="n">unit</span> <span class="o">=</span> <span class="p">(</span><span class="s2">&quot;string&quot;</span><span class="p">,)</span><span class="o">*</span><span class="mi">3</span> </span><span id="L-4"><a name="L-4"></a><span class="o">&gt;&gt;&gt;</span> <span class="k">print</span> <span class="n">price</span><span class="p">,</span> <span class="n">count</span><span class="p">,</span> <span class="n">unit</span> </span><span id="L-5"><a name="L-5"></a><span class="n">string</span> <span class="n">string</span> <span class="n">string</span> </span><span id="L-6"><a name="L-6"></a><span class="o">&gt;&gt;&gt;</span> </span></pre></div> </td></tr></table>
consol, equal, multiple, python, set, shortcut, to, variable