Skip to content

Instantly share code, notes, and snippets.

View DfKimera's full-sized avatar
🦊

Aryel Tupinambá DfKimera

🦊
View GitHub Profile
FROM php:7.4-fpm
# Arguments defined in docker-compose.yml
ARG user
ARG uid
# Install system dependencies
RUN apt-get update && apt-get install -y \
git \
curl \
version: "3.7"
services:
app:
build:
args:
user: sapphire
uid: 1000
context: ./
dockerfile: Dockerfile
image: sapphire

PROCESSO SELETIVO LQDI - FULL STACK PHP ENGINEER (Pleno e Senior)

Teste teórico (20min)

O teste teórico é composto de algumas perguntas-problema, cuja resposta deve ser em código. Nela, avaliamos a capacidade de interpretação de texto e pensamento lógico e desenvolvimento de algorítmos.

Para realizá-lo, você deve acessar o nosso ambiente de testes do InterviewZen.

Preencha seu nome e e-mail, e clique em "Start the Interview". Cada questão tem um timer que conta o tempo total que você levou no problema. Ao concluir cada problema, clique no botão "Submit solution".

<!doctype html>
<html>
<head>
<style>
.svg {
display: inline-block;
vertical-align: middle;
stroke-width: 0;
stroke: currentColor;
fill: currentColor;
@DfKimera
DfKimera / ExportDataToSQLite.php
Created November 30, 2017 18:45
Command line Laravel tool to migrate data from a MySQL connection to a SQLite connection, preserving IDs and data structures
<?php
/**
* espp-site
* ExportDataToSQLite.php
*
* Copyright (c) LQDI Digital
* www.lqdi.net - 2017
*
* @author Aryel Tupinambá <[email protected]>
*
server {
listen 80;
server_name nest-nne-plataforma-api.app;
root "/home/vagrant/projects/nest-nne-plataforma-api/public";
index index.html index.htm index.php;
charset utf-8;
location / {
@DfKimera
DfKimera / test_ap.lua
Created May 20, 2017 18:17
Testing NodeMCU wi-fi capabilities
#include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <ESP8266WebServer.h>
const char *ssid = "ESPap";
const char *password = "thereisnospoon";
ESP8266WebServer server(80);
void handleRoot() {
@DfKimera
DfKimera / latinToASCII.js
Created May 14, 2017 00:39
Converts Latin special characters (á, ã, â, ç, etc) (found in languages like Portuguese and Spanish) into corresponding ASCII characters. Useful for handling substring searching. [pt-br: Converte caracteres latinos (á, ã, â, ç, etc) (encontrados em idiomas como Português e Espanhol) em caracteres ASCII correspondentes. Útil para lidar com busca …
function latinToASCII(input) {
let mapFrom = 'ãàáâäéêèëíìîïóòõôöúùûüçÃÀÁÂÄÉÊÈËÍÌÎÏÓÒÕÔÖÚÙÛÜÇ'.split('');
let mapTo = 'aaaaaeeeeiiiiooooouuuucAAAAAEEEEIIIIOOOOOUUUUC'.split('');
return input
.split('')
.map((char) => {
let index = mapFrom.indexOf(char);
if(index === -1) return char;
return mapTo[index];
@DfKimera
DfKimera / test_card_create_with_hash.php
Created April 19, 2017 18:51
Tests features introduced in: https://github.com/DfKimera/pagarme-php/commit/27d2d004bcd01b9a92379fede78f6d5ca8ef92ef; Regarding issue: https://github.com/pagarme/pagarme-php/issues/168; Generates a card hash via Pagarme.js from sample data, and uses this hash with the the $pagarMe->card()->createFromHash(). The test is successful when the data …
<?php
/**
* Generates a card hash via Pagarme.js from sample data, and uses this hash with the the $pagarMe->card()->createFromHash().
* The test is successful when the data outputted is valid (generated card has the "valid" property true and a present, valid "id" property)
*/
include("vendor/autoload.php");
if($_POST['card_hash']) {
$pagarMe = new \PagarMe\Sdk\PagarMe('<< API KEY HERE >>');
@DfKimera
DfKimera / cep_lookup.js
Created April 12, 2017 18:23
Small ES6 library to lookup addresses by CEP. Supports multiple providers and automatically swaps providers on lookup failure.
/**
* kisuma-platform
* cep_lookup.js
*
* Copyleft (c) LQDI Digital
* www.lqdi.net - 2017
* Licenced with MIT
*
* @author Aryel Tupinambá <[email protected]>
*/