Last active
June 30, 2016 02:57
-
-
Save Dispader/931d60b4b9c18721e718888771069f11 to your computer and use it in GitHub Desktop.
Chuck Norris database query — pretty edition
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:load https://git.io/v2N1I | |
:register GrabCommand | |
:grab 'org.apache.commons:commons-lang3:3.4' | |
import org.apache.commons.lang3.StringEscapeUtils | |
slurper = new groovy.json.JsonSlurper() | |
println "\n${StringEscapeUtils.unescapeHtml4(slurper.parse( new URL('http://api.icndb.com/jokes/random') ).value.joke)}\n" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment