Skip to content

Instantly share code, notes, and snippets.

@johnmyleswhite
johnmyleswhite / primes.jl
Created November 15, 2022 00:28
Prime Sequence Generator
julia> import Printf: @printf
julia> f(x) = 1 / (x - floor(Int, x))
f (generic function with 1 method)
julia> function g(n, x₀ = 0.43233208718590286890)
x = x₀
for i in 1:n
x = f(x)
@printf("%d\t%s\n", i, x)
@Omerr
Omerr / git lol.md
Last active March 11, 2024 06:09
git lol - an alias to Git that shows the commit graph in a pretty format

log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit

To configure as an alias git lol:

git config --global alias.lol "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)&lt;%an&gt;%Creset' --abbrev-commit"