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
| # /// script | |
| # dependencies = [ | |
| # "plotnine", | |
| # ] | |
| # requires-python = "==3.13" | |
| # /// | |
| # Pozn.: Graf lze kdykoliv přegenerovat příkazem `uv run spotreba_elektriny.py`, | |
| # což stáhne závislosti do uv cache a uloží nový `spotreba_elektriny.png`. | |
| # Alternativně lze spustit přímo z Gistu: |
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
| jistina = 2500000 | |
| urok_pa = 6.5 | |
| pocet_let = 20 | |
| def spocitej_splatku(jistina, urok_pa, pocet_let): | |
| urok_pa = urok_pa / 100 | |
| urok_pm = urok_pa / 12 | |
| pocet_mesicu = 12 * pocet_let | |
| return (jistina * (urok_pm) * (1 + urok_pm) ** (pocet_mesicu)) / ( |
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
| function jf_additional_post_processing( $processed_site_dir ) { | |
| $iterator = new RecursiveIteratorIterator( | |
| new RecursiveDirectoryIterator( | |
| $processed_site_dir, | |
| RecursiveDirectoryIterator::SKIP_DOTS | |
| ) | |
| ); | |
| foreach ( $iterator as $filename => $file_object ) { |