Skip to content

Instantly share code, notes, and snippets.

View zemuldo's full-sized avatar
🇰🇪
Geeks don't sleep

Danstan Onyango zemuldo

🇰🇪
Geeks don't sleep
View GitHub Profile
@astutecat
astutecat / create-darwin-volume.sh
Last active September 16, 2024 12:44
Notes on setting up Nix on MacOS.
#!/bin/sh
set -e
root_disk() {
diskutil info -plist /
}
apfs_volumes_for() {
disk=$1
diskutil apfs list -plist "$disk"
@tomekowal
tomekowal / pure-impure.md
Last active August 12, 2020 10:05
Pure vs impure

Pure vs impure and why should I care?

Some of the most important advancements in programming came from adding restrictions to the way we program. Famous article by Edsger Dijkstra Go To Statement Considered Harmful shows how introducing one statement into programming language breaks many nice properties of that language. goto gives us freedom and solves couple of simple problems like breaking from nested loops easily, but it can make programs very hard to understand. This happens, because we cannot look at two pieces of code in spearation. The execution can jump to some other place in code or even worse: it can jump from other piece of code to here and We need to keep that in mind.