Skip to content

Instantly share code, notes, and snippets.

View rosenbergm's full-sized avatar
🤪
goog

Martin Rosenberg rosenbergm

🤪
goog
View GitHub Profile
@ceving
ceving / Web Component for Copyright Years.md
Last active May 27, 2024 22:58
Web Component for Copyright Years
@ttesmer
ttesmer / AD.hs
Last active June 7, 2024 03:56
Automatic Differentiation in 38 lines of Haskell using Operator Overloading and Dual Numbers. Inspired by conal.net/papers/beautiful-differentiation
{-# LANGUAGE TypeSynonymInstances #-}
data Dual d = D Float d deriving Show
type Float' = Float
diff :: (Dual Float' -> Dual Float') -> Float -> Float'
diff f x = y'
where D y y' = f (D x 1)
class VectorSpace v where
zero :: v
@NickMcSweeney
NickMcSweeney / postgresql_plus_arch-linux.md
Last active July 18, 2024 16:10
Getting postgresql running on Arch Linux

Setup Postgresql

run postgresql with systemctl

Install postgres

latest

sudo pacman -S postgresql

specific version

find version & build from source