Skip to content

Instantly share code, notes, and snippets.

View mhoffman's full-sized avatar

Max Hoffmann mhoffman

View GitHub Profile
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.
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.
#!/usr/bin/env python
import pprint
try:
import io as StringIO
except:
import StringIO
import ase.io
#
# Example:
+x11 +xquartz
# +gcc48
# +universal
+bash_completion
export HISTIGNORE="&:ls:[bf]g:[cb]d:b:exit:[ ]*"
@mhoffman
mhoffman / .bashrc
Last active November 8, 2017 17:34
# Show bash prompt with timer information
# and git branch
export GIT_PS1_SHOWDIRTYSTATE=true
export export GIT_PS1_SHOWSTASHSTATE=true
# set a fancy prompt
declare -F | grep __git_ps1 > /dev/null
if [ "$?" -eq 0 ]
then
echo ${platform}
#!/bin/bash -eu
# Copyright, Max J. Hoffmann, 2012
shopt -s expand_aliases
pdf_viewer="xpdf -z page "
show_pdf=""
#Default scaling
scaling="0.3"