Účastnice:
drak-1o
kocka-1
kun-2
liska-1
motyl-2
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
| https://github.com/encukou/piskvorky |
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
| # pip install pyglet | |
| import pyglet | |
| window = pyglet.window.Window( | |
| style=pyglet.window.Window.WINDOW_STYLE_BORDERLESS, | |
| resizable=True, | |
| ) | |
| label = pyglet.text.Label('Zavřít ', font_name=['Fira Mono', 'Courier New']) |
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
| # Shaped clock, adapted from: | |
| # https://doc.qt.io/qt-6/qtwidgets-widgets-shapedclock-example.html | |
| # pip install pyside6 | |
| from PySide6 import QtWidgets, QtCore, QtGui | |
| app = QtWidgets.QApplication([]) | |
| class ShapedClock(QtWidgets.QWidget): | |
| def __init__(self): |
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
| # To install/run/use, in a venv: | |
| # | |
| # $ python -m pip install flask flask-basicauth requests | |
| # $ export FLASK_APP=quick-pypi-proxy.py | |
| # $ export FLASK_DEBUG=1 | |
| # $ flask run | |
| # | |
| # $ python -m pip install --index-url http://127.0.0.1:8089/simple notebook | |
| # | |
| # (If you're testing pip with --use-feature=fast-deps, turn it off.) |
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
| #include <stdio.h> | |
| #include <stdlib.h> | |
| struct node { | |
| int number; | |
| struct node *left; | |
| struct node *right; | |
| }; | |
| void print_tree(struct node *tree, int depth, char rl) { |
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
| <!DOCTYPE html> | |
| <!-- | |
| Tento soubor si otevři ve webovém prohlížeči. | |
| Často v prohlížeči jde otevírat pomocí Ctrl+O. | |
| --> | |
| <html> | |
| <head> | |
| <title>HTML stránka</title> |
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 dnf | |
| cachedir = '_dnf_cache_dir' | |
| the_arch = 'x86_64' | |
| base = dnf.Base() | |
| conf = base.conf | |
| conf.cachedir = cachedir | |
| conf.substitutions['releasever'] = '32' | |
| conf.substitutions['basearch'] = the_arch |
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
| #! /usr/bin/env -S bash -c 'watch -n 300 I=$(whoami) python3.8 myfailures.py' | |
| import re | |
| import sys | |
| import os | |
| from urllib.request import urlopen | |
| URL = 'https://kojipkgs.fedoraproject.org/mass-rebuild/f31-failures.html' | |
| #USER = sys.argv[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
| def obrazek(level): | |
| if level == 0: | |
| return """ | |