diff --git a/.gitignore b/.gitignore index fcf712243f4bed65633e531c86529c9a08c68ce8..0a0dd02414c32ede8d58d2556709827f9a98bf5c 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -pandoc.template \ No newline at end of file +pandoc.template +.DS_Store \ No newline at end of file diff --git a/.tmpl/build.sh b/.tmpl/build.sh deleted file mode 100644 index 571b685b3018c1eb04a11a6f788bc1e7b2858869..0000000000000000000000000000000000000000 --- a/.tmpl/build.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/bash - -function find_line() { - local fn=$1 - local x=0 - cat $fn | while read line; do - local x=$(( x+1 )) - if echo $line | grep '${MARKDOWN}' -q; then - echo $x - break - fi - done -} - -MD_FILE=$1 -TMPL_FILE=$2 -TPL_LINE=`find_line $TMPL_FILE` -cat $TMPL_FILE | head -n $((TPL_LINE-1)) -cat $MD_FILE -cat $TMPL_FILE | tail -n +$((TPL_LINE+1)) diff --git a/.tmpl/template.html b/.tmpl/convert-markdown-into-html.sh old mode 100644 new mode 100755 similarity index 85% rename from .tmpl/template.html rename to .tmpl/convert-markdown-into-html.sh index 84edf8fa33a7faffbfa44ec78b86cb42d3235dd3..149c686bc502b7fed97453e0769a7ef6ee841b76 --- a/.tmpl/template.html +++ b/.tmpl/convert-markdown-into-html.sh @@ -1,3 +1,8 @@ +markdown_file=$1 + +# Notice: the single-quotes around EOF below make outputs +# verbatium. c.f. http://stackoverflow.com/a/9870274/724872 +cat <<'EOF' - + + - + - + + + + + +
+
+ + + + + + + diff --git a/fit_a_line/index.html b/fit_a_line/index.html index 811472413d46833cc09c2b4f594d130a4c65aca5..7bb9e8a2f6b69b766f17eb72d5cd9d9844138b2d 100644 --- a/fit_a_line/index.html +++ b/fit_a_line/index.html @@ -11,15 +11,15 @@ }, "HTML-CSS": { availableFonts: ["TeX"] } }); - - + + - + - + + + + + +
+
+ + + + + + + diff --git a/image_classification/index.html b/image_classification/index.html index a7dbe423b7cfb5a38bc2d8cd1a3ccb6ff995cbaf..0e48c728c61a2b12aa400f8840c1bc0478bf21df 100644 --- a/image_classification/index.html +++ b/image_classification/index.html @@ -11,15 +11,15 @@ }, "HTML-CSS": { availableFonts: ["TeX"] } }); - - + + - + - + + + + + +
+
+ + + + + + + diff --git a/label_semantic_roles/index.html b/label_semantic_roles/index.html index 1bb6a7ea7753a2f3078e43c0aac864e9074133e8..fca99fedb6d5b5788ab4b31e75287192cd175584 100644 --- a/label_semantic_roles/index.html +++ b/label_semantic_roles/index.html @@ -11,15 +11,15 @@ }, "HTML-CSS": { availableFonts: ["TeX"] } }); - - + + - + - + + + + + +
+
+ + + + + + + diff --git a/machine_translation/index.html b/machine_translation/index.html index f550508743f4f1105326b56276d1dc116adef306..09d4a4e654366a5d030ed954e7400483efdd2093 100644 --- a/machine_translation/index.html +++ b/machine_translation/index.html @@ -11,15 +11,15 @@ }, "HTML-CSS": { availableFonts: ["TeX"] } }); - - + + - + - + + + + + +
+
+ + + + + + + diff --git a/recognize_digits/index.html b/recognize_digits/index.html index b8bbfb38a477fe110aaf287b205d57169daec082..32f4e6e7759aa93b4fcab294fe2b2e16ca9c8434 100644 --- a/recognize_digits/index.html +++ b/recognize_digits/index.html @@ -11,15 +11,15 @@ }, "HTML-CSS": { availableFonts: ["TeX"] } }); - - + + - + - + + + + + +
+
+ + + + + + + diff --git a/recommender_system/index.html b/recommender_system/index.html index fe749398aa228491d6c45c47b9a9a47e0a82ee1e..2bcc0d9ab9992a1c4a865538a963577723cd65f7 100644 --- a/recommender_system/index.html +++ b/recommender_system/index.html @@ -11,15 +11,15 @@ }, "HTML-CSS": { availableFonts: ["TeX"] } }); - - + + - + - + + + + + +
+
+ + + + + + + diff --git a/understand_sentiment/index.html b/understand_sentiment/index.html index 6c86b5f38eb4cfbab6758278e19cb72a753ae1fb..e1fc47435f3f745359cd9134b29bf2203b9b6476 100644 --- a/understand_sentiment/index.html +++ b/understand_sentiment/index.html @@ -11,15 +11,15 @@ }, "HTML-CSS": { availableFonts: ["TeX"] } }); - - + + - + - + + + + + +
+
+ + + + + + + diff --git a/word2vec/index.html b/word2vec/index.html index 0382bd976d0edb0d39cb48420d90af66326902fc..7814ee5aca8d3fbe15a067a62069d42f236b6eb3 100644 --- a/word2vec/index.html +++ b/word2vec/index.html @@ -11,15 +11,15 @@ }, "HTML-CSS": { availableFonts: ["TeX"] } }); - - + + - + - +