Joocode - joocode.com

General Information:

Latest News:

Accessing and modifying HTML5 data-* element attributes with jQuery 6 Feb 2013 | 10:35 pm

jQuery has a convenient method to access the data-* attributes of an element: or to access the value of a specific data-* attribute, in this case “data-anAttribute”. What about setting a data-* val...

Using node-inspector to debug node.js applications 5 Feb 2013 | 02:35 pm

First, install node-inspector using NPM then start the node.js app you want to debug using the –debug flag and start node-inspector Open the browser to the route outlined in the node-inspector outp...

How to update the Ruby version installed on your OSX 4 Feb 2013 | 12:56 pm

Mac OSX Mountain Lion ships with Ruby 1.8.7. Let’s see how to update it to the latest available release. I assume you already have Homebrew installed. Type this in the console: Then open the /etc/pa...

Using Bower, a browser package manager 31 Jan 2013 | 01:18 pm

Bower defines itself as a browser package manager, and it’s a powerful tool to manage your project assets: javascript, CSS and images. Here I’ll only talk about javascript as it’s my main use case. L...

Git workflow to manage work on multiple branches 28 Jan 2013 | 08:53 pm

At Beyounic we track all our development using Git, and as our new project code is stabilizing and getting ready for deployment we’re defining a Git strategy to handle our work. Let me put this strat...

Git, how to choose a commit from one branch and apply to another 28 Dec 2012 | 01:44 pm

Sometimes you are working on a Git feature branch and you fix something you’d like to have on the master branch too, for immediate deploy. How do you merge that into master without having to take care...

Deferreds and Promises in JavaScript 20 Dec 2012 | 04:56 pm

Promises are a relatively new approach to async management, and they can be really helpful to structure your code. A Promise is an object representation of an event. In the course of its life, a Prom...

Add a middleware to Express.js to set all output MIME type to JSON 19 Dec 2012 | 02:17 pm

The node.js framework Express.js is ideal to create an API server that outputs JSON to every endpoint request. You can configure it to serve all output with the application/json MIME type, so Firefo...

Christmas greetings from NPM 15 Dec 2012 | 01:42 pm

There are a lot of useful commands in the npm binary, this one is perfect in this season: `npm xmas` [EDIT]: I just discovered that the christmas tree is rendered differently each time the command i...

Recently parsed news:

Recent searches: