Skip to content

Instantly share code, notes, and snippets.

@nachocab
nachocab / brew --config
Created June 9, 2012 01:05
Can't make: brew install gawk
brew --config
HOMEBREW_VERSION: 0.9
HEAD: bc10e9fc3ef8483e5a9fd4b3bafa3e0021599deb
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: dual-core 64-bit penryn
OS X: 10.7.3
Kernel Architecture: x86_64
Xcode: 4.3.2
GCC-4.0: build 5494
@nachocab
nachocab / config.log
Created June 9, 2012 01:06
homebrew config log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by GNU Awk configure 4.0.1, which was
generated by GNU Autoconf 2.68. Invocation command line was
$ ./configure --prefix=/usr/local/Cellar/gawk/4.0.1
## --------- ##
## Platform. ##
brew install -f https://raw.github.com/Homebrew/homebrew-dupes/master/libiconv.rb
/usr/local/Library/Homebrew/global.rb:65: warning: Insecure world writable dir /usr/local in PATH, mode 040777
/usr/local/bin/brew:74: warning: Insecure world writable dir /usr/local in PATH, mode 040777
######################################################################## 100.0%
/usr/local/Library/Homebrew/build.rb:7: warning: Insecure world writable dir /usr/local in PATH, mode 040777
==> Downloading http://ftpmirror.gnu.org/libiconv/libiconv-1.14.tar.gz
Already downloaded: /Library/Caches/Homebrew/libiconv-1.14.tar.gz
==> Downloading patches
######################################################################## 100.0%
######################################################################## 100.0%
brew install gawk
==> Downloading http://ftpmirror.gnu.org/gawk/gawk-4.0.1.tar.xz
Already downloaded: /Library/Caches/Homebrew/gawk-4.0.1.tar.xz
==> ./configure --prefix=/usr/local/Cellar/gawk/4.0.1
dyld: Library not loaded: /usr/local/lib/libiconv.2.dylib
Referenced from: /usr/local/bin/cat
Reason: Incompatible library version: cat requires version 8.0.0 or later, but libiconv.2.dylib provides version 7.0.0
./configure: line 2184: 38948 Trace/BPT trap: 5 cat > config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
brew install -v gawk
==> Downloading http://ftpmirror.gnu.org/gawk/gawk-4.0.1.tar.xz
Already downloaded: /Library/Caches/Homebrew/gawk-4.0.1.tar.xz
xz -dc "/Library/Caches/Homebrew/gawk-4.0.1.tar.xz" | /usr/bin/tar xf -
==> ./configure --prefix=/usr/local/Cellar/gawk/4.0.1
./configure --prefix=/usr/local/Cellar/gawk/4.0.1
checking for a BSD-compatible install... ./install-sh -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js"></script>
</head>
<body>
<script type="text/javascript">
var data = [-1,0,1]
var rect_size = 25; //px
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js"></script>
</head>
<body>
<script type="text/javascript">
var textElems = ["text1","text2"]
var x = d3.scale.ordinal().domain(d3.range(textElems.length)).rangeBands([0, 120]);
<!DOCTYPE html>
<html>
<head>
<script src='../js/d3.js'></script>
<script src='../js/underscore.js'></script>
</head>
<body>
<script type="text/javascript">
var textElems = ["text1","text2"]
<!DOCTYPE html>
<html>
<head>
<script src='http://mbostock.github.com/d3/d3.js'></script>
</head>
<body>
<script type="text/javascript">
var textElems = ["text1","text2"]
var x = d3.scale.ordinal().domain(d3.range(textElems.length)).rangeBands([0, 120]);
@nachocab
nachocab / heatmap3.R
Created October 8, 2012 15:06
heatmap 3 revised
# EXAMPLE USAGE
# example of colsidecolors rowsidecolors (single column, single row)
mat <- matrix(1:100, byrow=T, nrow=10)
column_annotation <- sample(c("red", "blue", "green"), 10, replace=T)
column_annotation <- as.matrix(column_annotation)
colnames(column_annotation) <- c("Variable X")
row_annotation <- sample(c("red", "blue", "green"), 10, replace=T)
row_annotation <- as.matrix(t(row_annotation))