This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# courtest of colescott | |
with import <nixos> {}; | |
let | |
liblapack = pkgs.liblapack.override { shared = true; }; | |
mkl = pkgs.mkl.override { enableStatic = true; }; | |
libraries = [ | |
libffi | |
openssl | |
# mkl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun my/slime-read-ql-system (prompt &optional system-name) | |
(let ((completion-ignore-case t)) | |
(completing-read prompt (slime-bogus-completion-alist | |
(slime-eval | |
`(cl:remove-duplicates | |
(cl:append (ql:list-local-systems) | |
(cl:mapcar (cl:symbol-function 'ql-dist:name) | |
(ql:system-list))) | |
:test 'cl:string=))) | |
nil t system-name))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import matplotlib | |
import matplotlib.pyplot as plt | |
import glob | |
import time | |
from PIL import Image | |
fnames = glob.glob('vis8/nine/*.jpg') | |
shape = (3712, 3712) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; | |
;; jump to thing on M-. | |
;; | |
(defun mu4e-jump-to-thing (u) | |
"jump to thing under point (should work with addresses, dates, tags)" | |
(interactive "P") | |
(let* | |
((type (string-remove-suffix ":" (first (split-string (thing-at-point 'line))))) | |
(query (pcase type | |
("From" (concat "contact:" (get-text-property (point) 'email))) |