Skip to content

Instantly share code, notes, and snippets.

@evtuhovdo
evtuhovdo / axios-catch-error.js
Created August 29, 2019 10:53 — forked from fgilio/axios-catch-error.js
Catch request errors with Axios
/*
* Handling Errors using async/await
* Has to be used inside an async function
*/
try {
const response = await axios.get('https://your.site/api/v1/bla/ble/bli');
// Success 🎉
console.log(response);
} catch (error) {
// Error 😨
@evtuhovdo
evtuhovdo / index.html
Last active June 24, 2020 11:52
logrocket iframe merge video
<html>
<head>
<script src="https://cdn.lr-ingest.io/LogRocket.min.js" crossorigin="anonymous"></script>
<script>window.LogRocket && window.LogRocket.init('2wtrade/2wcall-ui', { mergeIframes: true,});</script>
</head>
<body>
<h1>Этот контент вне фрейма</h1>
<input type="text" >
<iframe src="http://localhost:5000/index2.html">
</iframe>
@evtuhovdo
evtuhovdo / css
Last active May 9, 2021 09:16
QR scan frappe
#preview {
display: none;
}
#preview.active {
width: 100vw;
top: 0;
left: 0;
position: fixed;
display: block;
@evtuhovdo
evtuhovdo / grafana_telegram_bot.md
Created August 8, 2022 03:31 — forked from ilap/grafana_telegram_bot.md
Grafana Telegram Alert

Config Telegrambot for grafana's alerts.

1. Create bot

Open Telegram and search for @BotFather user and message them the following:

You
/newbot 

BotFather