Skip to content

Instantly share code, notes, and snippets.

View mikbuch's full-sized avatar
🔋
Positive energy!

Mikolaj Buchwald mikbuch

🔋
Positive energy!
View GitHub Profile
@mikbuch
mikbuch / print-resultset.java
Last active November 18, 2020 04:07 — forked from jimjam88/print-resultset.java
Print an ResultSet to the console (STDOUT)
// Imports required
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;
/**
* Print a result set to system out.
*
* @param rs The ResultSet to print
* @throws SQLException If there is a problem reading the ResultSet
@mikbuch
mikbuch / SVLibSVM.java
Last active August 14, 2020 13:43 — forked from DavidWiesner/SVLibSVM.java
Access support vector in LibSVM and Weka
import weka.classifiers.functions.LibSVM;
import weka.core.Instance;
import weka.core.Instances;
import weka.core.SelectedTag;
import libsvm.svm_model;
import java.io.BufferedReader;
import java.io.FileReader;
import java.lang.reflect.Field;