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

Gulp: Different Pipe Collections Within Same Task (coffeescript And Javascript)

What I've been attempting to do is create one scripts task that takes all .coffee and .js files… Read more Gulp: Different Pipe Collections Within Same Task (coffeescript And Javascript)

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

Authenticate User, Redirect With Xhr Request

I am looking at this guide to help me with setting up a 'Add to Cart' feature within my app… Read more Authenticate User, Redirect With Xhr Request

Select2 - Deny To Can Clean The Input Field And Disable The Form If Results Not Found

I have this json file on /api/searches: [{'id':'513dbb61a61654a845000005','text… Read more Select2 - Deny To Can Clean The Input Field And Disable The Form If Results Not Found

Backbone.js Model.get() Returns Undefined, Scope Using Coffeescript + Coffee Toaster?

I'm writing an app using coffeescript with coffee toaster (an awesome NPM module for stitching)… Read more Backbone.js Model.get() Returns Undefined, Scope Using Coffeescript + Coffee Toaster?

Rails/javascript: How To Inject Rails Variables Into (very) Simple Javascript

I want to write up a very simple javascript calculator in rails which multiplies the quantity of an… Read more Rails/javascript: How To Inject Rails Variables Into (very) Simple Javascript

Jquery Doesn`t Fire/work With My Rails 3.2 Project

As in the title, I`ve made sure all needed JS files are included in the meta tags, included the jqu… Read more Jquery Doesn`t Fire/work With My Rails 3.2 Project

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

Coffeescript: Imapconnection Is Not Defined In Node-imap

I am trying to run example Coffee Scripts from: CoffeScript and node-imap Sending messages works fi… Read more Coffeescript: Imapconnection Is Not Defined In Node-imap

Requiring External Js File For Mocha Testing

So I'm playing around with BDD and mocha with my express.js project. I'm just getting start… Read more Requiring External Js File For Mocha Testing

Easy Way To Convert A String To A Number Or Null?

Is there a slick way to convert a string to a number or null if it cannot be represented by a numbe… Read more Easy Way To Convert A String To A Number Or Null?

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

How To Highlight The "->" Symbol In My Coffee.vim Syntax File?

I just copied javascript.vim into coffee.vim now coffee files are highlighted like js files. Now I … Read more How To Highlight The "->" Symbol In My Coffee.vim Syntax File?

Getting Around Asynchronous Requests

So I have a function like this - IPGeocoding = (data) -> coords = [] _.each(data, (… Read more Getting Around Asynchronous Requests

Mocha Tests For Asynchronous Functions

I'm writing a node wrapper to interact with an external api and am having a difficult time test… Read more Mocha Tests For Asynchronous Functions

Ruby On Rails Asset Pipeline Doesn't Work Properly

I have been working on a ruby on rails project just now. I have created a controller named 'ani… Read more Ruby On Rails Asset Pipeline Doesn't Work Properly

Convert Async.eachlimit To Promise

I have such aync code async.eachLimit(teams, 1000, fetchTeamInfo, exit) I need to convert it to Pr… Read more Convert Async.eachlimit To Promise

Multiple Callbacks In Coffeescript

I am trying to work out the correct behavior to string multiple callbacks together. class Person … Read more Multiple Callbacks In Coffeescript

Extending An Array Properly, Keeping The Instance Of Subclass

I've written a class trying to extend the native Javascript Array class with a custom class, le… Read more Extending An Array Properly, Keeping The Instance Of Subclass

Jquery .on() Isn't Binding Click Events To Dynamically Created Elements

I have a textbox that dynamically adds an element when I press enter, and another that deletes the … Read more Jquery .on() Isn't Binding Click Events To Dynamically Created Elements