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 fetchConcurrent(urls, maxConcurrency) { | |
return new Promise((resolve) => { | |
if (urls.length === 0) { | |
resolve([]); | |
return; | |
} | |
const results = new Array(urls.length); | |
let active = 0; | |
let index = 0; |
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 getNthLicensePlate(n) { | |
const toBase26 = (num, length) => { | |
let result = ''; | |
for (let i = 0; i < length; i++) { | |
result = String.fromCharCode(65 + (num % 26)) + result; | |
num = Math.floor(num / 26); | |
} | |
return result; | |
}; |
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
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: wordpress-deployment | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: wordpress | |
template: |
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
version: "3" | |
services: |