Every time you choose to apply a rule(s), explicitly state the rule(s) in the output. You can abbreviate the rule description to a single word or phrase.
[Brief description ]
- [more description]
- [more description]
- [more description]
export function onRequest(context) { | |
return new Response(JSON.stringify({ | |
continent: context.request.cf.continent | |
})) | |
} |
// Localized content | |
const showContentByContinent = (continent) => { | |
const contentElements = document.querySelectorAll('.content') | |
if (['NA', 'OC', 'EU'].includes(continent)) { | |
contentElements.forEach(div => { | |
if (div.classList.contains(continent)) { | |
div.classList.remove('hid') | |
} else { |
// or even better: https://blog.risingstack.com/mastering-async-await-in-nodejs/ | |
// https://github.com/iagodahlem/clima-cli/blob/master/src/utils/weather.js | |
// https://github.com/axios/axios | |
async function f() { | |
let result = await e(1500); | |
let output = await d(result); |
git branch --no-color | while read sha ref; do | |
git branch -D $sha | |
done |
function npm_update() { | |
for package in $(npm -g outdated --parseable --depth=0 | cut -d: -f2) | |
do | |
npm -g install "$package" | |
done | |
} |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>test</title> | |
</head> | |
<body> | |
<style> |
me at node1 in ~ | |
NSS_SDB_USE_CACHE=YES strace -fc -e trace=access curl 'https://foobar.booking.com/' > /dev/null | |
Process 14247 attached | |
% time seconds usecs/call calls errors syscall | |
------ ----------- ----------- --------- --------- ---------------- | |
100.00 0.000009 0 32 30 access | |
------ ----------- ----------- --------- --------- ---------------- | |
100.00 0.000009 32 30 total |
me at node1 in ~ | |
NSS_SDB_USE_CACHE=YES strace -fc -e trace=access curl 'https://foobar.booking.com/' > /dev/null | |
Process 14247 attached | |
% time seconds usecs/call calls errors syscall | |
------ ----------- ----------- --------- --------- ---------------- | |
100.00 0.000009 0 32 30 access | |
------ ----------- ----------- --------- --------- ---------------- | |
100.00 0.000009 32 30 total |