Skip to content

Instantly share code, notes, and snippets.

@eliofery
eliofery / .editorconfig
Last active October 11, 2023 09:36
Config
root = true
[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true
@eliofery
eliofery / api.txt
Last active August 12, 2023 14:19
Полезные ссылки
Сервис для работы с тестовыми данными API.
https://test-api.javascript.ru/v1/
.header {
height: 100vh;
}
@media (max-aspect-ratio: 10 / 8)
.header {
height: auto;
}
}
@eliofery
eliofery / analytics.html
Last active January 3, 2024 20:29
HTML
<!-- Google Analytics -->
<script async>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','GTM-XXXXXX');
<!--<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-XXXXXX" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>-->
<!-- Yandex Metrica -->
<script async>(function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)}; m[i].l=1*new Date();k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)}) (window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym"); ym(XXXXXX, "init", {});
<!--<noscript><img src="https://mc.yandex.ru/watch/XXXXXX" style="position:absolute; left:-9999px;" alt=""></noscript>-->