Skip to content

Instantly share code, notes, and snippets.

View dunossauro's full-sized avatar
🟣

Eduardo Mendes dunossauro

🟣
View GitHub Profile
@dunossauro
dunossauro / Dockerfile
Last active October 15, 2024 12:14
Comparação versões python 3.13
# builds feitos com pyenv
FROM ubuntu:latest
ARG PYVERSION
ARG PYTHON_CONFIGURE_OPTS
ENV PYTHON_CONFIGURE_OPTS=$PYTHON_CONFIGURE_OPTS
ENV PYVERSION=$PYVERSION
WORKDIR /
RUN apt-get update
<chain id="chain1" out="01:15:33.817">
<property name="length">272030</property>
<property name="eof">pause</property>
<property name="resource">NINJAV_S001_S001_T003.MOV</property>
<property name="mlt_service">avformat-novalidate</property>
<property name="seekable">1</property>
<property name="format">3</property>
<property name="audio_index">0</property>
<property name="video_index">1</property>
<property name="kdenlive:clipname"/>
@dunossauro
dunossauro / markdown-mode-custom-faces.el
Created July 26, 2023 18:01
Custom faces to emacs markdown mode
(custom-set-faces
'(markdown-header-face-1 ((t (:inherit markdown-header-face :height 1.8 :foreground "#A3BE8C" :weight extra-bold))))
'(markdown-header-face-2 ((t (:inherit markdown-header-face :height 1.4 :foreground "#EBCB8B" :weight extra-bold))))
'(markdown-header-face-3 ((t (:inherit markdown-header-face :height 1.2 :foreground "#D08770" :weight extra-bold))))
'(markdown-header-face-4 ((t (:inherit markdown-header-face :height 1.15 :foreground "#BF616A" :weight extra-bold))))
'(markdown-header-face-5 ((t (:inherit markdown-header-face :height 1.11 :foreground "#b48ead" :weight extra-bold))))
'(markdown-header-face-6 ((t (:inherit markdown-header-face :height 1.06 :foreground "#5e81ac" :weight extra-bold))))
)

Notas musicais

Objetivos

Ajudar pessoas estudante de música a estudar teoria musical

  • Ajudar no entendimento de escalas musicais

  • Formação de acordes

Propostas de aulas sobre Typing

  1. Anotação de funções - PEP-3107
    • Fundamentos da anotação de tipos
    • Sintaxe
      • Parametros
      • Retornos
    • __annotations__
    • Casos de uso
  • typing
from math import radians
from bpy.ops import object, transform
from bpy import context, data
def selected_collection(collection):
[obj.select_set(True) for obj in collection.all_objects]
# My object collection
collection = data.collections['Logo']
@dunossauro
dunossauro / remove_enhance.py
Created September 15, 2021 18:32
remove image background and enhance image
"""
requires:
pip install rembg pillow numpy
usage:
python this_file.py input_image.png output_image.png
"""
from argparse import ArgumentParser
@dunossauro
dunossauro / app.py
Created May 12, 2021 12:52
Flask 2.0 async support + SQLAlchemy 1.4 async ORM
from flask import Flask, request
from sqlalchemy import Column, Integer, String
from sqlalchemy.ext.asyncio import AsyncSession, create_async_engine
from sqlalchemy.future import select
from sqlalchemy.orm import declarative_base, sessionmaker
engine = create_async_engine('sqlite+aiosqlite:///./db.db')
async_session = sessionmaker(
engine, expire_on_commit=False, class_=AsyncSession
)
@dunossauro
dunossauro / README.md
Last active April 13, 2021 17:58
Inslação do rmbg e utilização para remover fundo de imagens com Python

Removendo fundo de imagens com python e inteligencia artificial (rembg)

Preparando o ambiente

Garanta que você tem uma versão do python maior que 3.8:

Como saber a versão do meu python? Vá até o terminal e digite

$ python --version
@dunossauro
dunossauro / choice_grid.py
Created February 3, 2021 09:00
Choice Grid / Radio Options / Toogle Choices for Kivy
from kivy.uix.gridlayout import GridLayout
from kivy.uix.label import Label
from kivy.uix.checkbox import CheckBox
from functools import partial
class ChoiceGrid(GridLayout):
def __init__(self, group='group', **kwags):
super().__init__(cols=2, **kwags)
self.active = None