Skip to content

Instantly share code, notes, and snippets.

View asford's full-sized avatar

Alex Ford asford

View GitHub Profile
#include <stdio.h>
#include <execinfo.h>
#include <signal.h>
#include <stdlib.h>
#include <unistd.h>
void handler(int sig) {
void *array[10];
size_t size;
@asford
asford / rosetta_scripts_demo.ipynb
Created May 6, 2015 21:47
Demo rosetta scripts wrapper component.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@asford
asford / README.md
Last active November 28, 2015 02:39
RHEL 6.7 Linuxbrew Standalone
@asford
asford / T0797_BAKER_ROSETTA_SERVER.pdb
Last active May 12, 2016 03:22
Decoy PDB debugging.
PFRMAT TS
TARGET T0797
MODEL 1
PARENT 4k1pD_101
ATOM 1 N LYS 1 17.732 0.913 0.782 1.00 12.20 N
ATOM 2 CA LYS 1 17.343 2.320 0.827 1.00 12.45 C
ATOM 3 C LYS 1 15.822 2.469 0.762 1.00 11.12 C
ATOM 4 O LYS 1 15.195 2.051 -0.213 1.00 8.23 O
ATOM 5 CB LYS 1 18.027 3.070 -0.318 1.00 18.67 C
ATOM 6 CG LYS 1 17.834 4.582 -0.378 1.00 18.67 C
@asford
asford / .gitignore
Last active April 5, 2023 11:58
pybind11 ostream example
# Created by https://www.gitignore.io/api/c++,cmake
### C++ ###
# Prerequisites
*.d
# Compiled Object files
*.slo
*.lo
@asford
asford / pyspinner.py
Last active December 2, 2017 21:24
Simple demonstration of pybind11 gil handling.
import logging
import cppimport
import time
import threading
import numpy
spinner = cppimport.imp("spinner")
@asford
asford / numpy-numeric-metadata.ipynb
Last active January 3, 2018 02:03
numpy metadata-with-numeric dtypes and function composition, curried framework
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#Adaptive subclass to support minimum cluster size and grouped scaling
#Cluster modification via gcloud calls
from __future__ import division
from math import ceil
import click
import subprocess
import distributed.deploy.adaptive as adaptive
import logging
@asford
asford / structure_search_manager_example.ipynb
Created January 5, 2018 22:51
Python interface example for structure search database.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@asford
asford / 180104_barrel_closure_generation.ipynb
Created January 6, 2018 07:04
topology_mining/closure_generation/180104_barrel_closure_generation.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.