Skip to content

Instantly share code, notes, and snippets.

View matflores's full-sized avatar

Matías Flores matflores

View GitHub Profile
@matflores
matflores / quiz.rb
Created May 16, 2009 02:41 — forked from ryanb/quiz.rb
# COMMUNITY CHALLENGE
#
# How would you test this Quiz#problem method? Only two rules:
#
# 1. The tests should fail if any part of the application breaks.
# For example: If "gets" is moved before "puts" then the tests should
# fail since that breaks the application.
#
# 2. You cannot change the Quiz class. But you can use whatever framework
# and tools you want for the tests. (RSpec, Cucumber, etc.)
@matflores
matflores / settings.rb
Created September 9, 2010 19:39 — forked from cyx/settings.rb
# config/settings.rb
Main.config do |m|
m.site_name = 'Cool site'
m.smtp.domain = "..."
m.smtp.host = "..."
m.s3.access_key = "...."
m.s3.secret_access_key = "...."
#!/usr/bin/env ruby
# Script to create a jekyll blog post using a template. It takes one input parameter
# which is the title of the blog post
# e.g. command:
# $ ./new.rb "helper script to create new posts using jekyll"
#
# Author:Khaja Minhajuddin (http://minhajuddin.com)
# Some constants