Skip to content

Instantly share code, notes, and snippets.

View psteiner's full-sized avatar
🎮
Game stuff

Philip Steiner psteiner

🎮
Game stuff
  • Richmond, B.C. Canada
View GitHub Profile
@ismits
ismits / IsNullOrEmpty.Groovy
Created May 10, 2017 18:16
Is null or empty check in Groovy
if (!someString?.trim()) {
logger.lifecycle("the string is null or empty.")
}
@esycat
esycat / PrettyPrinter.groovy
Last active November 5, 2024 13:54
A simple way to pretty print nested lists and maps in Groovy.
import static groovy.json.JsonOutput.*
def config = ['test': 'lalala']
println prettyPrint(toJson(config))