Skip to content

Instantly share code, notes, and snippets.

View chapmanb's full-sized avatar

Brad Chapman chapmanb

View GitHub Profile
@jnhutchinson
jnhutchinson / knitr.rmd
Created June 11, 2012 16:38
example knitr.r
### KNITR SETUP
```{r setup, echo=FALSE}
opts_chunk$set(tidy=TRUE, cache=FALSE, highlight=TRUE, figalign="center", warning=FALSE, error=FALSE, message=FALSE, fig.height=11, fig.width=11)
```
### EXAMPLE CHUNK
```{r libraries}
library(ggplot2)
library(xtable)
@thickey
thickey / pom2proj.clj
Created March 7, 2012 01:36
Convert Maven pom.xml file to Lein project.clj
(ns pom2proj
(:require [clojure.xml :as xml]
[clojure.zip :as zip]
[clojure.java.io :as io]
[clojure.data.zip.xml :as zx])
(:use [clojure.pprint :only [pprint]]))
(defn- text-attrs
[loc ks]
(map (fn [k]
@hugoduncan
hugoduncan / gist:1077956
Created July 12, 2011 13:16
vmfest meta file example
{:debian-6-0-1-tb {:description "Debian Squeeze 6.0.1"
:os-family :debian
:os-version "6.0.1"
:os-type-id "Debian_64"
:os-64-bit true
:username "vmfest"
:password "vmfest"
:sudo-password "vmfest"}}
@cloudartisan
cloudartisan / core.clj
Created June 17, 2011 04:11
Pallet source for deployment to staging
(ns staging.core
(:require
[pallet.core :as core]
[pallet.compute :as compute]
[pallet.resource :as resource]
[pallet.stevedore :as stevedore]
[pallet.crate.automated-admin-user :as automated-admin-user]
[staging.crate.mongodb :as mongodb]))
(def ec2-service
;; ## Example of timeseries aggregation in cascalog.
;;
;; (copy paste all of this in at the REPL!)
(use 'cascalog.api)
(def tseries [["ndvi" 1 0 [1 2 3 4]]
["ndvi" 1 2 [2 3 4 5]]
["ndvi" 1 1 [4 3 2 1]]
["ndvi" 1 4 [1 2 3 4]]
sudo apt-get install libtool
git clone git://dnaa.git.sourceforge.net/gitroot/dnaa/dnaa dnaa-git
cd dnaa-git
# bfast required. see above gist
cp -r ../bfast-git ./bfast
# samtools require. see above gist.
cp -r ../samtools-svn/ ./samtools
sh autogen.sh && ./configure && make && sudo make install