Skip to content

Instantly share code, notes, and snippets.

View alphanetEX's full-sized avatar
thunder stealth

Anderson A. alphanetEX

thunder stealth
View GitHub Profile
#include <stdio.h>
#include <stdlib.h>
typedef struct arbol
{
int dato;
struct arbol *izq;
struct arbol *der;
}treenode;
SELECT CONCAT(usr.name,' ', usr.lastname) AS usuario
FROM users usr WHERE usr.user_id IN (SELECT usr.user_id from users usr
INNER JOIN user_types ON user_types.user_type_id = usr.user_id);
SELECT
CONCAT(usr.name,' ', usr.lastname) AS nombre,
courses.curseTitle,
cert.token_cert AS token
FROM certifications cert
const { Router } = require('express');
const boom = require("@hapi/boom");
const userService = require('../../../services/userService');
const inscriptionService = require('../../../services/inscriptionsService');
const insValService = require('../../../services/insValidationService');
function validate (ardBase, ardUser) {
let counter=0;
let valCount=0;
@alphanetEX
alphanetEX / valinscription_middleware.js
Created August 5, 2024 15:37
validation de inscripciones
function validate (ardBase, ardUser) {
let counter=0;
let valCount=0;
let lengs = {
lengBase :ardBase.length,
lengUser : ardUser.length
};
while(lengs.lengBase > counter){
// console.log(`array user : ${ardUser[counter]} array Base: ${ardBase[counter]}`);