Dropdowns

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')...

php

Generate MySQL-Formatted Dates

Use `date()` in PHP to format timestamps. For example, `date('Y-m-d')` gives the current date,...

javascript

Password Toggle

This JavaScript code provides a simple password toggle functionality. It toggles the visibility...

javascript

Format Date

This JavaScript code defines a function formatDate to format a given date using...

bash

Create Event and Listener in Laravel

These Laravel Artisan commands create an event named 'MyEvent' and a listener named 'MyListener'...