Skip to content

Instantly share code, notes, and snippets.

View elucidator's full-sized avatar
🏠
Working from home

Pieter van der Meer elucidator

🏠
Working from home
View GitHub Profile
@elucidator
elucidator / git-branches-by-commit-date.sh
Created June 2, 2016 12:57 — forked from jasonrudolph/git-branches-by-commit-date.sh
List remote Git branches and the last commit date for each branch. Sort by most recent commit date.
# 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
@elucidator
elucidator / streamingdatafx.DataStreamParser.java
Created November 15, 2015 11:59 — forked from james-d/streamingdatafx.DataStreamParser.java
Demo of a JavaFX application which is updated by data streaming in. Created as a solution to https://community.oracle.com/message/12694944#12694944. There are two components: the main application, which consists of a server waiting for messages of the form "speed=<value>", an FXML file, FXML controller, and a main class that creates the server, …
package streamingdatafx;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.concurrent.Callable;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;