pip3 install wheel flask numpy pymongo selenium opencv-python bs4
https://ninite.com/7zip-discord-everything-irfanview-qbittorrent-sumatrapdf-vlc-vscode/
https://just-install.github.io/customizer.html#git,github,windows-terminal
#!/usr/bin/env python3 | |
""" | |
Adds DNS A records pointing to a mentioned server using Cloudflare API v4. Edit places necessary. | |
Note: | |
For better codebase privacy/security, refer configuration file for | |
authentication in python-cloudflare docs. This is for internal usage. | |
""" | |
import CloudFlare # pip3 install cloudflare | |
import sys |
clear | |
echo "$(tput bold)$(tput setaf 2)" | |
echo " .~~. .~~. " | |
echo " '. \ ' ' / .' " | |
echo "$(tput setaf 1)" | |
echo " .~ .~~~..~. " | |
echo " : .~.'~'.~. : " | |
echo " ~ ( ) ( ) ~ " | |
echo " ( : '~'.~.'~' : )" | |
echo " ~ .~ ( ) ~. ~ " |
import cv2 | |
import numpy as np | |
import torch | |
def visualize_cam(mask, img): | |
"""Make heatmap from mask and synthesize GradCAM result image using heatmap and img. | |
Args: | |
mask (torch.tensor): mask shape of (1, 1, H, W) and each element has value in range [0, 1] | |
img (torch.tensor): img shape of (1, 3, H, W) and each pixel value is in range [0, 1] | |
<html> | |
<head> | |
<style> | |
html { | |
font-family: sans-serif; | |
-webkit-text-size-adjust: 100%; | |
-ms-text-size-adjust: 100%; | |
} | |
body { | |
font-family: "Helvetica Neue",Helvetica,Arial,sans-serif; |
curl -fsSL get.docker.com -o get-docker.sh && sh get-docker.sh && \
sudo usermod -aG docker pi && \
sudo curl https://download.docker.com/linux/raspbian/gpg && \
sudo echo "deb https://download.docker.com/linux/raspbian/ stretch stable" >> /etc/apt/sources.list && \
sudo apt-get update && sudo apt-get upgrade -y && \