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
# | |
# commit_transfer.py | |
# | |
# I wrote this script in order to transfer commits between branches in a less painful way. The use | |
# case is rebasing a working branch on its parent in order to use changes that have been pushed there. | |
# Yes, a rebase does preserve history, but only if you haven't already pushed the branch to a remote. | |
# If you have, it's best to create a fresh branch from the parent and transfer the commits there. | |
# | |
# My tasks are tracked in JIRA, so I write all of my commits with the following convention: | |
# |
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
# | |
# trie.py | |
# | |
# create trie data structure | |
# | |
class Node(object): | |
""" | |
Node element of trie data structure. |
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/python | |
# | |
# run 'python num_line.py -v' to see doctest results. | |
# Howard Hamilton | |
# 17 March 2014 | |
def number_line(L, I): | |
''' | |
Update number line intervals with addition of new interval. | |
NewerOlder