Pinned Loading
-
Responsive embedding of Google Maps ...
Responsive embedding of Google Maps (or anything <iframe> embedded really). 1# Responsive Google Maps embedding
2Simple technique for embedding Google Maps `<iframe>`'s responsively using a `padding-bottom` percentage trick, which when applied to a block element will be calculated as a percentage of the _element width_ - essentially providing an aspect ratio.
34This technique should work on anything that is `<iframe>` embedded from your social network/service of choice.
-
svelte-zustand (adapter)
svelte-zustand (adapter) 1<script lang="ts">
2import { store, useAbcData, useSetData } from './store';
34// you can import store & access its prop directly:
5$: console.log('new changes will be logged here', $store.data);
-
promises-in-sequence-and-parallel.js
promises-in-sequence-and-parallel.js 1function workAfterDataRetrieved (data) {
2return new Promise((resolve) => {
3// doSomeDutyTaskHere();
4console.log('task done: ' + data.name);
5resolve();
-
Resolve issue of passing `ref` on `d...
Resolve issue of passing `ref` on `dynamic()` (lazy) loaded component in NextJS 1// Issue: https://github.com/vercel/next.js/issues/4957
234/**
5* Usage is the same as `dynamic()` from NextJS with 1 exception: `ssr` IS ALWAYS FALSE
-
-
Generate random dark HSL color (CSS)...
Generate random dark HSL color (CSS) in JavaScript 1const getRandomColor = () => {
2const h = Math.floor(Math.random() * 360),
3s = Math.floor(Math.random() * 100) + '%',
4l = Math.floor(Math.random() * 60) + '%';// max value of l is 100, but I set to 60 cause I want to generate dark colors
5// (use for background with white/light font color)
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.