Browse Source

Initial tooling

rorist 9 months ago
parent
commit
1b8fe0ac53
7 changed files with 42 additions and 61 deletions
  1. 7 59
      .gitignore
  2. 3 0
      .gitmodules
  3. 19 0
      Makefile
  4. 10 0
      README
  5. 0 2
      README.md
  6. 2 0
      requirements.txt
  7. 1 0
      reveal.js

+ 7 - 59
.gitignore

@@ -1,60 +1,8 @@
-# ---> Python
-# Byte-compiled / optimized / DLL files
-__pycache__/
-*.py[cod]
-*$py.class
-
-# C extensions
-*.so
-
-# Distribution / packaging
-.Python
-env/
-build/
-develop-eggs/
-dist/
-downloads/
-eggs/
-.eggs/
-lib/
-lib64/
-parts/
-sdist/
-var/
-*.egg-info/
-.installed.cfg
-*.egg
-
-# PyInstaller
-#  Usually these files are written by a python script from a template
-#  before PyInstaller builds the exe, so as to inject date/other infos into it.
-*.manifest
-*.spec
-
-# Installer logs
-pip-log.txt
-pip-delete-this-directory.txt
-
-# Unit test / coverage reports
-htmlcov/
-.tox/
-.coverage
-.coverage.*
-.cache
-nosetests.xml
-coverage.xml
-*,cover
-
-# Translations
-*.mo
-*.pot
-
-# Django stuff:
+*.swp
+.ipynb_checkpoints
+slides.slides.html
+*.aux
+*.out
 *.log
-
-# Sphinx documentation
-docs/_build/
-
-# PyBuilder
-target/
-
+*.tex
+*.pdf

+ 3 - 0
.gitmodules

@@ -0,0 +1,3 @@
+[submodule "reveal.js"]
+	path = reveal.js
+	url = https://github.com/hakimel/reveal.js.git

+ 19 - 0
Makefile

@@ -0,0 +1,19 @@
+title=Drone Physics 101
+
+all:
+	jupyter-notebook slides.ipynb
+
+slides:
+	jupyter-nbconvert --to slides slides.ipynb --post serve --reveal-prefix reveal.js
+
+latex:
+	cp slides.ipynb '$(title).ipynb'
+	jupyter-nbconvert --to latex '$(title).ipynb'
+	rm '$(title).ipynb'
+
+handout: latex
+	xelatex -interaction nonstopmode '$(title).tex'
+	rm '$(title).tex'
+
+clean:
+	rm '$(title).log' '$(title).aux' '$(title).out' '$(title).tex' '$(title).pdf' slides.slides.html

+ 10 - 0
README

@@ -0,0 +1,10 @@
+Dependencies
+------------
+
+```
+sudo apt install texlive-xetex pandoc
+sudo pip3 install -r requirements.txt
+sudo pip3 install --upgrade  ipython # in case it's already installed
+python3 -m bash_kernel.install
+git submodule update --init
+```

+ 0 - 2
README.md

@@ -1,2 +0,0 @@
-# drone-physics-101
-

+ 2 - 0
requirements.txt

@@ -0,0 +1,2 @@
+jupyter==1.0.0
+bash-kernel==0.7.1

+ 1 - 0
reveal.js

@@ -0,0 +1 @@
+Subproject commit 0b3e7839ebf4ed8b6c180aca0abafa28c67aee6d