Skip to content

Instantly share code, notes, and snippets.

View jgoodson's full-sized avatar

Jonathan Goodson jgoodson

  • NIH HPC
  • Bethesda, Maryland
View GitHub Profile
@jgoodson
jgoodson / .tmux.conf
Created July 21, 2020 19:12
Updated .tmux.conf for newer tmux
new-session
set-option -g destroy-unattached off
# increase scrollback buffer size
set -g history-limit 50000
# focus events enabled for terminals that support them
set -g focus-events on

Keybase proof

I hereby claim:

  • I am jgoodson on github.
  • I am jgoodson (https://keybase.io/jgoodson) on keybase.
  • I have a public key ASCmyntwH_hHtPcslEOVZW6igh0585YI6cz4lxlnjDlUiwo

To claim this, I am signing this object:

@jgoodson
jgoodson / seqvec_environment_setup.sh
Last active May 5, 2020 18:02
Code to get started with the GCN seqvec embedder with conda environments
#Create conda environment with the requirements for the GCN package
conda create -n gcn python=3.7 pytorch=1.4
conda activate gcn
#Allen NLP 0.9 not available in Anaconda Cloud
pip install allennlp==0.9.0
#Clone fork of repo
git clone https://github.com/jgoodson/GCN-for-Structure-and-Function.git
cd GCN-for-Structure-and-Function
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.
try:
import dill as pickle
except ImportError:
import pickle
try:
from mmh3 import hash128 as hash_fn
except ImportError:
from hashlib import sha512
def hash_fn(input):
return sha512(input.encode())