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/bash | |
cd ~/Downloads/ | |
if [ ! -x /usr/bin/curl ]; then | |
echo "Didn't find curl at /usr/bin/curl. Install with 'sudo apt-get install curl'." | |
exit 1 | |
fi | |
echo -n "Determining latest build... " |
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/bash | |
FILENAME=$1 | |
if [ -z "$FILENAME" ]; then | |
echo "First argument must by file of emails and names" | |
exit 1 | |
fi | |
FROM="Xing Yi <[email protected]>" |
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
def getHeight(self, node=None): | |
maxHeight = [0] | |
def traverse(node, height): | |
if not node: | |
return | |
height += 1 | |
if height > maxHeight[0]: |