Skip to content

Instantly share code, notes, and snippets.

View djnavarro's full-sized avatar

Danielle Navarro djnavarro

View GitHub Profile
@friendly
friendly / colorize.R
Last active July 20, 2025 22:29
Render text in color for Markdown / Quarto | Format refs to packages in inline text
#' Render text in color for Markdown / Quarto documents using LaTeX or CSS styles
#'
#' This function uses `\textcolor{}{}` from the `xcolor` package for LaTeX output
#' or a CSS `<span>` for HTML output.
#'
#' Note that a color not defined in the `xcolor` package will trigger a latex error.
#' e.g., `darkgreen` is not defined but can use:
#' \definecolor{darkgreen}{RGB}{1,50,32}
#'
#' @param text Text to display, a character string
@baptiste
baptiste / Progress-Pride-Flag-Daniel-Quasar_vector.svg
Last active June 17, 2020 08:43
Progress-Pride-Flag-Daniel-Quasar_vector
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@IanColdwater
IanColdwater / twittermute.txt
Last active October 25, 2025 19:14
Here are some terms to mute on Twitter to clean your timeline up a bit.
Mute these words in your settings here: https://twitter.com/settings/muted_keywords
ActivityTweet
generic_activity_highlights
generic_activity_momentsbreaking
RankedOrganicTweet
suggest_activity
suggest_activity_feed
suggest_activity_highlights
suggest_activity_tweet
# often package developers store the call in their model object
# and then print it out in their summary / print methods
lm_model <- lm(mpg ~ cyl, mtcars)
lm_model
#>
#> Call:
#> lm(formula = mpg ~ cyl, data = mtcars)
#>
#> Coefficients: