Skip to content

Instantly share code, notes, and snippets.

View Kaki-In's full-sized avatar
🥱
Studying or working at Microportal

Kaki In Kaki-In

🥱
Studying or working at Microportal
View GitHub Profile
@Kaki-In
Kaki-In / script1.py
Last active May 5, 2025 15:59
Crypt
from math import *
def divide(a,b):
return a//b,a%b
def get_bezout(a,b):
rnm2=a
rnm1=b
unm2=1
unm1=0
@Kaki-In
Kaki-In / grid.py
Created January 10, 2024 16:28
Puis4
class Grid():
def __init__(self,x,y,grid=None):
if grid:self._grid=grid
else:self._grid=[None for i in range(x*y)]
self._dims=[x,y]
def setAt(self,x,y,value):
if not x in range(self._dims[0]) or not y in range(self._dims[1]):raise ValueError("invalid dimensions")
self._grid[x+y*self._dims[0]]=value
@Kaki-In
Kaki-In / minesweeper.py
Created December 26, 2023 18:12
MineSweeper
from kandinsky import *
from random import *
from ion import *
from time import *
class Mine():
def __init__(self,mode=0):
self.time=0
self.mode=mode
self.game=[[0 for i in range([9,15,30][mode])] for i in range([9,13,16][mode])]
@Kaki-In
Kaki-In / games.py
Created December 26, 2023 18:11
Games
from math import *
@Kaki-In
Kaki-In / tkinter.py
Last active January 11, 2024 17:51
Tkinter
from math import *
from kandinsky import *
from ion import *
from time import *
class SystemExit(Exception):pass
MOUSE_IMG='\x00\x00\x00\x00\x00\x00\uc1a6\uc1a6\uc1a6\x00\x00\uc1a6\uc1a6\uc1a6\x00\x00\uc1a6\uc1a6\uc1a6\x00\x00\x00\x00\x00\x00'
CHARS_DEFAULT=[