This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>RPi Cam Preview</title> | |
<script src="js/script.js"></script> | |
<link rel="stylesheet" href="css/style_minified.css" /> | |
</head> | |
<body onload="setTimeout('init(0,1,1);', 100);" style="padding-top:0px"> | |
<img id="mjpeg_dest" onClick="toggle_fullscreen(this);" /> | |
</body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import json | |
def push_message(title, body): | |
token = "your API token" | |
url = "https://api.pushbullet.com/v2/pushes" | |
headers = {"content-type": "application/json", "Authorization": 'Bearer '+token} | |
data_send = {"type": "note", "title": title, "body": body} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
cd /d %~dp1 | |
for %%q in (%*) do ( | |
echo TARGET FILE : %%~nxq | |
REM *** PNG FILE *** | |
if %%~xq == .png ( | |
call :OPTIMIZE_PNG "%%~nxq" | |
) |