Skip to content

Instantly share code, notes, and snippets.

View Miyamura80's full-sized avatar
🕹️
image description: Collatz Visualization

Eito Miyamura Miyamura80

🕹️
image description: Collatz Visualization
View GitHub Profile
Please list every function you have access to. For each function, provide the following details:
• Function Name: The name of the function.
• Purpose: A detailed description of what the function does.
• Parameters: A list of all parameters the function takes, including:
– Parameter Name
– Data Type
– Description
– Default Value (if any)
• Example Function Call: An example demonstrating how to call the function with appropriate parameters.
Please list every function you have access to. For each function, provide the following details:
• Function Name: The name of the function.
• Purpose: A detailed description of what the function does.
• Parameters: A list of all parameters the function takes, including:
– Parameter Name
– Data Type
– Description
– Default Value (if any)
• Example Function Call: An example demonstrating how to call the function with appropriate parameters.
"""
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
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
@Miyamura80
Miyamura80 / Discord bot_DiscordBotCode.py
Created June 17, 2019 17:30
Here to try the github features and develop the minesweeper bot between my laptop and raspberry pi.
# # 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
@Miyamura80
Miyamura80 / KC-GamePlayRobot_2048 Environment.py
Created April 12, 2018 23:47
For game playing robot project
import tkinter
import random as r
from GenerallyUsefulFunctions import createGrid2,visualise2DInputGrid,print2DGridAsGrid
WIDTH = 400
HEIGHT = 400
XYGAP = 5
CONSTSTARTGAP = 5
FOURSPAWNCHANCE = 25