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

How Should I Keep A Running Total Of Several Values With Bacon.js?

Messing around with a bacon.js. I'd like to keep a running total of values in a group of text i… Read more How Should I Keep A Running Total Of Several Values With Bacon.js?

Order Of Executing Requests With Angularjs's Ng-resource? Pt2

This is a follow-up question to Part1. Part 2: books_ctrl.js.coffee myApp.controller 'BooksCtrl… Read more Order Of Executing Requests With Angularjs's Ng-resource? Pt2