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
[[source]] | |
url = "https://pypi.org/simple" | |
verify_ssl = true | |
name = "pypi" | |
[packages] | |
openai = "*" | |
rich = "*" | |
[dev-packages] |
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
package main | |
import ( | |
"bytes" | |
"context" | |
"image" | |
"log" | |
"sync" | |
_ "image/jpeg" |
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
Data confidentiality | |
This application does not store any personal data and consequently does not transmit any data to a third party. |
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
# Get the current clean version from your git repo | |
# - -tagname if the current commit is tagged and no changes were detected | |
# - branchname-sha if not | |
# - branchname-sha-dirty if changes were detected and not commited | |
# Use $(VERSION) to get it, wherever you want in your commands | |
VERSION=$(shell \ | |
git describe --exact-match --tags --dirty 2>/dev/null || \ | |
printf "%s-%s%s" \ | |
$(shell git branch --show-current) \ | |
$(shell git log -n1 --pretty=%h) \ |
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 | |
# Check helm, kubectl and kind | |
NEEDED="" | |
for cmd in helm kubectl kind pkexec; do | |
if ! command -v $cmd >/dev/null 2>&1; then | |
NEEDED="$NEEDED $cmd" | |
fi | |
done | |
if [ -n "$NEEDED" ]; then |
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
package blur | |
import ( | |
"image" | |
"image/color" | |
"image/png" | |
_ "image/png" | |
"math" | |
) |
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
""" Create dataset """ | |
import os | |
import uuid | |
import cv2 as cv | |
DATA_DIR = "data" | |
DIRECTIONS = ["up", "down", "right", "left", "neutral"] | |
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
lines=$(tput lines) | |
cols=$(tput cols) | |
awkscript=' | |
{ | |
lines=$1 | |
random_col=$3 | |
letter=$4 | |
letters="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@#$%^&*()" | |
letter=substr(letters,letter,1) |
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
# Configuration | |
count=4 | |
clustername=mycluster | |
admin=admin | |
password=password | |
networkname=couchbase | |
volumename=couchbase | |
# inside the pods, do not change it |
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
""" UI to manually class bad/good images """ | |
import os | |
import sys | |
from glob import glob | |
import cv2 as cv | |
directory = sys.argv[1] | |
if not directory: | |
sys.exit(1) |
NewerOlder