Skip to content

Instantly share code, notes, and snippets.

View mpelos's full-sized avatar

Marcelo Munhoz Pélos mpelos

View GitHub Profile
const Main = () => {
...
const salaryCalculate = new SalaryCalculator();
const salary = salaryCalculate.calculate(grossSalary);
return (
...
<LisResult
inss={salary.inss}
@mpelos
mpelos / postgres-backup.bash
Last active April 22, 2021 03:25
Postgres docker container backup script
#!/bin/bash
filename=$(date +"%Y%m%d%H%M%S").out
dirname=$(date +"%Y-%m")
/usr/bin/docker exec postgres /usr/bin/pg_dumpall -U postgres > /tmp/$filename
gsutil cp /tmp/$filename gs://ebb-prod-postgres-backups/$dirname/$filename
rm -f /tmp/$filename
@mpelos
mpelos / sheet-schema.yml
Last active July 14, 2022 23:43
RPG Sheet Example
$id: /schemas/character-sheet
title: GURPS Character Sheet
type: object
properties:
characterName:
type: string
basicAttributes:
type: object
properties:
@mpelos
mpelos / Associating employees.md
Last active May 12, 2023 19:09
360 evaluation web application definition

User Story: As an administrator, I need to associate a registered user with their peers, manager (if applicable), and subordinates (if applicable), so that they can conduct a 360-degree evaluation process.

Acceptance Criteria:

  1. Given that I am an authenticated administrator, when I navigate to an employee's profile, then I should see options to associate peers, a manager, and subordinates.

  2. Given that I am viewing an employee's profile, when I select the option to associate peers, then I should see a list of all other employees from which I can select.

  3. Given that I am selecting peers, when I choose an employee from the list, then that employee should be added to the list of peers for the first employee.