Skip to content

Instantly share code, notes, and snippets.

@rpietro
rpietro / R_citation.md
Last active December 20, 2015 00:39
R citation

R: A Language and Environment for Statistical Computing, R Core Team, R Foundation for Statistical Computing, Vienna, Austria, 2013, http://www.R-project.org/

@rpietro
rpietro / rct_template
Created July 19, 2013 23:53
RCT template
## Methods
### Trial design
Changes to trial design
### Participants
Study settings
### Interventions
### Outcomes
@rpietro
rpietro / article_template.md
Created July 19, 2013 23:55
Article template

Abstract

Introduction

Methods

Results

Discussion

@rpietro
rpietro / CAT_template.md
Created July 19, 2013 23:56
CAT template

Item generation

Bibliographic sources

General sources

Quora Stack exchange

Situations & multimedia

@rpietro
rpietro / divein_blueprint.md
Created July 19, 2013 23:57
divein blueprint

divein blueprint

Whole tasks

Map situated schema for whole tasks

  • list concepts
  • list situations
@rpietro
rpietro / reproducible_research_template.md
Created July 20, 2013 00:01
Reproducible research template

Reproducible research protocol

As partially described in previous sections, we followed a reproducible research protocol along the lines previously described by our group (Vissoci, 2013). Briefly, all data sets, scripts, templates, software and workflows generated under this project were deposited under the public repositories Github and figshare. For access to the specific data for this project please refer to

@rpietro
rpietro / dot_template.gv
Created July 22, 2013 23:54
Dot language template with commonly used syntax
digraph foo {
//rankdir=LR;
//overlap = scale
//splines = TRUE
//subgraph design {
// rank = same; qualitative; quantitative;
//}
@rpietro
rpietro / slidify_template.rmd
Last active December 20, 2015 02:59
Slidify template with components that require no tweaking beyond what is available within the io2012 framework
---
title :
subtitle :
author :
job :
framework : io2012 # {deckjs, shower, dzslides, landslide, html5slides, ...}
highlighter : highlight.js # {highlight.js, prettify, highlight}
hitheme : tomorrow #
widgets : [] # {mathjax, quiz, bootstrap}
mode : standalone # {, draft, selfcontained}
@rpietro
rpietro / comment.r
Created July 24, 2013 23:44
comment line with 80 characters, compliant with Hadley's style http://goo.gl/OVjbDT
#------------------------------------------------------------------------------
@rpietro
rpietro / extract_email_addresses.r
Created July 26, 2013 16:14
extracts email addresses from a string
address <- c("whatever, [email protected]", "nothing here","right, [email protected]", "blablabla [email protected]")
emailpattern <- '[[:alnum:]\\-_.%+]+@[[:alnum:]\\-_.%+]+\\.[[:alpha:]]+'
email_addresses <- str_extract_all(string = address, emailpattern)
email_addresses