Skip to content

Instantly share code, notes, and snippets.

View i2x's full-sized avatar
🎯
Focusing

i2x

🎯
Focusing
View GitHub Profile
@i2x
i2x / main.py
Created October 17, 2023 17:37
import tkinter as tk
class App(tk.Tk):
def __init__(self):
super().__init__()
self.title("Game with Different Components")
# Keep track of the current scene
self.current_scene = 0
@i2x
i2x / 01.py
Last active August 8, 2023 11:07
LAB5
for num in range(1, 11):
if num % 2 != 0:
continue
print(num)
@i2x
i2x / 01.py
Created July 25, 2023 09:22
week4
def calculate_area(length, width):
return length * width
length_input = float(input("Enter the length of the rectangle: "))
width_input = float(input("\nEnter the width of the rectangle: "))
area = calculate_area(length_input, width_input)
print("\nThe area of the rectangle is:", area)
@i2x
i2x / 14.py
Created July 19, 2023 03:25
week3
import math
a = int(input("Enter the first number:\n"))
b = int(input("Enter the second number:\n"))
print(math.gcd(a, b))
<?php
$user_name = "{'name': 'peet','timestamp' : " . time() . "}";
$encrypt_method = "aes128";
$secret_key = '123';
$secret_iv = '456';
// hash
<?php
$temp = "Language = \"English\"
Hideout Name = \"Celestial Hideout\"
Hideout Hash = 34604
Stash = { Hash=3230065491, X=603, Y=553, Rot=47565, Flip=0, Var=0 }
Guild Stash = { Hash=139228481, X=528, Y=547, Rot=18480, Flip=0, Var=0 }
Language = "English"
Hideout Name = "Excavated Hideout"
Hideout Hash = 55535
Stash = { Hash=3230065491, X=274, Y=226, Rot=16332, Flip=0, Var=0 }
Guild Stash = { Hash=139228481, X=271, Y=184, Rot=24420, Flip=0, Var=0 }
Waypoint = { Hash=1224707366, X=160, Y=261, Rot=48713, Flip=0, Var=0 }
Crafting Bench = { Hash=2059629901, X=307, Y=261, Rot=30037, Flip=0, Var=0 }
Map Device = { Hash=2306038834, X=240, Y=264, Rot=4992, Flip=0, Var=0 }
Navali = { Hash=693228958, X=220, Y=217, Rot=12530, Flip=0, Var=0 }