Skip to content

Instantly share code, notes, and snippets.

View Bertik23's full-sized avatar

Bertik23 Bertik23

View GitHub Profile
@Bertik23
Bertik23 / 2048.py
Created August 18, 2020 10:50
The 2048 game
import random
import pprint
grid = []
for i in range(4): grid.append([0 for j in range(4)])
def addNumber():
x = random.randint(0, len(grid)-1)
y = random.randint(0, len(grid[x])-1)
#print(x,y)
@Bertik23
Bertik23 / pes.py
Created November 24, 2020 08:01
Python script pro počítání rizikového indexu protiepidemiologického sysému (PES).
import requests
import datetime
from math import inf
import time
start = time.time()
data = requests.get("https://onemocneni-aktualne.mzcr.cz/api/v2/covid-19/orp.json").json()["data"]
print(time.time()-start)
@Bertik23
Bertik23 / fluidSim0.py
Created November 3, 2021 20:28
Fluid simulation using Navier-Stokes equation in Python
import pygame as pg
import colorsys
from time import time
from copy import deepcopy
from pprint import pprint
# COLORS
BLACK = (0, 0, 0)
WHITE = (255, 255, 255)
@Bertik23
Bertik23 / archInstallChecklist.md
Last active June 22, 2023 15:32
Arch installation checklist
  • Disable secureboot and legacy boot
  • Enable EFI (UEFI) boot
  • Boot
  • loadkeys cz-qwertz
  • ping archlinux.org test internet connection
  • If no internet:
    • connet ethernet cable
      • If ethernet cable connected and still no internet
        • modprobe -r tg3
  • modprobe broadcom