I hereby claim:
- I am benjeffery on github.
- I am benjeffery (https://keybase.io/benjeffery) on keybase.
- I have a public key whose fingerprint is 1C75 E073 EDB5 D3D0 69FB 1D7A 22D6 43C3 578A A838
To claim this, I am signing this object:
id site node time derived_state parent metadata | |
0 0 48 2.0800060772564484 1 -1 | |
1 0 48 2.0572024992858435 0 0 | |
2 0 31 1.5647409985500718 1 1 | |
3 0 31 1.0950830757849048 0 2 | |
4 0 23 0.46366628550498323 1 3 | |
5 0 23 0.3019074179902289 0 4 | |
6 0 7 0.0934323669836497 1 5 | |
7 0 7 0.04671618349182485 0 6 | |
8 0 5 0.0934323669836497 1 5 |
/home/benj/projects/tskit/c/build/../tskit/convert.c:26:1: warning: #includes are not sorted properly [llvm-include-order] | |
#include <stdio.h> | |
^ ~~~~~~~~~ | |
<assert.h> | |
/home/benj/projects/tskit/c/build/../tskit/convert.c:26:1: warning: #includes are not sorted properly [llvm-include-order] | |
#include <stdio.h> | |
^ ~~~~~~~~~ | |
<assert.h> | |
/home/benj/projects/tskit/c/build/../tskit/core.c:26:1: warning: #includes are not sorted properly [llvm-include-order] | |
#include <stdio.h> |
import itertools | |
import sys | |
from time import perf_counter | |
from matplotlib import pyplot | |
from scipy import stats | |
import numpy as np | |
import tqdm | |
sys.path.append('/home/benj/projects/tskit/python') | |
import tskit |
{"population":{"0":"WAF","1":"WAF","2":"WAF","3":"WAF","4":"WAF","5":"WAF","6":"WAF","7":"WAF","8":"WAF","9":"WAF","10":"WAF","14":"WAF","15":"WAF","17":"WAF","18":"WAF","19":"WAF","20":"WAF","21":"WAF","22":"WAF","25":"WAF","27":"WAF","30":"WAF","31":"WAF","33":"WAF","34":"WAF","37":"WAF","39":"WAF","40":"WAF","41":"WAF","44":"WAF","45":"WAF","46":"WAF","47":"WAF","48":"WAF","50":"WAF","51":"WAF","52":"WAF","53":"WAF","55":"WAF","56":"WAF","57":"WAF","58":"WAF","59":"WAF","60":"WAF","61":"WAF","63":"WAF","65":"WAF","66":"WAF","71":"WAF","76":"WAF","78":"WAF","79":"WAF","81":"WAF","82":"WAF","86":"WAF","89":"WAF","90":"WAF","91":"WAF","92":"WAF","93":"WAF","94":"WAF","95":"WAF","96":"WAF","98":"WAF","99":"WAF","101":"WAF","102":"WAF","104":"WAF","105":"WAF","106":"WAF","107":"WAF","108":"WAF","109":"WAF","112":"WAF","113":"WAF","114":"WAF","115":"WAF","116":"WAF","117":"WAF","118":"WAF","119":"WAF","125":"WAF","127":"WAF","131":"WAF","132":"WAF","134":"WAF","135":"WAF","136":"WAF","137":"WAF","139":"WAF","140 |
regions <--- THIS NEEDS POPULATING! | |
id | |
lat | |
lng | |
name | |
description | |
num_samples | |
countries | |
id |
accountsservice/xenial-updates,now 0.6.40-2ubuntu11.3 amd64 [installed] | |
acl/xenial,now 2.2.52-3 amd64 [installed] | |
acpi-support/xenial,now 0.142 amd64 [installed] | |
acpid/xenial,now 1:2.0.26-1ubuntu2 amd64 [installed] | |
add-apt-key/xenial,xenial,now 1.0-0.5 all [installed] | |
adduser/xenial,xenial,now 3.113+nmu3ubuntu4 all [installed] | |
adobe-flashplugin/now 1:20170214.1-0ubuntu0.16.04.1 amd64 [installed,upgradable to: 1:20170616.1-0ubuntu0.16.04.1] | |
adwaita-icon-theme/sarah,sarah,now 3.18.0-2ubuntu3mint2 all [installed] | |
adwaita-icon-theme-full/sarah,sarah,now 3.18.0-2ubuntu3mint2 all [installed] | |
alsa-base/xenial,xenial,now 1.0.25+dfsg-0ubuntu5 all [installed] |
function chooseMode(jsProps, cssProps) { | |
if (cssProps.length == 0 && jsProps.length == 0) // IE <10, other early browser, no method works there. In Opera CSS works though | |
return bowser.opera ? 'css' : 'warning'; | |
if (cssProps.length == 0 && jsProps.length > 0) // IE >10 even EDGE... sigh | |
return 'js'; | |
if (cssProps.length == 1 && cssProps[0] == 'optimiseSpeed' && jsProps.length == 0) //A few earlier browsers report this prop, but it only works for images | |
return 'warning'; | |
if (_.includes(cssProps, '-webkit-optimize-contrast') || _.includes(cssProps, '-moz-crisp-edges') || _.includes(cssProps, 'crisp-edges') || _.includes(cssProps, 'pixelated')) { | |
if (!bowser.check({chrome: "41"})) //Earlier chromes only support css on IMG | |
return 'js'; |
I hereby claim:
To claim this, I am signing this object:
import requests | |
def dl(path, filename): | |
try: | |
r = requests.get(path, stream=True) | |
if r.status_code == 200: | |
with open(filename, 'wb') as f: | |
for chunk in r: | |
f.write(chunk) | |
print "done", path |