Skip to content

Instantly share code, notes, and snippets.

View pxotox's full-sized avatar

Gabriel Peixoto pxotox

View GitHub Profile
@pxotox
pxotox / settings.json
Created November 22, 2019 12:26
Windows Terminal
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{2c4de342-38b7-51cf-b940-2309a097f518}",
"profiles":
@pxotox
pxotox / Dockerfile
Created July 4, 2019 19:48
Python 3.6 alpine with libsass installed
FROM python:3.6-alpine
RUN apk add --no-cache build-base
RUN pip3 install --no-cache-dir libsass
@pxotox
pxotox / README.md
Last active March 20, 2021 14:28
CrossKnowledge - Technical challenge (C#)

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 module - SimpleJsonRequest.cs) to cache requests made with the existing code, preventing unecessary calls. You may 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.

@pxotox
pxotox / README.md
Last active April 16, 2021 21:08
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.

@pxotox
pxotox / README.md
Last active April 2, 2019 10:34
CrossKnowledge - Technical challenge (.NET)

Technical challenge

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

Challenges

You'll answer the 4 following challenges.

1. Cache function

Implement a function (it may be on the same module - SimpleJsonRequest.cs) to cache requests preventing unecessary calls. You may use this Redis module as a cache service.

@pxotox
pxotox / README.md
Last active April 15, 2019 18:45
CrossKnowledge - Technical challenge (PHP)

Technical challenge

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

Challenges

You'll answer the 4 following challenges.

1. Cache function

Implement a function (on the same module - request.php) to cache requests preventing unecessary calls. You may use this Redis module as a cache service.

@pxotox
pxotox / README.md
Last active July 9, 2019 06:45
CrossKnowledge - Technical challenge (Python)

Technical challenge

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

Challenges

You'll answer the 4 following challenges.

1. Cache function

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.