Parallelization
- Rayon: Easy iterator parallelization
UI
- Inquire: provides a variety of CLI interfaces including: Auto-complete text entry, multiline text editor, selector and more
Util
from Tkinter import * | |
import time | |
import picamera | |
import numpy as np | |
import io | |
from datetime import datetime, timedelta | |
camera = picamera.PiCamera() | |
ON = True |
document.querySelectorAll(".usercard").forEach((cardElem) => { | |
let pctElem = cardElem.querySelector(".match-percentage"); | |
let localeElem = cardElem.querySelector(".userInfo-meta-location"); | |
//Remove matches < 85% compatibility | |
if(parseInt(pctElem.innerHTML.replace("%", "")) < 85) { | |
cardElem.style.display = "none"; | |
} | |
//Filter on locale | |
else if(!localeElem.innerHTML.includes(", NY")) { | |
cardElem.style.display = "none"; |
#!/bin/bash | |
# Requires imagemagick be installed (sudo apt install imagemagick on ubuntu) | |
convert public/img/icon.png -resize 512x512 public/img/icons/android-chrome-512x512.png | |
convert public/img/icon.png -resize 192x192 public/img/icons/android-chrome-192x192.png | |
convert public/img/icon.png -resize 16x16 public/img/icons/16.png | |
convert public/img/icon.png -resize 32x32 public/img/icons/32.png | |
convert public/img/icon.png -resize 48x48 public/img/icons/48.png |