Skip to content

Instantly share code, notes, and snippets.

Avatar
😃
fulfilled, like a resolved promise

Orlando Wenzinger Orlandster

😃
fulfilled, like a resolved promise
View GitHub Profile
View gist:6d9acf1b12c83882cf54cb75f3aaa52c
// by jfriend00 - https://stackoverflow.com/questions/46416433/how-to-resolve-a-promise-multiple-times
function getNotifier() {
const event = new Event('myEvent');
setTimeout(() => {
window.dispatchEvent(event);
}, 500);
setTimeout(() => {
View bootstrap grid breakpoints
< 768px = xs // @media (max-width : 767px) {}
≥ 768px = sm // @media (min-width : 768px) and (max-width : 991px) {}
≥ 992px = md // @media (min-width : 992px) and (max-width : 1199px) {}
≥ 1200px = lg // @media (min-width : 1200px) {}