Skip to content

Instantly share code, notes, and snippets.

Asaf Jaffi asafjaffi

Block or report user

Report or block asafjaffi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View TestItAll.java
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 Nov 27, 2013
clean up intellij multi-module project
View remove intellij imls
find . -name "*.iml" | awk '{print "rm "$1}' | sh
@asafjaffi
asafjaffi / .gitconfig
Created Nov 26, 2013
Git config + aliases
View .gitconfig
[user]
name = <>
email = <>
[http]
sslCert = <>
[alias]
s = status
a = add
@asafjaffi
asafjaffi / Locale Mapping With Jackson Test
Created Nov 11, 2013
Testing to see when the Locale deserializer works
View Locale Mapping With Jackson Test
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;
You can’t perform that action at this time.