From 06956a4297dabba1b96bbdcd137f8857d45d6fd7 Mon Sep 17 00:00:00 2001 From: Novatux Date: Fri, 13 Jun 2014 20:24:55 +0200 Subject: [PATCH] Initial commit --- .gitignore | 1 + convert.py | 70 ++++++++++++++++++ technic_tutorial.html | 47 ++++++++++++ technic_tutorial.txt | 161 ++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 279 insertions(+) create mode 100644 .gitignore create mode 100644 convert.py create mode 100644 technic_tutorial.html create mode 100644 technic_tutorial.txt diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b25c15b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*~ diff --git a/convert.py b/convert.py new file mode 100644 index 0000000..e5b0680 --- /dev/null +++ b/convert.py @@ -0,0 +1,70 @@ +import sys + +def flatten(l): + u = [] + for j in l: + for i in j: + u.append(i) + return u + +def closing_tag(tag): + u = tag.split("<")[1:] + u.reverse() + return "= 2 and par[1] == "=" * len(par[0]): + return "

" + par[0] + "

" + l = [("

", [])] + for line in par: + if line[:2] == "- ": + l.append(("