sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh
<script> | |
var timeoutID; | |
function setup() { | |
this.addEventListener("mousemove", resetTimer, false); | |
this.addEventListener("mousedown", resetTimer, false); | |
this.addEventListener("keypress", resetTimer, false); | |
this.addEventListener("DOMMouseScroll", resetTimer, false); | |
this.addEventListener("mousewheel", resetTimer, false); | |
this.addEventListener("touchmove", resetTimer, false); |
#!/usr/bin/env bash | |
set -Eeuo pipefail | |
oci="$PWD" # TODO parameter/flag (and pass it aruond to other oci tools correctly!) | |
# ~validate $oci is an OCI layout | |
[ -s "$oci/oci-layout" ] | |
jq -se 'length == 1 and .[0].imageLayoutVersion == "1.0.0"' "$oci/oci-layout" > /dev/null | |
# TODO more/better validation? definitely better error handling |
Visual Studio 2022 | |
Enterprise : | |
VHF9H-NXBBB-638P6-6JHCY-88JWH | |
Professional: | |
TD244-P4NB7-YQ6XK-Y8MMM-YWV2J |
Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.
These are flash cards I made from study materials and nothing here is fit for navigational use.
If you find any errors, please let me know in the comments below.
def trimf(x, points): | |
pointA = points[0] | |
pointB = points[1] | |
pointC = points[2] | |
slopeAB = getSlope(pointA, 0, pointB, 1) | |
slopeBC = getSlope(pointB, 1, pointC, 0) | |
result = 0 | |
if x >= pointA and x <= pointB: | |
result = slopeAB * x + getYIntercept(pointA, 0, pointB, 1) | |
elif x >= pointB and x <= pointC: |