Skip to content

Instantly share code, notes, and snippets.


Lee Dongjin dongjinleekr

View GitHub Profile
dongjinleekr /
Created May 5, 2020
Proof of my identity for

Keybase proof

I hereby claim:

  • I am dongjinleekr on github.
  • I am dongjinleekr ( on keybase.
  • I have a public key ASBY5pir8DtYwtcEP9Ybe3NLsqGgdKjBk_zYOmRoJMdJhAo

To claim this, I am signing this object:

View Safe unboxing in Java
public class Numbers {
private Numbers() {
public static boolean valueOf(Boolean b) {
return valueOf(b, false);
public static boolean valueOf(Boolean b1, boolean b2) {
if (null == b1) {
dongjinleekr /
Created Feb 7, 2017
Accumulating Map Values in Java 8
// Uses a function instance with internal state, along with mapping the map values only.
// see:
import java.util.Map;
import java.util.function.Function;
import static;
dongjinleekr /
Last active Sep 29, 2020
Kafka benchmark commands
## Consumer Throughput: Single consumer thread, no compression
## Consumer Throughput: 3 consumer thread, no compression
bin/ --topic benchmark-3-3-none \
--zookeeper kafka-zk-1:2181,kafka-zk-2:2181,kafka-zk-3:2181 \
--messages 15000000 \
--threads 1
You can’t perform that action at this time.