Application-wide settings

php

Reverse String in PHP using strrev

This PHP code demonstrates how to reverse a string using the strrev function. The original...

bash

How to view free space on a Linux server

This command provides a quick overview of your server's disk usage, helping you manage resources...

php

JSON File Reading and Decoding

This PHP script reads a JSON file (data.json), decodes its contents using json_decode(), and...

python

Finding Common Elements in Two Lists

This Python code defines two lists (list1 and list2) and then finds their common elements using...

javascript

JavaScript Add Animation to HTML Element

This JavaScript code selects an HTML element with the ID animatedElement using getElementById...

javascript

JavaScript Prime Number Check

This JavaScript code defines a function (isPrime) to check whether a given number is prime. It...

javascript

Hashing Password with SHA-256 using 'crypto' module

This Node.js code uses the 'crypto' module to create a SHA-256 hash of a password ('mypassword')...