Skip to content

Instantly share code, notes, and snippets.

View jhrmnn's full-sized avatar

Jan Hermann jhrmnn

View GitHub Profile

Keybase proof

I hereby claim:

  • I am azag0 on github.
  • I am azag0 (https://keybase.io/azag0) on keybase.
  • I have a public key whose fingerprint is EF58 0816 2CC4 6611 E5A2 ECAC 72BB B9DC 774D BDF2

To claim this, I am signing this object:

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.
from mbd import mbd
from pymbd import get_free_atom_data
import numpy as np
import os
import sys
from contextlib import contextmanager
def get_epsilon_M_for_q(species, xyz, lattice, hirsh, q_dir, scale):
assert np.abs(np.linalg.norm(q_dir)-1) < 1e-10
#!/usr/bin/env python3
from argparse import ArgumentParser
from pathlib import Path
from datetime import datetime, timedelta
import subprocess
from math import log10, sqrt
def prune(seq, key, dist):
pruned = []
#!/usr/bin/env python3
import sys
import subprocess as sp
from pathlib import Path
from argparse import ArgumentParser
from configparser import ConfigParser
def ssh(host, cmd):
return sp.check_output(['ssh', host, cmd]).strip().decode()
@jhrmnn
jhrmnn / # scalapack - 2018-07-26_10-54-24.txt
Created July 26, 2018 09:01
scalapack on macOS 10.13.5 - Homebrew build logs
Homebrew build logs for scalapack on macOS 10.13.5
Build date: 2018-07-26 10:54:24
@jhrmnn
jhrmnn / test.F90
Last active August 27, 2018 13:30
Real/complex polymorphism with a vanilla Fortran compiler
#ifndef INCLUDED
module mymod
implicit none
interface add_one
module procedure add_one_real
module procedure add_one_complex
end interface

Keybase proof

I hereby claim:

  • I am jhrmnn on github.
  • I am jhrmnn (https://keybase.io/jhrmnn) on keybase.
  • I have a public key ASCrIKEpm_rCBSlUrpnCbq_1hlet-RaJGZkg6bbrkfN5nwo

To claim this, I am signing this object: