This file contains hidden or 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
| (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 |
This file contains hidden or 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
| ;;; 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. |
This file contains hidden or 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
| ;;; 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 |
This file contains hidden or 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
| (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 |
This file contains hidden or 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 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): |