- Extensões:
- ESLint: Integração do ESLint para linting de código.
- Prettier - Code formatter: Formatação de código usando o Prettier.
- Live Share: Colaboração em tempo real.
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
javascript:(function(){ | |
const baseUrl = 'https://parede.pcdomanual.com/'; | |
const currentUrl = window.location.href; | |
const redirectUrl = baseUrl + currentUrl; | |
window.location.href = redirectUrl; | |
})(); |
- Crie um novo marcador (bookmark) no seu navegador.
- Copie e cole o código abaixo na URL do marcador.
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.');}})();
- Dê um nome ao marcador (por exemplo, "Remove Custom Charts Alerts").
- Quando editar o “custom chart” clique no marcador para executar o código de remoção do alerta
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
ts-node -O '{"module":"commonjs"}' my-script.ts |
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
// 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.
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
# 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: |
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
<div class="parent"> | |
<div class="child"> | |
1 line center | |
</div> | |
</div> |
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 timeout; | |
const debounce = (func, wait) => { | |
clearTimeout(timeout); | |
timeout = setTimeout(func, wait); | |
}; | |
const handleInput = () => { | |
debounce(() => { | |
format(); |
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
<?php | |
function isntEmpty($x) | |
{ | |
$key = array_keys($x)[0]; | |
if(!empty($x[$key])) { | |
return $x; | |
} | |
} |
NewerOlder