TypeScript Programmer CV
...
[Github Pages](https://pages.github.com/). , 100% -, c [Bootstrap](https://getbootstrap.com/). .
.
👯
- , lorem ipsum . , Bootstrap: .
🏢
HTML : . , React, TypeScript, Babel ,
🎆
, , . , . -, .
, . , [](https://tripolskypetr.github.io/). , :star: , )
[THREE.js](https://threejs.org/). WebGL, , . , , [](https://github.com/mrdoob/three.js/tree/master/examples/js/renderers) .
const request = (url, timeout) => new Promise((resolve) => {
fetch(url).then(() => setTimeout(() => resolve(), timeout));
});
const asyncForEach = async (array, callback) => {
for (let index = 0; index < array.length; index++) {
await callback(array[index], index, array);
}
}
const action = (was) => {
const arr = ["10138.txt","10719.txt","1099.txt","10995.txt",...];
asyncForEach(arr, async (a, index) => {
if (was === true && index > 10) {
if (index === 11) {
await request("done.txt", 0);
} else {
return;
}
} else if (was !== true && index === (arr.length - 1)) {
action(true)
} else {
const timeout = Math.ceil(Math.random() * 500);
const prefix = index > 10 ? (Math.round(Math.random() * 3) === 1 ? "1" : "") : "";
await request(prefix+a, timeout);
}
});
}
action();
, . [Kestrel](https://docs.microsoft.com/en-us/aspnet/core/fundamentals/servers/kestrel?view=aspnetcore-3.0), .
:
{ (0, 0, 0), (0, 0, 140), (0, 140, 0), (0, 140, 140), (140, 0, 0), (140, 0, 140), (140, 140, 0), (140, 140, 140) }
(0, 0, 0) :
x/240 + y/240 + z/240 = 1
* *, . [](https://tripolskypetr.github.io/).