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
# alias to edit commit messages without using rebase interactive | |
# example: git reword commithash message | |
reword = "!f() {\n GIT_SEQUENCE_EDITOR=\"sed -i 1s/^pick/reword/\" GIT_EDITOR=\"printf \\\"%s\\n\\\" \\\"$2\\\" >\" git rebase -i \"$1^\";\n git push -f;\n}; f" | |
# count total commits in a repo | |
git rev-list --all --count | |
# edit all commit messages | |
git rebase -i --root |
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
/** | |
* Load more content over ajax in a nice manner | |
* | |
* This script utilizes Font Awesome to give proper visual feedback | |
* while the new content is being fetched and loaded | |
* | |
* Usage: | |
* - Attach the class 'load-more-content' to any a tag in the DOM | |
* - Give this object a data attribute of data-content-area which indicates | |
* what part of the site is to be loaded in |
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
/** | |
* Load more content over ajax in a nice manner | |
* | |
* This script utilizes Font Awesome to give proper visual feedback | |
* while the new content is being fetched and loaded | |
* | |
* Usage: | |
* - Attach the class 'load-more-content' to any a tag in the DOM | |
* - Give this object a data attribute of data-content-area which indicates | |
* what part of the site is to be loaded in |