I hereby claim:
- I am cthoyt on github.
- I am cthoyt (https://keybase.io/cthoyt) on keybase.
- I have a public key whose fingerprint is 91A7 A8AA B13B E6CE 6812 DD70 8FCE 28AC BC44 3133
To claim this, I am signing this object:
| # open up the file | |
| with open("filepath") as f: | |
| # read the first line, this contains all of the header information | |
| # then, get rid of whitespace with strip, and split into an array on each tab | |
| header = f.readline().strip().split("\t") | |
| # only keep the important header columns (delete leftmost element) | |
| header = header[1:] | |
| /* How many countries exist */ | |
| select count(*) as num_countries | |
| from country; | |
| /* Select the first 10 countries and order them by name */ | |
| select * | |
| from country | |
| order by country.Name | |
| limit 10; |
| #!/usr/bin/env python | |
| # Author: Charlie Hoyt | |
| import itertools as itt | |
| s = { | |
| ('A','A'): 5, | |
| ('A','R'): -2, | |
| ('A','N'): -1, | |
| ('A','D'): -2, |
| #!/usr/bin/env python3 | |
| from flask import Flask, request, make_response | |
| from rdkit import Chem, rdBase | |
| from rdkit.Chem import rdDepictor | |
| from rdkit.Chem.Draw import rdMolDraw2D | |
| app = Flask(__name__) |
| import numpy as np | |
| import pandas as pd | |
| # Represent different entities with these letters | |
| letters = list("abcdefghjkmnopqrstuvwxyzABCDEFGHIJKLMN") | |
| l = int(0.2 * np.square(len(letters))) | |
| g = np.random.choice(letters, size=(l, 2)) | |
| n = np.random.uniform(size=l).round(3) |
| #! /usr/bin/env python3 | |
| """ | |
| This script coalesces the results from running Fraunhofer FIT ZETA and | |
| merges all of the output files from the evaluation task. | |
| From the terminal, run something like: | |
| `python3 coalesce_zeta_results.py -d ~/Desktop/HCA\ 2016\ Data/assay/resultPath -o ~/Desktop/coalesced.csv` |
I hereby claim:
To claim this, I am signing this object:
| def parse_bertini_main_data(fl): | |
| """ | |
| Parses main_data output from Bertini 1.5.1 | |
| :param fl: file object for main_data | |
| :type f1: file-like object | |
| :return: list of solutions | |
| """ | |
| it = (line.strip() for line in fl) | |
| number_variables = next(it) | |
| solution_dimension = int(number_variables[21:]) |