Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am mumrah on github.
  • I am mumrah (https://keybase.io/mumrah) on keybase.
  • I have a public key ASCd-jLyG5wl65kfDGn0RH73xKpV1lRjUvs2eOHe876OzAo

To claim this, I am signing this object:

@mumrah
mumrah / Either.java
Created February 11, 2021 16:55
Java implementation of Scala's Either
import java.util.Objects;
import java.util.Optional;
import java.util.function.Consumer;
import java.util.function.Function;
public class Either<L, R> {
private final L left;
private final R right;
@mumrah
mumrah / reviewers.py
Last active July 7, 2021 20:45
Simple Python3 script to help with the "Reviewers" line in Apache Kafka PRs. Must be run from within the Git repo
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from collections import defaultdict
import operator
import os
import re
def prompt_for_user():