I hereby claim:
- I am mynameisfiber on github.
- I am mynameisfiber (https://keybase.io/mynameisfiber) on keybase.
- I have a public key ASBkDfJJ05VdHc03nmm0n4gbzRLER35ToQa0Szku72m3bQo
To claim this, I am signing this object:
#!/bin/bash | |
_TMUX_NAME="slackterm" | |
function _startSlack() { | |
i=0 | |
for config in $( ls ~/.slack-term/*.json ); do | |
if [[ "$i" -eq "0" ]]; then | |
TMUX="tmux new-session -d -s ${_TMUX_NAME}" | |
else |
import h5py | |
import os | |
import pickle | |
try: | |
import gensim | |
except ImportError: | |
gensim = None | |
""" | |
Numpy-optimized multiprocessing queue object. | |
$ python numpyqueue.py | |
Array shape: 2 | |
mp.queue: 0.4327036259928718 | |
numpyqueue: 0.53742205198796 | |
numpyqueue2: 0.5157967879931675 | |
Array shape: 128 | |
mp.queue: 1.7091998109972337 |
from operator import itemgetter | |
def area(items): | |
return len(items) * sum(i[1] - i[0] for i in items) | |
def mutually_exclusive_list_list_intervals(data): | |
""" | |
Data is list of lists of intervals. We'd like to keep the most number of |
I hereby claim:
To claim this, I am signing this object:
import pandas as pd | |
import ujson as json | |
def pct_to_int(pct): | |
try: | |
return int(pct) | |
except ValueError: | |
return 0 |
from lxml import html | |
import requests | |
import re | |
import pickle | |
def get_codes(dom): | |
codes = set() | |
codes.update(_get_codes_urls(dom)) | |
codes.update(_get_codes_alt_id(dom)) |
from lxml import html | |
import requests | |
import ujson as json | |
from tqdm import tqdm | |
from urllib.parse import urljoin | |
import re | |
import string |