(@mean-fitness)
Equation (@mean-fitness) is one of the most famous in population genetics.
Another famous equation is:
(@p-dif) $$ p' = p(1-\mu) $$
# pdfx usage: http://pdfx.cs.man.ac.uk/usage | |
# requests docs: http://docs.python-requests.org/en/latest/user/quickstart/#post-a-multipart-encoded-file | |
import requests # get it from http://python-requests.org or do 'pip install requests' | |
url = "http://pdfx.cs.man.ac.uk" | |
def pypdfx(filename): | |
''' | |
Filename is a name of a pdf file WITHOUT the extension | |
The function will print messages, including the status code, |
import requests | |
url = 'http://c.docverter.com/convert' | |
filename = 'curriculum-vita.md' | |
print 'Sending request to Docverter for file', filename | |
r = requests.post(url, data={'to':'pdf','from':'markdown'},files={'input_files[]':open(filename,'rb')}) | |
if r.ok: | |
outname = '.'.join(filename.split('.')[:-1]) | |
fout = open(outname, 'wb') | |
fout.write(r.content) | |
fout.close() |
Code here |
Code here |
Code here |
Code here |
Code here |
Code here |
Code here |