Skip to content

Instantly share code, notes, and snippets.

View hypothermic's full-sized avatar

hypothermic hypothermic

View GitHub Profile
@hypothermic
hypothermic / build.gradle
Created May 1, 2019 15:51
IntelliJ IDEA Gradle Java Swing form compilation (build.gradle)
apply plugin: 'java'
apply plugin: 'application'
group 'nl.hypothermic'
version '7.1.90144-RELEASE'
mainClassName = 'nl.hypothermic.xanalyzer.modules.md-main.Main'
sourceCompatibility = 1.7
@hypothermic
hypothermic / Android ExifInterface all attributes
Created November 16, 2018 17:52
A string array of all the EXIF attributes from ExifInterface. (Android)
/*java.lang.reflect.Field[] fields = ExifInterface.class.getDeclaredFields();
ArrayList<String> exifs = new ArrayList<>();
for (java.lang.reflect.Field field : fields) {
if (java.lang.reflect.Modifier.isStatic(field.getModifiers()) && field.getType() == String.class) {
try {
System.out.println("\"" + field.get(null) + "\",");
} catch (IllegalAccessException e) {
//e.printStackTrace();
}
}