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 time | |
| import win32api, win32con | |
| VK_CODE = {'left_arrow':0x25, | |
| 'spacebar':0x20, | |
| 'right_arrow':0x27} | |
| def press(x): | |
| win32api.keybd_event(VK_CODE[x], 0,0,0) | |
| win32api.keybd_event(VK_CODE[x],0 ,win32con.KEYEVENTF_KEYUP ,0) |
| <?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> |
| # 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 |
| { | |
| "metadata": { | |
| "name": "", | |
| "signature": "sha256:31b0d71456bf87981a1b62cbc95077d7cafa936478d41696aff62d74c06497b9" | |
| }, | |
| "nbformat": 3, | |
| "nbformat_minor": 0, | |
| "worksheets": [ | |
| { | |
| "cells": [ |
| #!/bin/bash | |
| sudo modprobe acerhdf | |
| sudo sh -c 'echo -n "enabled" > /sys/class/thermal/thermal_zone0/mode' |
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
| 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; |
| 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) |
| 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/ *$//')\"" |