Skip to content

Instantly share code, notes, and snippets.

View lucasres's full-sized avatar
👋

Lucas Resende lucasres

👋
View GitHub Profile
@lucasres
lucasres / main.dart
Last active April 6, 2024 19:33
Atividade IFPI Lista funções em dart
void main() {
mensagemAtividade("01");
print(multiplicaNumeros(10, 50));
mensagemAtividade("02");
print(construirNomeCompleto("Lucas", "Resende"));
mensagemAtividade("03");
print(construirNomeCompletoNullable("Lucas"));
print(construirNomeCompletoNullable("Lucas", "Resende"));
@lucasres
lucasres / main.dart
Last active April 6, 2024 18:51
atividade Exercício prático sobre Listas em DartTarefa
void main() {
// Questão 1
var frutas = <String>[];
frutas.add("Caja");
frutas.add("Acerola");
frutas.add("Manja");
// Adicione suas frutas aqui
assert(frutas.length == 3);
// Questão 2
final numerosFixos = const [5, 10, 15];
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
</body>
version: '3.5'
services:
unify:
image: linuxserver/unifi-controller
container_name: unifi-controller
ports:
- 10001:10001/udp
- 8080:8080
- 8443:8443
@lucasres
lucasres / pgadmin-docker.yml
Created January 23, 2020 02:43
docker-compose para rodar o pgadmin
version: '3.4'
services:
pgadmin:
image: dpage/pgadmin4
container_name: pgadmin
environment:
- PGADMIN_DEFAULT_EMAIL=lucasresone@gmail.com
- PGADMIN_DEFAULT_PASSWORD=pgadmin
- PGADMIN_LISTEN_PORT=5050
ports:
@lucasres
lucasres / gist:1a5d9313081226a98d1e5c74541f7f09
Created March 15, 2019 13:49
The clean repository from django application
#mixin for repository
class RepositoryMixin():
""" This class will served for base for all repository of project """
class Meta:
model = None
@classmethod
def all(cls):
"""
Shortcut for get all entity from model