Skip to content

Instantly share code, notes, and snippets.

View rudolfschmidt's full-sized avatar

Rudolf Schmidt rudolfschmidt

View GitHub Profile
@simonmichael
simonmichael / pricing.ledger
Created May 14, 2019 15:09
Testing ledger cost/price syntax, lots, revaluation, capital gains
; Test ledger cost/price syntax, lots, revaluation, capital gains
P 2019-01-01 ETC 11 EUR
P 2019-02-01 ETC 12 EUR
; Fluctuating cost/price
; @, @@ https://www.ledger-cli.org/3.0/doc/ledger3.html#Posting-cost
; { }, {{ }} https://www.ledger-cli.org/3.0/doc/ledger3.html#Commodity-prices
; "functionally.. no difference" https://www.ledger-cli.org/3.0/doc/ledger3.html#Prices-versus-costs
@devisnotnull
devisnotnull / mongodb-objectid-type-adapter-GSON.java
Last active January 7, 2019 22:31
MongoDB ObjectID Gson TypeAdapter
import java.io.IOException;
import java.lang.reflect.Type;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import org.bson.types.ObjectId;
import com.google.gson.*;
/**
* Created by alexb on 12/05/15.