diff options
Diffstat (limited to 'learn')
| -rw-r--r-- | learn/python-0001.md | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/learn/python-0001.md b/learn/python-0001.md new file mode 100644 index 0000000..6ff91c9 --- /dev/null +++ b/learn/python-0001.md | |||
| @@ -0,0 +1,53 @@ | |||
| 1 | --- | ||
| 2 | layout: page | ||
| 3 | title: Learn Python by working on a project | ||
| 4 | description: Couple of observations regarding project management. | ||
| 5 | --- | ||
| 6 | |||
| 7 | Application will fetch and cache Flickr feed and in the second phase display these images on a webpage. | ||
| 8 | |||
| 9 | Categories: Python, Bottlepy, SQLite3, RSS | ||
| 10 | |||
| 11 | **Table of contents** | ||
| 12 | |||
| 13 | - [Prepare environment](#prepare-environment) | ||
| 14 | - [sdfsd](#sdfsd) | ||
| 15 | |||
| 16 | #### Prepare environment | ||
| 17 | |||
| 18 | Over the years I had privilege to work on some very. | ||
| 19 | |||
| 20 | ```go | ||
| 21 | package main | ||
| 22 | |||
| 23 | func dummy_benchmark() { | ||
| 24 | fmt.Println("sencond set ...") | ||
| 25 | for i := 0; i < 9182312232; i++ { | ||
| 26 | i *= 2 | ||
| 27 | i /= 2 | ||
| 28 | } | ||
| 29 | } | ||
| 30 | ``` | ||
| 31 | #### sdfsd | ||
| 32 | |||
| 33 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi mollis tempus sodales. Nulla sit amet laoreet ligula. Quisque fermentum auctor congue. Nulla dignissim enim neque, efficitur commodo enim condimentum iaculis. | ||
| 34 | |||
| 35 | ```css | ||
| 36 | body { | ||
| 37 | text-align: center; | ||
| 38 | } | ||
| 39 | ``` | ||
| 40 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi mollis tempus sodales. Nulla sit amet laoreet ligula. Quisque fermentum auctor congue. Nulla dignissim enim neque, efficitur commodo enim condimentum iaculis. | ||
| 41 | |||
| 42 | |||
| 43 | <script> | ||
| 44 | // auto encloses all code blocks into details in case of tutorials | ||
| 45 | document.querySelectorAll('*[class^="language-"]').forEach(function(snippet, idx) { | ||
| 46 | let details = document.createElement('details'); | ||
| 47 | let summary = document.createElement('summary'); | ||
| 48 | summary.innerText = 'Show solution'; | ||
| 49 | details.appendChild(summary); | ||
| 50 | details.appendChild(snippet.cloneNode(true)); | ||
| 51 | snippet.parentNode.replaceChild(details, snippet); | ||
| 52 | }); | ||
| 53 | </script> | ||
