Skip to content

Instantly share code, notes, and snippets.

Rachel Tannenbaum rtannenbaum

  • Google
  • Chicago
Block or report user

Report or block rtannenbaum

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
View gist:e9a2756e7a2a3b8f575ae7e484d46527
jar -tf /usr/local/google/home/rtannenbaum/github/data-transfer-project/distributions/demo-server/build/libs/demo-server-all.jar | grep .properties
View gist:e8d31500567ac2d1cfaf3b5c36e0425a
ApiSettings getApiSettings() {
// TODO: currently, any setting in both a base and env config will be overridden by the last
// definition. e.g. a setting in api.yaml and env/api.yaml will take the definition in
// env/api.yaml. Determine whether this is intended behavior.
try {
ImmutableList<String> settingsFiles = ImmutableList.<String>builder()
rtannenbaum /
Created Apr 2, 2014
AutoValue generated source code
final class AutoValue_Item extends Item {
private final String sku;
private final String barcode;
private final boolean backup;
private final boolean removed;
private final int external_srr_reservation_id;
private final int external_rb_reservation_id;
rtannenbaum /
Created Apr 1, 2014
Jackson serialization
public abstract class Item
public static Item create(
@JsonProperty("sku") String sku,
@JsonProperty("barcode") String barcode,
@JsonProperty("backup") boolean backup,
@JsonProperty("removed") boolean removed,
View Item.json
rtannenbaum /
Last active Aug 29, 2015
Serialization unit tests
public class ItemTest {
private static ObjectMapper MAPPER = new ObjectMapperFactory().build();
private Item item = Item.create("AB123_S", "038678561125", false, true, 0, 1);
public void testJsonSerialization() throws IOException {
String json = MAPPER.writeValueAsString(item);
assertEquals(jsonFixture("fixtures/Item.json"), json);
rtannenbaum / pom.xml
Last active Aug 29, 2015
Maven auto-value dependency
View pom.xml
rtannenbaum / pom.xml
Created Apr 1, 2014
Maven annotation processor plugin
View pom.xml
rtannenbaum / pom.xml
Created Apr 1, 2014
Maven compiler plugin
View pom.xml
rtannenbaum /
Created Apr 1, 2014 - Before
public class Item
private String sku;
private String barcode;
private boolean backup, removed;
private int external_srr_reservation_id;
You can’t perform that action at this time.