CoffeeScript cheat sheet compiled after following "CoffeeScript Koans" from sleepyfox
|
-c, --compile
|
|
-i, --interactive
|
|
-o, --output [DIR]
|
|
-p, --print
|
|
-e, --eval
|
|
--nodejs
|
testr
Great stuff. I just published my portfolio ( www.grifo.tv ) built with CoffeeScript, Backbone.js, Paper.js and Google Docs spreadsheet as CMS. It is opensourced on Github ( https://github.com/grifotv/grifotv-portfolio ), feel free to fork it.
Hi we develop Android apps. I always wanted to create a killer Coffee Script Android Tablet and Android Widget app. Obviously we will make it free, so just wanted to check if you're ok with us using the content.
Shah, I have mostly used examples provided from other sources, and very few bits of this are my own. For me, you are more than welcome to use it as you describe.
does it make coffee for me? i need first to install it. you should have brief explanation how to install it for ppl like me.
Sela, there are many ways to install CoffeeScript. For my OSX machine that has brew, I did a brew update to get the formula and then brew install coffeescript There are stand alone versions for windows for example, while I believe that you can use it without any modifications on Rails v3 and above. The answer depends on your setup. From this article in wikipedia (http://en.wikipedia.org/wiki/CoffeeScript): "The CoffeeScript compiler has been written in CoffeeScript since version 0.5 and is available as a Node.js utility; however, the core compiler does not rely on Node.js and can be run in any JavaScript environment[11]. One alternative to the Node.js utility is the Coffee Maven Plugin, a plugin for the popular Apache Maven build system. The plugin works by utilizing Mozilla Rhino, a JavaScript engine written in Java. The official site at CoffeeScript.org has a "Try CoffeeScript" button in the menu bar; clicking it opens a modal window in which you can enter CoffeeScript, see the JavaScript output, and run it directly in the browser." Generally speaking you will install once per project/machine/environment and code more times, so decided not to put installation instructions there.
Appreciate the effort but the formatting leaves something to be desired. Also not feeling the Google ads smack in the middle of the cheatsheet. Probably not something I will use.
About formatting, I think you are right and have corrected it. Ads are part of the platform and not a choice of the person who writes the cheat sheet, therefore I cannot comment.
@Chris: Platform issue: spaces are not translated. Tried to use ampersand-nbsp-semi colon for html, but do not know how it will look like on the PDF (I used to print the cheat sheets). In that case indentation issues affect the "middle" column, so even in that case not all of it is "useless", I believe.
Hi dimitrios. The amperand-nbsp-semicolon should now work properly (and I think you're using it in a couple of places) - please give me a shout if not.
@DaveChild You are right, I found that out after reading the comments of @Chris and @Josh. The thought was: let's give it a go and see what happens... I was worried about PDF creation, but that is also OK. Initially I thought I could only bold/italic/superscript stuff... The whole talk made the cheat sheet better :-).
Without suitable indenting in the cheat sheet, this is rather useless.
Changing and adding bits and pieces every day, diverting from the koans to something separate. Hoping that something useful is in the making.
Good stuff, dimitrios. And excellent timing - I've been diving into Coffeescript and node.js recently, so this will come in handy :)
Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.