Skip to content

Instantly share code, notes, and snippets.

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

Carlos Donaldo Ramon Gomez donal56

🏠
Working from home
View GitHub Profile
@donal56
donal56 / custom_discord.user.js
Last active December 9, 2025 05:52
Things i dont like about discord done. Bigger emojis, autoloop videos, smallmode.
// ==UserScript==
// @name Custom discord
// @namespace http://tampermonkey.net/
// @version 0.1.1
// @description Enlarge discord emojis and loop videos
// @author Doni
// @match https://discord.com/*
// @icon https://i.imgur.com/rE9N0R7.png
// @grant none
// ==/UserScript==
@donal56
donal56 / validarCurp.js
Last active February 8, 2024 19:52
Validar una CURP con base en datos personales
_debug = true;
/*
* Validar una curp con base en datos personales
*
* @param {Object} persona - Datos de la persona
* nombre {String}
* apellidoPaterno {String}
* apellidoMaterno {String|null}
* fechaNacimiento {Date}
@donal56
donal56 / controller.vm
Last active September 12, 2022 04:00
Template de Telosys Tools para SpringBoot
#set($words = $entity.databaseTable.split("_"))
#set($attr = "")
#foreach($word in $words)
#set($attr = $attr + $fn.capitalize($word))
#end
#set($ruta = $entity.databaseTable.replace("_", "/"))
#set($lc= $fn.uncapitalize(${attr}))
package ${ROOT_PKG}.${MAVEN_GROUP_ID}.${MAVEN_ARTIFACT_ID}.controllers;
import javax.validation.Valid;
@donal56
donal56 / App.java
Created December 15, 2019 04:04
Quick cartesian map module
package app;
import javax.swing.BorderFactory;
import javax.swing.Box;
import javax.swing.BoxLayout;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JScrollBar;
@donal56
donal56 / php_vscode_printing.json
Last active December 15, 2019 01:11
Visual Studio Code snippet_and_keybinding for forced printing/brute debug on PHP
{
// Place your snippets for php here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
// "Print to console": {
// "prefix": "log",
// "body": [
// "console.log('$1');",
@donal56
donal56 / evaldoc.js
Last active February 16, 2021 16:50
Evaluacion docente ITVH automática en base a dos preguntas
var avg = prompt('¿Que calificación le pondría al profesor (0-100)?');
var repre = prompt('¿Considera que el maestro toma represalias contra los alumnos?\n1= No 2 3= No estoy seguro 4 5= Sí');
var mySet = new Set();
var aux = [];
var cont= 0;
var desfase= 5;
var cont_ciclos= 0;
var fDispersion= 1; /*(0-20), cambiara a los elementos asi de cercanos o lejanos*/
avg = Number(avg);