Skip to content

Instantly share code, notes, and snippets.

Avatar

Felix Dietze fdietze

View GitHub Profile
@fdietze
fdietze / Readme.md
Last active Oct 10, 2017
Functional Programming Insights
View Readme.md
View keybase.md

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 Jun 20, 2018
Simple Introduction to Programming
View readme.md

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
View Sbt Sonatype Publishing.md

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"
@fdietze
fdietze / trans-cached.sh
Last active Nov 12, 2020
Cache `trans` translation results in sqlite
View trans-cached.sh
#!/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"