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
0 = Success | |
1 = Operation not permitted | |
2 = No such file or directory | |
3 = No such process | |
4 = Interrupted system call | |
5 = Input/output error | |
6 = No such device or address | |
7 = Argument list too long | |
8 = Exec format error |
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
/** | |
* Removes the minus sign from the beginning of the string | |
* | |
* @param str | |
* @returns an array with the first item as true if a minus | |
* was found and the string minus the minus sign. | |
*/ | |
function stripSign(str) { | |
// Check if it has a minus sign | |
let hasMinus = str.charAt(0) === '-'; |
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
%% Make everything look better. | |
%% http://tex.stackexchange.com/questions/553/what-packages-do-people-load-by-default-in-latex | |
%% http://www.howtotex.com/packages/9-essential-latex-packages-everyone-should-use/ | |
\usepackage{microtype} | |
%% Shrink space around figures. | |
%% This beats manually adding negative \vspace commands everywhere. | |
%\setlength{\textfloatsep}{0pt} | |
%\setlength{\textfloatsep}{20pt plus 2pt minus 4pt} | |
%\setlength{\textfloatsep}{10pt plus 2pt minus 4pt} |
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
# Script to convert binary data in .dat files to .xml files | |
# using Quantum Espresso Input Output Toolkit (iotk) | |
# ========================================================= | |
# | |
# NOTE: Set IOTK directory on line 24 before using | |
# e.g. <espresso>/bin/iotk, where <espresso> is the path to Quantum Espresso | |
# | |
# Recommended Usage: | |
# - Place script in home directory (optional) | |
# - navigate to *.save directory generated by Espresso |
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
#------------------------------------------------------------------------------ | |
# Module: cubetools | |
#------------------------------------------------------------------------------ | |
# | |
# Description: | |
# Module to work with Gaussian cube format files | |
# (see http://paulbourke.net/dataformats/cube/) | |
# | |
#------------------------------------------------------------------------------ | |
# |
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
#------------------------------------------------------------------------------ | |
# Function: setlocq | |
#------------------------------------------------------------------------------ | |
# | |
# Description: | |
# Port of Quantum Espresso's 'setlocq' routine (PHonon/PH/setlocq.f90) | |
# | |
#------------------------------------------------------------------------------ | |
# | |
# What does it do: |
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 | |
#------------------------------------------------------------------------------ | |
# Shell script: allband.sh | |
#------------------------------------------------------------------------------ | |
# | |
# Description: | |
# Extracts wavefunction for multiple bands using pp.x from Quantum Espresso. | |
# | |
#------------------------------------------------------------------------------ | |
# |