Author: Hiral Patel

Boost HTML Workflow using Emmet

Emmet is a plugin available to mostly all known IDE. Emmet boosts HTML workflow using simple CSS like selectors and abbreviations. This post gives overview of Emmet syntax to write complex HTML code using simple emmet abbreviations. Emmet Installation and Usage Emmet is a plugin to install in the text editors. Install emmet plugin and restart your text editors. Type emmet interpretable code abbreviations and press tab. Keep pressing tab to iterate over Emmet created HTML text holders For Example, html:5>div>(header>ul>li*5>a)+(section>div#content{Main Body})+(footer>div) and press Tab will produce following code block. <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> </head>...

Read More

Open Folders and Applications from Run Dialog Box

There are some applications and folders you are opening every morning at work. If you are a developer like me, you must be dealing with some long nested directory structure to open one single file couple of times a day. This blog post explain a simple trick to configure your windows machine, so that you can open folders and applications from run dialog box quickly. Follow below steps to create shortcuts and use it to open folders and applications from run dialog box. Step 1: Create shortcut for folders and applications Go to the folder or application location for...

Read More

Get or Set Query String Values from URL using URI.js

URI.js is a mature javascript library for manipulation of URI. URI.js provides methods to get or set query string values using javascript functions on browsers. Download URI.js or URI.min.js from Official URI.js Github Repository or build it from Here. Add it into your html page for using it in your script. function to get Query String value from URL using URI.js <script type="text/javascript" src="/js/URI.js"></script> function getQueryStringValue(queryParam){ // Get current URL. var currentURL = new URI(); // If queryParam is in the querystring of currentURL if(currentURL.hasQuery(queryParam)){ // Get all querystring values as a json object var qsValues = currentURL.query(true); //...

Read More

How to Install Sails.js and dependencies on windows

How to install Sails.js and dependencies on Windows ? In order to execute sails.js project, all sails.js dependency must be setted up correctly on windows machine. This tutorial explain installation of sails.js and dependencies on windows machine. Step 1: Install Node.js and npm Package Manager Sails.js is a small framework build on top of Express and Node.js framework. So first of all, install Node.js and npm using node.js installation MSI from Here. Download MSI, run it and follow installation instructions. It will achieve following 3 important steps. It will install Node.js framework on your windows machine. It will install...

Read More

jQuery Ajax Cheatsheet

jQuery provides support for asynchronous server interactions using Ajax API. jQuery Ajax is very easy to use and provides different methods as per need to quickly make AJAX calls to server. $.ajax to send customized Ajax requests One can customize AJAX call to server using this method. A sample code snippet for AJAX call is as below. $.ajax({ //URL to make AJAX request url:'/urlString', //Ajax request Method name method: 'GET', //accepts defines reponse data client is expecting from server accepts: application/json, //async default is true. Request should be async or not. async: true, // beforeSend executes before ajax reqeust...

Read More