New Honda Robot ASIMO 2012 – All features and behaviors
BigDog Evolution
A Swarm of Nano Quadrotors
Freaky Life Like A.I Robot
Awesome Robot For Kids, 15 inches High
New Honda Robot ASIMO 2012 – All features and behaviors
BigDog Evolution
A Swarm of Nano Quadrotors
Freaky Life Like A.I Robot
Awesome Robot For Kids, 15 inches High
Editor’s Note: This post is from 2012. The hottest editors in 2018 are vscode and editor.
Here are some Notepad++ plugins for JavaScript Developers that I found useful.
Tip:
You can install all the plugins using Notepad++ Plugins Manager located in the “Plugins” Menu.







Inspired from Removing duplicate objects with Underscore for Javascript
Source:
/** @function _.uniqObjects @require Underscore.js and json.stringify @purpose return an array of objects without duplicated objects. */ _.uniqObjects = function( arr ){ return _.uniq( _.collect( arr, function( x ){ return JSON.stringify( x ); })); }; |
Example:
var foo = [ { "a" : "1" }, { "b" : "2" }, { "a" : "1" } ]; _.uniqObject( foo ); // returns [ { "a" : "1" }, { "b" : "2" } ] |
Number.prototype.toFixed was giving me too many problems, so I just rewrote it.
There’s the source.
/** @author Larry Battle <a alt="contact me" href="bateru.com/news/contact">Contact Me</a> @date Mar 30, 2012 @purpose Provide the fix for Number.prototype.toFixed() function. @info source at http://bateru.com/news/2012/03/reimplementation-of-number-prototype-tofixed */ Number.prototype.toFixed_fix = function (precision) { var num = this.toString(), zeros = '00000000000000000000', newNum, decLength, factor; if (0 > precision || precision > 20) { throw new RangeError("toFixed() digits argument must be between 0 and 20"); } if (Math.abs(num) === Infinity || Math.abs(num) >= 1e21) { return num; } precision = parseInt(precision, 10) || 0; newNum = num = isNaN(parseInt(num, 10)) ? '0' : num; if (/\./.test(num)) { decLength = num.split('.')[1].length; if (decLength < precision) { newNum += zeros.substring(0, precision - decLength); } else { factor = Math.pow(10, precision); newNum = Math.round(num * factor) / factor; } } else { if (precision) { newNum += '.' + zeros.substring(0, precision); } } return newNum; }; |
Test cases here

Want to learn more about Javascript?
Checkout this ‘Professional JavaScript for Web Developers’.