Skip to content

Instantly share code, notes, and snippets.

View ngarbezza's full-sized avatar
🆖
TDD all the things!

Nahuel Garbezza ngarbezza

🆖
TDD all the things!
View GitHub Profile
#!/usr/bin/env python
import datetime, os
START_DATE = datetime.date(2008, 6, 28)
BASE_URL = "http://static.macanudo.com.ar/macanudo_pics/"
current_date = START_DATE
while current_date <= datetime.date.today():
file_to_download = current_date.strftime("%Y%m%d") + ".jpg"
/*
Vumetro para Matriz 8x8 de LEDs RGB.
Codigo basado en:
* Visualizacion de la matriz: http://www.instructables.com/id/64-pixel-RGB-LED-Display-Another-Arduino-Clone/
* Manejo de la entrada de audio: http://neuroelec.com/2011/03/fft-library-for-arduino/
*/
#include <stdint.h>
#include <ffft.h>
@ngarbezza
ngarbezza / close-window.st
Last active December 17, 2015 10:09
Pharo
"Close a window by title programatically - Pharo 1.4, 2.0"
(SystemWindow allInstances detect: [ :w | w label = '<title>' ] ifNone: [ ^ nil ]) delete
@ngarbezza
ngarbezza / proc.rb
Created December 2, 2012 18:34
Smalltalk exception handling for Ruby 1.9.x
class Proc
def on(exception_class)
begin
self.call
rescue exception_class => e
yield e
end
end
end