NPX (NPM Package Runner) Commands
List of useful npx (NPM Package Runner) commands.
What is NPX?
Using NPX we can execute/run node binaries without the need to install it locally or globally.
/* | |
##Device = Desktops | |
##Screen = 1281px to higher resolution desktops | |
*/ | |
@media (min-width: 1281px) { | |
/* CSS */ | |
List of useful npx (NPM Package Runner) commands.
Using NPX we can execute/run node binaries without the need to install it locally or globally.
This shows the execution order given JavaScript's Call Stack, Event Loop, and any asynchronous APIs provided in the JS execution environment (in this example; Web APIs in a Browser environment)
Given the code
There are two main types of margin collapse:
Using a padding or border will prevent collapse only when Collapsing is between parent and children. Also, any value of overflow different from its default (visible) applied to the parent will prevent collapse.
Thus, both overflow: auto and overflow: hidden will have the same effect.
/* HTML */ | |
<div class="container"> | |
<div class="child"></div> | |
<div> | |
/* Basic Style */ | |
.container { | |
width: 500px; |
git config core.ignorecase false
git config --global help.autocorrect 1
// without 2nd argument support | |
if (typeof Object.create !== 'function') { | |
Object.create = function(o, props) { | |
function F() {} | |
F.prototype = o; | |
return new F(); | |
} | |
} | |
#!/usr/bin/env node | |
const { exec } = require('child_process'); | |
exec('code --list-extensions', (err, stdout) => { | |
if (err) console.log('Error occurred', err); | |
const extensions = stdout.split('\n').filter(extension => extension); | |
console.log(`\n✅ Installed VS Code Extensions: ${extensions.length} \n`); |
curl https://git.io/ -i -F "url=<repo-url>" -F "code=<repo-name>"
Above command will give you something like git.io/repo-name