This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#name=java_singleproc | |
name=java_threaded | |
#name=node_async | |
host=http://localhost:8124 | |
n=1000 | |
for file in {small,large}.jpg; do | |
for c in 1 50 100 1000; do | |
cmd="ab -n $n -c $c $host/$file" | |
echo "Running $cmd ..." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# Usage: python blosum.py blosum62.txt | |
# Then, enter input in "row col" format -- e..g, "s f". | |
import sys | |
class InvalidPairException(Exception): | |
pass | |
class Matrix: | |
def __init__(self, matrix_filename): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
============================ | |
Test Contents (thanks, Kent) | |
============================ | |
Composition: short-answer questions | |
Look at exercises in Prag Prog book | |
Contents: | |
JS basics | |
Class, object, sequence diagrams | |
Basic OOP | |
Use cases |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Search should be consistent | |
Centre the search | |
Put it in top right/left, just below horizontal bar | |
On opposing side of it, have header describing what page you're on ("Dashboard", "Discussion") | |
Then, search always stays in exact same spot | |
How we should have search bar on every page: like on search results page, with bar across top -- perhaps centre it | |
Calling attention to search: | |
Can put light grey bar behind it |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
testHelpers.makePutReq('/api/memos/1', { | |
title: 'My new title', | |
postDate: 1433820201, | |
content: 'My new body.', | |
id: 1, | |
posterID: 2 | |
}, function(res) { | |
// On response | |
}, function(body) { | |
// On complete |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
from __future__ import with_statement | |
from Bio import SeqIO | |
def main(): | |
parser = argparse.ArgumentParser() | |
parser.add_argument("inputFile", help="Input FASTA file") | |
parser.add_argument("outputFile",help="Filtered FASTA output") | |
parser.add_argument("-d", "--header", default=None, dest="sampleName", help="Sample name to remove") | |
args = parser.parse_args() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def main(): | |
lines = open('alignment.aln').readlines() | |
lines = [line for line in lines if len(line.strip()) > 0] | |
header = lines[0] | |
del lines[0] | |
num_lines = 3 | |
for k in range(0, len(lines), num_lines + 1): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ENSG00000000003 | |
ENSG00000000460 | |
ENSG00000001461 | |
ENSG00000001561 | |
ENSG00000002016 | |
ENSG00000002745 | |
ENSG00000002822 | |
ENSG00000003436 | |
ENSG00000003756 | |
ENSG00000003987 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Working with: Lymnaea stagnalis | |
Proteins: | |
Connexins: vertebrates | |
Innexins: invertebrates | |
Panexins: both | |
Somewhat similar to innexins | |
Other choices: | |
Aplysia californica |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import matplotlib.pyplot as plt | |
import numpy as np | |
import pandas | |
def char_range(c1, c2): | |
for c in xrange(ord(c1), ord(c2) + 1): | |
yield chr(c) | |
def make_plate_range(a, b, number): | |
for c in char_range(a, b): |
OlderNewer