Skip to content

Instantly share code, notes, and snippets.

View mikansc's full-sized avatar
🏠
Working from home

Michael Nascimento mikansc

🏠
Working from home
View GitHub Profile
@mikansc
mikansc / exemplo-pratico-de-redux.markdown
Created January 15, 2021 22:58
Exemplo prático de Redux
@mikansc
mikansc / exemplo-pratico-de-redux.markdown
Created January 15, 2021 23:10
Exemplo prático de Redux
@mikansc
mikansc / 01 - DDL - Criacao das tabelas iniciais (WIP 03-02-2022).sql
Created February 4, 2022 01:05
DESAFIO! Modelagem de DB da Escola Trevinho - DEVInHouse Teltec & BRy
create type periodo_enum as enum ('matutino', 'vespertino', 'noturno')
create table alunos (
id serial primary key,
nome varchar(80) not null,
sobrenome varchar(80) not null,
telefone varchar(15) not null,
data_nascimento date not null,
turma_id int not null references turmas
);
@mikansc
mikansc / 00 - DDL - Modelagem das tabelas.sql
Created February 5, 2022 00:31
Modelagem do DB Escola Trevinho - Final - DEVInHouse Teltec & BRy
create type periodo_enum as enum ('matutino', 'vespertino', 'noturno')
create table turmas (
id serial primary key,
nome varchar(80) not null,
periodo periodo_enum
);
create table materias (
id serial primary key,
@mikansc
mikansc / index.html
Created March 9, 2022 01:09
Aula 02 Semana 02 - DEVInHouse NDD
<!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">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<title>Bootstrap Example</title>
@mikansc
mikansc / Conta.cs
Created June 15, 2022 01:11
Aula DEVInHouse NDD - 14 06 2022 - POO
namespace OrietacaoObjeto;
class Conta
{
private decimal Saldo;
public string Titular { get; set; }
public Conta(string nomeTitular, decimal saldoInicial)
{
Titular = nomeTitular;
@mikansc
mikansc / index.html
Created July 12, 2022 19:11
Exemplo de HTML e CSS para resolução dos exercícios do curso DEVInHouse
<!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>Lista de Convidados</title>
<link rel="stylesheet" href="style.css">
</head>
@mikansc
mikansc / axiosService.js
Last active September 14, 2022 11:07
Exemplo de uso de axios
import axios from "axios";
import { buildAxiosConfig } from "./configUtils.js";
// ------------------ AXIOS
export const fazerLogin = (usuario, senha) => {
const dados = {
username: usuario,
password: senha,
};
@mikansc
mikansc / Image.jsx
Created March 12, 2023 15:04
Image component with performance configuration
import React from "react";
import PropTypes from "prop-types";
export const Image = (props) => {
const { src, alt } = props;
return (
<picture>
<source
type="image/webp"
srcSet={`
@mikansc
mikansc / App.jsx
Last active March 16, 2023 23:37
Arquivo React da aula
import { useState } from "react";
const corInicial = "btn-primary";
function App() {
const [nome, setNome] = useState("Turma Itaguaçu!!!!!!!!!!!!!!");
const [cor, setCor] = useState(corInicial);
document.title = nome;