Skip to content

Instantly share code, notes, and snippets.

View ErosMLima's full-sized avatar
🎯
I'm building apps and helping build new innovations in tech

Eros M.Lima ErosMLima

🎯
I'm building apps and helping build new innovations in tech
View GitHub Profile
@ErosMLima
ErosMLima / README.md
Created April 16, 2021 21:08 — forked from pxotox/README.md
CrossKnowledge - Technical challenge (Python)

Technical challenge

Here is the description of what you'll need to implement on this technical challenge.

Challenges

1. Cache function

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.

setTimeout(function() {
function getAllModules() {
return new Promise((resolve) => {
const id = _.uniqueId("fakeModule_");
window["webpackJsonp"](
[],
{
[id]: function(module, exports, __webpack_require__) {
resolve(__webpack_require__.c);
}
@ErosMLima
ErosMLima / AdbCommands
Created February 7, 2021 17:55 — forked from Pulimet/AdbCommands
Adb useful commands list
adb help // List all comands
== Adb Server
adb kill-server
adb start-server
== Adb Reboot
adb reboot
adb reboot recovery
adb reboot-bootloader