Skip to content

Instantly share code, notes, and snippets.

@ArooBaito
ArooBaito / Chicken-Scheme.scm
Last active June 17, 2023 09:34
Solutions to common problems for setting up Chicken Scheme on Guix and Windows
;; GUIX WSL
;; When chicken-installing an egg: "error: linux/errno.h - No such file or directory"
;; Solution: 'guix install glibc' then restart the system.
;; Source: https://www.mail-archive.com/help-guix@gnu.org/msg11969.html
;; If running Guix via WSL, restart the system by doing
;; 'wsl -d guix --shutdown', then re-run your guix-init.sh with
;; wsl.exe -d guix /bin/busybox sh -c "/mnt/c/sys/misc/guix-init.sh"
;; See https://gist.github.com/vldn-dev/de379bf81a80ff0a53cd851bcc3bbff2 for installing Guix on WSL.
@ArooBaito
ArooBaito / webhook.scm
Last active August 7, 2021 20:35
Minimal Discord http-post requests from various Scheme implementations
;; Documentation on http post requests is a lot of guess-work in certain Scheme implementations.
;; To save some frustration, here is a compilation of examples on how to get a Discord
;; webhook bot to say a simple message from the various Schemes using default libraries
;; To the right is also the command to connect Emacs using inferior Scheme
;; BiwaScheme [browser] (setq scheme-program-name "shamisen-emacs") [see biwa-shamisen]
(http-post "https://discord.com/api/webhooks/[your info here]"
'(("content" . "Hello from BiwaScheme!")))
;; BiwaScheme [node] [not implemented] (setq scheme-program-name "biwas")