From 562113e5917bcda2370c6e94a501539781c13b84 Mon Sep 17 00:00:00 2001 From: Sven Efftinge Date: Thu, 21 Feb 2019 05:39:36 +0000 Subject: [PATCH] added gitpod config --- .gitpod.yml | 12 ++++++++++++ Dockerfile | 10 ++++++++++ README.md | 4 ++++ 3 files changed, 26 insertions(+) create mode 100644 .gitpod.yml create mode 100644 Dockerfile 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