From 98e3c1b60ea272450c3b9d17259af63ca1f3b5d6 Mon Sep 17 00:00:00 2001 From: Orestis <orestis.malaspinas@pm.me> Date: Tue, 20 Sep 2022 11:33:26 +0200 Subject: [PATCH] added first slides --- slides/.gitignore | 1 + slides/Makefile | 53 ++++++++++ slides/intro.md | 108 ++++++++++++++++++++ slides/metadata.yaml | 9 ++ slides/my_highlight.theme | 204 ++++++++++++++++++++++++++++++++++++++ 5 files changed, 375 insertions(+) create mode 100644 slides/.gitignore create mode 100644 slides/Makefile create mode 100644 slides/intro.md create mode 100644 slides/metadata.yaml create mode 100644 slides/my_highlight.theme diff --git a/slides/.gitignore b/slides/.gitignore new file mode 100644 index 0000000..91e17a1 --- /dev/null +++ b/slides/.gitignore @@ -0,0 +1 @@ +mermaid-filter.err diff --git a/slides/Makefile b/slides/Makefile new file mode 100644 index 0000000..ceb6a2b --- /dev/null +++ b/slides/Makefile @@ -0,0 +1,53 @@ +PDFOPTIONS = -t beamer +PDFOPTIONS += -F mermaid-filter +PDFOPTIONS += --highlight-style my_highlight.theme +PDFOPTIONS += --pdf-engine pdflatex +PDFOPTIONS += -V theme:metropolis +PDFOPTIONS += -V themeoptions:numbering=none -V themeoptions:progressbar=foot +# PDFOPTIONS += -V fontsize=smaller +PDFOPTIONS += -V urlcolor=blue + +REVEALOPTIONS = -t revealjs +REVEALOPTIONS += -F mermaid-filter +REVEALOPTIONS += --self-contained +REVEALOPTIONS += -V revealjs-url=../slides_2020/reveal.js +REVEALOPTIONS += -V theme=white +REVEALOPTIONS += -V width=1920 +REVEALOPTIONS += -V margin=0 +REVEALOPTIONS += --slide-level=1 + +MD=$(wildcard *.md) # Tous les fichiers .md +HTML=$(MD:%.md=%.html) # Pour les fichier html on transforme .md -> .html +PDF=$(MD:%.md=%.pdf) # Pour les fichier pdf on transforme .md -> .pdf +MARKDOWN=$(MD:%.md=%.markdown) # Pour les fichier markdown on transforme .md -> .markdown + +all: $(PDF) $(HTML) # La cible par défaut (all) exécute les cibles %.html et %.pdf +# all: $(PDF) # La cible par défaut (all) exécute les cibles %.html et %.pdf + +markdown: $(MARKDOWN) # La markdown les cibles %.markdown + +%.pdf: %.md metadata.yaml # %.pdf (chaque fichier %.md génère un fichier avec le même nom mais l'extension .pdf et la dépendance metadata.yaml) + pandoc -s $(OPTIONS) $(PDFOPTIONS) -o $@ $^ + +%.html: %.md metadata.yaml + pandoc -s $(OPTIONS) $(REVEALOPTIONS) -o $@ $^ + +%.markdown: %.md metadata.yaml yq + sed '1 { /^---/ { :a N; /\n---/! ba; d} }' $< > no_header + grep -v -F -x -f no_header $< > header.yaml + echo "---" > tmp.yaml + ./yq_linux_amd64 merge metadata.yaml header.yaml >> tmp.yaml + cat tmp.yaml no_header > $@ + rm no_header header.yaml tmp.yaml + +yq: # On peut même télécharger un petit programme avec notre makefile + wget -nc https://github.com/mikefarah/yq/releases/download/3.4.1/yq_linux_amd64 + chmod "u+x" yq_linux_amd64 + +deploy: all + mkdir -p prog_seq_c_cours + cp *.pdf prog_seq_c_cours + cp *.html prog_seq_c_cours + +clean: + rm -f *.pdf *.html *.markdown yq_linux_amd64* diff --git a/slides/intro.md b/slides/intro.md new file mode 100644 index 0000000..616a424 --- /dev/null +++ b/slides/intro.md @@ -0,0 +1,108 @@ +--- +title: Introduction générale +date: 2022-09-20 +patat: + wrap: true + margins: + left: 10 + right: 10 +... + +# La hotline + +Nom Mél Bureau +-------------------- ------------------------------ -------------------- +Kevin Heirich kevin.heirich@hesge.ch A403 +Michaël El Kharroubi michael.el-kharroubi@hesge.ch A403 +Paul Albuquerque paul.albuquerque@hesge.ch B410 +Orestis Malaspinas orestis.malaspinas@hesge.ch A401 +-------------------- ------------------------------ -------------------- + +Utilisez le libre service (pas encore commencé): + +* lundi: 12h-13h, mecredi: 12h-13h; +* jeudi: 13h-14h, vendredi: 17h-18h. + + +# Communication + +Tout le contenu de ce qu'on raconte se trouve sur cyberlearn: + +- Algorithmes et structures de données + - <https://cyberlearn.hes-so.ch/course/view.php?id=13941> + - Clé d'inscription: algo_2021_22 + +- Programmation Sequentielle en C + - <https://cyberlearn.hes-so.ch/course/view.php?id=12399> + - Clé d'inscription: prog_seq_2021_22 +* Espace de discussion + [Matrix](https://matrix.to/#/!aKYVlcclmPGYXQFxAK:matrix.org?via=matrix.org), + installez [element.io](https://element.io). + + {width=20%} + +# Organisation du cours (1/3) + +## But: Illustration des concepts vus au cours d'algorithmique + +- Salle A501-2 pour la "théorie" (présentation langage et TPs). +- Salles A406-A432-A433 pour la "pratique". + +## Le bâton + +- Présence en cours **obligatoire** (13h-16h45 tous les mercredis). + +## La carotte + +- Rare cours d'informatique de première. +- Travaux pratiques amusants et stimulants. + +# Organisation du cours (2/3) + +- Travaux pratiques à faire en C. +- Chaque séance est un nouveau travail pratique (typiquement d0une durée d'une + séance). +- Vous aurez à utiliser `git` sur <https://gitedu.hesge.ch/>. +- **Utilisez uniquement Linux** (dual boot sur vos portables). +- Les jeux vidéos sont pas une excuse pour pas avoir de linux[^1]. + +[^1]: [80 Percent of Steam's Top 100 Games Run 'Nearly Flawlessly' on Linux](https://www.tomshardware.com/news/80-percent-of-steam-games-run-on-linux). + +# Organisation du cours (3/3) + +- Les cours "théoriques" seront streamés sur <https://bbb.hepiapp.ch/b/ore-xff-hkz-poh>. +- Il y a un certain nombre de ressources se trouvant sur <https://malaspinas.academy>. +- Mon bureau est toujours ouvert (tapez *assez fort* sur la porte). +- N'hésitez pas à utiliser le salon *Element*. + +# Évaluations + +## 1er semestre deux examens sur machine + +- Seul devant votre ordinateur: +- Avec à disposition le manuel du C. + +## 2e semestre + +- on verra au deuxième semestre + + +# Sondage: expérience de programmation + +## [Sondage: expérience de linux](https://cyberlearn.hes-so.ch/mod/evoting/view.php?id=1291283) + +## [Sondage: expérience de programmation](https://cyberlearn.hes-so.ch/mod/evoting/view.php?id=1035242) + +**Installez un lecteur de QR code s'il-vous-plaît.** + +# Questions? + +- N'hésitez pas à poser des *questions*, nous sommes là pour ça! [^2] +- Ne restez pas coincés pendant des jours sur un problème. +- Utilisez le *libre-service*! +- N'hésitez pas à faire des *retours*: *négatifs* ou *positifs* (évaluations des cours, ou au cours de discussions). +- Il est très tentant de faire les TPs en groupe, mais il est **primordial** de programmer vous-mêmes (c'est comme apprendre une langue)! + +[^2]: Chaque étudiant·e·s a un quota de 1 question par semestre. + + diff --git a/slides/metadata.yaml b/slides/metadata.yaml new file mode 100644 index 0000000..57bf5e2 --- /dev/null +++ b/slides/metadata.yaml @@ -0,0 +1,9 @@ +--- +subtitle: "Programmation séquentielle en C, 2022-2023" +author: "Orestis Malaspinas (A401)" +institute: "Informatique et Systèmes de Communication, HEPIA" +lang: fr-CH +revealjs-url: /reveal.js +mathjaxurl: "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS_HTML" +--- + diff --git a/slides/my_highlight.theme b/slides/my_highlight.theme new file mode 100644 index 0000000..1d80b47 --- /dev/null +++ b/slides/my_highlight.theme @@ -0,0 +1,204 @@ +{ + "text-color": null, + "background-color": "#f0f0f0", + "line-number-color": "#aaaaaa", + "line-number-background-color": null, + "text-styles": { + "Other": { + "text-color": "#8f5902", + "background-color": null, + "bold": false, + "italic": false, + "underline": false + }, + "Attribute": { + "text-color": "#c4a000", + "background-color": null, + "bold": false, + "italic": false, + "underline": false + }, + "SpecialString": { + "text-color": "#4e9a06", + "background-color": null, + "bold": false, + "italic": false, + "underline": false + }, + "Annotation": { + "text-color": "#8f5902", + "background-color": null, + "bold": true, + "italic": true, + "underline": false + }, + "Function": { + "text-color": "#000000", + "background-color": null, + "bold": false, + "italic": false, + "underline": false + }, + "String": { + "text-color": "#4e9a06", + "background-color": null, + "bold": false, + "italic": false, + "underline": false + }, + "ControlFlow": { + "text-color": "#204a87", + "background-color": null, + "bold": true, + "italic": false, + "underline": false + }, + "Operator": { + "text-color": "#ce5c00", + "background-color": null, + "bold": true, + "italic": false, + "underline": false + }, + "Error": { + "text-color": "#a40000", + "background-color": null, + "bold": true, + "italic": false, + "underline": false + }, + "BaseN": { + "text-color": "#0000cf", + "background-color": null, + "bold": false, + "italic": false, + "underline": false + }, + "Alert": { + "text-color": "#ef2929", + "background-color": null, + "bold": false, + "italic": false, + "underline": false + }, + "Variable": { + "text-color": "#000000", + "background-color": null, + "bold": false, + "italic": false, + "underline": false + }, + "Extension": { + "text-color": null, + "background-color": null, + "bold": false, + "italic": false, + "underline": false + }, + "Preprocessor": { + "text-color": "#8f5902", + "background-color": null, + "bold": false, + "italic": true, + "underline": false + }, + "Information": { + "text-color": "#8f5902", + "background-color": null, + "bold": true, + "italic": true, + "underline": false + }, + "VerbatimString": { + "text-color": "#4e9a06", + "background-color": null, + "bold": false, + "italic": false, + "underline": false + }, + "Warning": { + "text-color": "#8f5902", + "background-color": null, + "bold": true, + "italic": true, + "underline": false + }, + "Documentation": { + "text-color": "#8f5902", + "background-color": null, + "bold": true, + "italic": true, + "underline": false + }, + "Import": { + "text-color": null, + "background-color": null, + "bold": false, + "italic": false, + "underline": false + }, + "Char": { + "text-color": "#4e9a06", + "background-color": null, + "bold": false, + "italic": false, + "underline": false + }, + "DataType": { + "text-color": "#204a87", + "background-color": null, + "bold": false, + "italic": false, + "underline": false + }, + "Float": { + "text-color": "#0000cf", + "background-color": null, + "bold": false, + "italic": false, + "underline": false + }, + "Comment": { + "text-color": "#8f5902", + "background-color": null, + "bold": false, + "italic": true, + "underline": false + }, + "CommentVar": { + "text-color": "#8f5902", + "background-color": null, + "bold": true, + "italic": true, + "underline": false + }, + "Constant": { + "text-color": "#000000", + "background-color": null, + "bold": false, + "italic": false, + "underline": false + }, + "SpecialChar": { + "text-color": "#000000", + "background-color": null, + "bold": false, + "italic": false, + "underline": false + }, + "DecVal": { + "text-color": "#0000cf", + "background-color": null, + "bold": false, + "italic": false, + "underline": false + }, + "Keyword": { + "text-color": "#204a87", + "background-color": null, + "bold": true, + "italic": false, + "underline": false + } + } +} -- GitLab