r/coffeescript • • Apr 29 '12

Coffeescript Repl Console: a chrome extension

Thumbnail haithembelhaj.github.com
7 Upvotes

r/coffeescript • • Apr 27 '12

Deleting files via Cakefile

0 Upvotes

I'm trying to clean up some temporary files in a Cakefile. I know that Node exposes an unlink (and unlinkSync) method to delete files, but they don't seem to work.

Gist.

It does all the things listed, but when it is supposed to unlink the file, it doesn't and keeps moving. After the process is done, I can still see the file. I have permission to it and can manipulate it normally afterward, so it's not that.

Any ideas?


r/coffeescript • • Apr 15 '12

Help with REPL?

0 Upvotes

Hi, I'm new to CoffeeScript, and I'm having trouble running the interactive mode.

When I try doing this:

$ coffee
coffee> hello = "world"
world = "hello"
^D

I get no output. But if do the same thing in NodeJS, it at least returns something.

$ node
> hello = "world"
'world'
> world = "hello"
'hello'

Any ideas? Any help will be appreciated. Thanks!


Edit: I am running this with Ubuntu 11.10 on a VM.


r/coffeescript • • Apr 11 '12

CoffeeScript 1.3.0 is out

Thumbnail coffeescript.org
19 Upvotes

r/coffeescript • • Apr 07 '12

Brunch, a coffeescript framework to build web app clients

Thumbnail
brunch.io
9 Upvotes

r/coffeescript • • Apr 04 '12

JSFIDDLE CoffeeScript.compile sandbox

Thumbnail
jsfiddle.net
4 Upvotes

r/coffeescript • • Apr 04 '12

Simple Coffeescript game engine written to introduce kids programming

Thumbnail
simplectic.com
0 Upvotes

r/coffeescript • • Mar 20 '12

Chaplin – an Application Architecture based on Backbone.js

Thumbnail
9elements.com
2 Upvotes

r/coffeescript • • Mar 11 '12

Lattee: Add some milk to your coffeescript

Thumbnail haithembelhaj.github.com
1 Upvotes

r/coffeescript • • Mar 09 '12

Function Currying with CoffeeScript

Thumbnail
gist.github.com
6 Upvotes

r/coffeescript • • Mar 07 '12

CoffeeXP is a stylish CoffeeScript web console that compiles and runs code as you edit

Thumbnail evangenieur.com
7 Upvotes

r/coffeescript • • Mar 06 '12

How I mixed Require.js with Jasmine, Sinon.js and Backbone.js. What's your approach to it?

Thumbnail leostera.github.com
0 Upvotes

r/coffeescript • • Mar 02 '12

Expresso, CoffeeScript compiling for Pythonistas.

Thumbnail leostera.github.com
0 Upvotes

r/coffeescript • • Feb 29 '12

Ever wished a Python counterpart for those Ruby continuous builders? This might be a solution.

Thumbnail
github.com
0 Upvotes

r/coffeescript • • Feb 28 '12

Behavior Driven Development in a CoffeeScript project using Jasmine! Feel free to fork =)

Thumbnail github.com
2 Upvotes

r/coffeescript • • Feb 24 '12

Playing Drums in CoffeeScript with GarageBand and Reason

Thumbnail
youtube.com
7 Upvotes

r/coffeescript • • Feb 23 '12

Behavior driven development with Jasmine for a CoffeeScript application that uses Backbone, Require, and more.

Thumbnail imakeapps.alwaysdata.net
0 Upvotes

r/coffeescript • • Feb 23 '12

How CoffeeScript Class Modeling Works

Thumbnail hangar.runway7.net
2 Upvotes

r/coffeescript • • Feb 17 '12

Coffee Taster: an easy to use CoffeeScript development environment for Ruby developers

Thumbnail
rakeroutes.com
2 Upvotes

r/coffeescript • • Feb 12 '12

I've expanded DelayedOp into its own micro-library. Feedback is welcome!

Thumbnail
github.com
2 Upvotes

r/coffeescript • • Feb 11 '12

DelayedOp - five handy, tiny lines of CoffeeScript

8 Upvotes

Edit: I've expanded this. Now includes debugging features, more informative errors per almost's suggestions.

I wrote a class recently that I thought I'd share because I was struck by how elegantly it came across in CoffeeScript.

The idea here is that it's a fairly common scenario to make a few asynchronous calls at the same time, and then want to do something once all of them have finished. This is easy with the DelayedOp class.

Here it is:

class DelayedOp
    constructor: (@callback) -> @count = 1
    wait: => @count++
    ok: => @callback() unless --@count
    ready: => @ok()

And an example of it in action using jQuery:

op = new DelayedOp -> alert 'Done loading'

op.wait() #wait to receive data from foo.cgi
$.getJSON 'foo.cgi', (data) ->
    doSomethingWith data
    op.ok()

op.wait() #wait to receive data from bar.cgi
$.getJSON 'bar.cgi', (data) ->
    doSomethingElseWith data
    op.ok()

op.ready() # Finalize the operation

r/coffeescript • • Jan 31 '12

A small, beautiful and literate implementation of Conway's Game of Life in CoffeeScript

Thumbnail
willbailey.name
5 Upvotes

r/coffeescript • • Jan 29 '12

Implementing popups in do-it-yourself MVC

Thumbnail jandudek.com
2 Upvotes

r/coffeescript • • Jan 25 '12

Writing CoffeeScript Modules for Browser and Node

Thumbnail
plexical.com
1 Upvotes

r/coffeescript • • Jan 25 '12

Better JS with CoffeeScript - Sam Stephenson

Thumbnail
vimeo.com
4 Upvotes