• August, 16, 2014

    Convert a namespaced string, value pair to an JavaScript object

    Here's a little code snippet that I wrote recently to convert a namespaced string, value into an JavaScript object. i.e. if passed a value ("foo.bar.baz", 10) the function will return an JavaScript object {foo:{bar:{baz:10}}}. // @input key = "foo.bar.baz", value = 10 // @output {foo:{bar:{baz:10}}} function toHash(key, value){ var parts = key.split('.').reverse(), i, foo = {}, bar = {}; foo[parts.shift()]...

    Read more

  • June, 07, 2014

    Basic Setup to get started with grunt as a server and less compiler

    As a web developer, often I am in a need of quickly putting together a static website to try out ideas. My requirements are simple: create some html/css files in my project folder, hit the browser, and see my files rendered there. Using an Apache / Nginx server for this menial task was an overkill. So, I have been using...

    Read more

March, 24, 2014

Brainvita - 33 Hole Peg Solitaire Game in JavaScript

I had some free time this week. So set out to build a simple board game in JavaScript to refresh my skills. For this, I chose one of my favorite...

Read more

February, 16, 2014

Javascript Prototype methods vs Object methods

In JavaScript, when you define an object, you can attach it's functions in two different ways. Inside object's constructor function, using this.func = function(){...} Using prototype. i.e. Obj.prototype.func = function()...

Read more

February, 02, 2014

Responsive timeline with CSS and HTML

TLDR; https://github.com/vraa/css-timeline Just finished updating/redesigning (or messing up) my online resume. For the new design, I needed a timeline like UI component to show my work history. The componenent need...

Read more

January, 04, 2014

Looking back and forward (2013)

One more year has passed and we made it so far after the deadly 2012 end-of-the-world incident. Kudos to us. As I usually do at the end of each year...

Read more

December, 29, 2013

Biking the East Coast Road

This post was supposed to be written couple of weeks back. But, thanks to my laziness, it had to wait for this long to get published. Anyways, here's a (pretty...

Read more

October, 08, 2013

Joined ThoughtWorks

The news is, I have left PayPal last week, and joined ThoughtWorks as an UI developer. I have been associated with PayPal for almost 3 years (with 3 months break...

Read more

September, 02, 2013

Launching Countrack.me - my new side project

Today, I am very happy to announce the launch of countrack.me. Countrack.me is a HTML5 / JavaScript application to track your daily activities anonymously. It's been developed out of my...

Read more

August, 16, 2013

JavaScript Closure - examples

Earlier, I talked about the basics of JavaScript Closure. In this post, lets continue to explore Closure with the help of some practical examples. Before we begin, just to recap,...

Read more