Git clone | clone git repository Git clone command creates a local copy of the existing source code from a remote repository. git clone ssh://git@github.com/<username>/<repository-name>.git To clone a project from Github:  Click on the green button …

Last updated 3 years, 2 months ago | 1099 views

Tags:- Git

CSS | Gradient Text There are three different CSS properties required to add a gradient overlay to a text. background-image: <gradient> background-clip: text text-fill-color: transparent background-image: <gradient> <gradient> will replace with any gradient style which …

Last updated 3 years, 3 months ago | 1094 views

Tags:- CSS

Git | git checkout to Switch branch Git checkout is mostly used for switching from one branch to another. It is also used to check out files and commits. Switch to a branch This command …

Last updated 3 years, 2 months ago | 1088 views

Tags:- Git

Python | Check whether the given value is palindrome or not This is an example of how to check whether the given value is palindrome or not. It takes input from the user to check …

Last updated 3 years ago | 1065 views

Tags:- Python

Git | git status to check the status of the current branch The git status command displays all the necessary information about the working directory and the staging area. git status It displays information like: …

Last updated 3 years, 2 months ago | 1058 views

Tags:- Git

Git | Git branch command to create, list, and delete git branch command is used to create a new branch, list all branches, and delete a branch. Branches allow developers to work on the same project …

Last updated 3 years, 2 months ago | 1056 views

Tags:- Git

Django | Delete records in Django models Delete query performs an SQL delete query on all rows in the queryset and returns the number of objects deleted and a dictionary with the number of deletions …

Last updated 3 years, 1 month ago | 1035 views

Tags:- Django

Django | Insert record in database using create() function create() create(**kwargs) Create function create a new object with the given `kwargs`, saving it to the database and returning the created object. It creates an object …

Last updated 3 years, 2 months ago | 1031 views

Tags:- Django

Bellow code is used for the same $date1 = date(‘Y-m-d’); $date2 = ‘2006-08-15’; $days = (strtotime($date1) – strtotime($date2)) / (60 * 60 * 24); echo $days;  

Last updated 5 years, 7 months ago | 1003 views

Tags:- PHP

SQL | Difference between primary key and unique constraints There is only one primary key in a table. It creates the clustered index automatically and it cannot have NULL value whereas there can be multiple …

Last updated 4 years, 11 months ago | 978 views

Tags:- SQL MySQL

Python | Program to count the number of words in a string split() and len() method is used to get the number of words in a string. The split() method split a string into a list …

Last updated 3 years, 3 months ago | 970 views

Tags:- Python

Python | Check whether the given number is a prime number or not This is an example of how to check whether the given number is a prime number or not. It takes an input …

Last updated 3 years ago | 967 views

Tags:- Python