This file contains hidden or 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
unbind C-b | |
set -g prefix C-o | |
bind C-o send-prefix | |
set -g default-terminal "xterm-256color" |
This file contains hidden or 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
alias ls='ls -G' | |
alias ll='ls -lh' | |
alias rm='rm -i' | |
alias mv='mv -i' | |
alias cp='cp -i' | |
alias rhelp="Rscript -e 'args <- commandArgs(TRUE); help(args[2], package=args[3], help_type=\"html\"); Sys.sleep(5)' --args" | |
alias github='function _github(){ git clone [email protected]:$1/$2.git; };_github' | |
alias gfmp='git fetch --all; git merge; git push' |
This file contains hidden or 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
How It's Done: Bioc II | |
=== | |
author: Michael Love | |
date: 30 April 2015 | |
autosize: false | |
width: 1600 | |
Survey results (n=28) | |
=== |
This file has been truncated, but you can view the full file.
This file contains hidden or 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>How It's Done: Bioc II</title> | |
<meta name="apple-mobile-web-app-capable" content="yes" /> | |
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" /> |
This file contains hidden or 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
rfkill block bluetooth | |
echo 22 > /sys/class/backlight/acpi_video0/brightness | |
exit 0 |
This file contains hidden or 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
syndaemon -i 2 -K -d |
This file contains hidden or 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
\documentclass{article} | |
\pagenumbering{gobble} | |
\hyphenpenalty=10000 | |
\exhyphenpenalty=10000 | |
\begin{document} | |
\nocite{*} | |
\bibliographystyle{apalike} | |
\bibliography{citations} | |
\end{document} |
This file contains hidden or 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
library(RColorBrewer) | |
palette(brewer.pal(4,"Set1")) | |
x <- read.table("snow.txt", header=TRUE) | |
x$EN <- factor(x$EN, c("n","m","s","vs")) | |
levels(x$EN) <- c("no/weak", "medium", "strong", "very strong") | |
plot(x$Tot, col=x$EN, pch=20, cex=3, | |
xaxt="n", xlab="", | |
ylab="total snowfall", main="Boston snowfall") | |
abline(h=1:5 * 20, col=rgb(0,0,0,.5)) | |
axis(1, 1:nrow(x), as.character(x$Season), las=2) |
This file contains hidden or 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
library(DESeq2) | |
# simulate data | |
dds <- makeExampleDESeqDataSet(n=80000,m=100) | |
# this takes 10 seconds on my machine | |
dds <- estimateSizeFactors(dds) | |
baseMean <- rowMeans(counts(dds, normalized=TRUE)) | |
sum(baseMean > 1) | |
idx <- sample(which(baseMean > 5), 1000) | |
dds.sub <- dds[idx, ] |
This file contains hidden or 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
for (f in list.files()) { print(f); test(".", sub("test_(.*)\\.R","\\1",f)) } |