Skip to content

Instantly share code, notes, and snippets.

Jeff Fairchild jfairchild

View GitHub Profile
View zsh-on-win10.md
  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
View keybase.md

I hereby claim:

To claim this, I am signing this object:

{
@jfairchild
jfairchild / GetUserTransactionObjects.java
Created Aug 26, 2013
Create a PriceGroup from MarketPrices
View GetUserTransactionObjects.java
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());
p.setPrice(entry.getValue());
p.setPriceType(PriceType.TICK);
p.setTicker(HibernateUtils.initializeAndUnproxy(tickerService.getBySymbol(entry.getKey())));
You can’t perform that action at this time.