Un petit jeu d'aventures fantastique
Vous aurez besoin de : 1 jeu de dés polyhédriques (d4, d6, d8, d10, d12, d20).
Comment jouer ? Choisissez un personnage, communiquez avec précision, soyez de bons camarades de jeu.
Personnages :
| # A "n-sided dice" function | |
| D ← ⌊+1×⚂ | |
| # D6, D20... | |
| D20 | |
| D6 | |
| D12 | |
| D7 |
| import random | |
| from time import sleep | |
| def answer(): | |
| return random.choice([ | |
| "No, I don't want to say anything about that!", | |
| "There's no need asking, you know the answer.", | |
| "I'm just a computer program, nothing more…", | |
| "I'm not authorized to tell you.", |
| [git_status] | |
| format = "($conflicted$staged$modified$renamed$deleted$untracked$stashed$ahead_behind(fg:$style))" | |
| conflicted = "[✖ ](bg:52 fg:white)[ ${count} ](bg:52 fg:white)" | |
| staged = "[ $count ](green)" | |
| modified = "[✚ ${count} ](208)" | |
| renamed = "[ ${count} ](148)" | |
| deleted = "[ ${count} ](fg:#cb4b16)" | |
| untracked = "[…${count} ](117)" | |
| stashed = "[ ${count} ](bg:darkblue fg:yellow)" | |
| ahead = "[ ${count} ](214)" |
| #let translations(english, german) = grid( | |
| columns: (1fr, 1fr), | |
| column-gutter: 1em, | |
| text(lang: "en", english), | |
| text(lang: "de", german), | |
| ) | |
| #translations[ | |
| The quick brown fox jumps over the lazy dog. | |
| ][ |
| #import "names.typ": homme, village | |
| Il était une fois l'histoire de #homme, qui habitait le village de #village. |
| #!/usr/bin/env python3 | |
| """ | |
| A case-insensitive git search tool. | |
| This Python script emulates the following shell command:: | |
| git grep -i term1 [ | grep -i term2 [ | grep -i term3 ] ...] | |
| I was unable to do it using bash, so I made it in Python. |
| URL=https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/4.5_day.geojson | |
| URL=https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/2.5_day.geojson | |
| URL=https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/2.5_week.geojson | |
| curl $URL | jq '.features[] | |
| | select( .properties.place | contains("Iceland")) | |
| | { | |
| timestamp: .properties.time | (. / 1000 | strftime("%Y-%m-%d %R")), | |
| mag: .properties.mag, |
| """ | |
| Compute and display the Earth-Mars distance in light-seconds, light-minutes | |
| and kilometers. | |
| The easiest way is to install both ``skyfield`` & ``skyfield-data`` to compute | |
| this: | |
| $ pip install skyfield skyfield-data | |
| You can also install `skyfield` only, but it'll force you to download the |