Welcome

Shad Gregory's Blog

Enrica Savigni on the Romantic Guitar

10/02/2023 11:01 :: guitar

If you are a guitarist interested in historically informed performance (like me!), then you need to check out this presentation by Enrica Savigni.

Emacs is pretty good at text processing.

05/21/2023 23:23 :: emacs

One of the many great tips at this article at howardism.org is to remember to use keep-lines/flush-lines instead of grep. One of the great features of eshell is ability to redirect output to a buffer.

ls | sed G > #<mybuffer>

Now you can switch to mybuffer and use M-x keep-lines to find, say, all the text files.

Emacs backup files

02/21/2023 20:00 :: emacs

I've gotten a little sick of the "~" files littering my directories. Fortunately, adding the following to your init.el will send the backup files to one place in a single directory:

(setq backup-directory-alist '(("" . "~/.emacs.d/backup")))

FizzBuzz

11/22/2022 12:32 :: clojure

If you're going to interview, you better know FizzBuzz:

(defn fizzbuzz [n]
  (doseq [x (range 1 n)]
    (cond
      (and (zero? (mod x 5))
           (zero? (mod x 3))) (prn "FizzBuzz")
      (zero? (mod x 3)) (prn "Fizz")
      (zero? (mod x 5)) (prn "Buzz")
      :else (prn x))))
(fizzbuzz 10)

House Votes to Remove Taney Bust

06/30/2021 12:00 :: supreme_court

It's about damned time.