This file contains 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
#!/bin/bash | |
if [ -z "$1" ] || [ -z "$2" ]; then | |
echo "Usage: $0 <fw> <name>" | |
echo "FW can be django, wagtail, fastapi, litestar" | |
exit 1 | |
fi | |
fw=$1 | |
name=$2 |
This file contains 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, Iterator | |
from contextlib import asynccontextmanager | |
from pydantic import BaseModel | |
from sqlmodel import SQLModel, Session, Field, Relationship, create_engine, select | |
from fastapi import FastAPI, Depends | |
class Kind(SQLModel, table=True): | |
id: int | None = Field(default=None, primary_key=True) | |
name: str |
This file contains 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
Já: Zajímá mě pythagorova věta. | |
ChatGPT 3.5: Samozřejmě, pythagorova věta je velmi zajímavá a užitečná v matematice i v praxi. | |
Pythagorova věta říká, že v pravoúhlém trojúhelníku je součet druhých mocnin délek odvěsen roven druhé mocnině délky přepony. Tuto větu lze zapsat následovně: | |
a^2 + b^2 = c^2, | |
kde a a b jsou délky odvěsen a c je délka přepony. Tuto větu objevil starověký řecký matematik Pythagoras, a od té doby se stala jednou z nejdůležitějších a nejznámějších vět v matematice. | |
Pythagorova věta má mnoho využití v geometrii a fyzice. Například se používá k výpočtu vzdáleností, délek stran a diagonál různých geometrických tvarů, jako jsou čtverce, obdélníky a trojúhelníky. Též se používá při výpočtech v elektrotechnice, strojírenství a architektuře. |
This file contains 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> | |
<html lang="en"> | |
<head> | |
<!-- Required meta tags --> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
<!-- Bootstrap CSS --> | |
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous"> |
This file contains 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
--- | |
metadata: | |
title: Pětadvactíka | |
short title: Pětadvactíka | |
documentation: "None" | |
description: Pomoc živnostníkům Pětadvactíka v souvislosti s COVID-19 | |
authors: | |
- name: Ondřej Profant | |
organization: Pirátská strana | |
- name: Jan Suchánek |
This file contains 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
--- | |
metadata: | |
title: Pětadvactíka | |
short title: Pětadvactíka | |
documentation: "Zatím není" | |
description: Pomoc živnostníkům Pětadvactíka v souvislosti s COVID-19 | |
authors: | |
- name: Ondřej Profant | |
organization: Pirátská strana | |
- name: Jan Suchánek |
This file contains 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
--- | |
metadata: | |
title: Pětadvactíka | |
short title: Pětadvactíka | |
documentation: "Zatím není" | |
description: Pomoc živnostníkům Pětadvactíka v souvislosti s COVID-19 | |
authors: | |
- name: Ondřej Profant | |
organization: Pirátská strana | |
revision_date: 2020-04-10 |
This file contains 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 bash | |
# Clone source code and compile vcmi | |
# 1. Install dependency at Fedory | |
# 2. Clone repository $repo | |
# 3. Compile given tag | |
# 4. Prepare data from gog exe file | |
tag="0.99" | |
repo="https://github.com/vcmi/vcmi.git" | |
path="~/Donwloads/hommam3.exe" |
This file contains 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 python3 | |
import sys | |
import pandas as pd | |
def main(): | |
prefix = 'p7-2016' | |
names = ["DOKLAD_ROK","DOKLAD_DATUM","DOKLAD_AGENDA","DOKLAD_CISLO","ORGANIZACE","ORGANIZACE_NAZEV","ORJ","ORJ_NAZEV","PARAGRAF","PARAGRAF_NAZEV","POLOZKA","POLOZKA_NAZEV","SUBJEKT_IC","SUBJEKT_NAZEV","CASTKA_MD","CASTKA_DAL","POZNAMKA"] | |
to_del = ['DOKLAD_ROK', 'ORGANIZACE_NAZEV', 'ORJ', 'ORJ_NAZEV', 'PARAGRAF_NAZEV', 'DOKLAD_CISLO', 'POLOZKA_NAZEV'] | |
to_use = ["DOKLAD_ROK", "DOKLAD_DATUM"] |
This file contains 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
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCXtVS22o0kTSgVLroWXwSRx7WQqUZaNYm7cSNtdUT0GyTVBO67IIAHqm3Gc/WAwVJhU7HZdX9Ms7+ccw0uPSOZVrU4KhmbCumyAGRh8iCCnM5gy/XQTDgi7yXKeKTn2EgoqN96OW9h+7lvDh0BZyymXmwaaqfzzIaULZrqn/ai9Dc7VAuZGE/7ZpD9MWS+//UXnZ5y04P6/i+AYzCUfRujhdIPUHUbV6V08lNoIzdkg0R+1ShLV+rPdLJihwKXab4bKAbwrcsDkbKopygi7YP3Df3TdMTKnH0qNXrode6M8RMZ9a+q3X1dNHFDLjlJQ1enrHdRFjgk8EDf6eMEKq2t Klíč Ondřej Profant pro pirátské servery |
NewerOlder