Skip to content

Instantly share code, notes, and snippets.

View dwelch2344's full-sized avatar

David Welch dwelch2344

View GitHub Profile
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), ": "));
}
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
@dwelch2344
dwelch2344 / example
Last active August 29, 2015 14:08 — forked from anonymous/example
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){
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() {