Code *Updated* //@function: getRandomNum( i, decLen ) /** * @param i, a number for the number range. [0, i) *…
While I was reading my weekly edition of New Scientist, I found an article that was truly amazing. In 2009,…
Hey Guys and Gals. Join me on twitter to check the latest updates. Larry Battle's Twitter
Here's a book review I did on amazon.com. Check out more of my reviews at my amazon.com profile page. Overall,…
Discovered the code below while browsing online. Inspired from codetoad.com. function getHighlightedText(){ return ((window.getSelection) ? window.getSelection() : (document.getSelection) ? document.getSelection()…
Four days after a powerful earthquake-triggered tsunami hit the Japan's east coast, I found a this on Google, Google Translate…
Intro: "There are 10 types of people in this world. Those who understand binary and those who don't" - Author…
A weird part of javascript is trying to toggle the bits in a number. For most programming languages, like C…
Javascript is a great flexible language but has a major flaw with portability. I call it the "1 Hit Combo…
Insertion Sort. Best: O(n), Average: O(n2), Worst: O(n2) Insertion sort is a simple sorting algorithm, a comparison sort in which…