Skip to content

Instantly share code, notes, and snippets.

View SequentialDesign's full-sized avatar

Daniel Alejandro Tapia SequentialDesign

View GitHub Profile
@rnwolf
rnwolf / spacemacs-keybindings.md
Last active September 16, 2025 05:21 — forked from kiambogo/spacemacs-keybindings
spacemacs keybindings that i need to learn
@panathea
panathea / README.md
Created June 22, 2017 15:16
Remove TypeRacer Input limit

This script removes the input length limit which can trip up Plover users.

Simply install the script into TamperMonkey (Chrome) or GreaseMonkey (Firefox) and get racing.

The script was created by community member nimble

(defun isearch-delete-me ()
(interactive)
(delete-char (- (length isearch-string))))
(define-key isearch-mode-map (kbd "<C-backspace>") 'isearch-delete-me)
;; An attempt at this Emacs SX question:
;; https://emacs.stackexchange.com/questions/10359/delete-portion-of-isearch-string-that-does-not-match-or-last-char-if-complete-m
(defun isearch-delete-something ()
"Delete non-matching text or the last character."
;; Mostly copied from `isearch-del-char' and Drew's answer on the page above
(interactive)
(if (= 0 (length isearch-string))
(ding)
(setq isearch-string
# adapted from https://gist.github.com/johdax/771943
# modified to work without creating new String methods
class StringDistance
def self.damerau_levenshtein(str1, str2)
d = Array.new(str1.size+1){Array.new(str2.size+1)}
for i in (0..str1.size)
d[i][0] = i
end
for j in (0..str2.size)
@pkgw
pkgw / partial .XCompose
Last active July 7, 2025 18:17
A fragment of a ~/.XCompose file that adds compose-key combinations for typing Greek letters, blackboard bold capitals, and a nonbreaking space.
# PKGW customizations
# Greek ambiguities: epsilon/eta, theta/tau, pi/phi/psi, omega/omicron
<Multi_key> <backslash> <comma> : " " U202F # thin nonbreaking space
<Multi_key> <g> <a> : "α"
<Multi_key> <g> <b> : "β"
<Multi_key> <g> <g> : "γ"
<Multi_key> <g> <d> : "δ"
<Multi_key> <g> <3> : "ε" # note!
@jackrusher
jackrusher / gist:5139396
Last active November 24, 2025 08:59
Hofstadter on Lisp: Atoms and Lists, re-printed in Metamagical Themas.

Hofstadter on Lisp

In the mid-80s, while reading through my roommate's collection of Scientific American back issues, I encountered this introduction to Lisp written by Douglas Hofstadter. I found it very charming at the time, and provide it here (somewhat illegally) for the edification of a new generation of Lispers.

In a testament to the timelessness of Lisp, you can still run all the examples below in emacs if you install these aliases:

(defalias 'plus #'+)
(defalias 'quotient #'/)
(defalias 'times #'*)
(defalias 'difference #'-)