Here is how you can make a table in GFM format using knitr + ascii
render_gfm()
gfm_table <- function(x, ...) {
require(ascii)
y <- capture.output(print(ascii(x, ...), type = "org"))
# substitute + with | for table markup
Here is how you can make a table in GFM format using knitr + ascii
render_gfm()
gfm_table <- function(x, ...) {
require(ascii)
y <- capture.output(print(ascii(x, ...), type = "org"))
# substitute + with | for table markup
// Jekyll Pygments syntax highlighter styles | |
// Color scheme | |
$base03: #002B36 | |
$base02: #073642 | |
$base01: #586E75 | |
$base00: #657B83 | |
$base0: #839496 | |
$base1: #93A1A1 | |
$base2: #EEE8D5 |
#' Modified version of the ggplot2 plotmatrix function that accepts additional | |
#' variables for aesthetic mapping. | |
#' | |
#' example | |
#' data(iris) | |
#' iris.vars <- c("Sepal.Length", "Sepal.Width", "Petal.Length", "Petal.Width") | |
#' ggpairs(data = iris, facet.vars = iris.vars, | |
#' mapping = aes(color = Species, shape = Species)) | |
ggpairs <- function (data, facet.vars = colnames(data), facet.scale = "free", |
This is how I currently work with Git and the Bioconductor SVN. I'll use the affxparser package as an example.
% git clone git@github.com:HenrikBengtsson/affxparser.git
% cd affxparser
I'm using the Git Flow workflow everywhere, including this package. In short,
pvec2<-function(v, FUN, ..., mc.set.seed = TRUE, mc.silent = FALSE, | |
mc.cores = getOption("mc.cores", 2L), mc.cleanup = TRUE | |
,combineFUN = `c` | |
) { | |
### AUTHOR: malcolm_cook@stowers.org | |
### PURPOSE: an improvement(?) on parallel:pvec which | |
### (1) does not require v to be a vector, rather, v must | |
### implement `[`, `length`. Thus, i.e. BioConductor List (including | |
### GRangesList) is supported. | |
### (2) uses `parallel:splitIndices` to compute indices into v |
# In this example, Deedee is the name of my Ecovacs vacuum. | |
# We use a placeholder image for the background | |
- type: picture-elements | |
image: /local/pics/devices/deedee_card_unknown.png | |
elements: | |
# This will be the background we actually see. | |
# The sensor is a template pulling the status attribute of the vacuum. | |
# These pictures are of the vacuum all in the same place. | |
# The images all have a dark overlay on the bottom. |
ag "sometext" --nogroup | awk '{print substr($1,1,index($1,":")-1);}' | xargs -I {} sed -i .bak -e 's/sometext/anothertext/g' {} |
#!/bin/bash | |
libs=( "/usr/local/lib/libmacfuse_i32.2.dylib" \ | |
"/usr/local/lib/libosxfuse_i32.2.dylib" \ | |
"/usr/local/lib/libosxfuse_i64.2.dylib" \ | |
"/usr/local/lib/libmacfuse_i64.2.dylib" \ | |
"/usr/local/lib/libosxfuse_i32.la" \ | |
"/usr/local/lib/libosxfuse_i64.la" \ | |
"/usr/local/lib/pkgconfig/osxfuse.pc" ) |
* { | |
font-size: 12pt; | |
font-family: monospace; | |
font-weight: normal; | |
font-style: normal; | |
text-decoration: none; | |
color: black; | |
cursor: default; | |
} |