Skip to content

Instantly share code, notes, and snippets.

View jkfurtney's full-sized avatar

Jason Furtney jkfurtney

  • St. Paul, Minnesota
View GitHub Profile
import fipy.tools.numerix as np
from fipy.terms import VanLeerConvectionTerm
import fipy as fp
import pylab as plt
# monkey patch VanLeerConvectionTerm so we can override
# __getGradient in the derived class
VanLeerConvectionTerm._getGradient = VanLeerConvectionTerm._VanLeerConvectionTerm__getGradient
VanLeerConvectionTerm._VanLeerConvectionTerm__getGradient = \
lambda self, a, b: self._getGradient(a, b)
@jkfurtney
jkfurtney / up-goer-five.el
Created January 18, 2013 01:59
Emacs mode for writing with only the thousand most common English words. Inspired by http://xkcd.com/1133/
(defvar upgoer-five-keywords (split-string "a able about above accept across
act actually add admit afraid after afternoon again against age
ago agree ah ahead air all allow almost alone along already
alright also although always am amaze an and anger angry animal
annoy another answer any anymore anyone anything anyway apartment
apparently appear approach are area aren't arm around arrive as
ask asleep ass at attack attempt attention aunt avoid away baby
back bad bag ball band bar barely bathroom be beat beautiful
became because become bed bedroom been before began begin behind