This file contains hidden or 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/bash | |
# | |
#BSUB -o pyjob.%J.out | |
#BSUB -e pyjob.%J.err | |
#BSUB -n 1 | |
# do stuff | |
source ~/venv/bin/activate | |
python -c "import pyica; import sys; print(sys.version); from numpy.random import randn; x = randn(); print '%f' %x" |
This file contains hidden or 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/bash | |
#BSUB -L /bin/bash | |
#BSUB -J paj[1-10] | |
#BSUB -e paj.%I.err | |
#BSUB -o paj.%I.out | |
#BSUB -n 1 | |
python -c "import sys; print(sys.version); import pyica; from numpy.random import randn; print '%f' % randn()" | |
# comments: |
This file contains hidden or 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
% also works with scatter | |
% may need to play around with axis labels and text positioning to get it to look nice | |
data = rand(10,2); | |
plot(data(:,1),data(:,2),'ko','MarkerFaceColor','k'); | |
labels = num2str((1:size(data,1))','%d'); | |
text(data(:,1),data(:,2),labels,'horizontal','left','vertical','bottom'); |
This file contains hidden or 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
% font sizes | |
set(0,'DefaultAxesFontSize',18) | |
set(0,'DefaultTextFontSize',18) | |
% line widths | |
set(0,'DefaultAxesLineWidth',2); | |
set(0,'DefaultLineLineWidth',2); |
This file contains hidden or 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
\usepackage{amsmath} | |
% ensures non-italicized chemical species name | |
\newcommand{\ch}[1]{\mathrm{#1}} | |
% adds brackets to indicate concentrations | |
\newcommand{\conc}[1]{[\mathrm{#1}]} | |
% single right reaction arrow, with rate argument on top | |
\newcommand{\react}[1]{\stackrel{#1}{\rightarrow}} | |
% double left/right reaction arrow decorated above/below with rates | |
\newcommand{\doublereact}[2]{\mathrel{\substack{#1\\\rightleftharpoons\\#2}}} |
This file contains hidden or 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/<space><space><space><space>/<tab>/g |
NewerOlder