Skip to content

Instantly share code, notes, and snippets.

@wpoely86
wpoely86 / Clebsch-Gordan.py
Created March 2, 2015 11:10
Generates all Clebsh Gordan coefficients starting from a given j1 and j2 and outputs a html file. How to use: ./Clebsch-Gordan.py 0.5 0.5 > output.html
#!/usr/bin/env python3
"""
Generates all Clebsh Gordan coefficients starting from a given j1 and j2 and
outputs a html file. How to use:
./Clebsch-Gordan.py 0.5 0.5 > output.html
Ward Poelmans <wpoely86@gmail.com> (2014)
"""
import sys
import numpy as np
@wpoely86
wpoely86 / output-opt10.dat
Last active February 15, 2016 12:54
Two failed PSI4 tests
-----------------------------------------------------------------------
Psi4: An Open-Source Ab Initio Electronic Structure Package
Psi4 (no tag) Driver
Git: Rev {master} e4070d002474257
J. M. Turney, A. C. Simmonett, R. M. Parrish, E. G. Hohenstein,
F. A. Evangelista, J. T. Fermann, B. J. Mintz, L. A. Burns, J. J. Wilke,
M. L. Abrams, N. J. Russ, M. L. Leininger, C. L. Janssen, E. T. Seidl,
W. D. Allen, H. F. Schaefer, R. A. King, E. F. Valeev, C. D. Sherrill,
This file has been truncated, but you can view the full file.
-----------------------------------------------------------------------
Psi4: An Open-Source Ab Initio Electronic Structure Package
Psi4 (no tag) Driver
Git: Rev {master} 13bf41bd1b0dd2a39d
J. M. Turney, A. C. Simmonett, R. M. Parrish, E. G. Hohenstein,
F. A. Evangelista, J. T. Fermann, B. J. Mintz, L. A. Burns, J. J. Wilke,
M. L. Abrams, N. J. Russ, M. L. Leininger, C. L. Janssen, E. T. Seidl,
W. D. Allen, H. F. Schaefer, R. A. King, E. F. Valeev, C. D. Sherrill,
diff --git a/hit.h b/hit.h
index f414211..2e5a1e6 100644
--- a/hit.h
+++ b/hit.h
@@ -640,10 +640,26 @@ protected:
s.moveTo(btString);
}
+ batch(const batch &other)
+ {
@wpoely86
wpoely86 / move_gh_repo.py
Created February 9, 2021 11:20
python script to clone and push github repos to azure devops repos.
#!/usr/bin/env python3
import tempfile
from github import Github
from git import Repo, remote
from msrest.authentication import BasicAuthentication
from azure.devops.connection import Connection
from azure.devops.v6_0.git import GitRepositoryCreateOptions
#include <algorithm>
#include <chrono>
#include <cstring>
#include <iostream>
#include <memory>
#include <mutex>
#include <thread>
#include <vector>
#include <getopt.h>
@wpoely86
wpoely86 / waitforib.service
Last active November 5, 2023 20:28
Script and systemd unit to wait until at least one infiniband interface is active
[Unit]
Description=Wait for infiniband to become active
Wants=network-online.target
After=network-online.target
[Service]
Type=oneshot
ExecStart=/usr/bin/waitforib.sh
RemainAfterExit=yes