Skip to content

Instantly share code, notes, and snippets.

View earissola's full-sized avatar

Esteban A. Rissola earissola

View GitHub Profile
@earissola
earissola / heap.py
Last active November 28, 2023 11:34
Heap implementation in Python
#!/usr/bin/env python
# -*- coding: utf-8 -*-
'''Minimum heap implementation. See [Cormen et al 1999] for formal theory.
* Maintains all elements in a min-heap, such that the minimum element will
* be the top-most key in the heap at all times. Among many other uses, heaps are ideal for
* representing priority queues.
'''
from sys import maxint
from warnings import warn
@earissola
earissola / references.md
Last active December 31, 2017 09:17
Sphinx (Open Source Search Server) - Real-Time Indexing and Searching
@earissola
earissola / HPL.dat
Last active December 3, 2015 16:43
HPL - (High Performance Computing Linpack Benchmark) - Example Make file to build the HPL Benchmark Test using OpenMPI and ATLAS in a Debian GNU/Linux 7.7 (wheezy)
HPLinpack benchmark input file
CIDETIC, Universidad Nacional De Luján (UNLu)
HPL-Pantera.out output file name
6 device out (6=stdout,7=stderr,file)
1 # of problems sizes (N)
248976 Ns
1 # of NBs
224 NBs
0 PMAP process mapping (0=Row-,1=Column-major)
1 # of process grids (P x Q)
@earissola
earissola / Iteraciones.java
Last active August 29, 2015 14:07
[POO] Iteraciones - Demo (Java)
import java.util.Random;
import java.util.Scanner;
public class Iteraciones {
public void forEjemplo1() {
}
public static void main (String[] args){
System.out.println(" ** ## Demos de Ciclos: for ## **");
@earissola
earissola / CajaDeAhorros.java
Last active August 29, 2015 14:07
[POO] Clases Abstractas - Demo (Java)
public class CajaDeAhorros extends Cuenta {
public CajaDeAhorros(int numero, double saldo) {
super(numero, saldo);
}
@Override
public boolean extraerDinero(double importe) {
boolean resultadoOperacion;
if (importe <= saldo) {
@earissola
earissola / 0_reuse_code.js
Last active August 29, 2015 14:07
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@earissola
earissola / Smokeping: Instalación y Configuración
Created August 24, 2014 00:12
Instalación y Configuración Smokeping
Instalación: sudo apt-get install sendmail smokeping -- Atención: Se requiere un Servidor Web para su utilización. Ejemplo: Apache2. El Servidor SMTP es requerido ya que de lo contrario la herramienta no funcionará.
# Crear un enlace simbólico para la configuración entre Apache2 y Smokeping:
cd /etc/apache2/conf-available
sudo ln -s ../../smokeping/apache2.conf smokeping.conf
# Habilitar el archivo de configuración del smokeping y el módulo CGI de Apache2
sudo a2enconf smokeping
sudo a2enmod cgid
# Recargar Apache2