« January 2011 | Main | April 2011 »

March 30, 2011

Doing foreach iteration in JavaScript


['email','first_name','last_name','photo_url'].each(function(i){ //Or forEach

			if(document.getElementById(i)){
			
				$jq('#' +i).attr({ 'readonly' : '' });

				$jq('#' + i).removeClass('readonly');

				}

		});

Posted by pj at 03:31 PM | Comments (0)

Javascript array iteration

How many ways can you iterate over an array in JavaScript?

Posted by pj at 01:30 PM | Comments (0)

March 29, 2011

CSS 3 Transforms

Using CSS3 Transitions, Transforms and Animation

Posted by pj at 09:22 AM | Comments (0)

March 08, 2011

Shell script for killing all processes for an application on a particular day

kill -9 `ps -ef | grep [p]ostgres |  grep 'Nov 13' | awk '{print $2}'`

Posted by pj at 06:53 PM | Comments (0)

March 01, 2011

Node.js

Node.js community wiki - GitHub

Also:

http://www.nakedjavascript.com/going-evented-with-nodejs

Posted by pj at 10:37 PM | Comments (0)