Setup for GitHub Pages on MacBook with OS X El Capitan https://help.github.com/articles/setting-up-your-github-pages-site-locally-with-jekyll/
http://railsapps.github.io/installrubyonrails-mac.html
works perfectly!
https://help.github.com/articles/creating-pages-with-the-automatic-generator/
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Title</title> | |
<style> | |
.box { | |
height: 100px; | |
width: 100px; | |
top: 100px; |
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
#!/usr/bin/env python | |
import sys,csv | |
for row in csv.reader(sys.stdin): | |
print "\t".join(row) |
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
## reproduce the figures from http://www.jstatsoft.org/v28/c01/paper using ggplot2 | |
library(ggplot2) | |
## parameters | |
set.seed(2710) | |
## Figure 1 | |
d <- rnorm(50) |
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
import pycurl | |
import json | |
import time | |
from StringIO import StringIO | |
i = 0 | |
bnums = [] | |
while True : | |
print(str(i)) |
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
# Download the data from github (click the "raw" button, save as a text file called "results.txt"). | |
# https://gist.github.com/stephenturner/806e31fce55a8b7175af | |
res <- read.table("results.txt", header=TRUE) | |
head(res) | |
# Make a basic volcano plot | |
with(res, plot(log2FoldChange, -log10(pvalue), pch=20, main="Volcano plot", xlim=c(-2.5,2))) | |
# Add colored points: red if padj<0.05, orange of log2FC>1, green if both) | |
with(subset(res, padj<.05 ), points(log2FoldChange, -log10(pvalue), pch=20, col="red")) |
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
""" | |
We want to run a function asychronously and run a | |
callback function with multiple parameters when it | |
returns! | |
In this example, we are pretending we're analyzing | |
the names and ages of some people. We want to print | |
out: | |
jack 0 |
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
def line | |
new File("test.txt").withReader { line = it.readLine() } | |
println line |
OlderNewer