column1 | column2 | column3 |
---|---|---|
I am a sentence | 30 | category1 |
I am a bigger sentence | 40 | category2 |
thats it | 20 | category3 |
This file contains hidden or 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 hello(name): | |
return "Happy testing! "+name |
This file contains hidden or 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
---------------------------------------------------------------------- | |
Ran 1 test in 0.000s | |
OK |
This file contains hidden or 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
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. | |
This file contains hidden or 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
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 |
This file contains hidden or 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 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 |
This file contains hidden or 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
## model ### | |
class ModelA(models.model): | |
field_a = | |
field_b = | |
class ModelB(models.model): | |
model_a = models.Foreignkey(ModelA) | |
field_C = | |
## model ##### |
This file contains hidden or 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
myseq = "" | |
for s in SeqIO.parse('file.fasta', 'fasta'): | |
if s.id == "12345": | |
myseq = s.seq | |
break |
This file contains hidden or 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
myproject | |
├── manage.py | |
└── root | |
├── __init__.py | |
├── settings.py | |
├── urls.py | |
└── wsgi.py |
This file contains hidden or 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
myproject | |
├── manage.py | |
└── myproject | |
├── __init__.py | |
├── settings.py | |
├── urls.py | |
└── wsgi.py |