Mercurial > repo
view paste/paste.12049 @ 8794:8fd5c92c6eb8
<quintopia> le/rn fixed point theorem/The Fixed Point Theorem states that every planet P will have a point where Archimedes can stand to move it.
author | HackBot |
---|---|
date | Mon, 11 Jul 2016 23:27:23 +0000 |
parents | e925c0adf7ad |
children |
line wrap: on
line source
#!/bin/sh count () { hg log --template '{desc}\n' | egrep '<[^]]*> karma\'$1 | fgrep -vix "<$2> karma$1 $2" | cut -d' ' -f3 | fgrep -cix "$2" } plus=$(count + "$1") minus=$(count - "$1") echo $(($plus-$minus))