I am a full-stack web developer. I specialize in Blockchain and JavaScript. This is my personal blog where I write about programming and technologies that I learn and feel interesting to share.
Here is the code that can generate a unique number in JavaScript. function uniqueNumber() { var date = Date.now(); if (date <= uniqueNumber.previous) { date = ++uniqueNumber.previous; } else { uniqueNumber.previous = date; } return […]
Although your JSON string is valid JSON.parse is likely to throw error. This is because JSON.parse cannot parse some special characters that are \n, \t, \r and \f. You need to escape these special characters for before passing JSON string to JSON.parse function. Here is a function that takes a JSON string and escapes the […]
Fotor Photo Straighten is an online tool which lets you straighten a photo very easily. It provides a really awesome UI control to let you manually straighten a photo. Here is how a bended photo looks: Here is how it’s straightened using this tool:
This post is a part 52 of Intel XDK Complete Tutorial post series. I have written a tutorial for SitePoint on how to integrate Local notifications in a Cordova App built using Cordova CLI. The same instructions also applies for Cordova Apps built using Intel XDK except that you need to install the Local notification […]
WordPress comes with some built-in comments system. While developing a WordPress theme you need to style the individual comments and comment form to display them appropriately. Here is the list of CSS classes to style the comments: /*Individual Comments*/ .commentlist .reply {} .commentlist .reply a {} .commentlist .alt {} .commentlist .odd {} .commentlist .even {} […]
WordPress comes with some built in widgets such as recent comments, calendar, tags, categories etc. While developing a WordPress theme you need to style the default widgets too. Here is the list of CSS classes to style the built in widgets .widget {} #searchform {} .widget_search {} .screen-reader-text {} .widget_meta {} .widget_meta ul {} .widget_meta […]
This post is a part 51 of Intel XDK Complete Tutorial post series. Twitter Login is a form of single sign-on using existing login information from Twitter by creating a new login account if doesn’t already exist specifically for that website. It is designed to simplify logins for end users. In this tutorial I will […]
The visual editor is the most used component of the WordPress. There are some classes added by WordPress to the visual editor elements to style them. As a theme developer its your responsibility to make sure you have added proper CSS attributes to these classes. Here is the list of classes WordPress automatically adds to […]
AngularJS is suitable for creating AJAX based dynamic applications and applications which require a lot of DOM content manipulations. For example: AngularJS is the best way for creating single app websites. AngularJS helps you to build such kinds apps with less code and more flexibility. Example Here is an AngularJS example app which covers almost […]
Most Commented