#HTML presentation tools
There are many HTML presentation tools and they are all created for slightly different reasons. Here's an overview. Please let me know if I forgot any.
##CSSS
CSS-based SlideShow System
#' Clean numerical data by removing | |
clean <- function(var){ | |
type.convert(gsub("[a-zA-Z\\%\\s]", "", var)) | |
} | |
oecd[,-1] <- sapply(oecd[,-1], clean) | |
x <- oecd[,-c(1, NCOL(oecd))] | |
y <- oecd[,NCOL(oecd)] | |
plyr:::adply(x, 2, cor, y, use = 'complete.obs') |
git clone git://github.com/jgm/pandoc | |
cd pandoc | |
cabal update | |
git submodule update --init # to update the templates submodule | |
cabal install -ftests # -fhighlighting no longer needed | |
cabal test |
#!/usr/bin/env ruby | |
dry_run = ARGV.delete('--dry-run') | |
force = ARGV.delete('--force') | |
if ARGV.empty? | |
puts <<-USAGE | |
minify, swiftly concat and minify JavaScript files from the command line | |
Pass a single argument to create a .min.js version: |
/* Source: https://github.com/dciccale/css3-github-ribbon */ | |
.ribbon- { | |
background-color: #121621; | |
color: #FF0; | |
top: 1.2em; | |
right: -3.2em; | |
-webkit-transform: rotate(45deg); | |
-moz-transform: rotate(45deg); | |
transform: rotate(45deg); |
--- | |
# My First Slidify Deck | |
--- | |
### Slide 1 ### | |
This is an unordered list |
library(markdown) | |
re.capture <- function(pattern, string, ...) { | |
rex = list(src = string, names = list(), | |
result = regexpr(pattern, string, perl = TRUE, ...)) | |
for (.name in attr(rex$result, 'capture.name')) { | |
rex$names[[.name]] = substr(rex$src, | |
attr(rex$result, 'capture.start')[,.name], | |
attr(rex$result, 'capture.start')[,.name] | |
+ attr(rex$result, 'capture.length')[,.name] |
# ggplot2 graph shows up fainter, and text smaller | |
```{r echo=FALSE, message=FALSE, warning=FALSE} | |
opts_chunk$set(fig.width=18, fig.height=10) | |
require(ggplot2) | |
``` | |
*** | |
# Simple Plot |
<slide class="{{ classes }}" id="{{ id }}"> | |
<hgroup> | |
{{{ header}}} | |
</hgroup> | |
<article> | |
{{{ content }}} | |
</article> | |
</slide> |
<script src="http://yandex.st/highlightjs/7.0/highlight.min.js"></script> | |
<script src="http://yandex.st/highlightjs/7.0/languages/r.min.js"></script> | |
<script>hljs.initHighlightingOnLoad();</script> |