diff options
| -rw-r--r-- | .jekyll-metadata | bin | 34395 -> 34975 bytes | |||
| -rw-r--r-- | learn/python-0001.md | 6 | ||||
| -rw-r--r-- | slides/example/index.html | 81 | ||||
| -rw-r--r-- | slides/example/slides.md | 27 |
4 files changed, 92 insertions, 22 deletions
diff --git a/.jekyll-metadata b/.jekyll-metadata index 09cbbe5..9544781 100644 --- a/.jekyll-metadata +++ b/.jekyll-metadata | |||
| Binary files differ | |||
diff --git a/learn/python-0001.md b/learn/python-0001.md index 6ff91c9..43ad167 100644 --- a/learn/python-0001.md +++ b/learn/python-0001.md | |||
| @@ -6,6 +6,8 @@ description: Couple of observations regarding project management. | |||
| 6 | 6 | ||
| 7 | Application will fetch and cache Flickr feed and in the second phase display these images on a webpage. | 7 | Application will fetch and cache Flickr feed and in the second phase display these images on a webpage. |
| 8 | 8 | ||
| 9 | ``$ y=\sum_{i=1}^n g(x_i) $`` | ||
| 10 | |||
| 9 | Categories: Python, Bottlepy, SQLite3, RSS | 11 | Categories: Python, Bottlepy, SQLite3, RSS |
| 10 | 12 | ||
| 11 | **Table of contents** | 13 | **Table of contents** |
| @@ -42,12 +44,12 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi mollis tempus sod | |||
| 42 | 44 | ||
| 43 | <script> | 45 | <script> |
| 44 | // auto encloses all code blocks into details in case of tutorials | 46 | // auto encloses all code blocks into details in case of tutorials |
| 45 | document.querySelectorAll('*[class^="language-"]').forEach(function(snippet, idx) { | 47 | /*document.querySelectorAll('*[class^="language-"]').forEach(function(snippet, idx) { |
| 46 | let details = document.createElement('details'); | 48 | let details = document.createElement('details'); |
| 47 | let summary = document.createElement('summary'); | 49 | let summary = document.createElement('summary'); |
| 48 | summary.innerText = 'Show solution'; | 50 | summary.innerText = 'Show solution'; |
| 49 | details.appendChild(summary); | 51 | details.appendChild(summary); |
| 50 | details.appendChild(snippet.cloneNode(true)); | 52 | details.appendChild(snippet.cloneNode(true)); |
| 51 | snippet.parentNode.replaceChild(details, snippet); | 53 | snippet.parentNode.replaceChild(details, snippet); |
| 52 | }); | 54 | });*/ |
| 53 | </script> | 55 | </script> |
diff --git a/slides/example/index.html b/slides/example/index.html index 2ca36c0..586794f 100644 --- a/slides/example/index.html +++ b/slides/example/index.html | |||
| @@ -10,30 +10,73 @@ | |||
| 10 | <body> | 10 | <body> |
| 11 | 11 | ||
| 12 | <script src="//cdnjs.cloudflare.com/ajax/libs/remark/0.14.0/remark.min.js"></script> | 12 | <script src="//cdnjs.cloudflare.com/ajax/libs/remark/0.14.0/remark.min.js"></script> |
| 13 | <script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-AMS_HTML&delayStartupUntil=configured"></script> | ||
| 13 | 14 | ||
| 14 | <script> | 15 | <script> |
| 15 | let slideshow = remark.create({ | 16 | MathJax.Hub.Config({ |
| 16 | sourceUrl: 'slides.md', | 17 | //displayAlign: 'left', |
| 17 | ratio: '16:9', | 18 | extensions: ['tex2jax.js'], |
| 18 | mouseWheel: false, | 19 | jax: ['input/TeX', 'output/SVG'], |
| 19 | }); | 20 | tex2jax: { |
| 21 | skipTags: ['script', 'noscript', 'style', 'textarea', 'code'], | ||
| 22 | inlineMath: [ | ||
| 23 | ['$', '$'], | ||
| 24 | ["\\(", "\\)"] | ||
| 25 | ], | ||
| 26 | displayMath: [ | ||
| 27 | ['$$', '$$'], | ||
| 28 | ["\\[", "\\]"] | ||
| 29 | ], | ||
| 30 | } | ||
| 31 | }); | ||
| 32 | MathJax.Hub.Configured(); | ||
| 33 | |||
| 34 | let slideshow = remark.create({ | ||
| 35 | sourceUrl: 'slides.md', | ||
| 36 | ratio: '16:9', | ||
| 37 | mouseWheel: false, | ||
| 38 | }); | ||
| 39 | |||
| 20 | </script> | 40 | </script> |
| 21 | 41 | ||
| 22 | <style> | 42 | <style> |
| 23 | * { box-shadow: none !important;} | 43 | * { |
| 24 | .remark-container { | 44 | box-shadow: none !important; |
| 25 | background-color: #fff !important; | 45 | } |
| 26 | } | 46 | |
| 27 | table { | 47 | .remark-container { |
| 28 | width:100%; | 48 | background-color: #fff !important; |
| 29 | border-collapse:collapse; | 49 | } |
| 30 | border-spacing:0; | 50 | |
| 31 | } | 51 | table { |
| 32 | table, table td,table th { | 52 | width: 100%; |
| 33 | border: 3px solid #f0f0f0; | 53 | border-collapse: collapse; |
| 34 | text-align: left; | 54 | border-spacing: 0; |
| 35 | padding: 10px; | 55 | } |
| 36 | } | 56 | |
| 57 | table, | ||
| 58 | table td, | ||
| 59 | table th { | ||
| 60 | border: 3px solid #f0f0f0; | ||
| 61 | text-align: left; | ||
| 62 | padding: 10px; | ||
| 63 | } | ||
| 64 | |||
| 65 | img[src$="md-center"] { | ||
| 66 | display: block; | ||
| 67 | margin: 0 auto; | ||
| 68 | } | ||
| 69 | |||
| 70 | img[src$="md-left"] { | ||
| 71 | display: block; | ||
| 72 | margin: 0 auto; | ||
| 73 | } | ||
| 74 | |||
| 75 | img[src$="md-right"] { | ||
| 76 | display: block; | ||
| 77 | margin: 0 auto; | ||
| 78 | } | ||
| 79 | |||
| 37 | </style> | 80 | </style> |
| 38 | 81 | ||
| 39 | </body> | 82 | </body> |
diff --git a/slides/example/slides.md b/slides/example/slides.md index 3fd92cd..457ba12 100644 --- a/slides/example/slides.md +++ b/slides/example/slides.md | |||
| @@ -7,11 +7,36 @@ Couple of example slides to test | |||
| 7 | 7 | ||
| 8 |  | 8 |  |
| 9 | 9 | ||
| 10 | |||
| 11 | --- | ||
| 12 | |||
| 13 | ## Math | ||
| 14 | |||
| 15 | $$ \large{ \mathbb{R}^2 ∈ \vec{a} \bar{a} } $$ | ||
| 16 | $$ \large{ e^{i\pi} + 1 = 0 } $$ | ||
| 17 | $$ \large{ x = {-b \pm \sqrt{b^2-4ac} \over 2a} } $$ | ||
| 18 | |||
| 19 | |||
| 20 | $$ e^{i\pi} + 1 = 0 $$ | ||
| 21 | |||
| 22 | $$ \large{ \sum_{i=0}^n i^2 = \frac{(n^2+n)(2n+1)}{6} } $$ | ||
| 23 | |||
| 24 | $$ \large{ ABCDEFGHIJKLMNOPQRSTUVXYZ } $$ | ||
| 25 | |||
| 10 | --- | 26 | --- |
| 11 | 27 | ||
| 12 | ## Image | 28 | ## Image |
| 13 | 29 | ||
| 14 |  | 30 |  |
| 31 | |||
| 32 | |||
| 33 | --- | ||
| 34 | |||
| 35 | ## Lists | ||
| 36 | |||
| 37 | - Couple of example slides to test | ||
| 38 | - Couple of example slides to test | ||
| 39 | - Couple of example slides to test | ||
| 15 | 40 | ||
| 16 | --- | 41 | --- |
| 17 | 42 | ||
