Skip to content

Instantly share code, notes, and snippets.

import java.util.concurrent.BrokenBarrierException;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.CyclicBarrier;
public class TestItAll {
CyclicBarrier cb = new CyclicBarrier(8);
private volatile boolean working = true;
public static void main(String[] args) throws InterruptedException {
@asafjaffi
asafjaffi / remove intellij imls
Created November 27, 2013 09:15
clean up intellij multi-module project
find . -name "*.iml" | awk '{print "rm "$1}' | sh
@asafjaffi
asafjaffi / .gitconfig
Created November 26, 2013 07:36
Git config + aliases
[user]
name = <>
email = <>
[http]
sslCert = <>
[alias]
s = status
a = add
@asafjaffi
asafjaffi / Locale Mapping With Jackson Test
Created November 11, 2013 14:01
Testing to see when the Locale deserializer works
import java.io.IOException;
import java.util.HashMap;
import java.util.Locale;
import java.util.Map;
import org.codehaus.jackson.JsonGenerationException;
import org.codehaus.jackson.map.JsonMappingException;
import org.codehaus.jackson.map.ObjectMapper;
import org.codehaus.jackson.type.TypeReference;
import org.junit.Test;