This file contains hidden or 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
def fix_double_encoded_cyrillic(garbled_text): | |
# Step 1: Get the raw bytes of the garbled text (as UTF-8) | |
raw_bytes = garbled_text.encode('latin1') # Preserves exact byte values | |
# Step 2: Convert bytes to hex list (for debugging) | |
hex_bytes = [hex(b) for b in raw_bytes] # ['0xc2', '0xe2', '0xe5', ...] | |
# Step 3: Reinterpret the bytes as Windows-1251 (Cyrillic) | |
fixed_text = raw_bytes.decode('windows-1251') # Correct decoding | |
return fixed_text |
This file contains hidden or 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
# .github/workflows/dockerization.yml | |
name: Build release Docker image | |
on: | |
push: | |
jobs: | |
docker: | |
runs-on: ubuntu-latest | |
steps: |
This file contains hidden or 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
▒██████████▒ | |
███▓▓██▓▓██▓ | |
███▓▓▓▓████▓ | |
███▓▓██▓▓██▓ | |
░█████████░▒██████████▒░█████████░ | |
██▓▓██▓▓██░▒▓▓▓▓▓▓▓▓▓▓▒░██▓▓██████ | |
█▒██▓▓▓▓▓▓██░▒▒▒▒▒▒▒▒▒▒▒▒░██▓▓██████▒█ | |
█ ▒██▓▓██▓▓██░▓██████████▓░██▓▓▓▓▓▓██▒ █ | |
█ ▒██████████░███████▓▓███░██████████░ █ | |
█ ░▓▓▓▓▓▓▓▓▓▓░███▓▓██▓▓███░▓▓▓▓▓▓▓▓▓▓░ █ |
This file contains hidden or 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
░░░░░░░░░░░░░░░░ | |
░████████████████████░ | |
░████▓▓▓██████▓▓▓████░ | |
░████▓▓▓███▓▓▓███████░ | |
░████▓▓▓▓▓▓██████████░ | |
░████▓▓▓███▓▓▓███████░ | |
░████▓▓▓██████▓▓▓████░ | |
░████████████████▓░▒████████████████████▒░▓████████████████░ | |
░█████▓▓▓█████▓▓▓████▒▓▓████████████████▓▓▒█████▓▓▓███████████▓░ | |
░█████▓▓▓█████▓▓▓████▒▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▒█████▓▓▓███████████▓░ |
This file contains hidden or 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
░░░░░░░░░░░░░░░░ | |
░████████████████████░ | |
░█████████▓▓█████████░ | |
░███████▓▓▓▓▓▓███████░ | |
░████▓▓▓▓▓▓▓▓▓▓▓█████░ | |
░████▓▓▓▓▓▓▓▓▓▓▓█████░ | |
░████████████████████░ | |
░████████████████▓░▒████████████████████▒░▓████████████████░ | |
░████████████████████▒▓▓████████████████▓▒▒███████████████████▓░ | |
░█████████▓▓▓▓███████▒▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▒▒███████▓▓▓▓████████▓░ |
This file contains hidden or 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
░▒███ ███░ | |
░▒▒█▓▒ ▒▒▓█░░ | |
░░▒██▓▓▓ ▓▓▓▓██░░ | |
░▒█▓▒░ ░▓█▒░ | |
░▒█▓▒░ ░▓█▒░ | |
░▒█▓▒▒ ░▒▓█▒░ | |
░▒██▓▓▒▒▒▒▒▒▒▒▒▒▓▓██░ | |
░░▒▒███████████████████▓░ | |
░░▒▓█████████████████████▓░ | |
░▒▒▓██████████████████████▓▒░ |
This file contains hidden or 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
▓▓▓▓▓ ▓▓▓▓▓ | |
▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓ | |
▓▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▓ | |
▓▓▓▓ ░░▓▓▓▓▓▓ ▓▓▓▓▓▓░░ ▓▓▓▓ | |
▓▓▓▓ ░░░░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░ ▓▓▓▓ | |
▓▓▓▓ ░░░░░░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░ ▓▓▓▓ | |
▓▓▓▓▓░░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░▓▓▓▓▓ | |
▒▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▒ | |
▒▒▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▒▒ | |
▒▒▒▒▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▒▒▒▒ |
This file contains hidden or 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* batchGenerator(array, batchSize) { | |
const arrCopy = [...array]; | |
while(arrCopy.length>0){ | |
yield arrCopy.splice(0, batchSize); | |
} | |
} |
This file contains hidden or 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
async function start() { | |
for await (let asyncFunction of asyncFunctions ) { | |
console.log(await asyncFunction()) | |
} | |
} | |
start(); |
This file contains hidden or 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
callApi = [url1, url2, url3] | |
const pormiseArr = callApi.map(v => getFromApi(v)) | |
const ConcurrentLoop = async() => { | |
for await (const resolvedPromise in pormiseArr) { | |
console.log(resolvedPromise) | |
} | |
} |
NewerOlder