Skip to content

Instantly share code, notes, and snippets.

View markrwilliams's full-sized avatar

Mark Williams markrwilliams

View GitHub Profile
# # emacs keybindings for navigation in copy mode
# markkeys ^B=Y:^F=V:h=^B:l=^F:0=^A:$=^E
# # C-space sets mark. markkeys does it in screen 4.0 and higher, but 3.9x
# # needs the bindkey command. (note the ^@ escape sequence for C-space.)
# markkeys ' '=^@
# # bindkey -m ^@ stuff ' '
# # page up and page down
# bindkey -m -k kP stuff Y
Season Episode Title
1 1 If I Were You
1 2 A Tight Leash
1 3 Muffled Cries
1 4 Skirting the Evidence
1 5 Small Town Terror
1 6 Fresh Heir
1 7 Step by Step
1 8 Blanket of Evidence
XTerm*Background: white
XTerm*Foreground: black
XTerm*metaSendsEscape: true
XTerm*faceName: inconsolata
XTerm*faceSize: 12
UXTerm*Background: black
UXTerm*Foreground: white
UXTerm*metaSendsEscape: true
UXTerm*font: -*-fixed-medium-*-*-*-14-*-*-*-*-*-*-*
{-# LANGUAGE FlexibleContexts #-}
import XMonad hiding ( (|||) )
import XMonad.Hooks.ManageDocks
import XMonad.Util.EZConfig
import XMonad.Hooks.DynamicLog
import XMonad.Layout.LayoutCombinators
import XMonad.Layout.Renamed
import XMonad.Actions.CopyWindow
import XMonad.Actions.CycleWS
import XMonad.Layout.LayoutModifier
from twisted.internet.defer import Deferred
from twisted.trial.unittest import TestCase
class Race(TestCase):
def test_thing(self):
outer, inner = Deferred(), Deferred()
def raiser(_):
raise ValueError()
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Config { font = "-terminus-medium-*-*-*-*-14-*-*-*-*-*-*-*"
, additionalFonts = []
, borderColor = "black"
, border = TopB
, bgColor = "darkblue"
, fgColor = "grey"
, alpha = 255
, position = Top
, textOffset = -1
, iconOffset = -1

What?

A demonstration of disttrial dropping tracebacks under Python 3

How?

  1. Clone this gist
  2. Create a Python 3 virtual environment
  3. Install this gist into the virtualenv with pip install .
  4. Look at the traceback from trial trialJTraceback
def invalid_but_irrelevant():
print("I am invalid but also irrelevant")
def invalid_but_relevant():
print("I am invalid and relevant")