Skip to content

Instantly share code, notes, and snippets.

View RoundSparrow's full-sized avatar

Stephen Gutknecht RoundSparrow

View GitHub Profile
import android.app.Service;
import android.content.Intent;
import android.graphics.ImageFormat;
import android.hardware.camera2.CameraAccessException;
import android.hardware.camera2.CameraCaptureSession;
import android.hardware.camera2.CameraCharacteristics;
import android.hardware.camera2.CameraDevice;
import android.hardware.camera2.CameraManager;
import android.hardware.camera2.CaptureRequest;
import android.media.Image;
@RoundSparrow
RoundSparrow / gist:60bed4d09f68e8c52db584474963b76e
Created June 30, 2017 10:30
Ubuntu 17.04 xrandr Python3 script problem
Python script from:
https://askubuntu.com/questions/665709/how-to-recover-offscreen-window-after-disconnecting-second-monitor/665899
Ubuntu 17.04 with 3 4K screens:
$ python3 stackoverflow_665899_try0.py
Traceback (most recent call last):
File "stackoverflow_665899_try0.py", line 9, in <module>