Skip to content

Instantly share code, notes, and snippets.

View gabrielqmatos88's full-sized avatar

Gabriel Q. Matos gabrielqmatos88

  • Manaus, Am, Brasil
View GitHub Profile
@gabrielqmatos88
gabrielqmatos88 / split_samples.py
Created July 2, 2025 10:55
Python script to generate a sample of dataset keeping the proportion of question levels
import numpy as np
import math
from typing import List, Dict
def get_questions_by_level(questions: list[dict], level: str):
return [q for q in questions if q["level"] == level]
# Step 1: Generate 200 dummy questions with labeled difficulty
def generate_questions() -> List[Dict]:
Data de Emissão: 26 de Outubro de 2023
Versão: 1.0
1. Introdução
A Eventos Lumina é uma empresa especializada em organização e produção de eventos, oferecendo soluções completas para tornar momentos inesquecíveis. Nossa missão é transformar sonhos em realidade, proporcionando experiências memoráveis para nossos clientes e convidados. Com uma equipe experiente e apaixonada por eventos, a Eventos Lumina se destaca pela qualidade dos serviços, criatividade e atendimento personalizado.
2. Informações da Empresa
@gabrielqmatos88
gabrielqmatos88 / deepsite.html
Created April 28, 2025 20:46
Generated site using deepsite on huggingface
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>PayTech Solutions | Payment Development Specialists</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<script>
tailwind.config = {
@gabrielqmatos88
gabrielqmatos88 / wildcard-to-regexp.js
Created November 4, 2022 01:02 — forked from donmccurdy/wildcard-to-regexp.js
Wildcard and glob matching in JavaScript.
/**
* Creates a RegExp from the given string, converting asterisks to .* expressions,
* and escaping all other characters.
*/
function wildcardToRegExp (s) {
return new RegExp('^' + s.split(/\*+/).map(regExpEscape).join('.*') + '$');
}
/**
* RegExp-escapes all characters in the given string.
@gabrielqmatos88
gabrielqmatos88 / udemy.calc.js
Last active May 29, 2022 12:46
Calculate a better avg for udemy courses considering the difference between the total enrolls and total of votes in the course rating, the most part of the courses rating is based in avg 20%0-30% of enrolls
// ==UserScript==
// @name Udemy Calc
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://www.udemy.com/course/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=udemy.com
// @grant none
// @require https://code.jquery.com/jquery-3.6.0.min.js
@gabrielqmatos88
gabrielqmatos88 / script.js
Last active October 12, 2021 13:17
Consolidando soma dos dados para exibir no gráfico
var data = [
{
x: 'Ala-04',
y: 1
},
{
x: 'Ala-04',
y: 1
},
{
@gabrielqmatos88
gabrielqmatos88 / script.js
Created October 11, 2021 14:03
Tampermonkey - Skip ads (Vuejs) baixar.net
// ==UserScript==
// @name Baixar filmes
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://www.baixarfilmetorrent.net/*
// @match https://www.baixafilme.net/*
// @icon https://www.google.com/s2/favicons?domain=baixarfilmetorrent.net
// @require https://unpkg.com/[email protected]/dist/vue.min.js
@gabrielqmatos88
gabrielqmatos88 / muambator-extender.css
Last active May 14, 2021 19:53
muambator-extender
ul.encomendas {
margin: 0;
padding: 25px 15px;
position: relative;
}
ul.encomendas li {
display: block;
transition-duration: 0.5s;
position: relative;
color: #fff;
@gabrielqmatos88
gabrielqmatos88 / diff.css
Created September 14, 2020 13:44
jsondiff
.jsondiffpatch-delta {
font-family: 'Bitstream Vera Sans Mono', 'DejaVu Sans Mono', Monaco, Courier, monospace;
font-size: 12px;
margin: 0;
padding: 0 0 0 12px;
display: inline-block;
}
.jsondiffpatch-delta pre {
font-family: 'Bitstream Vera Sans Mono', 'DejaVu Sans Mono', Monaco, Courier, monospace;
font-size: 12px;
@gabrielqmatos88
gabrielqmatos88 / pubsub.js
Created September 13, 2020 15:33 — forked from learncodeacademy/pubsub.js
Basic Javascript PubSub Pattern
//events - a super-basic Javascript (publish subscribe) pattern
var events = {
events: {},
on: function (eventName, fn) {
this.events[eventName] = this.events[eventName] || [];
this.events[eventName].push(fn);
},
off: function(eventName, fn) {
if (this.events[eventName]) {