What is BIG O notation? Big O notation is a mathematical notation used to describe the complexity of an algorithm. It gives a rough estimate of how long an algorithm will take to run as the size of the input data increases. There are several types of Big O notation,...
Forced Translate your website (add google translate button)
You can translate the content of your website into several languages using the free Google Translate service. It supports 100+ languages. Let's see how to include google Translate on your website, by adding a few lines of javascript code. [dm_code_snippet...
Basic array operations in swift
In SWIFT, An array is a collection of data of a similar type. As a Swift developer, most of the time, you will interact with arrays, and hence it's necessary to know the most used swift operations/methods. Note: Like most of the other programming languages, the array...
Bubble Sort in Swift
The Bubble sort algorithm is one of the simplest sorting algorithms, but it is also one of the most inefficient for large data sets because it does not take advantage of any form of caching or parallelism. It is used by starting at the beginning of an array and...
Modules in NodeJS
The Node.js ecosystem is huge, and it's hard to keep up with everything. Modules are a great way to organize your projects and share code across projects. In a nutshell, modules are self-contained units of program or functionality that can be shared or reused across...
Create a Transparent Gradient in photoshop
In this article, I’ll show you how to create and modify a transparent gradient in Photoshop. A transparent gradient is a great effect for photographers and graphic designers. You can use it to fade a photo into the background or any other photo/image, for masking, and...