Skip to content

Instantly share code, notes, and snippets.

View Drunpy's full-sized avatar
:octocat:
Cool

Lorran Rosa Drunpy

:octocat:
Cool
View GitHub Profile
@Drunpy
Drunpy / interesting_articles.txt
Last active December 28, 2023 11:51
A collection of interesting articles I've found on internet.
- https://inference-review.com/article/the-man-who-carried-computer-science-on-his-shoulders - Edsger Djikstra, life and work.
- https://www.cs.utexas.edu/~EWD/welcome.html - Djikstra archieve
- https://reberhardt.com/cs110l/spring-2020/ - Safety in Systems Programming
- https://webrtcforthecurious.com/docs/01-what-why-and-how/ - 3W of WebRTC
- https://github.com/Droogans/unmaintainable-code/blob/master/README.md - How to write unmaintainable
- https://netflixtechblog.com/ready-for-changes-with-hexagonal-architecture-b315ec967749 - Hexagonal Architeture
- https://softwarebyscience.com/very-short-functions-are-a-code-smell-an-overview-of-the-science-on-function-length/ - Very short functions is code smell
- https://blog.carlosgaldino.com/writing-a-file-system-from-scratch-in-rust.html - Writing a FS in Rust
- https://medium.com/the-apeiron-blog/stoic-principles-for-dealing-with-difficult-people-20c2cd399fad - Dealing with difficult people
- https://www.cia.gov/news-information/featured-story-archive/2012-featu
@Drunpy
Drunpy / books.txt
Last active February 6, 2023 00:04
A list of books I've read
- The Unwritten Laws of Engineering - W. J. KING
- Software Engineering at Google - Titus Winters+
- Games People Play The Psychology of Human Relationships - Eric Berne
- Learning Agile: Understanding Scrum, XP, Lean, and Kanban - Andrew Stellman
- Predictably Irrational: The Hidden Forces That Shape Our Decisions - Dan Ariely
- Building Great Software Engineering Teams Recruiting, Hiring, and Managing Your Team from Startup to Success - Josh Tyler
- Leading Minds An Anatomy Of Leadership - Gardner Howard
- The Manager's Path - Camille Fourier
- Punished by Rewards - Alfie Kohn
- Fundamentals of Software Architecture: An Engineering Approach - Mark Richards
Considering the app three:
- src
main.rs
- models
models.rs
- views
auth.rs
@Drunpy
Drunpy / django_forms_polimorph.py
Created July 10, 2019 01:32
Polimorphism example using Django's ModelForm
class QuotationForm(forms.ModelForm):
class Meta:
model = Quotation
fields = ('client','date_create', 'date_update', 'house_type',
'house_set',
)
def __init__(self, *args, **kwargs):
self.request = kwargs.get('request')
@Drunpy
Drunpy / django_permissions.py
Last active March 4, 2024 11:51
Exemplo de implementação de Grupos e Permissões no Django.
from django.contrib.auth.models import User
from django.contrib.auth.models import Group
from django.contrib.auth.models import Permission
from django.contrib.contenttypes.models import ContentType
# PERMISSÕES
# Permissões geralmente são usadas para fazer controle de acesso.
# Exemplo prático: Num sistema de gerenciamento a área de marketing pode acessar
# a área de Analytics da empresa.
# Implementação prática com as permissões do Django.