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
%load_ext autoreload | |
%autoreload 2 | |
%matplotlib inline | |
from argparse import Namespace | |
import misc.logging_utils as logging_utils | |
args = Namespace() | |
logger = logging_utils.get_ipython_logger() |
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
### Lines to add to .bashrc | |
# for the OpenBLAS library | |
export LD_LIBRARY_PATH=/path/to/OpenBLAS:$LD_LIBRARY_PATH | |
export BLAS=/path/to/libopenblas.a | |
export ATLAS=/path/to/libopenblas.a |
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
# Makefile | |
# | |
# Converts Markdown to other formats (HTML, PDF) using Pandoc | |
# <http://johnmacfarlane.net/pandoc/> | |
# | |
# Run "make" (or "make all") to convert to all other formats | |
# | |
# Run "make clean" to delete converted files | |
# | |
# Adapted from: https://gist.github.com/kristopherjohnson/7466917 |
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
### | |
# Thanks to Niklas Jahnsson for putting this together. | |
# | |
# Replace: %s:bmc_article:<filename>:g | |
### | |
bmc_article.pdf: bmc_article.tex | |
pdflatex bmc_article | |
toc: |
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/bin/env bash | |
du -hs * | sort -h |
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/bin/env bash | |
epstool --copy --bbox $1.eps $1.bb.eps | |
rm $1.eps | |
mv $1.bb.eps $1.eps |
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/bin/env bash | |
epstool --copy --bbox $1.eps $1.bb.eps | |
rm $1.eps | |
mv $1.bb.eps $1.eps | |
convert $1.eps $1.png |
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/bin/env python3 | |
import argparse | |
import os.path | |
import shutil | |
import subprocess | |
user_home = os.path.expanduser('~') | |
default_template_file = os.path.join( | |
user_home, |
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/bin/env bash | |
ps aux | grep -E $USER.*$1 | grep -v 'grep\|-bash\|sshd:\|ps aux\|less' | less |
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
syntax on | |
set autoindent | |
set number | |
" try to handle tabs in makefiles correctly | |
filetype plugin on | |
" change to the directory of the current file by default | |
" workaround. see: https://github.com/vim/vim/issues/704 | |
autocmd VimEnter * set autochdir |
OlderNewer