Skip to content

Instantly share code, notes, and snippets.

@starstuck
starstuck / hunspell.el
Created April 28, 2020 17:53
Using cygwin hunspell as Emacs ispell program
;; Working hunspell configuration for emacs for windows. It is using hunspell under Cygwin.
;;
;; It will require cygwin-mount.el downloaded to your emacs library path from
;; https://www.emacswiki.org/emacs/cygwin-mount.el
;;
;; Setup cygwin-mount first
(setq cygwin-directory "c:/cygwin")
(require `cygwin-mount)
(setq cygwin-mount-cygwin-bin-directory (concat cygwin-directory "/bin"))
(cygwin-mount-activate)
@starstuck
starstuck / cygpath-util.sh
Created May 7, 2020 16:16
Quick cygwin paths conversion without calling cygpath
# Following path conversion functions assume that cygrdives are mounted at root.
# Your fstab entry should look like this:
#
# none / cygdrive binary,posix=0,noacl,user 0 0
#
declare -A _CYGDRIVEMAP=([C]="/c" [P]="/p")
# Convert mixed path to unix path. Mixed path is using windows drive at the beginning,
# but with forward slashes already
to_unix_path () {
@starstuck
starstuck / qbench.q
Last active December 19, 2023 17:30
Q/kdb benchmark
// Simple Q benchmark
//
// example call:
//
// q bench.q -s 8
STDOUT: -1
COUNT: 5000
EXAMPLES:(enlist ".Q.btoa[\"Hello World!\"]")