Skip to content

Instantly share code, notes, and snippets.

Dave Kleinschmidt kleinschmidt

View GitHub Profile
srvanderplas / Plot fragment hook
Created Mar 24, 2015
Knitr plot fragment hook for reveal.js
View Plot fragment hook
c0 <- knitr::knit_hooks$get('chunk')
if(is.null(options$class) & is.null(options$fragIndex)){
c0(x, options)
} else if(is.null(options$fragIndex)) {
classidx <- which(names(options)=="class")
clintel / gist:1155906
Created Aug 19, 2011
Fenced code in bullet lists with GitHub-flavoured MarkDown??
View gist:1155906

Fenced code blocks inside ordered and unordered lists

  1. This is a numbered list.

  2. I'm going to include a fenced code block as part of this bullet:

    More Code
You can’t perform that action at this time.