Here are some "real world" (some day to day one-time tasks from my work) using Rebellion(pkg, github) an infrastructure library for Racket.
#lang typed/racket | |
(require (for-syntax syntax/parse)) | |
(require typed/net/url) | |
(require racket/control) | |
(require/typed xml | |
[xexpr->string (Xexpr -> String)]) | |
#lang racket | |
;; printing s-exps as DCS and TDCS, plus examples of what DCS and TDCS look like | |
(define (dcs l) | |
(cond ((pair? l) | |
(begin | |
(display ".") | |
(dcs (car l)) | |
(dcs (cdr l)))) |
let cache = new Map(); | |
let pending = new Map(); | |
function fetchTextSync(url) { | |
if (cache.has(url)) { | |
return cache.get(url); | |
} | |
if (pending.has(url)) { | |
throw pending.get(url); | |
} |
#lang racket/base | |
(require racket/format | |
racket/list | |
racket/match | |
racket/trace) | |
(provide (all-defined-out) | |
(all-from-out racket/trace)) |
module Main where | |
-- | JSON is an incredibly simple format. Even its lists are untyped. | |
-- | As with all languages, functional programming encourages us to | |
-- | make a domain-specific language (or DSL) to capture the "ideas" | |
-- | of the language, which we can then use to talk about its content. | |
-- | In this little snippet, we'll build a JSON DSL, transform it into | |
-- | a recursive structure, and then use that result to generate some |
Last updated March 13, 2024
This Gist explains how to sign commits using gpg in a step-by-step fashion. Previously, krypt.co was heavily mentioned, but I've only recently learned they were acquired by Akamai and no longer update their previous free products. Those mentions have been removed.
Additionally, 1Password now supports signing Git commits with SSH keys and makes it pretty easy-plus you can easily configure Git Tower to use it for both signing and ssh.
For using a GUI-based GIT tool such as Tower or Github Desktop, follow the steps here for signing your commits with GPG.
I am going to have a look at what William Byrd presented as The most beautiful program ever written.
Beauty here refers to computer programs, specifically about Lisp. There might be errors as this is something I wrote to make sense of that interpreter, proceed at your own risk.
Thanks a lot to Carl J. Factora for the help.
(setenv "LANG" "en_US.UTF-8") | |
(setenv "LC_ALL" "en_US.UTF-8") | |
(prefer-coding-system 'utf-8) | |
(set-language-environment "UTF-8") | |
;; slime setup | |
(use-package slime | |
:init | |
(load (expand-file-name "~/quicklisp/slime-helper.el")) | |
:config |
It's now here, in The Programmer's Compendium. The content is the same as before, but being part of the compendium means that it's actively maintained.