Skip to content

Instantly share code, notes, and snippets.

def hello(name):
return "Happy testing! "+name
----------------------------------------------------------------------
Ran 1 test in 0.000s
OK
BLASTX 2.7.1+
Reference: Stephen F. Altschul, Thomas L. Madden, Alejandro A.
Schaffer, Jinghui Zhang, Zheng Zhang, Webb Miller, and David J.
Lipman (1997), "Gapped BLAST and PSI-BLAST: a new generation of
protein database search programs", Nucleic Acids Res. 25:3389-3402.
I have a dataframe like this:
name vals
0 foo X
1 foo Y
2 foo Z
3 bar Y
4 bar Z
5 bar Q
column1 column2 column3
I am a sentence 30 category1
I am a bigger sentence 40 category2
thats it 20 category3
def OriginRestrictor(get_response):
def middleware(request):
forbid = False
for method in ['CONNECT', 'DELETE', 'GET', 'HEAD', 'OPTIONS', 'POST', 'PUT']:
if request.method==method and method in method_remote.keys():
allowed_origin = method_remote[method]
request_origin = request.META['REMOTE_ADDR']
if request_origin not in allowed_origin:
forbid=True
## model ###
class ModelA(models.model):
field_a =
field_b =
class ModelB(models.model):
model_a = models.Foreignkey(ModelA)
field_C =
## model #####
myseq = ""
for s in SeqIO.parse('file.fasta', 'fasta'):
if s.id == "12345":
myseq = s.seq
break
myproject
├── manage.py
└── root
├── __init__.py
├── settings.py
├── urls.py
└── wsgi.py
myproject
├── manage.py
└── myproject
├── __init__.py
├── settings.py
├── urls.py
└── wsgi.py