Skip to content Skip to sidebar Skip to footer
Showing posts with the label Coffeescript

For Loop Over Backbone Collection

Fairly new to backbone, so this is a really basic question. I have a Backbone collection passed int… Read more For Loop Over Backbone Collection

Coffeescript Instance Method Encapsulation In An Object

Say I have a Coffeescript class: class Foo MyMethodsBar: () => 'bar' MyMethodsBaz: (… Read more Coffeescript Instance Method Encapsulation In An Object

Using Mouse Cursor Position As A Range Starting Point In Coffeescript/javascript

As the title states, I would like to use my cursor's position as the start point to a range. Ri… Read more Using Mouse Cursor Position As A Range Starting Point In Coffeescript/javascript

How To Get A Model By Array Params From A Collection

I have a model like this: model = from: 'a@b.com' id: 1 to: [c@d.com] and I h… Read more How To Get A Model By Array Params From A Collection

Node.js: Read Params Passed In The Url

In rails I do a POST request to my server: response = Typhoeus::Request.post('http://url.localt… Read more Node.js: Read Params Passed In The Url

Q.js Progress Handler Doesn't Seem To Be Firing

I'm currently using Q.js for promises, since they implement progress handlers. However, it does… Read more Q.js Progress Handler Doesn't Seem To Be Firing