Skip to content

Instantly share code, notes, and snippets.

View metehus's full-sized avatar
Trying to do something

Matheus Dias metehus

Trying to do something
View GitHub Profile
@metehus
metehus / test_variacao04.py
Created November 7, 2024 23:10
Testes unitários
from unittest import TestCase
from variacao04 import UtilitariosAnaliseTexto
def setup_instance(texto):
instance = UtilitariosAnaliseTexto()
instance.texto = texto
return instance
class TestPalavraMaisLonga(TestCase):
@metehus
metehus / base-covid.ipynb
Created October 31, 2024 23:13
Base Covid.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
We can make this file beautiful and searchable if this error is corrected: It looks like row 2 should actually have 60 columns, instead of 37 in line 1.
attribute1,attribute2,attribute3,attribute4,attribute5,attribute6,attribute7,attribute8,attribute9,attribute10,attribute11,attribute12,attribute13,attribute14,attribute15,attribute16,attribute17,attribute18,attribute19,attribute20,attribute21,attribute22,attribute23,attribute24,attribute25,attribute26,attribute27,attribute28,attribute29,attribute30,attribute31,attribute32,attribute33,attribute34,attribute35,attribute36,attribute37,attribute38,attribute39,attribute40,attribute41,attribute42,attribute43,attribute44,attribute45,attribute46,attribute47,attribute48,attribute49,attribute50,attribute51,attribute52,attribute53,attribute54,attribute55,attribute56,attribute57,attribute58,attribute59,class
0.071982,0.013915,0.003892,0.006385,0.0131,0.005137,0.009335,0.003966,0.00486,0.004701,0.010219,0.013864,0.006431,0.009088,0.009538,0.008663,0.00617,0.008139,0.009469,0.016583,0.007368,0.006362,0.01982,0.008688,0.013311,0.016835,0.017495,0.008246,0.009421,0.006105,0.008271,0.009471,0.017853,0.007502,0.006968,0.010238,
text target
So there is no way for me to plug it in here in the US unless I go by a converter. 0
Good case, Excellent value. 1
Great for the jawbone. 1
Tied to charger for conversations lasting more than 45 minutes.MAJOR PROBLEMS!! 0
The mic is great. 1
I have to jiggle the plug to get it to line up right to get decent volume. 0
If you have several dozen or several hundred contacts, then imagine the fun of sending each of them one by one. 0
If you are Razr owner...you must have this! 1
Needless to say, I wasted my money. 0
@metehus
metehus / round_capped_arc.slint
Last active September 3, 2024 20:17
Capped rounded arc
import { AboutSlint, Button, VerticalBox, Palette, Slider } from "std-widgets.slint";
export component CircularPath inherits Path {
in property <float> thickness;
in property <float> inner-radius;
in property <float> progress;
in property <float> start : 0;
private property <float> progressClamped: clamp(progress, 0, 0.9999);
@metehus
metehus / ex_py_exceptions.py
Last active August 19, 2024 23:55
Exercicio python exceptions
def calc(a, b, operation):
if operation == "+":
return a + b
elif operation == '-':
return a - b
elif operation == '*':
return a * b
elif operation == '/':
# TODO: Jogar erro se for dividir por 0
return a / b
@metehus
metehus / docker_compose.yml
Created July 7, 2022 04:15
Docker compose of content managet
version: '3.3'
services:
database:
image: postgres:13
environment:
POSTGRES_PASSWORD: password
volumes:
- resources_database:/var/lib/postgresql/data
networks:
- default
@metehus
metehus / elevador.lua
Created July 2, 2022 01:53
Elevador no computercraft
local GuiH = require('GuiH')
local hatch = colors.red
local parada = colors.pink
local andar = 0
local andarSolicitado = 0
local ignorePulse = false
local function loop()
while true do
@metehus
metehus / Scheme.md
Created July 1, 2022 04:46
Netlify theme color scheme for windows terminal
@metehus
metehus / theme.css
Created February 19, 2022 18:48
JSONVue extension theme
body {
white-space: pre-wrap;
word-break: break-word;
font-family: 'Jetbrains Mono', monospace;
}
.property {
font-weight: bold;
}