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
| const text = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."; | |
| let currentSentence = ""; | |
| let longestSentence = ""; | |
| let numberOfSentences = 0; | |
| let numberOfWords = 0; | |
| const numberOfLettersInSentence = (sentence) => Array.from(sentence).reduce((acc, curr) => { | |
| if (curr !== " ") return acc + 1; | |
| return acc; |
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 typing import List, Self, Union | |
| import math | |
| import copy | |
| class Ratio: | |
| numerator: int | |
| denominator: int | |
| def __init__(self, numerator: int, denominator=1): |
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
| #let margin-size = 5mm | |
| #set page( | |
| paper: "a4", | |
| flipped: true, | |
| margin: (top: margin-size, left: margin-size, bottom: margin-size, right: margin-size), | |
| numbering: "1", | |
| number-align: center, | |
| ) | |
| #set text(size: 11pt, lang: "cs") | |
| #set par(justify: true) |
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
| #import "@preview/curryst:0.4.0": rule, proof-tree | |
| #let proof-box(assumption, conclusion) = box( | |
| stroke: 0.5pt + black, | |
| table(columns: auto, align: center + horizon, stroke: none, assumption, $dots.v$, conclusion) | |
| ) | |
| #set page("a4", flipped: true, margin: 10pt) | |
| #align(center + horizon)[ |