Skip to content

Instantly share code, notes, and snippets.

View mathisto's full-sized avatar
💭
💎 .hack// 💻

Matt Kelly mathisto

💭
💎 .hack// 💻
View GitHub Profile
@kmafeni04
kmafeni04 / lapis-new.sh
Last active May 6, 2024 13:03
Lapis project initialisation script
#!/bin/bash
echo "What would you like to name the project?:"
read -r project_name
mkdir "$project_name"
cd "$project_name" || return
luarocks init --lua-version=5.1
luarocks install lapis
luarocks install etlua
@ssrihari
ssrihari / clojure-learning-list.md
Last active May 6, 2024 16:25
An opinionated list of excellent Clojure learning materials

An opinionated list of excellent Clojure learning materials

These resources (articles, books, and videos) are useful when you're starting to learn the language, or when you're learning a specific part of the language. This an opinionated list, no doubt. I've compiled this list from writing and teaching Clojure over the last 10 years.

  • 🔴 Mandatory (for both beginners and intermediates)
  • 🟩 For beginners
  • 🟨 For intermediates

Table of contents

  1. Getting into the language
@mathisto
mathisto / clojure-beginner.md
Created July 5, 2022 03:50 — forked from yogthos/clojure-beginner.md
Clojure beginner resources

Introductory resources

@ryan-mooore
ryan-mooore / .skhdrc
Last active May 2, 2024 14:16 — forked from pkazmier/.skhdrc
# Updated from https://gist.github.com/pkazmier to support yabai
#
# The following configuration heavily leverages modal keymaps to minimize the
# pollution of global keybindings. In addition, the modal keymaps facilitate
# the consistent use of the same keybindings across different modes. For
# example, this configuration uses 'h', 'l', 'j', and 'k' to represent west,
# east, south, and north when: changing focus, warping windows, resizing
# windows, swapping windows, and moving floating windows. Those four keys are
# mapped differently depending on the current mode to provide a consistent user
# experience.
@jackrusher
jackrusher / seq-primer.clj
Created June 1, 2021 12:55
Condensed visual tutorial in #Bauhaus style for a subset of the #Clojure seq API (inspired by similar JS tweets)
(def ■ '■)
(def ▲ '▲)
(def ● '●)
(first [● ■ ▲]) ; ●
(second [● ■ ▲]) ; ■
(nth [● ■ ▲] 2) ; ▲
(rest [● ■ ▲]) ; (■ ▲)
(last [● ■ ▲]) ; ▲
(butlast [● ■ ▲]) ; (● ■)
@akagr
akagr / em.scpt
Last active November 17, 2023 10:34
MacOS launch helper to start emacs daemon or attach to one
-- ███████╗███╗░░░███╗░█████╗░░█████╗░░██████╗
-- ██╔════╝████╗░████║██╔══██╗██╔══██╗██╔════╝
-- █████╗░░██╔████╔██║███████║██║░░╚═╝╚█████╗░
-- ██╔══╝░░██║╚██╔╝██║██╔══██║██║░░██╗░╚═══██╗
-- ███████╗██║░╚═╝░██║██║░░██║╚█████╔╝██████╔╝
-- ╚══════╝╚═╝░░░░░╚═╝╚═╝░░╚═╝░╚════╝░╚═════╝░
--
-- Open this script with 'Script Editor' on MacOS, then save it
-- inside /Applications as an 'Application', not 'Script'.
@progfolio
progfolio / general-spacemacs.org
Last active March 20, 2024 17:04
Spacemacs-like menus using general.el

Spacemacs-like menus using general.el

Global keybindings

First, we define a global prefix key:

(general-create-definer global-definer
  :keymaps 'override
  :states  '(insert emacs normal hybrid motion visual operator)
  :prefix  "SPC"
  :non-normal-prefix "S-SPC")

Guix on WSL2

(updated versions of this document, plus more, live here)

This will show you how to get Guix running on WSL2.
We're going to go as "minimal" as possible, without starting off one of the readily available WSL2 distros.
Parts of this guide should help with understanding how to set up any custom distro on WSL, not just Guix.

Disclaimer: I'm a Guix nOOb! (hence going through the trouble of installing it on WSL2)

@yogthos
yogthos / clojure-beginner.md
Last active May 6, 2024 08:11
Clojure beginner resources

Introductory resources

@ErikSwan
ErikSwan / The American Inferno.md
Last active March 17, 2023 03:21
Text of "The American Inferno", a book by (fictional) author Evelyn Miller in the game Red Dead Redemption 2. Actual author unknown.

The American Inferno

Chapter II

In the end, what has a man but his thoughts? I would postulate further, what has a man to stand for, but his thoughts? His actions, perhaps? I know precious little of actions. Lions, donkeys, hyenas. They all act. So is that what we are? No. We are more and less than the beasts. We are thoughts. We are actions and the reflections upon those actions. Yet, we are also not merely reflections. We are not mirrors.

That is the preserve of spirits, of the gods. We are actions and the thoughts upon actions. Neither one nor other. We are free neither from action, nor from thought. Our humanity can only be understood if we embrace both the animal and the god within us. As humans, we must nourish both, yet America is a land of action. A place fixated not on ideas, not on the redemptive power of thought but on the obliteration of the intellect.

It is a place wherein mankind has attempted to deny half of his being, and in pursuing freedom has attempted to split himself. Much like the