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
#!/bin/sh | |
FILENAME="$1" | |
MAIN="$2" | |
R --vanilla --slave <<EOF | |
postscript("|cat", horizontal=FALSE, height=7) | |
data <- read.table('$FILENAME', header=FALSE) |
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
#include <algorithm> | |
#include <cassert> | |
#include <climits> | |
#include <cmath> | |
#include <cstdlib> | |
#include <cstring> | |
#include <fstream> | |
#include <iomanip> | |
#include <iostream> | |
#include <map> |
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
%!PS-Adobe-3.0 EPSF-3.0 | |
%%BoundingBox: 0 0 420 200 | |
64 dict begin | |
/min { 2 copy lt { pop } { exch pop } ifelse } def | |
/arrowdict 13 dict def | |
arrowdict begin |
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
class trail_t { | |
public: | |
int data; | |
trail_t* parent; | |
public: | |
trail_t() : data(-1), parent(NULL), refcount_(1) {}; | |
~trail_t() { | |
if (parent) |
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
# Assuming that everything will reside on $HOME/usr/local directory as | |
# depicted below: | |
# | |
# $HOME | |
# `-- usr | |
# `-- local | |
# +-- bin | |
# `-- lib | |
# | |
# Also note that gcc, gcc-g++, glibc-devel.i386 and |
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
N = 64 | |
all: test.txt fill.txt fill_h.txt fill_v.txt | |
test.txt: testcase.txt sparse.sh | |
head -${N} testcase.txt | cut -c1-${N} | ./sparse.sh > $@ | |
fill.txt: fill_h.txt | |
ln -s -f $< $@ |
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
%!PS-Adobe-3.0 EPSF-3.0 | |
%%BoundingBox: 0 0 320 320 | |
/matrixexecarray 0 array def | |
/matrixexec { | |
userdict begin /matrixexecarray [ matrixexecarray aload pop matrix currentmatrix ] def end | |
exch setmatrix exec | |
userdict begin /matrixexecarray [ matrixexecarray aload pop setmatrix ] def end | |
} def |
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
%!PS-Adobe-3.0 EPSF-3.0 | |
%%BoundingBox: 0 0 125 125 | |
/matrixexecarray 0 array def | |
/matrixexec { | |
userdict begin /matrixexecarray [ matrixexecarray aload pop matrix currentmatrix ] def end | |
exch setmatrix exec | |
userdict begin /matrixexecarray [ matrixexecarray aload pop setmatrix ] def end | |
} def |
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
#!/bin/sh | |
i=1 | |
sed -E -n -e ' | |
:loop | |
/^<(postscript|latex|gnuplot|R)[> ]/ { | |
N | |
/<\/(postscript|latex|gnuplot|R)>/!b loop | |
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
#include <algorithm> | |
#include <cassert> | |
#include <cfloat> | |
#include <climits> | |
#include <cmath> | |
#include <complex> | |
#include <cstdio> | |
#include <cstdlib> | |
#include <cstring> | |
#include <functional> |
OlderNewer