Skip to content

Instantly share code, notes, and snippets.

@tajmorton
tajmorton / bigcorPar.r
Last active January 3, 2016 04:59 — forked from bobthecat/bigcorPar.r
Fix a type and change `MAT` to `x` to refer to input matrix.
bigcorPar <- function(x, nblocks = 10, verbose = TRUE, ncore="all", ...){
library(ff, quietly = TRUE)
require(doMC)
if(ncore=="all"){
ncore = multicore:::detectCores()
registerDoMC(cores = ncore)
} else{
registerDoMC(cores = ncore)
}
@tajmorton
tajmorton / google_chart_options.diff
Created December 30, 2013 03:32
Adds support for vAxis, hAxis, and legend options to php-report.
diff --git a/classes/headers/ChartHeader.php b/classes/headers/ChartHeader.php
index cdbe6f2..c1ab410 100644
--- a/classes/headers/ChartHeader.php
+++ b/classes/headers/ChartHeader.php
@@ -80,7 +80,19 @@ class ChartHeader extends HeaderBase {
'options'=>array(
'type'=>'object',
'default'=>array()
- )
+ ),