Git tips and tricks

Revert last commit in GIT Revert last commit in GIt also knows as delete the last commit that was made intentionally or accidenlty. You can revert commit using following action. git reset --soft HEAD~1 git reset --hard HEAD~1 –soft will not remove your...
Read More ⟶

Revert Last commit in GIT

Revert last commit in GIT git reset --soft HEAD~1 --soft will not remove your uncommited code. Again if you replace the same with --hard it is going to replace all the uncommited code in your local git reset --hard...
Read More ⟶

Track all remote branches GIT

Here we will show you how to track all remote branches in GIT and get them all at once in your local. Below is the demo of a git where there are several branches and each branches there are some code. https://github.com/Santoshah/firebase-auth To get...
Read More ⟶

JIT and AoT in Angular

In this another small article I am going to explain what is different between JIT and AoT in Angular and which one is better. Just In Time (JIT) and Ahead of Time (AoT) is Angular compiler which runs in Angular background Just in Time (JIT) Inefficent for...
Read More ⟶

JavaScript recursive method to find Fibonacci sequence of numbers

Hello Guys, In this small article I am going to show you how with JavaScript recursive method to find Fibonacci sequence of numbers with very simple technique. A small introduction to know what is a Fibonacci series. Its a sequence of number very popular. Every...
Read More ⟶

How to get git origin url from the local repository

Sometime we might just need to know the git url where we are updating all our day to day work. It might be the reason you wanted to share the url with your colleague. Below command can be useful in order to get git url git config --get remote.origin.url git...
Read More ⟶

Get the category and time seperately from default wordpress themes

Copy and paste the following code into the loop <?php printf( get_the_category_list( __( ', ', 'twentytwelve' ) ) ); ?> <?php the_time('F jS, Y')...
Read More ⟶

Box shadow

Box shadow is one of the CSS3 properties. It enables the browsers to add a shadow over any box. box-shadow: 2px 2px 5px 3px #000; box-shadow: 1px 1px 3px 6px rgba(0,0,0,0.5); Above code represent a box shadow where, box-shadow: left top blue spread color; box-shadow:...
Read More ⟶

How to set responsive viewport meta tag

At the very beginning when I started responsive web deisgn I have face the problem regarding viewport meta tag. Actually I was working in the desktop browser where everything was seem to be working fine but as soon as I check the same site in mobile devices it was not...
Read More ⟶

How to disable comments from individual post from dashboard

Being technical we all know that we can easily hide comments with some sort of if and else conditions. But there is a wordpress hidden feature that will allow you to hide comments from admin. Now I am going to show you how to disable comments from individual post from...
Read More ⟶