Skip to content

Instantly share code, notes, and snippets.

View BitAndQuark's full-sized avatar

Bit and Quark BitAndQuark

View GitHub Profile
@BitAndQuark
BitAndQuark / adb_screenshot.bat
Created May 18, 2018 08:26 — forked from Adam--/adb_screenshot.bat
Take an Android screenshot using ADB on Windows
adb devices
adb shell screencap -p /sdcard/screen.png
adb pull -p -a /sdcard/screen.png
adb shell rm /sdcard/screen.png
For /f "tokens=2-4 delims=/ " %%a in ('date /t') do (set mydate=%%c-%%a-%%b)
For /f "tokens=1-3 delims=/:" %%a in ("%TIME%") do (set mytime=%%a-%%b-%%c)
set mytime=%mytime: =%
@BitAndQuark
BitAndQuark / app.py
Created December 19, 2017 02:37 — forked from rduplain/app.py
Plot a PNG using matplotlib in a web request, using Flask.
"Plot a PNG using matplotlib in a web request, using Flask."
# Install dependencies, preferably in a virtualenv:
#
# pip install flask matplotlib
#
# Run the development server:
#
# python app.py
#