Skip to content

Instantly share code, notes, and snippets.

View leavesofgrass's full-sized avatar

Jon Pielaet leavesofgrass

View GitHub Profile
@leavesofgrass
leavesofgrass / Makefile
Created February 15, 2016 22:48 — forked from jesstelford/Makefile
nethack 3.6.0 hints file for debian: `sys/unix/hints/linux`. More: http://jes.st/2015/compiling-playing-nethack-360-on-ubuntu/
#
# NetHack 3.6 linux $NHDT-Date: 1432512814 2015/05/25 00:13:34 $ $NHDT-Branch: master $:$NHDT-Revision: 1.12 $
# Copyright (c) Kenneth Lorber, Kensington, Maryland, 2007.
# NetHack may be freely redistributed. See license for details.
#
#-PRE
# Linux hints file
# This hints file provides a single-user tty build for Linux, specifically
# for Ubuntu dapper.
@leavesofgrass
leavesofgrass / .emacs
Last active August 24, 2017 06:39
my emacs init file
;; hide pesky warnings (the lazy way of supressing the pop-up debugger on init )
;; (setq warning-minimum-level :emergency)
;; the palette...
(deftheme wizard-flat "A flat, dark theme that plays nice with ample.")
(let ((wizard/green "#a9df90")
@leavesofgrass
leavesofgrass / MathJax.js
Created January 16, 2015 16:40
mathjax.js
/*
* /MathJax.js
*
* Copyright (c) 2009-2014 The MathJax Consortium
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
@leavesofgrass
leavesofgrass / gist:4711648
Created February 5, 2013 02:31
Validate XML with DTD using Python (lxml)
from lxml import etree
InXML = open('file.xml', 'r');
DefFile = open('def.dtd', 'r');
PostParse = etree.XML(InXML.read())
dtd = etree.DTD(DefFile)
print(dtd.validate(PostParse))