Skip to content

Instantly share code, notes, and snippets.

@shinysu
shinysu / bot.py
Last active February 12, 2022 13:26
webPageAnalyzer
import PySimpleGUI as sg
from utils import get_statistics
layout = [
[sg.Text("Enter the URL: ", font=('Arial','16')),
sg.Input("", font=('Arial','16'), size=(40,1), key='url'),
sg.Button("Get Data", font=('Arial','16'), key='get')],
[sg.Multiline("", font=('Arial','16'), size=(70, 15), key='output')]
]
from random import randint
num = randint(1, 10)
guess = None
while guess != num:
guess = input("guess a number between 1 and 10: ")
guess = int(guess)
if guess == num:
@shinysu
shinysu / game09.py
Created September 21, 2021 10:18
one enemy
'''
One enemy
'''
import pgzrun
from random import randint
WIDTH = 800
HEIGHT = 600
tank = Actor('tank_blue')
tank.bottom = HEIGHT
@shinysu
shinysu / game.py
Created September 21, 2021 09:54
gist 3
import pgzrun
WIDTH = 800
HEIGHT = 600
tank = Actor('tank_blue')
tank.bottom = HEIGHT
tank.x = WIDTH / 2
tank.angle = 90
def draw():
@shinysu
shinysu / game.py
Created September 21, 2021 09:54
gist 3
import pgzrun
WIDTH = 800
HEIGHT = 600
tank = Actor('tank_blue')
tank.bottom = HEIGHT
tank.x = WIDTH / 2
tank.angle = 90
def draw():
@shinysu
shinysu / game.py
Created September 21, 2021 09:36
gist2
import pgzrun
WIDTH = 800
HEIGHT = 600
tank = Actor('tank_blue')
tank.bottom = HEIGHT
tank.x = WIDTH / 2
tank.angle = 90
def draw():
@shinysu
shinysu / game.py
Created September 21, 2021 09:19
battle_city
import pgzrun
WIDTH = 800
HEIGHT = 600
tank = Actor('tank_blue')
tank.bottom = HEIGHT
tank.x = WIDTH / 2
tank.angle = 90
def draw():
@shinysu
shinysu / game01.py
Created September 21, 2021 07:44
battle_city
import pgzrun
WIDTH = 800
HEIGHT = 600
tank = Actor('tank_blue')
tank.x = WIDTH / 2
tank.bottom = HEIGHT
tank.angle = 90
@shinysu
shinysu / game01.py
Created September 21, 2021 07:09
gist 2
import pgzrun
WIDTH = 800
HEIGHT = 600
tank = Actor('tank_blue')
tank.x = WIDTH / 2
tank.bottom = HEIGHT
tank.angle = 90
@shinysu
shinysu / game01.py
Created September 21, 2021 06:50
battle-city
import pgzrun
WIDTH = 800
HEIGHT = 600
tank = Actor('tank_blue')
tank.x = WIDTH / 2
tank.bottom = HEIGHT
tank.angle = 90