Skip to content

Instantly share code, notes, and snippets.

View qwertyforce's full-sized avatar
📈
f'(x) > 0; div F > 0

qwertyforce

📈
f'(x) > 0; div F > 0
View GitHub Profile
LOCAL_FILES_SERVING_ENABLED=true label-studio
arr = [arr[i:i + 100000] for i in range(0, len(arr), 100000)] # batch len = 100000
#!/bin/bash
# https://www.majlovesreg.one/tag/code/
# https://www.majlovesreg.one/adding-brotli-to-a-built-nginx-instance
# https://github.com/majal/maj-server/tree/master/nginx-modules-brotli
# Install needed development packages if not yet installed in the system
# sudo apt -y install git libpcre3 libpcre3-dev zlib1g zlib1g-dev openssl libssl-dev
# For predefined NGINX version, use:
const VPTreeFactory = require("vptree");
const crypto = require("crypto");
function hamming_distance(str1, str2) {
let distance = 0;
for (let i = 0; i < str1.length; i += 1) {
if (str1[i] !== str2[i]) {
distance += 1;
}
}