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
// getting scopes of elements: | |
angular.element(targetNode).scope() | |
angular.element(targetNode).isolateScope() | |
// injecting services: | |
angular.element('html').injector().get('MyService') | |
// accessing controller for directive: | |
angular.element('my-pages').controller() |
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
scope = angular.element($0).scope() |
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
# found at: | |
# http://stackoverflow.com/questions/1895059/git-revert-to-a-commit-by-sha-hash | |
# reset the index to the desired tree | |
git reset --hard 56e05fced | |
# move the branch pointer back to the previous HEAD | |
git reset --soft HEAD@{1} | |
git commit -m "Revert to 56e05fced" |
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
find ./ -name ".svn" -type d | xargs rm -rf |