TOP 7 the Most Commonly Used JavaScript Function You Have to Know

In this video, I'm going to show you my list of the most common javascript snippets!Source code: https://github.com/mdbootstrap/knowledge-base/tree/main/usef...

Full Guide to Custom Snippets in VS Code

Visual Studio Code and Emmet let you make snippets that write large blocks of code with tiny shortcuts.❤ Subscribe: http://bit.ly/SubscribeDPTIn this tutoria...

How to Create Custom Snippets for Any Language in VS Code

Visual Studio Code and Emmet let you make snippets that write large blocks of code with tiny shortcuts. ❤ Subscribe: http://bit.ly/SubscribeDPT In this tutor...

Centering Things in CSS Using Flexbox

Flexbox makes it easier to design a flexible responsive layout structure without using float or positioning.

5 ways to clone an Array in JavaScript - CodeSource.io

In this article, we would look at 5 ways to actually copy an array in JavaScript. Arrays in JavaScript by default are reference values.

CSS box-sizing Property - explained

The box-sizing property can make building CSS layouts easier and a lot more intuitive. It defines how the width and height of an element are calculated.

Adding Syntax Highlighting to Code Snippets in a Blog or Website

I've received a few requests on how to highlight the syntax of snippets of in a blog like I have. Here is an example snippet of SCSS code, so you can see exactly what I'm referring to.

How To Convert Python String to Int and Int to String

Sometimes we may need to convert a variable of type String to Integer and from Integer to String. Python provides a built-in method to do this exercise. The methods are int() to convert String to Integer and str() to convert Integer to String.

Inline vs Inline-Block Display in CSS - CodeSource.io

In this article, we will see the difference between Inline vs. inline-block. The display property defines how the components are going to

SQL Trigger Example | Triggers in SQL Tutorial

SQL Trigger differ from stored procedures in that they are not called directly by the user: when a certain event occurs in the table, they are executed.

MySQL Aggregate Functions - SUM,COUNT, MAX, MIN, AVG

In database management, an aggregate function or aggregation function, according to Wikipedia, is a function where the values of multiple rows are grouped to form a single summary value.

Convert PHP Object To JSON | PHP Array To JSON

Convert PHP Array to JSON. In this tutorial we’ll learn about the JSON format and how to convert PHP data structures into JSON. Convert PHP Object to JSON.

How to Use MySQL INSERT INTO SELECT query - CodeSource.io

Today you'll learn how to use the MySQL INSERT INTO SELECT query to insert data into a table where data comes from the result of SELECT query.

Rewrite Query String to Path with htaccess

Let's say I have this URL: And I want this URL: I can do so with the following : I can even still GET the URL query. Alternatively, you…

PHP Functions : Remove Last Character From String In PHP

In this tutorial, you’ll learn four methods to remove the last character from a string in PHP. You can use any one of the following methods

Setting Up a Basic Cron Job on a Linux Server

Recently, I had to set up a scheduled task on a server, which is a little intimidating and scary the first time around, so here's a quick article about the steps for setting up a basic cron job.

PHP Add to Array | Push Value to Array PHP - array_push()

In this tutorial we’ll learn how to add one or more elements onto the end of array. array_push() is a PHP function that is used to add one

Snippets - React Fetch Hook example

This React Fetch hook is created by composing the useState and useEffect hooks. The three states of a fetch request in the above code snippet

Python Trim String Example | rstrip(), lstrip(), strip() Function

Sometimes we may need to Trim String, whitespace characters from the left side, right side, or both sides of a string. For this purpose Python provides three methods to Trim String. The strip() string method will return a new string without any whitespace characters at the beginning or end. The lstrip() method will remove whitespace characters from the left side rstrip() method will remove whitespace characters from the Right side

Basic HTML5 Skeleton File

I often like to start my projects from scratch and stray away from using frameworks. HTML5 Boilerplate is a really great resource for creating a style-agnostic web project foundation; all your bases will be covered.