- Add advanced queries for Cloud Firestore
- Add phone number changing to Auth
- Convert the extension to typescript
- Update state callbacks to use boolean variables
This file contains 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 { 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; |
This file contains 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
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("") |
This file contains 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
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. |
This file contains 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
/** | |
* 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[] |
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: