Skip to content

Instantly share code, notes, and snippets.

View tgmarinho's full-sized avatar
💻
read my blog: tgmarinho.com

Thiago Marinho tgmarinho

💻
read my blog: tgmarinho.com
View GitHub Profile
@tgmarinho
tgmarinho / main.md
Created May 10, 2024 14:00
Workflow Development Feature Flag, Tag Releases

VIVA LA MAIN

The proposal is to maintain only one branch: main.

Dev opens a PR, and CI runs tests, checks if the build passes, code review is done, and the merge is made to main.

All new code on main will generate a new CI and CD, a release for the staging environment, where QA is performed by stakeholders (Dev, QA, Product).

Control of what can be displayed by environment is done through feature flags, basically an if statement in the code that checks if the feature can be activated or deactivated in environment X (staging | production).

VIVA LA MAIN

A proposta é manter apenas uma branch: main.

Dev abre PR, e o CI roda testes, verifica se build passa, é feito code review e o merge é feito para main.

Todo código novo na main vai gerar uma nova CI e CD, uma release para ambiente de staging, onde é feito o QA pelas partes interessadas (Dev, QA, Product).

O controle do que pode ser exibido por ambiente é feito por feature flags, basicamente um if no código que verifica se no ambiente X (staging | production) a feature pode ser ativada ou desativada.

@tgmarinho
tgmarinho / Recursos.md
Created July 16, 2020 16:15
Melhores sites para baixar imagens gratuitas e outros recursos
@tgmarinho
tgmarinho / cc.md
Created April 19, 2024 20:48 — forked from noghartt/cc.md
Resources to learn more about Computer Science and related stuffs
@tgmarinho
tgmarinho / production-api-and-cronjobs.yml
Created April 10, 2024 13:56
main branch - .github/actions
name: Deploy COMPANY API & Cronjobs API Production
concurrency:
group: production-api-${{ github.ref }}
on:
push:
branches:
- main
@tgmarinho
tgmarinho / exercise_of_arrays_foreach_map_filter_reduce.js
Last active March 28, 2024 14:01
Practicing Arrays, ForEach, Map, Filter and Reduce!
// Complete the below questions using this array:
const array = [
{
username: "john",
team: "red",
score: 5,
items: ["ball", "book", "pen"]
},
{
username: "becky",
@tgmarinho
tgmarinho / README.md
Created July 17, 2020 14:40 — forked from navarrothiago/README.md
Transform your smartphone camera in a WebCam to make video conference
@tgmarinho
tgmarinho / AUTOR.md
Created July 11, 2020 15:31
Template Autors - Github - README
@tgmarinho
tgmarinho / .tsx
Created February 16, 2024 17:44 — forked from dutradotdev/.tsx
BlurContainer in React Native
import React from 'react';
import WebView from 'react-native-webview';
export type RGBA = `rgba(${number}, ${number}, ${number}, ${number})`;
export interface BlurContainerProps {
backgroundColor: RGBA;
blurRadius: number;
}
@tgmarinho
tgmarinho / settings.json
Last active February 7, 2024 12:32
vscode settings
{
"emmet.syntaxProfiles": {
"javascript": "jsx"
},
"workbench.startupEditor": "newUntitledFile",
"editor.fontSize": 16,
"javascript.suggest.autoImports": true,
"javascript.updateImportsOnFileMove.enabled": "always",
"editor.rulers": [
80,