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
BEGIN { FS = OFS = "," | |
print "gene", "cost", "cost-type"} | |
/yeast-carbon|weight/ && /0\.1/ && /nitrogen/{ | |
gsub(/"/,"") | |
gsub(/yeast-carbon-/,"") | |
printf "%s,%3.4f,%s\n", $2, $3, $13 | |
} |
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
*.swp |
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
module NavigationHelpers | |
# Maps a name to a path. Used by the | |
# | |
# When /^I go to (.+)$/ do |page_name| | |
# | |
# step definition in webrat_steps.rb | |
# | |
def path_to(page_name) | |
"http://0.0.0.0:3000" + case page_name | |
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
require 'www/mechanize' | |
# Patches WWW::Mechanize for Cucumber + Webrat | |
module WWW | |
class Mechanize | |
def self.log_disabled | |
@@log ||= Logger.new(STDOUT) | |
end |
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/local/bin/ruby | |
require 'rubygems' | |
require 'fastercsv' | |
layout = Hash.new | |
FasterCSV.open(ARGV.first, :headers => true).each do |row| | |
row.headers.each do |header| | |
layout[header] ||= Hash.new |
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
\documentclass[12pt,PhD]{muthesis} | |
\usepackage{verbatim} | |
\usepackage{graphicx} | |
\usepackage{url} % typeset URL's reasonably | |
\usepackage{listings} | |
\usepackage{phdthesis} | |
\usepackage{rotating} | |
\usepackage{subfig} | |
\usepackage{psfrag} |
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/local/bin/ruby | |
# | |
# Short script for converting yaml file time to csv | |
# | |
require 'yaml' | |
require 'rubygems' | |
require 'fastercsv' |
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
s/\[c\]//g | |
s/-L//g | |
s/EX_//g | |
s/(e)//g | |
s/ /,/g | |
s/,$//g |
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
data(iris) | |
distance <- dist(1 - cor(iris[-5])) | |
clustering <- hclust(distance) | |
plot(clustering) |
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
print.pdf <- function(figure,name,extra.width=0){ | |
# Create file name | |
pdf <- paste("/Users/mike/Desktop/post/",name,".pdf",sep="") | |
# Convert to pdf | |
trellis.device("pdf", color=TRUE) | |
pdf(pdf,onefile=FALSE, paper = "special") | |
print(figure) | |
dev.off() |