View gist:5a7d7eac431159521845
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
backouter () { | |
if [ $# -ne 1 ] | |
then | |
echo Backout a merge by closing branch of undesired merge then updating to parent of undesired merge and continuing branch from there. | |
echo usage: backouter BAD_MERGE_PARENT | |
return | |
fi | |
hg pull -u && _REV_PARENT=$1 | |
_BRANCH=$(hg log -r $_REV_PARENT --template '{branch}') | |
_TEMP_FILE=tempfile |
View gist:6170429
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
// Kinda pseudo code/java | |
class Person { | |
Person(int personID) { | |
database = Database() | |
name = database.getName(personID) | |
address = database.getAddr(personID) | |
phone = database.getPhone(personID) | |
} | |
} |