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 numpy as np | |
import cv2 | |
file_path = "vid.mp4" | |
cap = cv2.VideoCapture(file_path) | |
first_iter = True | |
result = None | |
while True: | |
ret, frame = cap.read() |
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
$ brew remove git | |
$ brew remove curl | |
$ brew install openssl | |
$ brew install --with-openssl curl | |
$ brew install --with-brewed-curl --with-brewed-openssl git |
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
<form action="remote.php" method="POST"> | |
<input type="text" name="channel" value="<?php echo htmlspecialchars(@$_POST["channel"]) ?>"><input type="submit" name="go" value="Go"> | |
</form> | |
<form action="remote.php" method="POST"> | |
<input type="submit" name="key" value="KEY_1"> | |
<input type="submit" name="key" value="KEY_2"> | |
<input type="submit" name="key" value="KEY_3"><br> | |
<input type="submit" name="key" value="KEY_4"> | |
<input type="submit" name="key" value="KEY_5"> |
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
#!/usr/bin/env bash | |
# script: watch | |
# author: Mike Smullin <[email protected]> | |
# license: GPLv3 | |
# description: | |
# watches the given path for changes | |
# and executes a given command when changes occur | |
# usage: | |
# watch <path> <cmd...> | |
# |