initial setup

This commit is contained in:
Hladu357 2024-10-18 18:42:33 +02:00
commit 784926e111
4 changed files with 55 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.ipynb_checkpoints

7
Dockerfile Normal file
View File

@ -0,0 +1,7 @@
FROM python:3.10-slim
RUN pip install --upgrade pip \
&& pip install jupyter notebook
CMD ["jupyter", "notebook", "--ip=0.0.0.0", "--allow-root", "--no-browser"]

14
README.md Normal file
View File

@ -0,0 +1,14 @@
# how to run
## build
podman build -t pst -f Dockerfile
or
docker build -t pst -f Dockerfile
## run
pacman -S slirp4netns && podman run --network=slirp4netns -p 8888:8888 pst
or
docker run -p 8888:8888 pst
K = 28
L = 8
M = ((K+L)*47)%11+1 = 10

33
ukol.ipynb Normal file
View File

@ -0,0 +1,33 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"id": "7c90184c-5f76-4277-b0ad-aeec2ac37d30",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.15"
}
},
"nbformat": 4,
"nbformat_minor": 5
}