Skip to content

Instantly share code, notes, and snippets.

Avatar

Jeff Caddel jcaddel

View GitHub Profile
View gist:11a8ac44383084e5cd74747207e98312
RuleBook<String, String> messages = DefaultRuleBook.<String, String>builder()
.withDefaultResult("?")
.addRule(rule -> rule.when(code -> code.contains("hello"))
.then(message -> "Hello World"))
.addRule(rule -> rule.when(code -> code.contains("goodbye"))
.then(message -> "Goodbye Cruel World"))
.build();
RuleBook<Applicant, Double> rates = DefaultRuleBook.<Applicant, Double>builder()
View S3FS on Mac OS X
Install s3fs on Mac OS X
1 - Install Homebrew - http://brew.sh/
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
2 - Use Homebrew to install s3fs + dependencies
brew install s3fs
3 - Do some custom stuff. I only used the first step from here -> https://gist.github.com/fukayatsu/3910097
sudo /bin/cp -rfX /usr/local/Cellar/fuse4x-kext/0.9.2/Library/Extensions/fuse4x.kext /Library/Extensions
@jcaddel
jcaddel / git-info.sh
Last active Nov 18, 2020
Somewhat similar to "svn info" but for a Git checkout
View git-info.sh
#!/bin/bash
#
# Displays information about the current working copy of a Git checkout
# and how it relates back to the remote branch it is tracking (if there is one)
#
# Jeff Caddel <jcaddel at yahoo dot com>
#
function check_git_dir {
You can’t perform that action at this time.