Skip to content

Commit aa3099c

Browse files
committed
Adding notes about Ubuntu and Windows installation.
1 parent c6b90b9 commit aa3099c

File tree

3 files changed

+18
-4
lines changed

3 files changed

+18
-4
lines changed

documentation/index.html.erb

+7
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,13 @@ npm install coffee-script</pre>
182182
<pre>
183183
sudo bin/cake install</pre>
184184

185+
<p>
186+
If installing on Ubuntu or Debian,
187+
<a href="http://opinionated-programmer.com/2010/12/installing-coffeescript-on-debian-or-ubuntu/">be
188+
careful not to use the existing out-of-date package</a>. If installing on
189+
Windows, your best bet is probably to run Node.js under Cygwin.
190+
</p>
191+
185192
<p>
186193
Both of these provide the <tt>coffee</tt> command, which can execute
187194
coffee scripts, compile <tt>.coffee</tt> files into <tt>.js</tt>, and

documentation/js/slices.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
var copy, middle, numbers;
22
numbers = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
33
copy = numbers.slice(0, numbers.length);
4-
middle = copy.slice(3, 6 + 1);
4+
middle = copy.slice(3, 7);

index.html

+10-3
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,13 @@ <h2>
260260
<pre>
261261
sudo bin/cake install</pre>
262262

263+
<p>
264+
If installing on Ubuntu or Debian,
265+
<a href="http://opinionated-programmer.com/2010/12/installing-coffeescript-on-debian-or-ubuntu/">be
266+
careful not to use the existing out-of-date package</a>. If installing on
267+
Windows, your best bet is probably to run Node.js under Cygwin.
268+
</p>
269+
263270
<p>
264271
Both of these provide the <tt>coffee</tt> command, which can execute
265272
coffee scripts, compile <tt>.coffee</tt> files into <tt>.js</tt>, and
@@ -989,11 +996,11 @@ <h2>
989996
</pre><pre class="idle"><span class="Storage">var</span> copy, middle, numbers;
990997
numbers <span class="Keyword">=</span> [<span class="Number">0</span>, <span class="Number">1</span>, <span class="Number">2</span>, <span class="Number">3</span>, <span class="Number">4</span>, <span class="Number">5</span>, <span class="Number">6</span>, <span class="Number">7</span>, <span class="Number">8</span>, <span class="Number">9</span>];
991998
copy <span class="Keyword">=</span> numbers.<span class="LibraryFunction">slice</span>(<span class="Number">0</span>, numbers.<span class="LibraryConstant">length</span>);
992-
middle <span class="Keyword">=</span> copy.<span class="LibraryFunction">slice</span>(<span class="Number">3</span>, <span class="Number">6</span> <span class="Keyword">+</span> <span class="Number">1</span>);
999+
middle <span class="Keyword">=</span> copy.<span class="LibraryFunction">slice</span>(<span class="Number">3</span>, <span class="Number">7</span>);
9931000
</pre><script>window.example14 = "numbers = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]\n\ncopy = numbers[0...numbers.length]\n\nmiddle = copy[3..6]\n\n\n"</script><div class='minibutton load' onclick='javascript: loadConsole(example14);'>Load</div><div class='minibutton ok' onclick='javascript: var copy, middle, numbers;
9941001
numbers = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
9951002
copy = numbers.slice(0, numbers.length);
996-
middle = copy.slice(3, 6 + 1);;alert(middle);'>run: middle</div><br class='clear' /></div>
1003+
middle = copy.slice(3, 7);;alert(middle);'>run: middle</div><br class='clear' /></div>
9971004
<p>
9981005
The same syntax can be used with assignment to replace a segment of an array
9991006
with new values, splicing it.
@@ -1926,7 +1933,7 @@ <h2>
19261933
for CoffeeScript. Used to produce the annotated source.
19271934
</li>
19281935
<li>
1929-
<b>naturalethic</b>'s <a href="http://github.com/naturalethic/Congo">Congo</a>
1936+
<b>naturalethic</b>'s <a href="http://github.com/naturalethic/coffee-mongo">coffee-mongo</a>
19301937
&mdash; an asynchronous MongoDB ORM, for use with Node.js and CoffeeScript.
19311938
</li>
19321939
<li>

0 commit comments

Comments
 (0)