start new:
tmux
start new with session name:
tmux new -s myname
;;; autopyimport.el --- Import python packages automatically | |
;; Copyright(C) 2017 CAPG Lab., Zhejiang University. | |
;; Author: Z. Wang <[email protected]> | |
;; Version: 1.0 | |
;; Package-Requires: (()) | |
;; Keywords: python, import |
# OS specific support (must be 'true' or 'false'). | |
cygwin=false | |
msys=false | |
darwin=false | |
case "`uname`" in | |
CYGWIN* ) | |
cygwin=true | |
;; | |
Darwin* ) | |
darwin=true |
FROM ubuntu:16.04 | |
MAINTAINER autosuqid <[email protected]> | |
RUN echo "deb http://ftp.sjtu.edu.cn/ubuntu/ trusty main restricted universe multiverse" > /etc/apt/sources.list && \ | |
echo "deb http://ftp.sjtu.edu.cn/ubuntu/ trusty-security main restricted universe multiverse" >> /etc/apt/sources.list && \ | |
echo "deb http://ftp.sjtu.edu.cn/ubuntu/ trusty-updates main restricted universe multiverse" >> /etc/apt/sources.list && \ | |
echo "deb http://ftp.sjtu.edu.cn/ubuntu/ trusty-proposed main restricted universe multiverse" >> /etc/apt/sources.list && \ | |
echo "deb http://ftp.sjtu.edu.cn/ubuntu/ trusty-backports main restricted universe multiverse" >> /etc/apt/sources.list && \ | |
echo "deb-src http://ftp.sjtu.edu.cn/ubuntu/ trusty main restricted universe multiverse" >> /etc/apt/sources.list && \ | |
echo "deb-src http://ftp.sjtu.edu.cn/ubuntu/ trusty-security main restricted universe multiverse" >> /etc/apt/sources.list && \ |
import os | |
import shutil | |
import click | |
@click.group() | |
def cli(): | |
pass | |
def isfmt(f): |
Python version of the MATLAB code in this Stack Overflow post: http://stackoverflow.com/a/18648210/97160
The example shows how to determine the best-fit plane/surface (1st or higher order polynomial) over a set of three-dimensional points.
Implemented in Python + NumPy + SciPy + matplotlib.
conda install pyqt=4 | |
conda install -c https://conda.binstar.org/menpo opencv |
# from: http://blender.stackexchange.com/questions/40650/blender-camera-from-3x4-matrix?rq=1 | |
# And: http://blender.stackexchange.com/questions/38009/3x4-camera-matrix-from-blender-camera | |
# Input: P 3x4 numpy matrix | |
# Output: K, R, T such that P = K*[R | T], det(R) positive and K has positive diagonal | |
# | |
# Reference implementations: | |
# - Oxford's visual geometry group matlab toolbox | |
# - Scilab Image Processing toolbox |
%typemap(argout) std::vector<tex::TextureView>* { | |
/* { the last parameter is "whether python own the object behind the pointer" */ | |
/* in this case: $1 is points to `temp`, managed by vector, so python does not own it */ | |
/* to return something python own, we need to `new` a object */ | |
/* so instead of the following */ | |
/* $result = swig::from_ptr($1, 1); */ | |
/* we use: }*/ | |
$result = swig::from(*$1); | |
} |