Skip to content

Instantly share code, notes, and snippets.

Rick van Hattem WoLpH

Block or report user

Report or block WoLpH

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
WoLpH /
Last active Jan 18, 2018 — forked from jorenham/
Best exception handling in Python
import sys
import webbrowser
def main():
return 42/0
def excepthook(type_, value, traceback):
webbrowser.open_new_tab('[python] {} {}'.format(type_, value))
exec <"$0" || exit; read v; read v; exec /usr/bin/osascript - "$@"; exit
-- the above is some shell trickery that lets us write the rest of
-- the file in plain applescript
-- Usage:
-- For a simple reload and nothing else:
-- # sh
-- For a reload with activating a different app after (iTerm in this case):
-- # sh iTerm
# Author: Raynor Vliegendhart
import numpy
def multirater_kfree_np(n_ij, n, k):
Computes Randolph's free marginal multirater kappa for assessing the
reliability of agreement between annotators.
#/ Usage: clean-merged-branches [-f]
#/ Delete merged branches from the origin remote.
#/ Options:
#/ -f Really delete the branches. Without this branches are shown
#/ but nothing is deleted.
#/ -n Dry-run, only show what would be removed.
set -e
You can’t perform that action at this time.