snipt

Ctrl+h for KB shortcuts

Ruby

TextMate : Run current scala file as Script

1
2
3
4
5
6
7
#!/usr/bin/env ruby -w

cmd = ENV['SCALA_HOME'] + "bin/scala -nocompdaemon -howtorun:script '" + ENV['TM_FILEPATH'] + "'"

result = "" + `#{cmd}`

puts "#{result}"
https://snipt.net/embed/bfafdafd7d7c30dbc040633e4cc8b106/
/raw/bfafdafd7d7c30dbc040633e4cc8b106/
bfafdafd7d7c30dbc040633e4cc8b106
rb
Ruby
7
2016-12-25T10:34:30
True
False
True
Jul 04, 2013 at 06:19 PM
/api/public/snipt/66491/
textmate-run-filescala-as-script
<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></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="ch">#!/usr/bin/env ruby -w</span> </span><span id="L-2"><a name="L-2"></a> </span><span id="L-3"><a name="L-3"></a><span class="n">cmd</span> <span class="o">=</span> <span class="no">ENV</span><span class="o">[</span><span class="s1">&#39;SCALA_HOME&#39;</span><span class="o">]</span> <span class="o">+</span> <span class="s2">&quot;bin/scala -nocompdaemon -howtorun:script &#39;&quot;</span> <span class="o">+</span> <span class="no">ENV</span><span class="o">[</span><span class="s1">&#39;TM_FILEPATH&#39;</span><span class="o">]</span> <span class="o">+</span> <span class="s2">&quot;&#39;&quot;</span> </span><span id="L-4"><a name="L-4"></a> </span><span id="L-5"><a name="L-5"></a><span class="n">result</span> <span class="o">=</span> <span class="s2">&quot;&quot;</span> <span class="o">+</span> <span class="sb">`</span><span class="si">#{</span><span class="n">cmd</span><span class="si">}</span><span class="sb">`</span> </span><span id="L-6"><a name="L-6"></a> </span><span id="L-7"><a name="L-7"></a><span class="nb">puts</span> <span class="s2">&quot;</span><span class="si">#{</span><span class="n">result</span><span class="si">}</span><span class="s2">&quot;</span> </span></pre></div> </td></tr></table>

Text only

Understanding PlayFramework 2.0

1
2
3
4
5
To understand the concepts I made the following Mind Map:

https://www.xmind.net/m/CFc9/

Enjoy!
https://snipt.net/embed/14cbdab3eb559651e9d25bb693ef8b9a/
/raw/14cbdab3eb559651e9d25bb693ef8b9a/
14cbdab3eb559651e9d25bb693ef8b9a
text
Text only
5
2016-12-21T17:29:03
True
False
True
Dec 27, 2012 at 04:18 PM
/api/public/snipt/52443/
understanding-playframework-20
<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></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>To understand the concepts I made the following Mind Map: </span><span id="L-2"><a name="L-2"></a> </span><span id="L-3"><a name="L-3"></a>https://www.xmind.net/m/CFc9/ </span><span id="L-4"><a name="L-4"></a> </span><span id="L-5"><a name="L-5"></a>Enjoy! </span></pre></div> </td></tr></table>
playframework