This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Credit http://stackoverflow.com/a/2514279 | |
for branch in `git branch -r | grep -v HEAD`;do echo -e `git show --format="%ci %cr" $branch | head -n 1` \\t$branch; done | sort -r |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Iterables { | |
public static <Type> Iterable<Type> iterable(final BlockingQueue<Type> queue){ | |
return new Iterable<Type>() { | |
@Override | |
public Iterator<Type> iterator() { | |
return new Iterator<Type>() { | |
@Override | |
public boolean hasNext() { | |
return true; |