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
function git_prompt_info() { | |
ref=$(git symbolic-ref HEAD 2> /dev/null) || return | |
echo "$(parse_git_dirty)$ZSH_THEME_GIT_PROMPT_PREFIX$(current_branch)$ZSH_THEME_GIT_PROMPT_SUFFIX" | |
} | |
function get_pwd() { | |
print -D $PWD | |
} | |
function battery_charge() { |
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
var saved_options = {}; | |
function getOptions(myOption){ | |
if(saved_options[myOption]){ | |
var deferred = $q.defer(); | |
deferred.resolve(saved_options[myOption]); | |
return deferred.promise; | |
}else{ | |
return $http({method: 'GET', url:'someUrl'}).then(function(data){ |
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
brew install rbenv ruby-build | |
echo 'eval "$(rbenv init -)"' >> $HOME/.bash_profile | |
source ~/.bash_profile | |
rbenv install 2.0.0-p0 | |
rbenv local 2.0.0-p0 | |
gem install cocoapods |
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
private String filterParams(WorkerSearchParamsDto searchParamsDto, Locale locale) { | |
StringBuilder builder = new StringBuilder(); | |
SimpleDateFormat date = new SimpleDateFormat(getMessage("datePattern", locale)); | |
if(searchParamsDto.getActive() != null && searchParamsDto.getActive()) { | |
builder.append(TagUtils.concat(getMessage("search.status", locale), getMessage(WorkerStatus.ACTIVE.getLocalKey(), locale), ": ")); | |
} else if(searchParamsDto.getActive() != null && searchParamsDto.getActive()) { | |
builder.append(TagUtils.concat(getMessage("search.status", locale), getMessage(WorkerStatus.INACTIVE.getLocalKey(), locale), ": ")); | |
} | |