Skip to content

Instantly share code, notes, and snippets.

View astra1's full-sized avatar
🤡

Maxim astra1

🤡
  • Nowhere
  • 16:44 (UTC +03:00)
View GitHub Profile
@astra1
astra1 / cls_test.js
Created October 12, 2023 10:52
Measure layout shifts
new PerformanceObserver((entryList) => {
let cls = 0;
for (const entry of entryList.getEntries()) {
if (!entry['hadRecentInput']) {
cls += entry['value'];
debugger;
console.log('Current CLS value:', cls, entry);
}
}
}).observe({ type: 'layout-shift', buffered: false });
@astra1
astra1 / nexus4.adb
Created December 4, 2018 00:24
Software fix for dead zone))0)
adb shell wm overscan reset
adb shell wm overscan 0,0,0,50
@astra1
astra1 / media-query.css
Created June 26, 2018 13:12 — forked from gokulkrishh/media-query.css
CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
//CSS