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

Nodejs 'require' Loading Library In Coffeescript, Empty Object In Javascript

I've come across an interesting problem in NodeJS that pops up now and then at work, and I have… Read more Nodejs 'require' Loading Library In Coffeescript, Empty Object In Javascript

Meteor Mail Not Sending Despite Setting Mail_url Environment Variable

I'm getting this error message in the terminal 'Mail not sent; to enable sending, set the M… Read more Meteor Mail Not Sending Despite Setting Mail_url Environment Variable

Syntax Error When Deploying Rails App To Heroku: Execjs::runtimeerror: Syntaxerror: Unexpected Character

I am trying to deploy my app to Heroku but its throwing me this error. 'ExecJS::RuntimeError: … Read more Syntax Error When Deploying Rails App To Heroku: Execjs::runtimeerror: Syntaxerror: Unexpected Character

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?

Endless Scrolling Does Not Work

Update: My Github Repository https://github.com/Marc585/smartforce2 i just finished the onemonthrai… Read more Endless Scrolling Does Not Work

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

Is It Necessary To Cleartimeout Inside A Recursively Invoked Timer?

Is it necessary to call clearTimeout() inside a recursively invoked function in Coffeescript? My c… Read more Is It Necessary To Cleartimeout Inside A Recursively Invoked Timer?

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

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

Mobilesafari Won't Send Back Cookies Set With Cors

I have a page loading up in MobileSafari which communicated with another server via CORS. In deskto… Read more Mobilesafari Won't Send Back Cookies Set With Cors

Using Bootstrap-modal As Backbone.js View

I am attempting to create a Backbone.js view based on a Twitter bootstrap-modal, which makes use of… Read more Using Bootstrap-modal As Backbone.js View

Passportjs Redirect Loop

Below is the code I have restify = require('restify') passport = require('passport'… Read more Passportjs Redirect Loop

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 Always Returns In Anonymous Function

I'm trying to write some CoffeScript function which checks all checkboxes in a table upon check… Read more Coffeescript Always Returns In Anonymous Function

Decaffeinated: Double Brackets

I decaffeinated an old project recently and I noticed that I got a lot of if clauses where the expr… Read more Decaffeinated: Double Brackets

Coffeescript: How To Return A Array From Class?

What is wrong in this class in CoffeeScript ?? @module 'Euclidean2D', -> class @Point … Read more Coffeescript: How To Return A Array From Class?

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

Can't Get Backbone-relational To Work With AMD (RequireJS)

I have the following Backbone router definition in CoffeeScript: // appointments_router.js.coffee d… Read more Can't Get Backbone-relational To Work With AMD (RequireJS)

NodeJS 'Require' Loading Library In Coffeescript, Empty Object In Javascript

I've come across an interesting problem in NodeJS that pops up now and then at work, and I have… Read more NodeJS 'Require' Loading Library In Coffeescript, Empty Object In Javascript

Fischer Yates Shuffle In Coffee-script

Assuming that Math.random() produces evenly distributed random numbers between 0 and 1, is this a c… Read more Fischer Yates Shuffle In Coffee-script