Skip to content

Instantly share code, notes, and snippets.

View asford's full-sized avatar

Alex Ford asford

View GitHub Profile
@asford
asford / 2942_perf_test.ipynb
Created April 8, 2013 00:04
GPFS and SATA read buffer profiling for numpy pull request #2942.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@asford
asford / cyborg.script.js
Last active December 29, 2015 08:39
Code review, because brothers love sisters.
word_sub = {
"cybernetic" : "cyber",
"lived" : "living",
"relations" : "relation",
"changing" : "change",
"changes" : "change",
"womens" : "women",
"women's" : "women",
"movements" : "movement",
"discovered" : "discover",
@asford
asford / boost_numpy.rb
Last active January 1, 2016 04:39
Boost.Numpy and ndarray homebrew formula.
require 'formula'
class BoostNumpy < Formula
homepage 'https://github.com/ndarray/'
url '[email protected]:asford/Boost.NumPy.git', :using => :git, :branch => 'master'
version "0.0.1"
depends_on 'scons' => :build
depends_on 'boost' => 'with-python'
@asford
asford / grammar.peg.js
Last active January 1, 2016 08:49
PEG.js selection grammar.
// Property based selections
{
function SelectionPredicate(selectionname)
{
this.selectionname = selectionname;
}
function ClassPredicate(classname)
@asford
asford / fragment_fitting.ipynb
Created January 17, 2014 01:33
Sequence independant fragment fitting demo.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@asford
asford / read_structures.py
Created January 17, 2014 01:56
Reading structures from structure databases by id.
import interface_fragment_matching.structure_database
db = interface_fragment_matching.structure_database.StructureDatabase("/work/fordas/test_sets/vall_store.h5")
id_list = db.structures.read()
for i in id_list["id"][:10]:
id_residues = db.residues.read_where("id == i")
{
"metadata": {
"name": "",
"signature": "sha256:aa80de3b5274221258ac3d45888e886c7895584b0774b2d985661159674e9f99"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
@asford
asford / README.md
Last active August 29, 2015 14:05
140819_for_arives

Development Environment

Setup a virtualenv in the /work filesystem to manage installed packages. You will install development dependencies into this environment, including updated versions of packages we've pre-installed onto the dig machine images.

mkdir ~/virtualenvs
@asford
asford / cpuinfo_analysis.ipynb
Created November 6, 2014 19:26
DIG/GNA /proc/cpuinfo analysis.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@asford
asford / ConstraintTesting.ipynb
Created November 26, 2014 20:56
Example rosetta constraint IO.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.