Skip to content

Instantly share code, notes, and snippets.

View henriquedezani's full-sized avatar
💭
Working

Henrique Dezani henriquedezani

💭
Working
View GitHub Profile
@henriquedezani
henriquedezani / User.cs
Created July 31, 2022 17:08
POCO User Model
namespace GameBackend.Models;
public class User
{
public int UserId { get; set; }
public string Name { get; set; }
public string Email { get; set; }
public string Password { get; set; }
}
@henriquedezani
henriquedezani / avl.py
Created February 22, 2021 22:02 — forked from vndmtrx/avl.py
Implementação de árvores AVL
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Árvore AVL em Python
Copyright (c) 2009 Vindemiatrix Almuredin.
É dada permissão para copiar, distribuir e/ou modificar este documento
sob os termos da Licença de Documentação FAIL,
Versão 97.545.668.112.666.002 Build 69 Release 42;
Uma cópia da licença talvez esteja inclusa na seção entitulada
// Programação Orientada a Objeto
// DDD - Domain-Driven Design (Eric Evans)
// Value Object
class Endereco {
String logradouro;
String numero;
String cidade;
String estado;
class Endereco {
String cidade;
String estado;
Endereco({this.cidade, this.estado});
}
class Pessoa {
// atributos:
@henriquedezani
henriquedezani / Biblioteca.sql
Created July 18, 2019 20:17
Script SQL do projeto Biblioteca (Fatec/ADS/POO)
create database Biblioteca
go
use Biblioteca
go
create table Usuario
(
IdUsuario int primary key identity,
Nome varchar(100) not null,
@henriquedezani
henriquedezani / flutter_ocr.dart
Created May 30, 2019 12:14
Simple example using Flutter and Firebase MLKit (OCR)
import 'dart:io';
import 'package:flutter/material.dart';
import 'package:image_picker/image_picker.dart';
import 'package:firebase_ml_vision/firebase_ml_vision.dart';
import 'package:translator/translator.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {