Skip to content

Instantly share code, notes, and snippets.

View gdkrmr's full-sized avatar
🎯
Focusing

Guido Kraemer gdkrmr

🎯
Focusing
View GitHub Profile
@gdkrmr
gdkrmr / p620ubunturaid.md
Created April 30, 2021 16:01
Installing AMD RAID on a p620 after the fact

Some preliminary advice

How to make it work

@gdkrmr
gdkrmr / How to reproduce the issue.txt
Last active May 19, 2020 12:31
Reproduce non-working flycheck
Ok, here is how I can reproduce it from scratch, sorry that this is so complicated:
0) Download Julia 1.4 (https://julialang.org/downloads/) and put the executable in your path. I am using the generic linux binaries and symlink `/julia-1.4/bin/julia` to `~/bin/julia`
1) Clone some Julia project, e.g.
```
git clone https://github.com/gdkrmr/Base58.jl.git
```
2) clone `lsp-julia` recursively from `https://github.com/gdkrmr/lsp-julia.git`
```
@gdkrmr
gdkrmr / 2dcolorbar.jl
Created May 6, 2019 12:53
Create a bivariate color map after Teuling et al. (2011)
using Images, Interpolations
bar_corners(a) = [
RGB(0, 0.5, 1) RGB(1 - a, 0, 1 - a);
RGB(a, 1, a) RGB(1, 0.5, 0)
]
function color_bar(n, a)
aint = interpolate(bar_corners(a), BSpline(Linear()))
[aint(i, j) for i in range(1, 2, length = n), j in range(1, 2, length = n)]
@gdkrmr
gdkrmr / doom_fire.jl
Last active December 29, 2018 21:32
fire animation of Doom
# The fire animation of doom implemented in julia
# code inspired from http://fabiensanglard.net/doom_fire_psx/
using Images, ImageView, Colors
h, w = (200, 500)
pal = [
"#070707", "#1f0707", "#2f0f07", "#470f07",
"#571707", "#671f07", "#771f07", "#8f2707",