Skip to content

Instantly share code, notes, and snippets.

@devmachiine
devmachiine / closurelist.js
Last active February 27, 2019 07:47
Linked list in javascript, as a single fold function.
// Aliases h=head, t=tail, f=function, z=zero (aka identity), n=node as right fold.
let n = (h,t) => (f,z) =>
t ? f(h, t(f,z)) : f(h,z)
let p = console.log
let list = n(4, n(3, n(2, n(1))))
let factorial4 = list((a,b) => a * b, 1)

Multiplication table

5 4 3 2 1
5 25 20 15 10 5
4 20 16 12 8 4
3 15 12 9 6 3
2 10 8 6 4 2
1 5 4 3 2 1
@devmachiine
devmachiine / nn.fs
Last active November 26, 2020 17:05
Neural network in F#
//------------------------------- Define Network -------------------------------
type Activation =
| Linear
| Binary
| Tanh
| ReLU
type Neuron = { Weights: float list; Bias: float }

download fedora Network Installer from https://alt.fedoraproject.org/

  • choose minimum install, nothing else
  • caveat! install via LAN, wifi might not work on reboot
  • only AFTER installing gnome-shell, does wifi work (NetworkManager(/-wifi) package probably)

confirm network works

ip link show
ping google.com
@devmachiine
devmachiine / fedora41.md
Created November 10, 2024 14:32
fedora41 changes

default gnome-terminal replaced by ptyxis


dnf5-plugin-automatic x86_64 5.2.6.2-1.fc41 fedora 130 k replacing dnf-automatic.noarch 4.21.1-1.fc40

 https://manpages.opensuse.org/Tumbleweed/dnf5-plugin-automatic/dnf5-automatic.8.en.html

--