Skip to content

Instantly share code, notes, and snippets.

View sagix's full-sized avatar

Nicolas sagix

View GitHub Profile
@myniva
myniva / printTaskInputs.gradle
Last active August 8, 2023 11:22
Prints all inputs of the various tasks of a Gradle project
task printTaskInputs {
doLast {
project.getTasks().each { task ->
println "--------------------------------------------------------------------------------"
println " Task '${project.name}:${task.name}'"
println "--------------------------------------------------------------------------------"
println ""
println "File inputs:"
task.inputs.files.each {
@pyricau
pyricau / OomExceptionHandler.java
Created May 6, 2015 17:18
Dump the heap on OutOfMemoryError crashes in your debug builds.
import android.content.Context;
import android.os.Debug;
import java.io.File;
public class OomExceptionHandler implements Thread.UncaughtExceptionHandler {
private static final String FILENAME = "out-of-memory.hprof";
public static void install(Context context) {
Thread.UncaughtExceptionHandler defaultHandler = Thread.getDefaultUncaughtExceptionHandler();