I hereby claim:
- I am alantrrs on github.
- I am alantrrs (https://keybase.io/alantrrs) on keybase.
- I have a public key ASBhJbJmFVxr8DK_ceyPemAX7tb-MiDGCc0YCoFVloGMJwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
def handle_concurrency(request, resource): | |
if request.session_id is None \ | |
# Check matching session_id | |
or request.session_id != resource.last_session_id \ | |
# Check valid window | |
or datetime.now() > resource.updated_at + timedelta(seconds=30): | |
# Validate etag | |
if request.etag != resource.etag: | |
return Response("Etag mismatch", 422) | |
# Update last_session_id |
When developing we'll be following the GitHub flow. This includes some of the following guidelines:
style-documentation
)if [ -z $1 ] || [ -z $2 ]; then | |
echo "Usage: rotat.sh in.mov out.mov" | |
fi | |
ffmpeg -i $1 -strict -2 -metadata:s:v:0 rotate=0 $2 |
find \( -name "*.js" -o -name "*.jsx" -o -name "*.json" \) -not -path "./node_modules/*" | xargs wc -l |
RUN apt-get install -y wget | |
RUN wget http://download.zeromq.org/zeromq-4.1.3.tar.gz | |
RUN tar xvfz zeromq-4.1.3.tar.gz | |
RUN cd zeromq-4.1.3 && ./configure --without-libsodium && make && sudo make install | |
RUN sudo ldconfig |
# Dockerfile | |
# Install OpenCV 3.0 | |
RUN apt-get -y update | |
RUN apt-get -y install python-pip git nano curl tmux htop mc wget libeigen3-dev | |
RUN apt-get install -y build-essential cmake libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev ocl-icd-opencl-dev libcanberra-gtk3-module | |
RUN pip install matplotlib | |
RUN git clone https://github.com/Itseez/opencv.git | |
RUN mkdir /opencv/build |