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; |
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
| import java.util.Map; | |
| import java.util.Set; | |
| /** | |
| * Represents a cipher suite in SSL/TLS. | |
| * A cipher suite is a combination of cryptographic algorithms used to secure the communication. | |
| * This class aims to provide a comprehensive (though not exhaustive) list of standard | |
| * cipher suites and their support across different SSL/TLS protocol versions. | |
| */ | |
| public class CipherSuite { |
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
| import React, { ReactNode, useEffect, useRef, useState } from 'react'; | |
| export type PlacementResultProperties = { | |
| valid: boolean; | |
| tolerance: number; | |
| puzzle: { | |
| x: number; | |
| y: number; | |
| }, | |
| piece: { |
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
| import React, {createRef, useEffect, useState} from 'react'; | |
| import {CSSProperties, ReactNode} from 'react'; | |
| import AdsenseJS from './AdsenseJS'; | |
| declare var window: Window&{ | |
| adsbygoogle: any[], | |
| }; | |
| const IS_SSR = typeof window !== 'object' || !window || typeof window.document !== 'object'; | |
| export function Adsense(props: { |
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
| /** | |
| * OATH - HOTP (HMAC-based One-time Password Algorithm) | |
| * | |
| * @author ArrayIterator | |
| * @link https://tools.ietf.org/html/rfc4226 | |
| * @link https://en.wikipedia.org/wiki/HMAC-based_One-time_Password_Algorithm | |
| */ | |
| class HOTP { | |
| /** |
NewerOlder