I hereby claim:
- I am arthuro555 on github.
- I am arthuro555 (https://keybase.io/arthuro555) on keybase.
- I have a public key whose fingerprint is 9B35 9EC9 EA4B B46D 4ECA 76D9 6334 30C8 27EC AF6E
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
/** | |
* A class that manages some objects lists to be "long lived". | |
* Normal object lists usually last until the end of the execution of the event using it, | |
* or at least at the end of the events sheet execution. | |
*/ | |
class LongLivedObjectsLists { | |
/** True as long as the object list is valid. */ | |
private _valid: boolean = true; | |
private readonly _objectsLists: ObjectsLists = new Hashtable< | |
RuntimeObject[] |
from dataclasses import dataclass | |
from typing import Callable | |
@dataclass | |
class Position: | |
""" | |
Represents a portion of a string. | |
Note that while it is not strictly required to have position information, | |
it is always something useful to have and trivial to implement in an AST. |
def create_row(): | |
return { "left": " ", "center": " ", "right": " " } | |
def create_board(): | |
return { "up": create_row(), "center": create_row(), "down": create_row() } | |
board = create_board() | |
def print_board(): | |
print("") |
import { Hono } from "https://deno.land/x/hono@v4.1.5/mod.ts"; | |
import { cors } from "https://deno.land/x/hono@v4.1.5/middleware.ts"; | |
import { decode } from "https://deno.land/x/djwt/mod.ts"; | |
const FIREBASE_SECRET = Deno.env.get("FIREBASE_SECRET"); | |
const ALLOWED_GAME_IDS = new Set(["<Your Game ID>"]); | |
const app = new Hono(); | |
let id = 0; | |
let FIREBASE_PARSED_SECRET; |