Skip to content

Instantly share code, notes, and snippets.

View sorenvonsarvort's full-sized avatar

Sᴏʀᴇɴ ᴠᴏɴ Sᴀʀᴠᴏʀᴛ sorenvonsarvort

View GitHub Profile
@sorenvonsarvort
sorenvonsarvort / a-infinality-w10-config.sh
Last active June 2, 2023 22:41
windows-10-like-font-rendering-config-for-linux
# make sure You have installed the infinality patches
export INFINALITY_FT_FILTER_PARAMS="8 17 50 17 8"
export INFINALITY_FT_GRAYSCALE_FILTER_STRENGTH="0"
export INFINALITY_FT_FRINGE_FILTER_STRENGTH="55"
export INFINALITY_FT_AUTOHINT_HORIZONTAL_STEM_DARKEN_STRENGTH="0"
export INFINALITY_FT_AUTOHINT_VERTICAL_STEM_DARKEN_STRENGTH="0"
export INFINALITY_FT_WINDOWS_STYLE_SHARPENING_STRENGTH="20"
export INFINALITY_FT_CHROMEOS_STYLE_SHARPENING_STRENGTH="0"
export INFINALITY_FT_STEM_ALIGNMENT_STRENGTH="0"
@sorenvonsarvort
sorenvonsarvort / golang-1.13-will-support-generics.md
Last active March 28, 2021 15:43
golang-1.13-will-support-generics

Golang 1.13 Will Support Generics

Every developer knows generics support is the most wanted feature in any major programming language. A few months ago Rob Pike had already approved several Golang proposals, one of them included the new generics feature. This decision is made not only for engaging more developers to the community, but also for boosting existing projects and scaling their codebases.

https://go.googlesource.com/proposal/+/master/design/go2draft-contracts.md

According to it the generics in Golang are based on the contracts and have a pretty familiar syntax. Here are some examples: