snipt

Ctrl+h for KB shortcuts

Text only

git - set username and email

$ git config --global user.name "Your Name Comes Here"
$ git config --global user.email [email protected]
https://snipt.net/embed/b4f42850d1a10633849e4f5052806eeb/
/raw/b4f42850d1a10633849e4f5052806eeb/
b4f42850d1a10633849e4f5052806eeb
text
Text only
2
2019-06-18T02:36:22
True
False
False
Apr 04, 2019 at 04:58 AM
/api/public/snipt/148282/
git-set-username-and-email
<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>$ git config --global user.name &quot;Your Name Comes Here&quot; </span><span id="L-2"><a name="L-2"></a>$ git config --global user.email [email protected] </span></pre></div> </td></tr></table>
git

Java

Convert Map values to a List

List<Value> list = new ArrayList<Value>(map.values());
https://snipt.net/embed/bb8a96befabf3956d1dc7d1ada7400aa/
/raw/bb8a96befabf3956d1dc7d1ada7400aa/
bb8a96befabf3956d1dc7d1ada7400aa
java
Java
1
2019-06-05T04:24:59
True
False
False
Mar 27, 2013 at 05:47 AM
/api/public/snipt/58375/
convert-map-values-to-a-list
<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><span class="n">List</span><span class="o">&lt;</span><span class="n">Value</span><span class="o">&gt;</span> <span class="n">list</span> <span class="o">=</span> <span class="k">new</span> <span class="n">ArrayList</span><span class="o">&lt;</span><span class="n">Value</span><span class="o">&gt;(</span><span class="n">map</span><span class="o">.</span><span class="na">values</span><span class="o">());</span> </span></pre></div> </td></tr></table>
convert, java