Skip to content

Instantly share code, notes, and snippets.

@mkjunker
mkjunker / terminalsize.py
Created October 6, 2017 19:46 — forked from jtriley/terminalsize.py
Get current terminal size on Linux, Mac, and Windows
#!/usr/bin/env python
# see https://gist.github.com/mkjunker/a15760defc3d3171b2a71eab2769e875
import sys
import os
import shlex
import struct
import platform
import subprocess
@mkjunker
mkjunker / abc-mode.el
Last active December 17, 2015 14:29
A major Emacs mode for editing ABC music files. Go to one of the following sites for more information about abc. The ABC musical notation language (http://www.gre.ac.uk/~c.walshaw/abc/) The ABC Music Project (http://abc.sourceforge.net/) The ABC Plus Project (http://abcplus.sourceforge.net/)
;;; abc-mode.el --- Major mode for editing abc music files
;; Copyright (C) 2002, 2003, 2004, 2006, 2008, 2012, 2013 Matthew K. Junker
;; Author: Matthew K. Junker <junker@alum.mit.edu>
;; Package-Version: 20130521
;; Keywords: local, docs
;; This file is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
@mkjunker
mkjunker / ggo-mode.el
Last active December 17, 2015 13:48
An Emacs major mode for editing Gengetopt configuration files. Gengetopt is available at: http://www.gnu.org/software/gengetopt/.
;;; ggo-mode.el --- Gengetopt major mode
;; Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2010, 2013
;; Matthew K. Junker
;; Author: Matthew K. Junker <junker@alum.mit.edu>
;; Version: 20130521
;; Keywords: extensions, convenience, local
;; This file is free software; you can redistribute it and/or modify