Skip to content

Instantly share code, notes, and snippets.

View renanzulian's full-sized avatar

Renan Zulian renanzulian

View GitHub Profile
@renanzulian
renanzulian / semantic-commit-messages.md
Created September 10, 2022 15:21 — forked from joshbuchea/semantic-commit-messages.md
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@renanzulian
renanzulian / template_method.py
Created May 12, 2021 00:13
Template Method design patter - Python
from abc import ABC, abstractmethod
class Budget:
def __init__(self, value):
self._value = value
@property
def value(self):
return self._value
@renanzulian
renanzulian / chain_of_responsability.py
Created May 11, 2021 01:55
Chain of Responsability design patter - Python
class Item:
def __init__(self, name, price):
self._name = name
self._price = price
@property
def name(self):
return self._name
@property
@renanzulian
renanzulian / strategy.py
Created May 10, 2021 11:43
Strategy design patter - Python
class Budget:
def __init__(self, value):
self._value = value
@property
def value(self):
return self._value
class TaxCalculator:
def calculate(self, budget, tax_strategy):
@renanzulian
renanzulian / .gitignore
Created September 11, 2020 12:46
commom gitignore
# These are some examples of commonly ignored file patterns.
# You should customize this list as applicable to your project.
# Learn more about .gitignore:
# https://www.atlassian.com/git/tutorials/saving-changes/gitignore
# Node artifact files
node_modules/
dist/
*.lock
@renanzulian
renanzulian / package.json
Created July 16, 2020 21:31
NodeJS Project -> Typescript, Typeorm, Postgress and Prettier
{
"name": "project",
"version": "1.0.0",
"main": "src/bin/server.ts",
"repository": "",
"author": "",
"license": "MIT",
"private": true,
"scripts": {
"dev": "nodemon src/bin/server.ts"
@renanzulian
renanzulian / arquivo.json
Created November 11, 2019 17:38
swagerjson
{
"swagger" : "2.0",
"info" : {
"description" : "This is a sample Petstore server. You can find \nout more about Swagger at \n[http://swagger.io](http://swagger.io) or on \n[irc.freenode.net, #swagger](http://swagger.io/irc/).\n",
"version" : "1.0.0",
"title" : "BigFUT",
"termsOfService" : "http://swagger.io/terms/",
"contact" : {
"email" : "renanzulian@gmail.com"
},