| NR-16 | NR-8 | COLOR NAME |
|---|---|---|
| 0 | 0 | Black |
| 1 | 4 | DarkBlue |
| 2 | 2 | DarkGreen |
| 3 | 6 | DarkCyan |
| 4 | 1 | DarkRed |
| 5 | 5 | DarkMagenta |
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 hashlib | |
| import hmac | |
| import json | |
| import time | |
| from os import getenv | |
| from typing import Any | |
| def generate_novu_signature(secret_key: str, payload: Any) -> str: | |
| """ |
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 { useEffect, useState } from "react"; | |
| /** | |
| * Trigger animation after component mounts with a slight delay for dramatic effect | |
| * | |
| * @param delay - The delay in milliseconds | |
| * @returns A boolean indicating whether the element is visible | |
| */ | |
| function useFadeIn(delay) { | |
| const [isVisible, setIsVisible] = useState(false); |
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
| /** | |
| * Formats a number using compact notation with at most one decimal place (e.g., 1.2M or 123K). | |
| * | |
| * @param amount - The number to format. | |
| * @returns The formatted number as a string. | |
| */ | |
| function formatNumber(amount) { | |
| return new Intl.NumberFormat('en-US', { | |
| notation: 'compact', | |
| maximumFractionDigits: 1, |
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 { useCallback, useEffect, useRef, useState } from "react"; | |
| export enum ScrollDirection { | |
| "up" = "up", | |
| "down" = "down", | |
| } | |
| export function useScrollDirection() { | |
| const scrollYRef = useRef(0); | |
| const [direction, setDirection] = useState(ScrollDirection.up); |
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
| #!/bin/bash | |
| echo "Release incrementer start..." | |
| echo | |
| ROOT_DIRECTORY=$(git rev-parse --show-toplevel) | |
| PATTERN='x-release-increment' | |
| INDENT=' ' | |
| grep -rl $PATTERN $ROOT_DIRECTORY/{android,ios} | while read file; do |
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
| const REGEX = /\(\)|\{\}|\[\]/g; | |
| /** | |
| * Given a string s containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. | |
| * | |
| * An input string is valid if: | |
| * 1. Open brackets must be closed by the same type of brackets. | |
| * 2. Open brackets must be closed in the correct order. | |
| * 3. Every close bracket has a corresponding open bracket of the same type. | |
| * |
-%%%%%%%%%%%##**++==---::....
*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%%%%%%%##*+=--::...
#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%#*######******##*****+
.#@%**+++**##%%@@@@@@@@@@@@@@@@@@%#*#*******************:
.#@#*+.-*######%%%%#**+++++=+#@@%%#*#####***************+
.#@#*=:=***####%%%%%%%%%%%%%#%@@%##*####*****************:
.%@#*--+****######%%%%%%%%%%%@@@%##*#####***************+:
:%@##-=+****########%%%%%%%%%@@@%##*####****************+.
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
| class Example extends Phaser.Scene | |
| { | |
| preload() { | |
| this.load.image('backdrop', 'assets/pics/platformer-backdrop.png'); | |
| this.load.image('cannon_head', 'assets/tests/timer/cannon_head.png'); | |
| this.load.image('cannon_body', 'assets/tests/timer/cannon_body.png'); | |
| this.load.spritesheet('chick', 'assets/sprites/chick.png', { frameWidth: 16, frameHeight: 18 }); | |
| } | |
| create() { |
NewerOlder