Skip to content

Instantly share code, notes, and snippets.

Avatar
🔋
Full of energy!

Mikolaj Buchwald mikbuch

🔋
Full of energy!
View GitHub Profile
@mikbuch
mikbuch / SVLibSVM.java
Last active Aug 14, 2020 — forked from DavidWiesner/SVLibSVM.java
Access support vector in LibSVM and Weka
View SVLibSVM.java
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;
@mikbuch
mikbuch / print-resultset.java
Last active Nov 18, 2020 — forked from jimjam88/print-resultset.java
Print an ResultSet to the console (STDOUT)
View print-resultset.java
// 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