- Run command:
chmod +x dev-setup.sh
- Run command:
./dev-setup.sh
to start the install script
document.getElementsByTagName("img")[0].style.transform = "rotate(270deg)" |
Here is the description of what you'll need to implement on this technical challenge.
Implement a function, class or module (it can be on the same file - request.py
) to cache requests made with the existing code, preventing unecessary calls. You MUST use this Redis module as a cache service. Feel free to change the code within the existing functions, but do not alter their behaviour.
Context: Caching requests can be useful to avoid unecessary HTTP calls for the same resources, however, the resources can change during time, so it is important to keep in mind that cache needs to be invalidated at some point.
new Date().toLocaleString('pt-BR', { timeZone: 'America/Sao_Paulo' }); |
Tem o canal do youtube do cara que foi por onde achei ele, mas tem um blog também é maneiro e organizado, ele ensina como cuidar da pele, cabelo e até o tal da harmonização facial que é o que faz o pessoal de hollywood tem aquele maxilar/mandibula bonita https://www.youtube.com/watch?v=JJXe0_3DJWA https://homensquesecuidam.com/
Esse vídeo é bem vlog, mas mostra direitinho o processo pra ficar com os dentes lindos, o canal dessa cara não recomendo tanto pq ele divaga um pouco, mas dá algumas dicas https://www.youtube.com/watch?v=5uF_8CHb2bM
/* | |
O 19 é a quantidade de horas atrás, só subistituir por outro valor. | |
*/ | |
new Date(new Date().setHours(new Date().getHours() - 19)).toLocaleString("pt-BR") |
Here is the description of what you'll need to implement and answer on this technical challenge.
You'll answer the 4 following challenges.
Implement a function (on the same module - request.py
) to cache requests preventing unecessary calls. You MUST use this Redis module as a cache service.
var koa = require('koa'); | |
var app = new koa(); | |
var json = require('koa-json'); | |
app.use(json()); | |
app.use(function* (next) { | |
if (this.method != 'GET') return yield next; | |
if (!/x-men/.test(this.originalUrl)) return yield next; |
// 1- Gera um numero random | |
// 2- Ve se é valido (ñ é um dos excluidos) | |
// 3- Soma com os outros é igual ao valor final ? | |
// 4- Soma é possível com os números válidos ? | |
// Não -> Repete | |
// Sim -> Fim | |
// 😂 | |
//Entrada da soma total | |
var numSoma = prompt("Insira o total da soma: ", 15); |