Skip to content

Instantly share code, notes, and snippets.

Further Lisp compression tinkering. Basic idea: most languages optimize for sequence structure, which fits for procedural code:

Statement A modifies the environment
Statement B modifies the environment
Statement C uses the modified environment to produce value
...

But a more functional style tends to structure things as a nested recursive tree, with the right-most branch being the heaviest.

This file has been truncated, but you can view the full file.
https://libraryofbabel.info/book.cgi?p30tz828zdokepr66yhhsa65w4beqci5nd43zhm4snxwr7srjgl0ernbr38p04hqsbi9r7cul5339qk2ar6o9f6dc35erofggub7vm25c85c0ad0ceb8vyqn6awvyks6of10mzd754nep7e28s4glunyox41pwwlkra9xez5hkifa4muu8osv6gr4x9ji1q0ae2pw5b53vxzbgqtwskhc53tee76uhvsdr6qysldm2tmkvpx6zhrvhroredmvvufjqsq603imufo03yz8k9kwbq2r2av6gwjv0sy05wpvbn8sac2rtl2mzr1cw8tsuzqq4qqtmwcd3mc9amaud64k1m0tynxxruxu7tvnlk9jcu6axwkhea90so0z1rau8mypfbvuyfr88yt5iz3t5vo148eg154vhjdf1or1o4bjaqnq1hv3m541os5o9tc04ehxjplcw3b1h3qb1p5sawttrqbjx4rjox0vxcg37exq5xsxu6ockmffh7lprp5s38gz6t8y7cwtcg0frilqgo7u7utsgs6cwiyehk4rzqkmpheqtmw1coqhcvmgv7l2kyex3ow5uvi611e2rui2skrhpc594timzlhov5t0g8c4a5onf6vyssqwl5b1hlgtn82navy9famxhuls4x6bzz36pcz5whri04qqzobxwvw68aqg1zkaf1ni7vqj3jap6vpff0cw8yaoufklnpm1uy5p8oyddx59t48e7171oh79wjrllot7yysa0mckoz9rmrwfjhtn76qgu00o80x9w6u33a4zt6dtqtbjjg1l8zrik38b2kx8ali05fzkzee1z2aujte6alofw3c1et5qdql34lk2qf3nxesw21ig2047fzqu0wonx2bmqgqthqi2u66gq8vrsyh8um8h0bqadkgeczpholj87mvpfaq4n1aiyd6hvr87xqn8pdfodrb51y8rwuu182mdxwyrp2q5pxstb99r4i
@WildXav
WildXav / gtk.css
Last active July 12, 2021 19:22
Phosh lockscreen/app-grid background customization
/*
* ~/.config/gtk-3.0/gtk.css
* Restart phosh using "sudo systemctl restart phosh"
* Background image opacity is currently set to 30%. Decrease 0.7 values to increase background visibility.
*/
phosh-app-grid {
background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
url('file:///home/lowkey/Pictures/background.jpg');
background-size: cover;
@abcdw
abcdw / nix vs guix.org
Last active February 17, 2024 14:21
nix vs guix.org

Nix vs Guix

These are notes to the stream: https://youtu.be/S9V-pcTrdL8

Some notes

  • We are not aware of a lot of GNU software available to us.
  • Seems that Guix more hacker-friendly/explorable.

General comparsion

DescriptionNixGuixComment
@Huy-Ngo
Huy-Ngo / questions.json
Last active November 14, 2020 02:35
OOAD Question bank practice
[
{
"q": "Which statement is true about an iterative development process?",
"a": {
"A": "Testing and integration take place in every iteration",
"B": "An iteration focuses on partial completion of selected use-case realizations.",
"C": "It encourages user feedback in later iterations",
"D": "It is based on functional decomposition of a system"
},
"correct": "A"
import trio
import weakref
import cachetools
# Note: this assumes you only have one trio thread running at once...
# In the unlikely event that you have multiple, you should put the locks and cache
# into thread-local or run-local storage.
def trio_lru_cache(fn):
cache = cachetools.LRUCache()
# Trick: this contains a lock for each unique cache key in use,
@romainl
romainl / Don't use Vim.md
Last active April 15, 2024 22:07
Don't use Vim for the wrong reasons

Don't use Vim

Don't do the crime, if you can't do the time.

-- Anthony Vincenzo "Tony" Baretta

Vim is an amazing text editor. I love it. Really, I wouldn't [organize][organize] a Vim advent calendar if I didn't. But, as amazing as it is, Vim is not for everyone. It can't solve all your problems, or be a TUI version of your favorite IDE, or make you a better programmer, or land you that dream job in the Bay Area. But Vim can help you be more mindful, focused, and efficient, as long as you approach it with the right mindset.

Don't get me wrong, I certainly welcome you to try Vim, but I'm not a proselyte. I don't thrive on newbies. I just want you to use the right tool for the job and not waste your—and anyone's—time on a fruitless quest.

@McSinyx
McSinyx / anon.pdf
Last active April 15, 2020 09:37
System Cascade Connection
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
{ nixpkgs ? import (import /home/doc/git/allvm-tools/nix/fetch-nixpkgs.nix) { }
}:
let
overlay = self: super: {
stdenv = super.overrideCC (nixpkgs.stdenv) (with nixpkgs;
wrapCCWith {
cc = wllvm;
extraBuildCommands = ''
echo CC=wllvm >> $out/nix-support/setup-hook
@adisbladis
adisbladis / podman-shell.nix
Last active April 29, 2024 14:50
Use podman within a nix-shell
{ pkgs ? import <nixpkgs> {} }:
let
# To use this shell.nix on NixOS your user needs to be configured as such:
# users.extraUsers.adisbladis = {
# subUidRanges = [{ startUid = 100000; count = 65536; }];
# subGidRanges = [{ startGid = 100000; count = 65536; }];
# };