Skip to content

Instantly share code, notes, and snippets.

View ermogenes's full-sized avatar
Better with coffee

Ermogenes Palacio ermogenes

Better with coffee
View GitHub Profile
@ermogenes
ermogenes / index.html
Last active November 10, 2023 01:33
Aula 09/11 - Fetch e AccuWeather API
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Clima em Mongaguá</title>
</head>
<body>
<h1>Clima em Mongaguá</h1>
@ermogenes
ermogenes / dados.json
Created November 9, 2023 23:13
Aula 09/11/2023 - Fetch API
{
"escola": "Etec Adolpho Berezin",
"curso": "Informática",
"componente": "Programação de Computadores II",
"professores": [
"Ermogenes",
"Nicholas"
]
}
@ermogenes
ermogenes / expo-dockerfile
Last active October 11, 2023 01:07
Expo prebuild env
FROM ubuntu:22.04
RUN apt-get update -y && apt-get upgrade -y
RUN apt-get install -y apt-utils curl git build-essential
RUN /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
RUN (echo; echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"') >> /root/.profile
ENV BREW_HOME /home/linuxbrew/.linuxbrew/bin/
ENV PATH "$PATH:$BREW_HOME"
@ermogenes
ermogenes / expo_version_bump.sh
Created September 12, 2023 16:54
Bumps versionCode and buildNumber on Expo's app.json
#! /bin/sh
echo "Getting version description..."
appversion=$(echo | grep '"version" *: *"[0-9]*\.[0-9]*\.[0-9]*"' app.json | sed -r 's/[^0-9\.]//g')
if [ -z $appversion ]
then
echo "ERROR: expo.version not found on app.json"
exit 1
fi
using Swashbuckle.AspNetCore;
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddSwaggerGen();
builder.Services.AddEndpointsApiExplorer();
var app = builder.Build();
app.UseSwagger();
@ermogenes
ermogenes / Program.cs
Created March 30, 2023 14:17
Palestra 30/03/2023 - Web App de exemplo
var builder = WebApplication.CreateBuilder(args);
var app = builder.Build();
app.UseDefaultFiles();
app.UseStaticFiles();
app.MapGet("/placar", () =>
{
PlacarDTO placar = new() { vermelho = 5, branco = 4, azul = 6 };
return Results.Ok<PlacarDTO>(placar);
@ermogenes
ermogenes / index.html
Created March 17, 2023 01:26
Aula 16/03/2023 - Flex
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Aula PC2</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
@ermogenes
ermogenes / unicode-space.md
Last active March 1, 2023 18:34
Representações Unicode para espaço em branco
@ermogenes
ermogenes / cola-c#-git-github.md
Last active February 25, 2023 20:21
Cola (Cheatsheet) do processo para criação de repo com programa C#

Cola (Cheatsheet) do processo para criação de repo com programa C#

Criar o repositório remoto

  • Criar um repositório em https://github.com/, na opção new repository.
  • Colocar o nome e a descrição.
  • Deixar público.
  • Adicionar o README.
  • Adicionar o .gitignore do tipo VisualStudio.
  • Não adicionar uma licença.
@ermogenes
ermogenes / data-integration-stack.md
Created December 20, 2022 13:28
Stack para estudo

Stack interessante para integração de dados

  • Airbyte - All your data pipelines in minutes. Reliably. Open-source, scalable and fast. For growth companies and enterprises alike.
  • Apache Airflow - Airflow is a platform created by the community to programmatically author, schedule and monitor workflows.
  • dbt - Transforming data. Transforming teams. dbt™ helps data teams work like software engineers—to ship trusted data, faster.
  • Snowflake - ONE PLATFORM THAT POWERS THE DATA CLOUD - Execute your most critical workloads on top of Snowflake's multi-cluster shared data architecture in a fully managed platform that capitalizes on the near-infinite resources of the cloud.
  • Elementary - Open Source Data Observability. Monitor your data warehouse in minutes directly from dbt. An analytics engineer first solution for monitoring data quality and operations.