Skip to content

Instantly share code, notes, and snippets.

View rolfl's full-sized avatar

Rolf Lear rolfl

  • Canada
View GitHub Profile
@rolfl
rolfl / SearchWiktionary.java
Created May 29, 2015 12:54
Searching wiktionary using SAX
package nouns;
import java.io.BufferedInputStream;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.InputStream;
import java.io.Writer;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
@rolfl
rolfl / Netification
Last active August 29, 2015 14:20
Benchmarking neatify
import java.util.Random;
import java.util.logging.Level;
import java.util.stream.LongStream;
import net.tuis.ubench.UBench;
import net.tuis.ubench.UUtils;
public class NeatNums {
/**
* Simple helper method that prints the specified title, underlined with '='
* characters.
*
* @param title
* the title to print (null or empty titles will be ignored).
*/
public static void reportTitle(String title) {
if (title == null || title.isEmpty()) {
return;