Skip to content

Instantly share code, notes, and snippets.

@nxg
nxg / keybase.md
Created October 26, 2014 19:31
Keybase verification gist

Keybase proof

I hereby claim:

  • I am nxg on github.
  • I am nxg (https://keybase.io/nxg) on keybase.
  • I have a public key whose fingerprint is 8052 24F4 31FE 371B D9D5 A0CD 6B68 140C 9D30 DC68

To claim this, I am signing this object:

@nxg
nxg / mn3-test.tex
Last active August 29, 2015 13:56
Test of three-author mn2e support. See https://github.com/timj/mn2e-bst/issues/10
% We must have both mn2e.cls and the repository mn2e-bst.sty in the TEXINPUTS path.
% Run latex on this file, and observe that the 'first-use' form appears once in the text,
% and the 'short-form' thereafter; and observe that only the 'short-form' appears in the caption.
\documentclass[usenatbib]{mn2e}
\usepackage{mn2e-bst}
\begin{document}
Here is a document.
#include "lcut.h"
void tc_longstring_test(lcut_tc_t *tc, void *data) {
char s1[] = "abc";
char s2[] = /* 200 characters: longer than LCUT_MAX_STR_LEN */
"0123456789012345678901234567890123456789"
"0123456789012345678901234567890123456789"
"0123456789012345678901234567890123456789"
"0123456789012345678901234567890123456789"
"0123456789012345678901234567890123456789";
@nxg
nxg / point-stack.el
Last active December 21, 2015 17:39
Emacs lisp code to provide a stack of buffer names and point locations. I find this useful because I often need to do something elsewhere in the same or another buffer, and then return to what I was doing – perhaps I need to run around in the file to find a function definition or something. Then I want to be taken right back to where I was befor…
;;; point-stack.el
;; This file is free software.
;; Copyright Greg Novak (novak@ucolick.org) December 2004
;; Copyright Norman Gray (norman@astro.gla.ac.uk) January 2013
;; Released under the GPL, available at http://www.gnu.org
;;
;; Provide a stack of buffer names and point locations
;;
;; I find this useful because I often need to do something elsewhere
;; in a file and then return to what I was doing. Ie, I need to run