prez-ppp-2025

Slides de la présentation pour PPPiraterie - retour accueil

git clone git://bebou.netlib.re/prez-ppp-2025

Log | Files | Refs | README |

commit 29f3de44ac15549ed411f8c25ac7660d5fc47f62
parent 9b801346da5a2eccf617c496714ee41707f7133b
Auteurice: Arthur Pons <arthur.pons@unistra.fr>
Date:   Sat,  5 Apr 2025 10:27:36 +0200

Ajout du README et du script de navigation

Diffstat:
AREADME.md | 37+++++++++++++++++++++++++++++++++++++
Mprez.slides | 7++++---
Asynonyme-ui | 18++++++++++++++++++
3 files changed, 59 insertions(+), 3 deletions(-)

diff --git a/README.md b/README.md @@ -0,0 +1,37 @@ +# Dépôt pour la présentation PPP 2025 + +## The slides + +prez.slides are the slides content. It is a regular text file. If you want it +formatted like during the presentation you need vim and slides.vim + +http://git.bebou.netlib.re/slides.vim/log.html + +Alternatively you can see it online + + ssh guest@bebou.netlib.re -p1459 prez-ppp-2025 + +## The database + +You can download it in json : http://arthur.bebou.netlib.re/crisco-des/des.json.gz +or TSV : http://arthur.bebou.netlib.re/crisco-des/data + +You can query it online : + + echo "your word" | nc -N bebou.netlib.re 2222 + +## The UIs + +If you have `fzy` (apt install fzy on debian) you can "interactively" browse +the database using `synonyme-ui`. You can navigate the menu using the arrow +keys or typing the word you're looking for. You can end your search by pressing +the escape key. + + ./synonyme-ui + +If you have the TSV database locally in the folder from which you execute the +script it will use it. If you don't you'll need an internet connection and it +will fetch the data from the service hosted on bebou's server. + +The script is fairly simple, feel free to tinker with it ! + diff --git a/prez.slides b/prez.slides @@ -115,6 +115,7 @@ echo "s manger" | nc -N bebou.netlib.re 2222 › Thanks 🏴 -mail : arthur.pons@unistra.fr -git : http://git.bebou.netlib.re/prez-ppp-2025/log.html -ssh : ssh guest@bebou.netlib.re -p1459 prez-ppp-2025 +blog article : http://arthur.bebou.netlib.re/crisco-des +mail : arthur.pons@unistra.fr +slides git : http://git.bebou.netlib.re/prez-ppp-2025/log.html +ssh : ssh guest@bebou.netlib.re -p1459 prez-ppp-2025 diff --git a/synonyme-ui b/synonyme-ui @@ -0,0 +1,18 @@ +#! /bin/sh + +read -p "Mot : " mot +while [ -n "$mot" ] +do + oldmot=$mot + echo $oldmot | cut -f1 + if [ -f "data" ];then + line=$(grep "^$mot " data | cut -f2- | tr '; ' ' \n') + else + line=$(echo "synonyme $mot" | nc -N bebou.netlib.re 2222 | sed '1d') + fi + mot=$(echo "$line" | + column -ts' ' | + fzy | + sed -E 's, *[0-9]+,,' + ) +done