Skip to content

Instantly share code, notes, and snippets.

View matadorhernan's full-sized avatar
🎃
Halloween All Year

Miguel Angel Romero Hernandez matadorhernan

🎃
Halloween All Year
  • Student
  • Mexico Aguascalientes
View GitHub Profile
@kalimalrazif
kalimalrazif / maximo.comun.divisor.c
Last active October 22, 2020 00:01
Ejemplo de recursividad, maximo comun divisor
#include <stdio.h>
/* Hacemos la declaración del prototipo de la funcion */
int mcm(int, int);
int main(){
/* Declaremos variables */
int primero, segundo;
int resultado;
@chinchang
chinchang / xmlToJson.js
Last active September 7, 2023 02:39
Function to convert XML to JSON
/**
* Changes XML to JSON
* Modified version from here: http://davidwalsh.name/convert-xml-json
* @param {string} xml XML DOM tree
*/
function xmlToJson(xml) {
// Create the return object
var obj = {};
if (xml.nodeType == 1) {