Skip to content

Instantly share code, notes, and snippets.

Jeff Fairchild jfairchild

Block or report user

Report or block jfairchild

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
  1. Install bash on windows
  2. Install zsh sudo apt-get install zsh
  3. Install git sudo apt-get install git
  4. Install oh-my-zsh
  5. Change default shell chsh -s /bin/zsh
  6. Edit ~/.bashrc to include:
# if running in terminal...
if test -t 1; then
  # ...start zsh

I hereby claim:

To claim this, I am signing this object:

jfairchild /
Created Aug 26, 2013
Create a PriceGroup from MarketPrices
private PriceGroup getPriceGroupFromMarketPrices(Map<String, BigDecimal> marketPrices) {
PriceGroup priceGroup = new PriceGroup();
priceGroup.setDateTime(new DateTime());
priceGroup.setPrices(new HashSet<Price>());
for (Map.Entry<String, BigDecimal> entry : marketPrices.entrySet()) {
Price p = new Price();
p.setDateTime(new DateTime());
You can’t perform that action at this time.