This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| declare(strict_types=1); | |
| use DivisionByZeroError; | |
| use InvalidArgumentException; | |
| use OverflowException; | |
| use function chr; | |
| use function explode; | |
| use function function_exists; | |
| use function intdiv; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| declare(strict_types=1); | |
| use function hrtime; | |
| use function intdiv; | |
| use function microtime; | |
| /** | |
| * Time helper class to get the current time in milliseconds, microseconds, and nanoseconds | |
| * Use boot time to get the time since the application booted and more precise time than microtime |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| declare(strict_types=1); | |
| namespace App\EventListener; | |
| use Doctrine\Bundle\DoctrineBundle\Attribute\AsDoctrineListener; | |
| use Doctrine\DBAL\Platforms\AbstractMySQLPlatform; | |
| use Doctrine\DBAL\Schema\AbstractSchemaManager; | |
| use Doctrine\DBAL\Schema\Column; | |
| use Doctrine\DBAL\Schema\ComparatorConfig; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| declare(strict_types=1); | |
| class SessionPayload { | |
| public function __construct( | |
| public string $token, | |
| public int $userId, | |
| public int $timestamp, | |
| public int $expiredAt, | |
| public string $random16 // binary string |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "BD": { | |
| "code": "BN", | |
| "locale": "bn_BD", | |
| "english": "Bengali", | |
| "original": "বাংলা", | |
| "dir": "ltr" | |
| }, | |
| "BE": { | |
| "code": "NL", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * REAL HMAC HASHING FUNCTION: | |
| * Relies on the globally loaded CryptoJS library being available. | |
| * Or use another hmacsha256 | |
| */ | |
| const hmacSha256 = (data, key) => { | |
| if (typeof CryptoJS === "undefined") { | |
| // If CryptoJS is missing in CodePen setup | |
| return "ERROR_CRYPTOJS_NOT_READY_".repeat(2).substring(0, HMAC_LENGTH); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| type UppercaseAlphabet = | |
| 'A' | |
| | 'B' | |
| | 'C' | |
| | 'D' | |
| | 'E' | |
| | 'F' | |
| | 'G' | |
| | 'H' | |
| | 'I' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package my.unit.utils; | |
| import android.content.Context; | |
| import android.content.Intent; | |
| import android.os.Bundle; | |
| import android.os.Parcelable; | |
| import androidx.annotation.NonNull; | |
| import androidx.annotation.Nullable; |
NewerOlder