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
function svgToPNG(svg) { | |
return new Promise((resolve, reject) => { | |
let img = document.createElement("img"); | |
let finalImg = document.createElement("img"); | |
let svgSize = svg.getBoundingClientRect(); | |
let canvas = document.createElement("canvas"); | |
canvas.width = svgSize.width; | |
canvas.height = svgSize.height; | |
let ctx = canvas.getContext("2d"); |
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/bash | |
# DEPRECATED!!!!!!!!!!!! See https://github.com/mugendi/poetry-project-scaffold | |
# BASED ON | |
# 1. https://medium.com/mlearning-ai/how-to-start-any-professional-python-package-project-9f66538ebc2 | |
unameOut=$(uname -a) | |
case "${unameOut}" in | |
*Microsoft*) OS="WSL" ;; #must be first since Windows subsystem for linux will have Linux in the name too |
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
#!/bin/bash | |
# Some utility functions.... | |
trailing_slash () { | |
STR="${1}" | |
length=${#STR} | |
last_char=${STR:length-1:1} | |
[[ $last_char != "/" ]] && STR="$monitDir/"; | |
echo $STR; |
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
#!/bin/bash | |
# Some utility functions.... | |
trailing_slash () { | |
STR="${1}" | |
length=${#STR} | |
last_char=${STR:length-1:1} | |
[[ $last_char != "/" ]] && STR="$monitDir/"; |
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
accountsservice install | |
acpid install | |
adduser install | |
amd64-microcode install | |
apparmor install | |
apt install | |
apt-utils install | |
aptitude install | |
aptitude-common install | |
base-files install |