- results need to be reproducible
- Documentation of code
- easier to read and understand later on to extend
- Great for making reports as well
- Sharing results leads to facilitating discussion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
license: mit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
license: mit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
license: mit | |
border: no |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
license: mit | |
border: no |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
license: mit | |
border: no |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
license: mit | |
border: no |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require(ggplot2) | |
members <- jsonlite::fromJSON(readLines('https://gist.githubusercontent.com/neerajt/6f0ff957e7ff3adab63471460cade5d5/raw/55e3b7691aefe8e1c1dca7543dd4d41c8b5bee09/members.json')) | |
plt <- ggplot(members, aes(x=Date, y=TotalMembers)) + | |
geom_point() + geom_point(aes(y = ActiveMembers), color="red") + | |
geom_point(aes(y = TotalMembers - ActiveMembers), color="blue") | |
print(plt) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This file will be called the `le_correcter.R` file shown below | |
# and both files must be in the same directory. | |
# This file contains the low-level functions to find the clusters | |
# as well as convert ROIs to voxelwise data. | |
suppressPackageStartupMessages(library(connectir)) | |
suppressPackageStartupMessages(library(inline)) | |
plugin_bigmemory <- function() { | |
l <- getPlugin("RcppArmadillo") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fs = require('fs'); | |
// get and parse the HEAD | |
var HEAD = fs.readFileSync("./.git/HEAD").toString(); | |
HEAD = HEAD.replace(/(\r\n|\n|\r)/gm,""); | |
HEAD = HEAD.split(": ")[1] | |
var HEADpath = fs.readFileSync('./.git/' + HEAD).toString().replace(/\n/, ""); | |
// function to print pretty output | |
var exec = require('child_process').execSync; |