Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Initial Commit

  • Loading branch information...
commit 54200dc1bf8d6d550d290740ca1214c844fea3de 0 parents
@skalnik authored
8 about_me/about_me.md
@@ -0,0 +1,8 @@
+!SLIDE bullets incremental
+
+# About Me #
+
+* Mike Skalnik
+* github.com/skalnik
+* @skalnik
+* ![Highgroove Studios](highgroove.png)
BIN  about_me/highgroove.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
59 coffeescript/basics.md
@@ -0,0 +1,59 @@
+!SLIDE bullets incremental
+
+* JavaScript is hard to avoid
+* Coming from Ruby, the syntax can seem ugly
+* The semicolons stab my eyes!
+
+!SLIDE
+
+# CoffeeScript to the rescue! #
+
+!SLIDE bullets incremental
+
+# CoffeeScript #
+
+* "It's just Javascript"
+* Similar to haml for HTML
+* or sass for CSS
+
+!SLIDE bullets incremental
+
+* Compiles down to JavaScript
+* Brings in ideas from Ruby & Python
+* Whitespace sensitive (Yay! Boo!)
+
+!SLIDE
+
+ @@@javascript
+ window.Money = class Money
+ constructor: (rawString) ->
+ @cents = @parseCents rawString
+
+ parseCents: (rawString="") ->
+ [dollars, cents] =
+ rawString.match(/(\d+)/g) ? [0,0]
+ + cents + 100 * dollars
+
+!SLIDE small code
+
+ @@@javascript
+ (function() {
+ var Money;
+ window.Money = Money = (function() {
+ function Money(rawString) {
+ this.cents = this.parseCents(rawString);
+ }
+ Money.prototype.parseCents =
+ function(rawString) {
+ var cents, dollars, _ref, _ref2;
+ if (rawString == null) {
+ rawString = "";
+ }
+ _ref2 = (_ref = rawString.match(/(\d+)/g)) != null ?
+ _ref : [0, 0],
+ dollars = _ref2[0], cents = _ref2[1];
+ return +cents + 100 * dollars;
+ };
+ return Money;
+ })();
+ }).call(this);
3  fin/fin.md
@@ -0,0 +1,3 @@
+!SLIDE
+
+# Questions? #
9 showoff.json
@@ -0,0 +1,9 @@
+{
+ "name": "CoffeeScript",
+ "sections": [
+ {"section" : "title"},
+ {"section" : "about_me"},
+ {"section" : "coffeescript"},
+ {"section" : "fin"}
+ ]
+}
BIN  title/logo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3  title/title.md
@@ -0,0 +1,3 @@
+! SLIDE
+
+# CoffeeScript #
Please sign in to comment.
Something went wrong with that request. Please try again.