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
@ngarbezza
ngarbezza / Gemfile
Created July 9, 2015 13:25
gemas de debug para Rubymine
if ENV['RM_INFO']
gem 'debase'
gem 'ruby-debug-ide'
end
@ngarbezza
ngarbezza / prime_factors.rb
Created July 2, 2015 17:01
Prime Factors Kata
class Fixnum
def prime?
self > 1 && (2..self-1).all? { |i| self % i != 0 }
end
def divisible_by?(a_divisor)
self % a_divisor == 0
end
@ngarbezza
ngarbezza / gtasks.desktop
Created June 29, 2015 10:19
google tasks desktop entry
[Desktop Entry]
Version=1.0
Terminal=false
Type=Application
Name=Gtasks
Exec=/usr/bin/chromium --app=https://mail.google.com/tasks/canvas?pli=1
Icon=chrome
#!/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"