This file contains hidden or 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 fileinput | |
class Sample(object): | |
def __init__(self, start_line): | |
_, time = line.split(' ') | |
self.time = float(time) | |
self.lines = [start_line] |
This file contains hidden or 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
#!/bin/sh | |
exec < /dev/tty | |
detect_issue() { | |
local branch="$(git branch | grep '^\*' | sed 's/^\* //')" | |
local issue=$(echo "$branch" | grep -o '[0-9][0-9]*' | head -n 1) | |
if [ -z "$issue" ]; then | |
return 1 | |
fi |