Skip to content

Instantly share code, notes, and snippets.

View fdietze's full-sized avatar
🌴

Felix Dietze fdietze

🌴
View GitHub Profile
@fdietze
fdietze / trans-cached.sh
Last active February 6, 2024 02:06
Cache `trans` translation results in sqlite
#!/usr/bin/env bash
set -Eeuo pipefail # https://vaneyckt.io/posts/safer_bash_scripts_with_set_euxo_pipefail/#:~:text=set%20%2Du,is%20often%20highly%20desirable%20behavior.
shopt -s expand_aliases
SOURCE_LANG=$1
TARGET_LANG=$2
TEXT=$3
ENGINE=${4-google}
CACHEFILE="$HOME/.cache/trans_cache.sqlite"
@fdietze
fdietze / readme.md
Last active June 20, 2018 07:02
Simple Introduction to Programming

Simple Introduction to Programming

Principles for lowering entry barriers

Don't introduce new domains

Use commonly familiar ones, which do not require a math background. Like:

  • Text and words
  • Simple Websites
  • Simple arithmetic

Keybase proof

I hereby claim:

  • I am fdietze on github.
  • I am dfx (https://keybase.io/dfx) on keybase.
  • I have a public key ASCH-3Vsscrwkc3Z4b806bLA25f1_LxgC4vOxztIrh7VOAo

To claim this, I am signing this object:

@fdietze
fdietze / Readme.md
Last active October 10, 2017 14:24
Functional Programming Insights

Jitpack

https://jitpack.io

For testing purposes, the easiest way to go is jitpack:

resolvers += "jitpack" at "https://jitpack.io"
libraryDependencies += "com.github.User" % "Repo" % "Tag"