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
""" | |
MinHeap object | |
in a min heap all children are larger than their parents | |
heap = | |
- parent node only has two children | |
- must be complete tree except last level | |
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
import subprocess | |
import re | |
p = subprocess.Popen(['ipmaddr'], stdout=subprocess.PIPE, | |
stderr=subprocess.PIPE) | |
out, err = p.communicate() | |
prefix_to_delete = ['qv', 'qb', 'ta'] | |
regexp = re.compile(r'^[0-9]') |
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
$ git remote -v | |
origin [email protected]:dlenwell/nova.git (fetch) | |
origin [email protected]:dlenwell/nova.git (push) | |
piston [email protected]:piston/nova.git (fetch) | |
piston [email protected]:piston/nova.git (push) |
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
$ cd nova/ | |
$ git fetch piston | |
$ git checkout 99.99/newnewthinlvm | |
$ git rebase piston/99.99/master | |
First, rewinding head to replay your work on top of it... | |
Applying: new new thinlvm patch clean | |
$ |