This file contains hidden or 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
# Allows the user to run .py, .sh and .c implicitly through filename extensions rather than delcaring it in a command. | |
# Note that tempc needs to be installed to run c files. Get it here! -> https://github.com/Qu1ck5h0t/tempc | |
command_not_found_handle() { | |
if [[ "$1" == *.py ]]; then | |
python3 "$1" | |
elif [[ "$1" == *.sh ]]; then | |
chmod +x "$1" | |
./"$1" | |
elif [[ "$1" == *.c ]]; then | |
tempc "$1" |
This file contains hidden or 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 cv2 | |
foo = cv2.imread("./foo.png") | |
bar = cv2.imread("./bar.png") | |
key = cv2.bitwise_xor(foo, bar) | |
cv2.imshow("xored data", key) | |
cv2.waitKey(0) |