Skip to content

Commit

Permalink
postmortem
Browse files Browse the repository at this point in the history
  • Loading branch information
LoicGrobol committed Feb 13, 2024
1 parent 8edc8be commit 177de2a
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 11 deletions.
19 changes: 19 additions & 0 deletions slides/12-js/clickme.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Click me</title>
</head>

<body>
<input id="elem" type="button" value="Click me">
<script>
elem.onclick = function () {
alert('Thank you')
}
</script>
</body>

</html>
8 changes: 4 additions & 4 deletions slides/12-js/js.py.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jupyter:
extension: .md
format_name: markdown
format_version: '1.3'
jupytext_version: 1.14.4
jupytext_version: 1.16.1
kernelspec:
display_name: Python 3 (ipykernel)
language: python
Expand Down Expand Up @@ -217,9 +217,9 @@ Il y a deux façons de définir des fonctions en JavaScript :
```

```javascript
const getRectArea = function(width, height) {
(function(width, height) {
return width * height
}
})(15, 13)
```

- Les modernes fonctions fléchées
Expand Down Expand Up @@ -423,5 +423,5 @@ Pour le rendu, aller dans le dossier [apis](apis/) qui accompagne ce notebook, l
uvicorn spacy_html_api:app
```

puis aller à <http://localhost:8000/front/spacy_api.html>.
puis aller à <http://localhost:8000/front/spacy_form.html>.
<!-- #endregion -->
14 changes: 7 additions & 7 deletions slides/13-git/git.py.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jupyter:
extension: .md
format_name: markdown
format_version: '1.3'
jupytext_version: 1.14.4
jupytext_version: 1.16.1
kernelspec:
display_name: Python 3 (ipykernel)
language: python
Expand Down Expand Up @@ -181,8 +181,8 @@ diffs.
Ajoutons un peu de code à `projet.py`

```bash
echo "print('hello, world')" > project.py
python3 project.py
echo "print('hello, world')" > projet.py
python3 projet.py
git commit -am "make it do something"
```
<!-- #endregion -->
Expand All @@ -202,7 +202,7 @@ Malheur ! On a détruit le projet. Comment on le récupère ?

<!-- #region slideshow={"slide_type": "fragment"} -->
```bash
git checkout "project.py"
git checkout "projet.py"
ls
```
<!-- #endregion -->
Expand All @@ -213,7 +213,7 @@ ls
Faisons en vitesse quelques autres changements

```bash
echo "print('spam')" > project.py && git commit -am "add spam" && echo "print('ham')" > project.py && git commit -am "change to ham"
echo "print('spam')" > projet.py && git commit -am "add spam" && echo "print('ham')" > projet.py && git commit -am "change to ham"
```

Vérifiez l'historique avec `git log`
Expand Down Expand Up @@ -255,7 +255,7 @@ git checkout main
On peut aussi combiner les deux versions de `checkout`

```bash
git checkout a7b576b62accff1cec652f6a313e37ce784c8254 -- project.py
git checkout a7b576b62accff1cec652f6a313e37ce784c8254 -- projet.py
```
<!-- #endregion -->

Expand All @@ -276,7 +276,7 @@ En fait, quand on fait un commit, git n'enregistre pas tous les changements, il
Faites donc

```shell
git add project.py
git add projet.py
git commit -m "j'ai changé un truc"
```
<!-- #endregion -->
Expand Down

0 comments on commit 177de2a

Please sign in to comment.