diff --git a/.gitpod.yml b/.gitpod.yml new file mode 100644 index 0000000..a156ff1 --- /dev/null +++ b/.gitpod.yml @@ -0,0 +1,12 @@ +image: + file: Dockerfile +tasks: +- before: > + cd test + command: > + python unet.py && + pdflatex unet.tex && + rm *.aux *.log *.tex && + sleep 12 && + gp open unet.pdf && + cd .. diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..f946cfa --- /dev/null +++ b/Dockerfile @@ -0,0 +1,10 @@ +FROM gitpod/workspace-full + +USER root +# add your tools here +RUN apt-get install -yq \ + texlive-latex-base \ + texlive-fonts-recommended \ + texlive-fonts-extra \ + texlive-latex-extra \ + evince-common \ No newline at end of file diff --git a/README.md b/README.md index b0a04af..c0f4f80 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,10 @@ Latex code for drawing neural networks for reports and presentation. Have a look ## Usage +You can try it in Gitpod, a free online dev evironment for GitHub: + +[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/HarisIqbal88/PlotNeuralNet/blob/master/test/unet.py) + mkdir my_project cd my_project vim my_arch.py