Skip to content

Instantly share code, notes, and snippets.

@nachocab
nachocab / criss_cross_pattern.html
Created November 11, 2014 01:01
criss cross pattern
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<base target="_blank"> <!-- open all links on a new tab -->
<script src="bower_components/d3/d3.js"></script>
<style>
body{
font-size: 20px;
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<base target="_blank"> <!-- open all links on a new tab -->
<!-- <script src="bower_components/d3/d3.js"></script> -->
<script src="http://d3js.org/d3.v3.min.js"></script>
<style>
body{
@nachocab
nachocab / index.html
Created November 11, 2014 01:05
criss cross
an
@nachocab
nachocab / index.html
Created November 11, 2014 01:05
criss cross
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<base target="_blank"> <!-- open all links on a new tab -->
<!-- <script src="bower_components/d3/d3.js"></script> -->
<script src="http://d3js.org/d3.v3.min.js"></script>
<style>
body{
@nachocab
nachocab / _.md
Last active August 29, 2015 14:09
sin waves
Sender: LSF System <lsf@node1667>
Subject: Job 2941808: <to_bam_pbmc_08_12> Exited
Job <to_bam_pbmc_08_12> was submitted from host <tin> by user <icaballe> in cluster <cromwell>.
Job was executed on host(s) <node1667>, in queue <hour>, as user <icaballe> in cluster <cromwell>.
</home/unix/icaballe> was used as the home directory.
</idi/sabeti-data/nacho/ebola_pbmc2> was used as the working directory.
Started at Tue Nov 18 20:00:26 2014
Results reported at Tue Nov 18 21:48:17 2014
targets <- read.table("targets.txt", header = TRUE)
counts <- read.delim("counts.txt", row.names = "gene_id")
counts <- counts[, targets$sample_name] # important, the ordering of the columns in the counts file must match the sample_name in the targets file
group <- factor(targets$virus_dpi, levels = unique(targets$virus_dpi))
library(edgeR)
y <- DGEList(counts = counts, group = group)
y <- calcNormFactors(y)
design <- model.matrix( ~ 0 + group, data = y$samples)
require 'test_helper'
class OrdersControllerTest < ActionController::TestCase
context "responding to GET /orders/new" do
should "succeed" do
get :new
assert_response :success
end
end
end
class House < ActiveRecord::Base
has_many :rooms
end
class Room < ActiveRecord::Base
belongs_to :house
default_scope :order => 'dimensions DESC'
attr_accessor :color, :dimensions
end
gem list
*** LOCAL GEMS ***
actionmailer (2.2.2)
actionpack (2.2.2)
activerecord (2.2.2)
activeresource (2.2.2)
activesupport (2.2.2)
annotate-models (1.0.4)