Skip to content

Instantly share code, notes, and snippets.

@brunobord
brunobord / roll-for-shoes.md
Last active December 3, 2023 07:01
Roll for shoes

taken from

The system

The minisystem goes like this:

  • Say what you do and roll a number of d6s.
  • If the sum of your roll is higher than the opposing roll (either another player or the DM), the thing you wanted to happen, happens.
  • The number of the d6s you roll is determined by the level of skill you have.
@brunobord
brunobord / translation.typ
Created December 1, 2023 15:35
Two-column translations with Typst
#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.
][
@brunobord
brunobord / main.typ
Created November 19, 2023 15:50
exemple de variabilisation
#import "names.typ": homme, village
Il était une fois l'histoire de #homme, qui habitait le village de #village.
@brunobord
brunobord / .gitignore
Last active June 8, 2023 21:50
Yet another Python-based RPN calculator
*.pyc
.pytest_cache/
.coverage
.tox/
@brunobord
brunobord / git-search
Last active November 10, 2022 21:15
Git case-insensitive search
@brunobord
brunobord / .gitignore
Last active November 9, 2022 20:02
Command Line Radioparadise Player
__pycache__/
@brunobord
brunobord / lipu-musi-pona.md
Last active July 16, 2022 20:37
lipu musi pona

lipu musi pona

lipu musi pona li musi tawa jan musi tu.

ona tu li wile jo e kiwen lili lon luka. nanpa pi kiwen lili li mute la musi ni li wile e tenpo mute.

sitelen lipu

sitelen li lon lipu selo wan:

@brunobord
brunobord / 1-darkweb.md
Last active March 11, 2021 08:56
Dark web

Un hack de Chthulhu Dark.

Dans ce jeu vous incarnez des "travailleurs du web" ou des "aventuriers du code". Votre Maître de jeu n'est autre que le "Chef de projet", qui définit vos tâches, décrit les différents événements (heureux ou fâcheux) qui émailleront votre vie professionnelle.

La section "Questions sans réponses" donnera au "Chef de Projet" des indications sur le contexte du jeu et sur son déroulement.

@brunobord
brunobord / iceland_quakes.sh
Last active March 1, 2021 22:38
Earthquakes / Iceland
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,
@brunobord
brunobord / earth_mars.py
Last active February 19, 2021 10:49
What's the distance (in light-seconds and light-minutes) from Earth to Mars?
"""
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