Skip to content

Instantly share code, notes, and snippets.

#include <PCM.h>
long distancia;
long tiempo;
// store the encoded evil laugh audio codes into an array
const unsigned char sample[] PROGMEM = {
126, 126, 127, 127, 127, 126, 127, 128, 128, 128, 128, 128, 128, 127, 128, 127, 127, 128, 127, 128, 127, 128, 127, 126, 128, 127, 127, 128, 126, 126, 128, 128, 127, 128, 128, 129, 127, 125, 127, 126, 126, 126, 126, 127, 127, 129, 128, 127, 128, 129, 129, 128, 128, 128, 128, 128, 127, 128, 129, 127, 128, 127, 126, 128, 127, 127, 126, 126, 128, 127, 127, 126, 126, 128, 128, 128, 127, 127, 127, 128, 128, 128, 128, 126, 129, 129, 126, 126, 127, 126, 126, 128, 128, 126, 126, 128, 128, 128, 129, 127, 128, 128, 126, 127, 126, 126, 126, 128, 129, 127, 128, 127, 127, 129, 127, 128, 128, 128, 126, 128, 128, 126, 129, 129, 129, 131, 129, 130, 129, 128, 128, 127, 128, 127, 125, 127, 128, 127, 128, 126, 124, 129, 127, 125, 128, 127, 128, 128, 127, 128, 128, 127, 128, 126, 126, 128, 126, 127, 127, 127, 129, 129, 127, 125, 126, 126, 129, 129, 127, 130, 129, 129, 128, 128, 128, 125
@kandra
kandra / presupuesto.rb
Last active August 29, 2015 14:16
Comprar aleatoriamente hasta gastar el presupuesto S/.100
wishlist = {"libro" => 5.25,
"perfume" => 15.00,
"chocolate" => 0.27 }
presupuesto = 100.00
gastado = 0.00
comprado = {"libro" => 0,
"perfume" => 0,
"chocolate" => 0 }
elegido = ""