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
""" | |
NOTE: make sure to install: | |
pip install Pillow google-genai loguru | |
""" | |
from google import genai | |
from google.genai import types | |
from PIL import Image | |
from io import BytesIO | |
import os |
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 google import genai | |
from google.genai import types | |
from PIL import Image | |
from io import BytesIO | |
import os | |
import subprocess | |
import tempfile | |
from global_config import global_config | |
from loguru import logger as log |
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
# # Work with Python 3.6 | |
# import discord | |
# | |
# TOKEN = 'XXXXXXXXXX' | |
# | |
# client = discord.Client() | |
# | |
# @client.event | |
# async def on_message(message): | |
# # we do not want the bot to reply to itself |
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 tkinter | |
import random as r | |
from GenerallyUsefulFunctions import createGrid2,visualise2DInputGrid,print2DGridAsGrid | |
WIDTH = 400 | |
HEIGHT = 400 | |
XYGAP = 5 | |
CONSTSTARTGAP = 5 | |
FOURSPAWNCHANCE = 25 |