Skip to content

Instantly share code, notes, and snippets.

View arthuro555's full-sized avatar
🤔
THNK

Arthur Pacaud (arthuro555) arthuro555

🤔
THNK
View GitHub Profile
@arthuro555
arthuro555 / ttt.py
Created September 29, 2022 20:46
Tic tac toe python (made >1h)
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("")
@arthuro555
arthuro555 / calc.py
Created November 7, 2021 01:25
Simple calculator in python
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.
@arthuro555
arthuro555 / longlivedobjectslists.ts
Created October 31, 2021 21:55
Mockup long lived objects list
/**
* 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[]
@arthuro555
arthuro555 / FirebaseExtTODO.md
Created February 16, 2021 16:53
Fixes needed for the GDevelop Firebase extension
  • Add advanced queries for Cloud Firestore
  • Add phone number changing to Auth
  • Convert the extension to typescript
  • Update state callbacks to use boolean variables
@arthuro555
arthuro555 / keybase.md
Created August 22, 2020 08:23
Keybase Proof

Keybase proof

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: