Skip to content

Instantly share code, notes, and snippets.

View esammer's full-sized avatar

Eric Sammer esammer

View GitHub Profile
@esammer
esammer / gist:9763256583d9e19d97b7d51251d9c93b
Created September 28, 2016 04:01
Gradle composite builds at work
ip-172-31-77-145:~/Documents/Code/osso esammer$ ./gradlew --include-build ../gradle-avro-plugin clean build
Picked up JAVA_TOOL_OPTIONS: -Dapple.awt.UIElement=true
Starting a Gradle Daemon (subsequent builds will be faster)
[composite-build] Configuring build: /Users/esammer/Documents/Code/gradle-avro-plugin
:gradle-avro-plugin:compileJava UP-TO-DATE
:gradle-avro-plugin:compileGroovy
Picked up JAVA_TOOL_OPTIONS: -Dapple.awt.UIElement=true
:gradle-avro-plugin:processResources UP-TO-DATE
:gradle-avro-plugin:classes
:gradle-avro-plugin:jar UP-TO-DATE
@esammer
esammer / EventEncoder.java
Created October 21, 2016 16:23
An example Kafka encoder implementation for Osso events.
/*
* Note that this class is a slightly hacked up version of an internal
* class used at Rocana. There may be some mistakes in the code when I
* removed some Rocana-specific bits from it. I didn't test that it
* compiles cleanly.
*/
import kafka.serializer.Encoder;
import kafka.utils.VerifiableProperties;
import org.apache.avro.io.DatumWriter;
@esammer
esammer / clock.go
Last active June 29, 2021 01:24
A clock interface for Go.
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//