Archive for April, 2008
Javascript – Check for leap year
Javascript – Check for leap year // Retuns true if year is a leap year; otherwise false Date.prototype.isLeapYear = function(utc) { var y = utc ? this.getUTCFullYear() : this.getFullYear(); return !(y % 4) && (y % 100) || !(y % 400) ? true : false; }; To check whether 1981 is a leap year (it [...]
Super Mario in Javascript – Size 14kB
It is awesome!! Try it. Regular version: no music or with music Double size: no music or with music Press return key if you are not able to hear sound. Here’s an experiment in keeping things small and confined to one Javascript file. There are no external image files or anything, everything is rendered with [...]
Offline Google Docs
Google Docs will slowly roll out an option to view and edit documents offline using Google Gears. Unlike the Google Reader implementation, Google Gears will automatically detect when you’re offline and will take care of constantly downloading the changes so that your documents are available locally. When you are offline, you can access your documents [...]
Adobe Photoshop Express – Beta
Adobe released Adobe Photoshop Express – Beta, an online service, last month for some basic image editing. This can accessed by creating account at www.photoshop.com/express. Reviews are mixed. Use of flash and flex made website little slower at start-up and also at initializations of various new actions. Editing is categorized in 3 different categories. Basic, [...]
High Performance Web Pages – 20 new best practices
Yahoo suggests some tips for improving performance of front end i.e. Web pages. | View | Upload your own
