This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$$('[aria-label="Not interested"]').forEach(b => b.click()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// cleanup the extra markup to make it valid AsciiDoc | |
const clean = require('fs').readFileSync('2.primitive.asciidoc').toString().split('\n').filter(line => { | |
if (line.indexOf('/*nolint*/') === 0 || | |
line.indexOf('/*global') === 0 || | |
line.indexOf('/*jshint') === 0) { | |
return false; | |
} | |
return true; | |
}) | |
.join('\n') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
React State Management | |
JSDay🇧🇷 Recife 2020 | |
@stoyanstefanov | |
phpied.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<IfModule mod_rewrite.c> | |
# BEGIN Force http to https | |
RewriteEngine On | |
RewriteCond %{HTTPS} !=on | |
RewriteRule ^(.*) https://%{HTTP_HOST}/$1 [R=301,L] | |
# END Force http to https | |
</IfModule> | |
<IfModule mod_rewrite.c> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let i = document.querySelector('input.waterfall-transparency'); | |
let up = true; | |
i.value = parseFloat(i.min); | |
i.dispatchEvent(new Event('change')); | |
function animate() { | |
const curr = parseFloat(i.value); | |
const max = parseFloat(i.max); | |
const min = parseFloat(i.min); | |
const step = parseFloat(i.step); | |
i.value = up ? curr + step : curr - step; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// data from https://github.com/DebugBear/chrome-extension-list | |
const data = require('./extensions-2021.json'); | |
const topx = {}; | |
data.forEach(x => { | |
if (x.installs !== "10,000,000+") { | |
Object.keys(topx).sort().forEach(key => { | |
console.log(topx[key]); | |
}) | |
process.exit(); | |
} |
OlderNewer