Instantly share code, notes, and snippets.

mkdir ./big_pdfs
mkdir ./small_pdfs
for F in `ls *.pdf`; do
echo $F
echo $newPDF
gs -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/screen -sOutputFile=$smallPDF $F
fileList = ['system.dat','system.dat_2.5_0.3','system.dat_2_0.3','system.dat_1.1_0.3',
for fileName in fileList:
sDateFile = 'myFiles/' + fileName ## File name to read
## Read needed data
tMc, Time, Mass, Rh, Rhl, Rt, Ntot, Rc, error = np.loadtxt(
sDateFile, unpack=True, usecols = (8, 1, 2, 16, 17, 20, 45, 13, 6))
View Makefile.remark
## Markdown to slides is a command line interface to convert markdown documents to an HTML slideshow.
## Basically, Markdown to slides uses remark to convert your markdown documents to HTML slideshows, i.e. that can be viewed in your favorite modern Web browser.
BUILD_DIR := build
REMARK := markdown-to-slides
MARKDOWN := $(wildcard *.md)
HTML := $(patsubst,$(BUILD_DIR)/%.html,$(MARKDOWN))