This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| file 'Gemfile', <<-GEMS | |
| source 'http://gemcutter.org' | |
| gem "rails", "3.0.0.beta3" | |
| gem "bson_ext" | |
| gem "mongoid", "2.0.0.beta4" | |
| gem "haml", "3.0.0.rc.2" | |
| gem "compass", "0.10.0.rc4" | |
| gem "inherited_resources" | |
| group :test do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ~/rails/bolsitosdecolores(master) $ rails s | |
| DEPRECATION WARNING: Base#before_save has been deprecated, please use Base.before_save :method instead. (called from /Users/ivan/.bundle/ruby/1.8/gems/delayed_job-1.8.4/lib/delayed/job.rb:255) | |
| => Booting WEBrick | |
| => Rails 3.0.0.beta3 application starting in development on http://0.0.0.0:3000 | |
| => Call with -d to detach | |
| => Ctrl-C to shutdown server | |
| Exiting | |
| /Users/ivan/.bundle/ruby/1.8/gems/mongo-0.20.1/lib/../lib/mongo/db.rb:454:in `command': Database command 'buildinfo' failed: {"assertion"=>"unauthorized", "errmsg"=>"db assertion failure", "ok"=>0.0} (Mongo::OperationFailure) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'rubygems' | |
| require 'capybara' | |
| require 'capybara/dsl' | |
| Capybara.current_driver = :selenium | |
| Capybara.app_host = 'http://www.fpl.com' | |
| Capybara.run_server = false | |
| class FPL | |
| include Capybara |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| in Gemfile: | |
| gem 'w3c_validators' | |
| in spec/support/w3c_validator.rb: | |
| include W3CValidators | |
| def validate_url(url) | |
| visit url | |
| result = MarkupValidator.new.validate_text(page.body) | |
| result.errors.should == [] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| get ':keyword' do | |
| haml params[:keyword].to_sym | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ree-1.8.7-2010.02 > ["convers","an","array","to","a","hash","clone"].to_hash_clone | |
| => {"a"=>"a", "an"=>"an", "hash"=>"hash", "to"=>"to", "array"=>"array", "clone"=>"clone", "convers"=>"convers"} | |
| ree-1.8.7-2010.02 > | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'rubygems' | |
| require 'active_record' | |
| ActiveRecord::Base.configurations['db1'] = { | |
| :adapter => "mysql", | |
| :host => "", | |
| :database => "", | |
| :username => "", | |
| :password => "" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # FREEDOM PATCHING | |
| # because monkeys have right | |
| # http://vimeo.com/17420638 | |
| class Object | |
| def has_attached_file(attribute, options={}) | |
| puts attribute | |
| # WE CAN DO FANCY STUFF HERE | |
| end | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # THE FOLLOWING 3 METHODS LOOK A LOT A LIKE | |
| # A JUICY STEAK AWATING TO BE EATEN | |
| # DUPLICATION SOON TO BE REMOVED | |
| # | |
| # MACHETE! | |
| # | |
| # | |
| def create_lifeboat |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Esto es una pequeña guia de como traducir videos de Khan Academy al español. | |
| Pasos de preparación: | |
| - Elegir el video que deseamos traducir. | |
| - Verificar que el video no ha sido ya traducido visitando el canal de Khan Academy en español. | |
| - Subtitular el video visitando el link de universalsubtitles.org | |
| - Traducir los subtítulos al español. | |
| - Instalar un software que grabe audio. |