Gilbert Corrales cover image
Gilbert Corrales
Gilbert Corrales
@samiq
I'm a hacker by heart with a love for bringing people together around ideas that can have a meaningful impact into the real world.
UK
Joined on Sep 5, 2022
9 posts
1 followers
5 following

Using Global Variables in a Function

In Python, you can access and modify global variables from within a function. However, when modifying global variables inside a function, you need to...
Using Global Variables in a Function

Finding the Index of an Item in a List

To find the index of an item in a list in Python, you can use the index() method or a combination of built-in functions such as enumerate() and list c...
Finding the Index of an Item in a List

Deleting an Element from an Array

In PHP, you can remove an element from an array using built-in array manipulation functions. Using unset() Function What is unset()? The unset() funct...

Iterating over dictionaries using for loops

In Python, you can iterate over the key-value pairs in a dictionary using 'for' loops. #1. Iterating over Keys To iterate over the keys of a dictionar...
Iterating over dictionaries using for loops

How to Import SQL Dump into PostgreSQL Database

To import an SQL dump into a PostgreSQL database, follow these steps: Prepare the SQL Dump File First, ensure you have the SQL dump file you want to i...

Secure Hash and Salt for PHP Passwords

Securing user passwords is critical to protect user accounts from unauthorized access and data breaches. In PHP, using a strong hash function and salt...
Secure Hash and Salt for PHP Passwords

Implementing Pagination with TypeORM

Pagination is a common requirement in APIs to manage large datasets. With NestJS and TypeORM, you can easily implement pagination to retrieve and disp...
Implementing Pagination with TypeORM