- Serviço padrão:
- DNS primário: 1.1.1.1
- DNS secundário: 1.0.0.1
- Filtro de malware:
- DNS primário: 1.1.1.2
- DNS secundário: 1.0.0.2
- Filtro de malware e conteúdo adulto:
- DNS primário: 1.1.1.3
let timeout; | |
const debounce = (func, wait) => { | |
clearTimeout(timeout); | |
timeout = setTimeout(func, wait); | |
}; | |
const handleInput = () => { | |
debounce(() => { | |
format(); |
<?php | |
function isntEmpty($x) | |
{ | |
$key = array_keys($x)[0]; | |
if(!empty($x[$key])) { | |
return $x; | |
} | |
} |
=IMAGE(“https://chart.googleapis.com/chart?chs=200×200&cht=qr&chl=”&A2&””) |
function reducers(state = initState, action) { | |
const mapping = { | |
[ACTION_ONE]: { ...state, token: action.payload }, | |
[ACTION_TWO]: { ...state, error: action.payload } | |
}; | |
return mapping[action.type] || state; | |
} |
const secret = `${Math.random().toString(36).slice(2)}`; |
// helper function that builds the | |
// object to store the data | |
const buildCharObject = str => { | |
const charObj = {} | |
for(let char of str.replace(/[^\w]/g).toLowerCase()) { | |
// if the object has already a key value pair | |
// equal to the value being looped over, | |
// increase the value by 1, otherwise add | |
// the letter being looped over as key and 1 as its value | |
charObj[char] = charObj[char] + 1 || 1 |
List all essentials command to use Docker. Based on https://hackernoon.com/docker-commands-the-ultimate-cheat-sheet-994ac78e2888
const deleteImagesFolder = () => { | |
ns.dir('/cpCode/front-app-home/images', (error, res, body) => { | |
if (error) { | |
throw new Error(`Error, ${error.message}`); | |
} | |
if (body.stat !== undefined) { | |
const { file: files } = body.stat; | |
files.forEach(file => { |