Skip to content

Instantly share code, notes, and snippets.

View Muhammadwasi's full-sized avatar
🎯
Focusing

Muhammad Wasi Naseer Muhammadwasi

🎯
Focusing
View GitHub Profile
@Muhammadwasi
Muhammadwasi / copy_commits.sh
Last active October 21, 2020 06:00
Automating to copy a set of commits from one branch to another
#!/bin/bash
# Prints usage
usage() {
echo "Usage: $0 -p <project_path> -s <source-branch> -t <target-branch> -f <commit-start> -e <commit-target>" 1>&2
}
# Prints usage and exit
abnormal_exit() {
usage
self.getBankCodes=function(url){
if(self.bankList().length===0) {
$.get(url+"/public/bank-codes.json", function (data) {
self.bankList(JSON.parse(data));
self.bankList().forEach(function (bank) {
self.bankMap[bank.BankCode] = bank;
});
});
}
}