Skip to content

Instantly share code, notes, and snippets.

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

Igor Souza igormcsouza

🏠
Working from home
View GitHub Profile
@igormcsouza
igormcsouza / the_number_challenge.py
Created July 17, 2023 15:27
The number challenge!
from random import shuffle
class Ball:
consecutives = None
number = None
def __repr__(self):
return f"<number: {self.number}>"
[merge]
ff = true
[user]
email = [email protected]
name = Igor Souza
[init]
defaultBranch = main
[alias]
aliases = !git config --get-regexp 'alias.*' | colrm 1 6 | sed 's/[ ]/ = /'
co = checkout
@igormcsouza
igormcsouza / crud.py
Last active November 24, 2021 22:46
The simplest crud application one can make with flask and an in memory storage. Is not perfect, but shows the idea on how to create it faster.
from typing import Any, Dict, List
from flask import Flask, jsonify, request
app = Flask(__name__)
# In Memory data storage, or a list.
students: List[Dict[str, Any]] = []
@igormcsouza
igormcsouza / TROUBLESHOOT.md
Last active June 16, 2023 16:21
All the troubleshooting I'm doing on my packages.

Thoubleshoot

Since I started to do my personal projects, I figured out that storing the answers for might current doubts might be very useful later, when I have the same issues again. Sometimes I stuggle to find the answer I know I've found before. This gist will help with that and will be refered back on the projects that needs it!

Wrong Heroku Stack

When you start a new project with Heroku, the default stack might be the buildpack according to the files your repository have. Usually in my projects I like to use the Container Stack, so I can build the Dockerfile myself, that gives me control on the environment my application is working on. So, in order to fix that, I neet to run the command to change the default stack.

$ heroku stack:set container -a <app-name>
@igormcsouza
igormcsouza / chatbot.ipynb
Created October 11, 2021 19:21
chatbot.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.