knitr::opts_chunk$set( cache = FALSE, collapse = TRUE, message = FALSE, # warning = FALSE, comment = "#>", fig.align = "left", fig.path = "tools/README-" )
Generate random Chuck Norris facts from the excellent internet Chuck Norris database r emo::ji("sunglasses")
.
Chuck Norris solved the traveling salesman problem in $O\left(1\right)$ time. Here’s the pseudo-code:
Break salesman into N pieces. Kick each piece to a different city.
You can install the development version of roundhouse
from GitHub using
if (!requireNamespace("devtools")) { install.packages("devtools") } devtools::install_github("bgreenwell/roundhouse")
r emo::ji("warning")
WARNING: Some facts may contain explicit material!
# Generate a random fact roundhouse::random_fact() #> [1] "Chuck Norris has never been accused of murder because his roundhouse kicks are recognized as 'acts of God.'" # Generate multiple random facts roundhouse::random_fact(3) #> [1] "Chuck Norris doesn't need garbage collection because he doesn't call .Dispose(), he calls .DropKick()." #> [2] "There are no steroids in baseball. Just players Chuck Norris has breathed on." #> [3] "All browsers support the hex definitions #chuck and #norris for the colors black and blue." # Print fact categories roundhouse::fetch_categories() #> [1] "explicit" "nerdy" # Generate a random fact with a roundhouse kick! roundhouse::kick(width = 40, size = 15)
# Or simply supply your own text! roundhouse::kick("Chuck Norris can’t test for equality because he has no equal.", type = 2, width = 40, size = 25, fps = 5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.