This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # skripticek na overeni spravnosti slozeni funkci | |
| # autor: vitek kvitek 🌻 | |
| # datum: 18.02.2023 | |
| # funguje v poho s: | |
| # windows 10 | |
| # python 3.10.2 | |
| # numpy 1.22.3 | |
| # matplotlib 3.7.0 | |
| import matplotlib.pyplot as plt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from math import sin, cos | |
| DEPTH = 9 | |
| def f(x: float) -> float: | |
| """funkce f""" | |
| return sin(x) - x**2 + 4 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # skripticek na overeni spravnosti slozeni funkci | |
| # | |
| # (stejne jako muj predchozi gist, | |
| # ale napsal jsem tady funkci ze zadani IMA1 2022/2023 G-opravny) | |
| # | |
| # autor: vitek kvitek 🌻 | |
| # datum: 2023-06-03 | |
| # funguje v poho s: | |
| # windows 11 | |
| # python 3.10.7 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /******************************************************************************/ | |
| /* TABULKOVA MAKRA */ | |
| /******************************************************************************/ | |
| /** | |
| * tak jak nam je ukazoval dr. Peringer 2. 5. 2023 na prednasce | |
| * pry to objevil nekde v kodu GCC | |
| */ | |
| #undef ROW /* to be defined later */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| :: Author: Vit Pavlik (okurka12) | |
| :: Date: 2023-08-23 | |
| :: this is a script `enviro.bat` to be located in %userprofile%. it's purpose | |
| :: is to run all necessary tools/editors/shells needed for various projects | |
| :: why %userprofile%? | |
| :: %userprofile% where the windows run dialog's "current directory" is. | |
| :: what I mean is programs can be run from %userprofile% with the windows | |
| :: run dialog window, even though %usrprofile% is not in path. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Author: víteček 🔥💯 (okurka12) | |
| # | |
| # The script tries to pick the right exams according to the defined criteria | |
| # and it does so randomly | |
| # | |
| # exam dates are hard-coded below in the `exams` list | |
| # | |
| from random import shuffle | |
| # Wishest thou to embark upon the logging endeavor? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # | |
| # WARNING | |
| # moved to a repo https://github.com/okurka12/dotfiles | |
| # | |
| # those can be uncommented directly in .bashrc but why not have it here | |
| alias grep='grep --color=auto' | |
| alias ll='ls -l' | |
| alias la='ls -A' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # | |
| # part of the knuth-morris-pratt algorithm: | |
| # generation of the prefix table/fail vector | |
| # | |
| # víteček 🔥💯 (okurka12), January 2024 | |
| # | |
| def ppre(s: str) -> set[str]: | |
| """returns a set of all proper prefixes of `s`""" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @echo off | |
| setlocal enabledelayedexpansion | |
| rem | |
| rem Usage: .\snap.bat | |
| rem | |
| rem Upon invocation, copies `name.ext` to `name_1.ext`. | |
| rem If `name_1.ext` already exists, copies to `name_2.ext`, | |
| rem then `name_3.ext` and so on... | |
| rem |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # | |
| # Prints stdin input without diacritics. | |
| # Expects a text in czech language. | |
| # | |
| # Author: okurka12 | |
| # | |
| # Date: 2024-07-21 | |
| # | |
| # reads from stdin and outputs on stdout | |
| # |
OlderNewer