This file contains 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
import asyncio | |
from concurrent import futures | |
import functools | |
import inspect | |
import threading | |
from grpc import _server | |
def _loop_mgr(loop: asyncio.AbstractEventLoop): |
This file contains 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
# Comparing serialization of complex GeoJSON geometries using: | |
# | |
# - standard lib json, marshal, pickle, cPickle | |
# - umsgpack | |
# - shapely.wkb | |
# - geobuf (protobuf) | |
# | |
# The test case is a nearly circular polygon with 128 vertices. | |
# | |
# Python 2.7 because geobuf isn't possible on Python 3 (because |
This file contains 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
## install pyenv on ds dev cluster | |
yum -y install git gcc readline-devel zlib-devel bzip2-devel sqlite-devel openssl-devel | |
git clone git://github.com/yyuu/pyenv.git /usr/local/pyenv | |
chmod -R 777 /usr/local/pyenv/ | |
echo 'export PYENV_ROOT=/usr/local/pyenv' >>/etc/profile | |
echo 'export PATH=$PYENV_ROOT/bin:$PATH' >> /etc/profile | |
echo 'eval "$(pyenv init -)"' >> /etc/profile | |
echo 'pyenv global 2.7.7' >> /etc/profile | |
. /etc/profile | |
pyenv install -v 3.7.3 |
This file contains 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
<!-- ~/Library/Application Support/Sublime Text 3/Packages/User/Ruby/pry.sublime-snippet --> | |
<snippet> | |
<content><![CDATA[require 'pry'; binding.pry]]></content> | |
<tabTrigger>pry</tabTrigger> | |
<scope>source.ruby</scope> | |
<description>binding.pry</description> | |
</snippet> |