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

Escape A '+' Plus Sign In A String To Be Used In A Regex In Coffeescript/javascript

I have a regex I'm running to filter rows in a table. The filtering is done in Javascript. I… Read more Escape A '+' Plus Sign In A String To Be Used In A Regex In Coffeescript/javascript

Rails 4 Jquery, Javascript And Coffee Scripts Not Working

I am new to rails and web development, although I have almost two decades of C/C++ in control syste… Read more Rails 4 Jquery, Javascript And Coffee Scripts Not Working

Facebook Plugin Page In Rails Turbolinks Doesn't Load

in my Rails app I am loading Facebook plugin page, but because of turbolinks it doesnt load each pa… Read more Facebook Plugin Page In Rails Turbolinks Doesn't Load

Getting Around Asynchronous Requests

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

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

How Can I Log Every Method Call In Node.js Without Adding Debug Lines Everywhere?

I would like to log the user_id of the person making a request and the method name of every method … Read more How Can I Log Every Method Call In Node.js Without Adding Debug Lines Everywhere?

Why Is Backbone.js Returning An Empty Array When Accessing Models?

I have a router accessing its collection. My for loop wasn't iterating through the models so I … Read more Why Is Backbone.js Returning An Empty Array When Accessing Models?

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

How To Restart A Speechrecognition Function In Framer?

I want to build a function in Framer (coffeescript) where I can say a specific word as voice input … Read more How To Restart A Speechrecognition Function In Framer?

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

Coffeescript: Getter/setter In Object Initializers

ECMAScript allows us to define getters or setters as following: [text/javascript] var object = { … Read more Coffeescript: Getter/setter In Object Initializers

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

Compressing Object Hierarchies In Javascript

Is there a generic approach to 'compressing' nested objects to a single level: var myObj = … Read more Compressing Object Hierarchies In Javascript

How Can One Set A Sequential Delay On Adding A Class?

I'm using jQuery UI plugin and the latest jQuery. I would like to sequentially add on the class… Read more How Can One Set A Sequential Delay On Adding A Class?

Coffeescript Ide For Windows - Tried Titanium Studio And Rubymine

I'm trying to find a good way to work on CoffeeScript on Windows and be able to process these f… Read more Coffeescript Ide For Windows - Tried Titanium Studio And Rubymine

Just Can't Get Passport.js To Work

edit: sorry it's so long now, added in the compiled JS! I also added Kevs suggestions. I am dev… Read more Just Can't Get Passport.js To Work

Uncaught Reference Error, Notification Not Defined

I am trying to add notifications to my rails app. Basically I get them from a JSON endpoint and I t… Read more Uncaught Reference Error, Notification Not Defined

Coffeescript Always Returns

So I have what's probably a stupid question to ask about Coffee Script. I'm giving it a sec… Read more Coffeescript Always Returns

Is It Possible To Define An Infix Function?

Is it possible to define my own infix function/operator in CoffeeScript (or in pure JavaScript)? e.… Read more Is It Possible To Define An Infix Function?

In Javascript/coffeescript How Can I Mock Out A Module's Public Variable In A Test?

I just learned about the module pattern. I've written some code that's gotten sufficiently… Read more In Javascript/coffeescript How Can I Mock Out A Module's Public Variable In A Test?