This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function gerrit-clean () { | |
for branch in $(git for-each-ref --format='%(refname:short)' refs/heads/); do | |
if git log master|ack -1 "$(git log "$branch"|ack -1 Change-Id)" > /dev/null; then | |
if [ "$branch" != "master" ]; then | |
git branch -D "$branch" | |
fi | |
fi | |
done | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- starspangled 2011-02-07 12:03:39.000000000 -0800 | |
+++ starmangled 2011-02-07 12:04:39.000000000 -0800 | |
@@ -1,8 +1,8 @@ | |
O! say can you see by the dawn's early light, | |
What so proudly we hailed at the twilight's last gleaming, | |
Whose broad stripes and bright stars through the perilous fight, | |
-O'er the ramparts we watched, were so gallantly streaming? | |
+What so proudly we watched at the twilight's last gleaming, | |
And the rockets' red glare, the bombs bursting in air, | |
Gave proof through the night that our flag was still there; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import sys | |
def to_set(collection): | |
return "{" + ",".join(collection) + "}" | |
suffixes = {} | |
for suffix in sys.argv[1:-1]: | |
suffixes[suffix] = set() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while (window.parent != window.self) { | |
window.parent.location.replace(window.location.href); // Kick! | |
} | |
console.log("Did I make it all the way out? " + window.top.wobble); |