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
{ | |
"basics": { | |
"name": "Vladislav Ponomarev", | |
"label": "Full-stack Developer", | |
"image": "https://avatars.githubusercontent.com/u/2877584", | |
"website": "https://PonomareVlad.ru" | |
} | |
} |
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
const handleError = async error => { | |
console.error(error) | |
this.log.push(error) | |
try { | |
switch (error.error_code) { | |
case 429: | |
this.abort = true; | |
console.debug('Task reverted', await this.updateTask(this.task, {status: 'new'})) | |
break; | |
default: |
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
if (typeof navigator.serviceWorker !== 'undefined') | |
navigator.serviceWorker.register('/sw.js'); | |
let deferredPrompt; | |
const addBtn = document.querySelector("#install-button"); | |
window.addEventListener("beforeinstallprompt", (e) => { | |
e.preventDefault(); | |
deferredPrompt = e; | |
addBtn.addEventListener("click", (e) => { |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
{ | |
"city": { | |
"title": "Город", | |
"type": "array", | |
"message": "Вы можете выбрать или убрать необходимые города или сохранить текущие настройки", | |
"field": "address_info.city.name", | |
"values": [ | |
"Екатеринбург", | |
"Верхняя Пышма", | |
"Берёзовский", |
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
db.Vehicle.aggregate([ | |
{ | |
$match: {vin: "..."} | |
}, | |
{ | |
$lookup: { | |
from: 'Address', //i want all addresses | |
localField: '_vin', | |
foreignField: 'vehicle.vin', | |
as: 'addresses' |