Introducting jQuery-i18n.js

I was working on a project that needed to have frontend localization in both English and Japanese.  I did a bunch of Google searching trying to find a good jQuery plugin that would take care of this but I couldn’t find any thing that suited my needs.  So I created one.  Actually this is the second version of this the plugin with updates and enhancements.

Introducing jquery-i18n.js.

This plugin allows for you to do client side localization/internationalization.  Once you add this plugin along with jQuery to your webpage you can then add a data-i18n=”blah” parameter your HTML element. Then the plugin will lookup the blah key in the translation file and add that value’s text to your element.

If this doesn’t make sense then see the documentation on my Github repository.  There you will find the code and all of the options, along with how to format the translation files.



Mmm Cookies. jQuery-cookie.js

Last year I was working on a project that required the use of cookies after a few Google searches determined that the best jQuery cookie plugin from was from Carhartl.  However there was one issue, I needed to create a cookies that would expire in a matter of minutes or seconds not days.  So since his project was hosted on Github I decided that I should fork it and make some modifications.

What I did was add another parameter called expirationUnit.  This would take a string telling the plugin how to calculate the already existing parameter called expires.

Here is an excerpt from the documentation that is hosted on my Github page

Create expiring cookie, 5 minutes from then:

$.cookie('the_cookie', 'the_value', { expires: 5, expirationUnit:'minutes' });

Create expiring cookie, 30 seconds from then:

$.cookie('the_cookie', 'the_value', { expires: 30, expirationUnit:'seconds' });

I never create a pull request for this because I figured that this was a very specific use case.  But if you need this functionality you can find it on my Github account.


A few weeks ago I was looking at my Github commit calendar graph and decided that I wanted to recreate that in the console using Node.js.  Here is what I can up with. You can view the code on Github


I am not sure how slow this will be for someone that has a lot of commits, if you do have hundreds of commits please let me know what the speed is like. Also I don’t guarantee this to be completely actuate. Enjoy.




A few weeks ago I saw a blog post where someone created a Ruby application to view Hacker News in a terminal window and one of the comments was:

Somebody in nodejs please?

-Alexander Louizos Louizos

And I said, “Hell yeah, I want to do that in Node.”

So I did.  Let me know what you think.

Just a word of warning.  I haven’t tested it in Windows yet, but really what is the percentage of Hacker News viewers and NodeJS users that use Windows?  2% tops?

View the code