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
function runCmd { | |
echo "\e[42m\e[30m>> $1 \e[49m\e[39m" ; bash -c $1 | |
} | |
function svnup { | |
runCmd 'git pull' && | |
runCmd 'svn up --accept tc' ; | |
runCmd 'svn revert -R .' ; | |
runCmd 'git status' ; | |
runCmd 'svn status' |
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
[email protected] | |
[email protected] | |
[email protected] | |
[email protected] | |
[email protected] | |
[email protected] | |
[email protected] | |
[email protected] | |
[email protected] | |
[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
<section ng-app="selectableApp" | |
ng-controller="exampleController"> | |
<label> | |
<input type="checkbox" ng-model="selection" /> Toggle Selection | |
</label> | |
<p> | |
You've selected: | |
<span ng-hide="selected">none</span> |
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
findKeyByValue = (obj, value) -> | |
key = null | |
_.find obj, (v, k) -> | |
if v is value | |
key = k | |
true | |
key |
NewerOlder