#前言 由于大家都懂的, 国内使用go get的时候, 经常会各种失败, 如果有vpn的话, 打开vpn, 问题就解决了, 但vpn其实挺不灵活的.
相对来说shadowsock则灵活得多.
#解决方案 shadowsock + Privoxy
思路就是, 使用shadowsock建立一个本地sock5代理, 但因为go get 需要http代理, 所以需要使用privoxy把sock5代理转为http代理.
| import numpy as np | |
| import scipy.optimize | |
| from mpl_toolkits.mplot3d import Axes3D | |
| import matplotlib.pyplot as plt | |
| fig = plt.figure() | |
| ax = fig.gca(projection='3d') | |
| def fitPlaneLTSQ(XYZ): |
| import numpy as np | |
| from sklearn.neighbors import NearestNeighbors | |
| def chamfer_distance(x, y, metric='l2', direction='bi'): | |
| """Chamfer distance between two point clouds | |
| Parameters | |
| ---------- | |
| x: numpy array [n_points_x, n_dims] |
| import numpy as np | |
| import OpenEXR as exr | |
| import Imath | |
| def readEXR(filename): | |
| """Read RGB + Depth data from EXR image file. | |
| Parameters | |
| ---------- | |
| filename : str |
#前言 由于大家都懂的, 国内使用go get的时候, 经常会各种失败, 如果有vpn的话, 打开vpn, 问题就解决了, 但vpn其实挺不灵活的.
相对来说shadowsock则灵活得多.
#解决方案 shadowsock + Privoxy
思路就是, 使用shadowsock建立一个本地sock5代理, 但因为go get 需要http代理, 所以需要使用privoxy把sock5代理转为http代理.
| #-*- coding: utf-8 -*- | |
| """ | |
| 给定集合 test_case | |
| 输出其所有子集 | |
| """ | |
| def getsubs(father, size): | |
| """获取集合 father 的 | |
| 指定长度 size 的所有子集合""" |