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

Passportjs Redirect Loop

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

Need Help Implementing The Sequencing Of Jquery Instructions

The problem: I have a simple function and I need the instructions within it to take place one at a … Read more Need Help Implementing The Sequencing Of Jquery Instructions

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

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

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

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

Backbone View El Not Defined

I have this code - class TableManager tables : {} tableViews :{} nextId : 0 rootEl : '… Read more Backbone View El Not Defined

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

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

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

Coffeescript Jqcloud Handlers

I'm trying to do this in coffeescript, http://jsfiddle.net/Q6348/8/ Specifically I'm trying… Read more Coffeescript Jqcloud Handlers

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?

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

Any Idea Not To Select The Name That Is Already Chosen In Token Input?

Is there any idea not to select the name that is already chosen in token input? For example In firs… Read more Any Idea Not To Select The Name That Is Already Chosen In Token Input?

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?

Using Coffeescript In A Production Environment

I really like using CoffeeScript (1.1.1) for small projects and it worked out great so far. However… Read more Using Coffeescript In A Production Environment

How I Can Get Line Number With Error In Coffeescript File

In node.js express app and nodeunit tests I widely use coffeescript without saving resulting javasc… Read more How I Can Get Line Number With Error In Coffeescript File

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

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

Redirection On Ajax Success Using Window.location.replace()

I am trying to redirect the page on the successful ajax call, the following code works fine, $.ajax… Read more Redirection On Ajax Success Using Window.location.replace()