Skip to content

Instantly share code, notes, and snippets.

import static java.lang.Integer.parseInt;
import static java.util.Collections.reverse;
import static java.util.Collections.rotate;
import static java.util.Collections.swap;
import static org.jooq.lambda.Seq.seq;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.stream.Stream;
public class AdventOfCode7
{
static class Command
{
enum CommandType
{
and,
or,
rshift,
lshift,
@xathien
xathien / unregisterKeyPatch.diff
Created June 24, 2015 20:04
UnregisterKey Patch
diff --git a/src/com/rabbitmq/client/impl/WorkPool.java b/src/com/rabbitmq/client/impl/WorkPool.java
index 1c8adc3..0377f52 100644
--- a/src/com/rabbitmq/client/impl/WorkPool.java
+++ b/src/com/rabbitmq/client/impl/WorkPool.java
@@ -123,6 +123,7 @@ public class WorkPool<K, W> {
this.pool.remove(key);
this.ready.remove(key);
this.inProgress.remove(key);
+ this.unlimited.remove(key);
}