Skip to content

Instantly share code, notes, and snippets.

View ivan-avalos's full-sized avatar

Iván Ávalos ivan-avalos

View GitHub Profile

[Verifying my OpenPGP key: openpgp4fpr:47A2AF6E53032E2989EC25362935E1F768CBE4A0]

[Verifying my OpenPGP key: openpgp4fpr:1FF7D333D0A9D47A92640DF3E8AFAD64EDA59E13]

@ivan-avalos
ivan-avalos / mutex.scm
Created May 29, 2020 02:03
Mutex en Chicken Scheme con SRFI-18
;; mutex.scm
;; Copyright (C) 2020 Iván Alejandro Ávalos Díaz
;;
;; This program is free software: you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) any later version.
;;
;; This program is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
BEGIN MESSAGE.
5i3vueh3MGzTSPV pPXH6OsABRD8VaS 6LY1MduEJeifN5u 2YMcvSse1jH6FBA
XBbll52r7tcjqps qeBQ37flASaTCKq 6Xr2MZHgg6XXyba fc4fOmWi7WInTTu
h3gWj7d5AOiJo3M RZltob3N1pFLwgF sJFmJT3O8BpGDQX MPjRROWPhzkf0AZ
NQhtw4PsXdmhFga QAUKsN46NIfw7P0 BEAHZ0aLMzWSiL.
END MESSAGE.
@ivan-avalos
ivan-avalos / metodo_cesar.java
Last active December 3, 2019 04:09
Método BubbleSort para ordenar ArrayList<Corredor>.
public static void Ordenar(ArrayList<Corredor> list)
{
Corredor temp;
if (list.size()>1) // check if the number of orders is larger than 1
{
for (int x=0; x<list.size(); x++) // bubble sort outer loop
{
for (int i=0; i < list.size() - x - i; i++) {
if (list.get(i).tiempoMin - list.get(i+1).tiempoMin > 0)
{
@ivan-avalos
ivan-avalos / mat_aleatoria_nxn.cpp
Created November 26, 2019 20:35
Este programa imprime una matriz aleatoria.
// Example program
#include <iostream>
#include <string>
#include <vector>
#include <stdlib.h>
using namespace std;
int main()
{

Keybase proof

I hereby claim:

  • I am ivan-avalos on github.
  • I am avalos (https://keybase.io/avalos) on keybase.
  • I have a public key ASDV59Vy-YOp7kGfB6gpDkZx08rQZlQKDR-Hgcu5zH9Pdgo

To claim this, I am signing this object: