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.
-
Aliasing Git commands
Aliasing Git commands 1git config --global alias.st status
2git config --global alias.br branch
3git config --global alias.co checkout
4git config --global alias.ls 'log --oneline --decorate'
5git config --global alias.sts stash
-
Verify GibHub account on Keybase.io
Verify GibHub account on Keybase.io 1### Keybase proof
23I hereby claim:
45* I am lvnam96 on github.
-
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)
-
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();
-
Generate random string/characters in...
Generate random string/characters in JavaScript (from Stack Overflow) 1//https://stackoverflow.com/questions/1349404/generate-random-string-characters-in-javascript
2(length => {
3let text = '';
4const POSSIBLE_CHARS = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789',
5POSSIBLE_SCOPE = POSSIBLE_CHARS.length;
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.