if you are using linux, unix, os x:
pip install -U setuptools
pip install -U pip
pip install numpy
pip install scipy
pip install matplotlib
#pip install PySide
| import cv2 | |
| import numpy as np | |
| import time | |
| from datetime import datetime | |
| print('OpenCV version', cv2.__version__) | |
| N_CAMERAS = 2 | |
| FONT = cv2.FONT_HERSHEY_PLAIN |
| sh -c "nvidia-settings --assign CurrentMetaMode=\"$(nvidia-settings -t -q CurrentMetaMode |tr -d "\n"|sed 's/ViewPortIn=/ForceFullCompositionPipeline=On, ViewPortIn=/g'|sed 's/.*:://'|sed 's/^ *//;s/ *$//')\"" |
| import datetime | |
| import time | |
| dt = datetime.datetime.now() | |
| # datetime.datetime(2016, 2, 11, 2, 8, 51, 160960) | |
| du = time.mktime(dt.timetuple()) + dt.microsecond*1e-6 | |
| # 1455152931.16096 | |
| dt2 = datetime.datetime.utcfromtimestamp(du) | |
| # datetime.datetime(2016, 2, 11, 1, 8, 51, 160960) |
| long average(int newest) { | |
| #define NUM_SAMPLES 10 | |
| static int data[10]; | |
| static byte index = 0; | |
| static long sum = 0; | |
| static byte count = 0; | |
| sum -= data[index]; | |
| data[index] = newest; | |
| sum += newest; |
if you are using linux, unix, os x:
pip install -U setuptools
pip install -U pip
pip install numpy
pip install scipy
pip install matplotlib
#pip install PySide
| #!/bin/bash | |
| sudo modprobe acerhdf | |
| sudo sh -c 'echo -n "enabled" > /sys/class/thermal/thermal_zone0/mode' |
| { | |
| "metadata": { | |
| "name": "", | |
| "signature": "sha256:31b0d71456bf87981a1b62cbc95077d7cafa936478d41696aff62d74c06497b9" | |
| }, | |
| "nbformat": 3, | |
| "nbformat_minor": 0, | |
| "worksheets": [ | |
| { | |
| "cells": [ |
| # From mbrochh | |
| sudo apt-get build-dep vim | |
| sudo apt-get install mercurial | |
| hg clone https://vim.googlecode.com/hg/ vim | |
| cd vim/src | |
| ./configure --enable-pythoninterp --with-features=huge --prefix=$HOME/opt/vim | |
| make && make install | |
| mkdir -p $HOME/bin | |
| cd $HOME/bin | |
| ln -s $HOME/opt/vim/bin/vim |
| <?xml version="1.0" encoding="utf-8"?> | |
| <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
| <ImportGroup Label="PropertySheets" /> | |
| <PropertyGroup Label="UserMacros" /> | |
| <PropertyGroup> | |
| <_PropertySheetDisplayName>ZMQ_DEBUG</_PropertySheetDisplayName> | |
| </PropertyGroup> | |
| <ItemDefinitionGroup> | |
| <ClCompile> | |
| <AdditionalIncludeDirectories>%ZMQ_DIR%\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> |