...
...
function manipulateText(text, command) { | |
let cursor = 0; | |
let result = text.split(''); | |
for (let i = 0; i < command.length; i++) { | |
const currentCommand = command[i]; | |
if (currentCommand === 'h') { | |
cursor = Math.max(0, cursor - 1); | |
} else if (currentCommand === 'l') { |
javascript:(function(){const baseUrl = 'https://marreta.pcdomanual.com/p/';const currentUrl = window.location.href;window.location.href = baseUrl + encodeURIComponent(currentUrl);})(); |
javascript:(function(){const iframe=document.querySelector('iframe.custom-charts-editor');if(iframe){const iframeDocument=iframe.contentDocument||iframe.contentWindow.document;const targetElement=iframeDocument.querySelector('section.custom-charts-splashscreen');if(targetElement){targetElement.remove(); console.log('Element found:',targetElement);}else{console.log('Element not found inside the iframe.');}}else{console.log('No iframes found on the page.');}})();
ts-node -O '{"module":"commonjs"}' my-script.ts |
// remove false element in array | |
const friends = ['Jake', null, 'Cassidy', undefined, 'Joshy', undefined, 'Jordyn'] | |
const filteredFriends = friends.filter(Boolean) | |
filteredFriends // ["Jake", "Cassidy", "Joshy", "Jordyn"] |
Devemos explicar o problema claramente e identificar detalhes adicionais que a equipe precise saber. Devemos aqui descrever o contexto, o que foi feito até agora e o estado atual.
A descrição também serve como uma trilha à qual podemos voltar no futuro para entender o raciocínio que tínhamos na época e ver quais restrições e requisitos mudaram.
# https://help.github.com/en/actions/reference/workflow-commands-for-github-actions#setting-an-output-parameter | |
# https://github.com/actions/setup-node/issues/32 | |
- name: Read .nvmrc | |
run: echo ::set-output name=NVMRC::$(cat .nvmrc) | |
id: nvm | |
- name: Setup node | |
uses: actions/setup-node@v1 | |
with: |
<div class="parent"> | |
<div class="child"> | |
1 line center | |
</div> | |
</div> |