Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 3 additions & 19 deletions courses/mi-pyt/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,28 +15,12 @@ <h2>Kurz MI-PYT</h2>
{% for lesson in plan %}
<div class="section-box" id="section{{ loop.index }}">
<h4 class="section-heading">
{% if 'date' in lesson %}
Lekce {{ loop.index }} - {{ lesson['name'] }}
{% else %}
{{ lesson['name'] }}
{% endif %}
{{ lesson['name'] }}
</h4>
{% if 'description' in lesson %}
<p class="section-info course-city-p">
{{ lesson['description'] }}
</p>
{% endif %}
{% for mat in lesson['materials'] %}
{% set done = mat.get('done', lesson.get('done', False)) %}
{% set done_class = 'section-done' if done else 'section-todo' %}
<div class="section-info">
{% set icon_class = 'glyphicon-pencil' %}
<span class="glyphicon {{ icon_class }} section-icon"></span>
{% if 'link' in mat %}
<a href="{{ lection_url('mi-pyt', mat['link']) }}">{{ mat['name'] }}</a>
{% else %}
{{ mat['name'] }}
{% endif %}
<span class="glyphicon {{ 'glyphicon-pencil' }} section-icon"></span>
<a href="{{ lesson_url(names.get(mat['link'])[0], mat['link'].split('/')[-1]) }}">{{ names.get(mat['link'])[1] }}</a>
</div>
{% endfor %}
</div>
Expand Down
59 changes: 12 additions & 47 deletions courses/mi-pyt/plan.yml
Original file line number Diff line number Diff line change
@@ -1,49 +1,14 @@
- name: Lekce
materials:
- name: Requests a click
type: lesson
link: 01-requests-click

- name: Flask
type: lesson
link: 02-flask

- name: Moduly
type: lesson
link: 03-moduly

- name: Testování
type: lesson
link: 04-testovani

- name: Dokumentace
type: lesson
link: 05-dokumentace

- name: Pandas
type: lesson
link: 06-pandas

- name: Numpy
type: lesson
link: 07-numpy

- name: Cython
type: lesson
link: 08-cython

- name: GUI v Pythonu
type: lesson
link: 09-pyqt

- name: Generátory a AsyncIO
type: lesson
link: 10-async

- name: Magie
type: lesson
link: 11-magie

- name: MicroPython
type: lesson
link: 12-micropython
- link: 01-requests-click
- link: 02-flask
- link: 03-moduly
- link: 04-testovani
- link: 05-dokumentace
- link: 06-pandas
- link: 07-numpy
- link: 08-cython
- link: 09-pyqt
- link: 10-async
- link: 11-magie
- link: 12-micropython
2 changes: 1 addition & 1 deletion courses/pyladies/classes/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ <h1>Třídy</h1>
</p>
<p>
Tady se musím omluvit:
<a href="{{ lection('functions') }}">materiály k třetímu srazu</a>
<a href="{{ lesson('functions') }}">materiály k třetímu srazu</a>
tak trochu lhaly. Funkce <code>str</code>,
<code>int</code>, <code>float</code> apod. totiž vůbec
nejsou funkce – jsou to právě třídy.
Expand Down
2 changes: 1 addition & 1 deletion courses/pyladies/cmdline/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ <h2>Shrnutí</h2>
pro dnešek nám ale budou stačit tyhle.
Jen jeden ještě přidáme – příkaz <code>python</code>.
</p>
<p>Nejdřív ho ale musíme <a href="{{ lection('install') }}">nainstalovat</a>.</p>
<p>Nejdřív ho ale musíme <a href="{{ lesson('install') }}">nainstalovat</a>.</p>
</div>
</section>
</div>
Expand Down
8 changes: 4 additions & 4 deletions courses/pyladies/git/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ <h1>Git</h1>
<div class="note">
Budeme hodně pracovat s příkazovou řádkou.
Jestli se s ní ještě nekamarádíš, koukni se na
<a href="{{ lection('cmdline') }}">úvod</a>.
<a href="{{ lesson('cmdline') }}">úvod</a>.
<br>
Nezapomeň: <code>$</code> na začátku se nepíše;
je tu proto, aby šlo poznat že jde o příkaz.
Expand All @@ -68,7 +68,7 @@ <h1>Git</h1>
<h2>Instalace</h2>
<div>
Popis instalace Gitu najdeš
<a href="{{ lection('install_git') }}">zde</a>.
<a href="{{ lesson('install_git') }}">zde</a>.
Jestli jsi instalaci přeskočila, projdi si ji teď.
</div>
</section>
Expand Down Expand Up @@ -177,7 +177,7 @@ <h2>První revize</h2>
Jak na editory?
<p>
Na Windows, máš-li
<a href="{{ lection('install_git') }}">správně nastavený Git</a>,
<a href="{{ lesson('install_git') }}">správně nastavený Git</a>,
se použije Poznámkový blok (Notepad) – stačí něco
napsat, uložit (<kbd>Ctrl</kbd>+<kbd>S</kbd>) a zavřít
(<kbd>Alt</kbd>+<kbd>F4</kbd>).
Expand Down Expand Up @@ -509,7 +509,7 @@ <h2>Závěr</h2>
Zbyl-li čas, můžeme se podívat na další možnosti Gitu:
<ul>
<li>
<a href="{{ lection('branching') }}">Větvení</a> a vracení
<a href="{{ lesson('branching') }}">Větvení</a> a vracení
se ke starším verzím
</li>
<li>Sdílení a spolupráce</li>
Expand Down
2 changes: 1 addition & 1 deletion courses/pyladies/github-api/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<section class="col-lg-12">
<h1>Webové API</h1>
<div>
Jak už <a href="{{ lection('json') }}">bylo řečeno</a>, hlavní výhoda
Jak už <a href="{{ lesson('json') }}">bylo řečeno</a>, hlavní výhoda
formátu JSON je, že se na Internetu rozšířil nejvíc.
Pojďme toho využít!
</div>
Expand Down
22 changes: 3 additions & 19 deletions courses/pyladies/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,28 +15,12 @@ <h2>Začátečnický kurz PyLadies</h2>
{% for lesson in plan %}
<div class="section-box" id="section{{ loop.index }}">
<h4 class="section-heading">
{% if 'date' in lesson %}
Lekce {{ loop.index }} - {{ lesson['name'] }}
{% else %}
{{ lesson['name'] }}
{% endif %}
{{ lesson['name'] }}
</h4>
{% if 'description' in lesson %}
<p class="section-info course-city-p">
{{ lesson['description'] }}
</p>
{% endif %}
{% for mat in lesson['materials'] %}
{% set done = mat.get('done', lesson.get('done', False)) %}
{% set done_class = 'section-done' if done else 'section-todo' %}
<div class="section-info">
{% set icon_class = 'glyphicon-pencil' %}
<span class="glyphicon {{ icon_class }} section-icon"></span>
{% if 'link' in mat %}
<a href="{{ lection_url('pyladies', mat['link']) }}">{{ mat['name'] }}</a>
{% else %}
{{ mat['name'] }}
{% endif %}
<span class="glyphicon {{ 'glyphicon-pencil' }} section-icon"></span>
<a href="{{ lesson_url(names.get(mat['link'])[0], mat['link'].split('/')[-1]) }}">{{ names.get(mat['link'])[1] }}</a>
</div>
{% endfor %}
</div>
Expand Down
2 changes: 1 addition & 1 deletion courses/pyladies/inheritance/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ <h1>Polymorfismus</h1>
aby sis napsala vlastní zoo :)
</p>
<p>
Nebo <a href="{{ lection('asteroids') }}">hru</a>?
Nebo <a href="{{ lesson('asteroids') }}">hru</a>?
</p>
</section>
</div>
Expand Down
2 changes: 1 addition & 1 deletion courses/pyladies/lists/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ <h2>Vybírání ze seznamů</h2>
</pre>
<p>
Hranatými závorkami můžeme získávat podseznamy.
<a href="{{ lection('strings') + '#slicing-diagram'}}">
<a href="{{ lesson('strings') + '#slicing-diagram'}}">
Diagram z materiálů k řetězcům
</a>
ukazuje, jak u takového „sekání” číslovat:
Expand Down
139 changes: 43 additions & 96 deletions courses/pyladies/plan.yml
Original file line number Diff line number Diff line change
@@ -1,120 +1,67 @@
- name: Instalace
materials:
- name: Úvod do příkazové řádky
type: lesson
link: cmdline
- name: Instalace Pythonu a první krůčky s ním
type: lesson
link: install
- name: Instalace editoru
type: lesson
link: install_editor
- name: Instalace Gitu
type: lesson
link: install_git
- link: cmdline
- link: install
- link: install_editor
- link: install_git

- name: První program
materials:
- name: První program
type: lesson
link: hello-world
- name: Chybové hlášky a `print`
type: lesson
link: printing
- name: Proměnné
type: lesson
link: variables
- name: Porovnávání
type: lesson
link: comparisons
- name: "*Nebo* anebo *a*"
type: lesson
link: and-or
- link: hello-world
- link: printing
- link: variables
- link: comparisons
- link: and-or

- name: Cykly
materials:
- name: Funkce
type: lesson
link: functions
- name: Želva a cykly
type: lesson
link: turtle
- name: Cyklus `While`
type: lesson
link: while
- link: functions
- link: turtle
- link: while

- name: Správa zdrojového kódu
materials:
- name: Git
type: lesson
link: git
- name: Větvení v Gitu
type: lesson
link: branching
- link: git
- link: branching

- name: Funkce & Řetězce
materials:
- name: Vlastní funkce
type: lesson
link: own_functions
- name: Řetězce
type: lesson
link: strings
- link: own_functions
- link: strings

- name: Testování
materials:
- name: Výjimky
type: lesson
link: exceptions
- name: Moduly
type: lesson
link: modules
- name: Testování
type: lesson
link: testing
- name: Poznámka o importování
type: lesson
link: circular_imports
- link: exceptions
- link: modules
- link: testing
- link: circular_imports

- name: Spolupráce a Open-Source
materials:
- name: Spolupráce & Open Source
type: lesson
link: cooperation_and_OSS
- name: Soubory
type: lesson
link: files
- link: cooperation_and_OSS
- link: files

- name: Seznamy
materials:
- name: Seznamy
type: lesson
link: lists
- name: N-tice
type: lesson
link: tuples
- link: lists
- link: tuples

- name: Grafika
materials:
- name: Grafika
type: lesson
link: pyglet
- name: "Praktické cvičení: Pong"
type: lesson
link: pong
- link: pyglet
- link: pong

- name: Slovníky
materials:
- name: Slovníky
type: lesson
link: dicts
- name: JSON
type: lesson
link: json
- name: Github API
type: lesson
link: github-api
- link: dicts
- link: json
- link: github-api

- name: Třídy
materials:
- name: Třídy
type: lesson
link: classes
- name: Dědičnost
type: lesson
link: inheritance
- link: classes
- link: inheritance

- name: Závěrečný projekt
materials:
- name: Asteroids
type: lesson
link: asteroids
- link: asteroids
4 changes: 2 additions & 2 deletions courses/pyladies/pong/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ <h1>Pong</h1>
</div>
<div>
Dnes si prohloubíme znalosti programování grafických aplikací,
které jsme získali na <a href="{{ lection('pyglet') }}">minulé hodině</a>,
které jsme získali na <a href="{{ lesson('pyglet') }}">minulé hodině</a>,
na reálném problému.
</div>
<div>
Naprogramujeme si s pomocí knihovny <a href="{{ lection('pyglet') }}">Pyglet</a>
Naprogramujeme si s pomocí knihovny <a href="{{ lesson('pyglet') }}">Pyglet</a>
jednu z prvních videoher <a href="https://en.wikipedia.org/wiki/Pong">Pong</a>.
Pong vydala společnost <a href="https://en.wikipedia.org/wiki/Atari,_Inc.">Atari</a>
jako svůj první titul v roce 1972 a odstartovala tak boom herního průmyslu.
Expand Down
2 changes: 1 addition & 1 deletion courses/pyladies/pyglet/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ <h2>Pokračování příště</h2>
ale zkus si k němu sednout, a s pomocí komentářů
ho pochopit.
Kdyby komentáře nestačily, jsou k Pongu připravené
i <a href="{{ lection('pong') }}">podrobné materiály</a>.
i <a href="{{ lesson('pong') }}">podrobné materiály</a>.
</div>
<div>
A chceš-li se do Pygletu ponořit hlouběji,
Expand Down
Loading