Fixing font smoothing in macOS
$ defaults -currentHost write -g AppleFontSmoothing -int 0
#lang racket | |
(require redex) | |
(define-term initial-board [[· · ◼︎ ◼︎ ◼︎ · ·] | |
[· · ◼︎ ◼︎ ◼︎ · ·] | |
[◼︎ ◼︎ ◼︎ ◼︎ ◼︎ ◼︎ ◼︎] | |
[◼︎ ◼︎ ◼︎ ◻︎ ◼︎ ◼︎ ◼︎] | |
[◼︎ ◼︎ ◼︎ ◼︎ ◼︎ ◼︎ ◼︎] | |
[· · ◼︎ ◼︎ ◼︎ · ·] |
#lang racket | |
; call/cc : ((α → β) → α) → α | |
; call/cc : ? | |
(+ 2 3) | |
(+ 2 (call/cc (λ (continuation) 3))) |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title>Hilbert</title> | |
</head> | |
<body> | |
<svg width="600" height="600" viewBox="0 0, 1 1"> |
#SingleInstance force | |
![:: | |
Send {“} | |
return | |
!+[:: | |
Send {”} | |
return |
const { Database, sql } = require("@leafac/sqlite"); | |
const database = new Database("my-application.db"); | |
const migrations = [ | |
() => { | |
database.execute( | |
sql` | |
CREATE TABLE "users" ( | |
"id" INTEGER PRIMARY KEY AUTOINCREMENT, |
Fixing font smoothing in macOS
$ defaults -currentHost write -g AppleFontSmoothing -int 0
References
hs.alert("Hammerspoon configuration loaded") | |
hs.hotkey.bind({"⌥", "⌃"}, "return", function() hs.reload() end) | |
hs.hotkey.bind({"⌥", "⌃"}, ",", | |
function() hs.execute([[code ~/.hammerspoon]], true) end) | |
hs.hotkey.bind({"⌥", "⌃"}, "space", function() hs.toggleConsole() end) | |
hs.hotkey.bind({"⌥", "⌃"}, "escape", function() | |
hs.osascript.applescript("beep") | |
hs.sound.getByName("Submarine"):play() | |
end) |