Squash three commit branch and update remote branch.
$ git checkout feature_branch
$ git rebase -i HEAD~3
# Choose `pick` for the base.
# Choose `squash` for all others| #!/usr/bin/python | |
| # pylint: disable=C0103 | |
| """ | |
| A function which outputs the Ackermann values for M and N | |
| Citation: Weisstein, Eric W. "Ackermann Function." From MathWorld--A Wolfram Web Resource. | |
| http://mathworld.wolfram.com/AckermannFunction.html | |
| """ | |
| M = 3 |
| def spark(arr): | |
| if len(arr) <= 1: | |
| return '▅' | |
| elif min(arr) == max(arr): | |
| return ''.join(['▅' for _ in arr]) | |
| ticks = ('▁', '▂', '▃', '▄', '▅', '▆', '▇', '█') | |
| norm = [round(7 * (x - min(arr)) / (max(arr) - min(arr))) for x in arr] | |
| return ''.join([ticks[int(num)] for num in norm]) |