Skip to content

Instantly share code, notes, and snippets.

View quantumish's full-sized avatar

quantumish

View GitHub Profile
@quantumish
quantumish / ff-zoxide.el
Last active February 11, 2026 08:32
Simple zoxide integration for Emacs
(require 'consult)
(add-hook
'dired-mode-hook
(lambda ()
(call-process-shell-command
(format "zoxide add %s" dired-directory) nil 0)))
(add-hook
'find-file-hook
@quantumish
quantumish / clac-mode.el
Last active October 7, 2023 00:06
Emacs mode for Clac
;;; clac-mode --- mode for .clac files
;;; Commentary:
;; I'm procrastinating finishing the bonus.
;;; Code:
(defconst clac--font-lock-defaults
(let ((keywords '("quit" "print" "drop" "swap" "rot" "pick" "skip" "if")))
`((("\\(: comment .* ;\\)" 1 font-lock-comment-face)
;; FIXME: cases like "blahdrop" will be colored incorrectly.
;;; c02-mode.el --- Experimental C0 mode derived mode.
;; Author: 2010 Jakob Max Uecker
;; Maintainer: 2023 David Freifeld
;; Created: August 2010
;; Modified: September 2023
;; Version: 0.1.1
;; Keywords: c0 languages
;; This program is free software; you can redistribute it and/or modify
@quantumish
quantumish / alert-test.el
Created November 24, 2020 19:55
Hack-y notifications with posframes
(setq announce-string "*Upcoming Appointment!* Calculus\n14:00-15:00")
(setq-default major-mode 'org-mode)
(setq org-image-actual-width nil)
(when (posframe-workable-p)
(posframe-show "notif1-bg"
:string " "
:poshandler 'posframe-poshandler-notif-primary
:min-height 4
:height 4
:left-fringe 3
@quantumish
quantumish / fits_script.py
Last active July 30, 2020 18:00
A Simple Lightcurve Generator
# Import our libraries
import matplotlib.pyplot as plt
from astropy.io import fits
import numpy as np
import os
directory = "../Downloads/Gaia16agf/"
# Taken from OpenCV wiki
def histeq(im,nbr_bins=256):