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
## 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 %.md,$(BUILD_DIR)/%.html,$(MARKDOWN)) |
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
fileList = ['system.dat','system.dat_2.5_0.3','system.dat_2_0.3','system.dat_1.1_0.3', | |
'system.dat_0.85_0.3','system.dat_0.75_0.3','system.dat_2_0.1'] | |
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)) | |
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
mkdir ./big_pdfs | |
mkdir ./small_pdfs | |
for F in `ls *.pdf`; do | |
echo $F | |
smallPDF="./small_pdfs/$F" | |
echo $newPDF | |
gs -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/screen -sOutputFile=$smallPDF $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
ffmpeg -framerate 5 -i ./splash_%04d.png -c:v libx264 -pix_fmt yuv420p -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" movie_name.mp4 |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
#================== Phantom compile ===================== | |
export OMP_SCHEDULE="dynamic" | |
export OMP_STACKSIZE=512M | |
ulimit -s unlimited | |
export SYSTEM=gfortran | |
#================== Phantom run ========================= | |
export OMP_NUM_THREADS=9 | |
export I_WILL_NOT_PUBLISH_CRAP=yes | |
modelName="N450M37rho16hac120" | |
./phantomsetup $modelName < "${modelName}.input" |
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
solarm | |
pc | |
450000 | |
0.1000 | |
1.500 | |
2.000 | |
0.4000 | |
30.00 | |
37 | |
3.477 |
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
## For installing a package when you installed anaconda for all users | |
sudo su root -c "/opt/anaconda3/bin/conda install package_name" | |
## | |
sudo su root -c "/opt/anaconda3/bin/conda install -c conda-forge package_name" |
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
grep -rlnI "MAX_CPU 8" . | xargs -l sed -i -e 's/MAX_CPU 8/MAX_CPU 16/g' |
OlderNewer