Skip to content

Instantly share code, notes, and snippets.

// kostyl for the new line in textarea
$('textarea').keyup(function (event) {
if (event.keyCode == 13) {
var content = this.value;
this.value = content + "\n";
event.stopPropagation();
}
});
@IDIDIR
IDIDIR / gist:9df61ac18276ea7496929efb5693062b
Created February 13, 2019 04:32
The Candarial font source code
@font-face {
font-family: "Candarial";
src: local("Candara");
unicode-range: U+0-2f, U+40-10FFFF;
}
@font-face {
font-family: "Candarial";
src: local("Arial");
unicode-range: U+30-39;
}
@IDIDIR
IDIDIR / gist:4a8bed715ce0a1364457d935d05873a2
Created March 11, 2019 11:05
[kostyle] margins dependence by height (default by width)
<div class="mb-0 h-100 top">
<div class="middle">
<div class="inner"></div>
</div>
</div>
.overwidget {
background: #fff;
height: 100%;
width: 100%;
google.com,google.by,google.com.ua,google.kz,google.ru#?##search .srg > .g:-abp-has(a[href*="qaru.site"])
habr.com#?#article:-abp-has(>ul.post__hubs.inline-list > li > a:-abp-contains(Блог компании PVS-Studio))