Default keyboard shortcuts for Ghostty terminal emulator. Platform-specific differences are noted where applicable.
| Action | Windows/Linux | macOS |
|---|---|---|
| New window | Ctrl+Shift+N | Cmd+N |
| Close window | Alt+F4 | Cmd+Shift+W |
| FROM python:3.6-alpine | |
| # Opted for alpine to get a lean docker image as possible | |
| RUN apk add --no-cache openssl | |
| ENV DOCKERIZE_VERSION v0.6.1 | |
| RUN wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-alpine-linux-amd64-$DOCKERIZE_VERSION.tar.gz \ | |
| && tar -C /usr/local/bin -xzvf dockerize-alpine-linux-amd64-$DOCKERIZE_VERSION.tar.gz \ | |
| && rm dockerize-alpine-linux-amd64-$DOCKERIZE_VERSION.tar.gz | |
| # Python deps for alpine |
GitHub supports several lightweight markup languages for documentation; the most popular ones (generally, not just at GitHub) are Markdown and reStructuredText. Markdown is sometimes considered easier to use, and is often preferred when the purpose is simply to generate HTML. On the other hand, reStructuredText is more extensible and powerful, with native support (not just embedded HTML) for tables, as well as things like automatic generation of tables of contents.
| # Color palettes that actually look good from 1 .. 12 colors | |
| # Taken from: https://blog.graphiq.com/finding-the-right-color-palettes-for-data-visualizations-fcd4e707a283 | |
| graphiq <- function (n, option = 'warm') { | |
| if (n < 1 || n > 12) stop('colors only defined for n = 1..12'); | |
| if (option == 'warm') { | |
| return(switch(n, | |
| c("#FDB25F"), | |
| c("#FFC96B", "#F47942"), | |
| c("#FFC96B", "#F47942", "#AB412C"), | |
| c("#FFD773", "#F99851", "#EF5833", "#923E2D"), |