Skip to content

Instantly share code, notes, and snippets.

View hernikplays's full-sized avatar
🥵
Procrastinating again

Matyáš Caras hernikplays

🥵
Procrastinating again
View GitHub Profile

Keybase proof

I hereby claim:

  • I am hernikplays on github.
  • I am hernik (https://keybase.io/hernik) on keybase.
  • I have a public key ASAq7iMOgtfPN5E7gCVFVeMczqYp7P-goDiyRhAU-LXqCQo

To claim this, I am signing this object:

@hernikplays
hernikplays / nasobilka.php
Created April 20, 2022 10:41
Tabulka násobilka v PHP
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Hello!</title>
<meta name="description" content="description"/>
<meta name="author" content="author" />
<meta name="keywords" content="keywords" />
<link rel="stylesheet" href="./stylesheet.css" type="text/css" />
<style type="text/css">body {

Jak spustit PHP soubor na Windows

Webserver

Důležitý je webserver, ve škole se používá asi XAMPP

XAMPP

Spuštění webserveru

Otevřeme XAMPP a zapneme Apache (to je náš webserver)

@hernikplays
hernikplays / lokace.py
Created November 3, 2021 11:29
Hra úkol
class Lokace:
def __init__(self,nazev,popis):
self.nazev = nazev
self.popis = popis
self.sever = None
self.jih = None
self.zapad = None
self.vychod = None
def __str__(self):
@hernikplays
hernikplays / 1.py
Created September 21, 2021 09:15
Řetězce
retezec = input("Zadejte řetězec")
b = 0
for p in retezec:
if(p.lower() == "b"):
b+=1
print(f"Počet písmen 'b' je {b}")
@hernikplays
hernikplays / 1.py
Last active September 21, 2021 09:05
listy
def change_num(arr, num1, num2):
# možná by stačilo upravit původní "arr", ale já to dělám na jistotu
novy = []
for x in arr:
if x == num1: # když je x rovno num1
novy.append(num2) # do nového listu vložíme num2
else: # jinak vložíme číslo původní
novy.append(x)
return novy # a vrátíme
print(change_num([1,2,3,74,5,6,8,7,9],7,0))
@hernikplays
hernikplays / Czech.lng
Created July 29, 2021 09:49
Czech Modboy translation
{
"Global_OK": "ОК",
"Global_Cancel": "Zrušit",
"Global_Yes": "Ano",
"Global_No": "Ne",
"Command_Copy_SelectSource": "Vyberte zdroj kopie z jedné z možností",
"Task_Verify": "Ověřuji...",
"Task_Verify_Execute": "Ověřuji soubory...",
@hernikplays
hernikplays / install_ffmpeg.bat
Created April 26, 2021 17:42
A bad script for FFMPEG installation
@echo off
echo Downloading FFMPEG
:: Change the URL to the latest FFMPEG build
curl -o ffmpeg.zip -L https://github.com/BtbN/FFmpeg-Builds/releases/download/autobuild-2021-04-26-12-39/ffmpeg-n4.4-6-g7e9b9f24df-win64-gpl-shared-4.4.zip
echo Extracting FFMPEG
tar -xf ffmpeg.zip
echo Moving FFMPEG to 'C:\ffmpeg'
@hernikplays
hernikplays / start.bat
Created October 17, 2020 09:21
Spigot start.bat so I don't have to google it all the time
java -Xmx4G -jar server.jar
PAUSE
@hernikplays
hernikplays / rename.js
Created October 12, 2020 17:23
Quickly rename manga pages to number
const fs = require("fs")
let folder = fs.readdirSync(".")
let i = 0;
folder.forEach((el)=>{
if(el == "rename.js") return;
fs.renameSync("./"+el, (el<10)?"00"+i+".jpg":"0"+i+".jpg")
i++
})