Skip to content

Instantly share code, notes, and snippets.

View ayust's full-sized avatar

Amber Yust ayust

  • Google
  • Vancouver, BC
  • 20:39 (UTC -07:00)
View GitHub Profile
"""Analyze a log of a text communication, looking for distinct discussions."""
from collections import Counter, deque
import re
import string
import sys
LINE_RE = re.compile(r"^(?P<timestamp>[\d:]+)\s"
r"<\W?(?P<nick>[\w|^`[\]]+)>\s"
r"(?P<message>.*)$")
@ayust
ayust / .gitconfig
Created September 8, 2011 11:28 — forked from tekkub/gist:1203061
Git aliases to prune merged branches
[alias]
prunelocal = !sh -c 'git branch --merged | grep -v "^*" | xargs git branch -d'
pruneorigin = prune-remote origin
##################
# Helper aliases #
##################
# prune-remote <remote name>