Create new filters and create new labels.
from:([email protected]) AND {"Patch Links" "approved this pull request." "requested changes on this pull request." "commented on this pull request." "pushed /d+ commit."}
label: gh-pull-request
@media (hover: none) and (pointer: coarse) { | |
/* you're on a touch-only device */ | |
} | |
@media (hover: none) and (pointer: fine) { | |
/* you're on a device without hover but with a stylus | |
or other fine pointing device */ | |
} | |
@media (hover: hover) and (pointer: coarse) { |
Create new filters and create new labels.
from:([email protected]) AND {"Patch Links" "approved this pull request." "requested changes on this pull request." "commented on this pull request." "pushed /d+ commit."}
label: gh-pull-request
let resizeTimer; | |
window.addEventListener("resize", () => { | |
document.body.classList.add("resize-animation-stopper"); | |
clearTimeout(resizeTimer); | |
resizeTimer = setTimeout(() => { | |
document.body.classList.remove("resize-animation-stopper"); | |
}, 400); | |
}); |
img[alt=""], | |
img:not([alt]) { | |
border: 5px dashed #c00; | |
} |
// Get all of the images that are marked up to lazy load | |
const images = document.querySelectorAll('.js-lazy-image'); | |
const config = { | |
// If the image gets within 50px in the Y axis, start the download. | |
rootMargin: '50px 0px', | |
threshold: 0.01 | |
}; | |
// The observer for the images on the page | |
let observer = new IntersectionObserver(onIntersection, config); |
@function str-replace($string, $search, $replace: '') { | |
$index: str-index($string, $search); | |
@if $index { | |
@return str-slice($string, 1, $index - 1) + $replace + str-replace(str-slice($string, $index + str-length($search)), $search, $replace); | |
} | |
@return $string; | |
} |
body { font-family: monospace; } | |
.code { color: red; } |
function isElementInViewport (el) { | |
if (typeof jQuery === "function" && el instanceof jQuery) { | |
el = el[0]; | |
} | |
var rect = el.getBoundingClientRect(); | |
return ( | |
rect.top >= 0 && | |
rect.left >= 0 && |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |