Skip to content

Instantly share code, notes, and snippets.

View mja's full-sized avatar
💭
🙊

Mark James Adams mja

💭
🙊
View GitHub Profile
@mja
mja / typeI.R
Last active December 11, 2015 12:08 — forked from johnmyleswhite/gist:4596783
library("ggplot2")
library(plyr)
n.sims <- 100
max.n.vars <- 100
n.obs <- 100
res <- data.frame()
for (sim in 1:n.sims)
@mja
mja / .bashrc
Created January 17, 2009 13:28 — forked from boosty/git_status.sh
# http://henrik.nyh.se/2008/12/git-dirty-prompt
# http://www.simplisticcomplexity.com/2008/03/13/show-your-git-branch-name-in-your-prompt/
#
# boosty likes it like that:
# ~/dev/dir[master]$ # clean working directory
# ~/dev/dir[master⚡]$ # dirty working directory
function parse_git_dirty {
[[ $(git status 2> /dev/null | tail -n1) != "nothing to commit (working directory clean)" ]] && echo "⚡"
}