This file contains 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
Insert the disc into your DVD drive. | |
Click Ignore | |
Open Terminal ( Applications -> Utilities -> Terminal | |
Type drutil status ( Get the Name i.e. /dev/disk1 ) | |
Type dd if=/path_to_dvd of=/game_name.iso and wait 15 min | |
Type drutil eject to eject your game. |
This file contains 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
# sobre duck typing | |
def say(talker) | |
puts talker.say | |
end | |
class Person | |
def say | |
"I'm a person" | |
end | |
end |
This file contains 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
# -*- coding: utf-8 -*- | |
class User < ActiveRecord::Base | |
INVALID_DOMAINS = %w(homail.com hotamil.com hotmial.com hormail.com hotmail.co hotmai.com gmal.com hotimail.com hotmil.com htmail.com hotmal.com hotamail.com hotmail.cm htomail.com gmail.com.br otmail.com) | |
validates_format_of :email, :with => /^([^@\s]+)@((?!#{INVALID_DOMAINS.join("|")})(?:[-a-z0-9]+\.)+[a-z]{2,})$/i, :allow_blank => true | |
end |
This file contains 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
diff --git Gemfile Gemfile | |
new file mode 100644 | |
index 0000000..e654bff | |
--- /dev/null | |
+++ Gemfile | |
@@ -0,0 +1,4 @@ | |
+source "http://rubygems.org" | |
+ | |
+# Specify your gem's dependencies in dbv.gemspec | |
+gemspec |
This file contains 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
sqlite: &sqlite | |
adapter: sqlite3 | |
timeout: 5000 | |
database: ./tmp/ap.development.db | |
mysql: &mysql | |
adapter: mysql | |
username: root | |
password: | |
host: localhost |
This file contains 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 'test/unit' | |
module Test | |
module Unit | |
module TestCase | |
def turn_public_methods(klass) | |
klass.class_eval do | |
private_instance_methods.each { |instance_method| public instance_method } | |
private_methods.each { |method| public_class_method method } | |
end |
This file contains 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
module RubyExt | |
module Boolean | |
module ClassMethods | |
def boolean? | |
["TrueClass", "FalseClass"].include?(self.name) | |
end | |
end | |
module InstanceMethods | |
def boolean? |
This file contains 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
diff --git a/activemodel/lib/active_model/secure_password.rb b/activemodel/lib/active_model/secure_password.rb | |
index 63380d6..49aa847 100644 | |
--- a/activemodel/lib/active_model/secure_password.rb | |
+++ b/activemodel/lib/active_model/secure_password.rb | |
@@ -5,13 +5,14 @@ module ActiveModel | |
extend ActiveSupport::Concern | |
module ClassMethods | |
- # Adds methods to set and authenticate against a BCrypt password. | |
- # This mechanism requires you to have a password_digest attribute. |
This file contains 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
<p class="continue_navegar"> | |
<a href="#" title="Buffet Infantil">Buffet Infantil </a> <br><br> | |
<a href="#" title="Buffet em domicílio">Buffet em domicílio </a><br><br> | |
<a href="#" title="Aluguel de brinquedos">Aluguel de brinquedos </a><br><br> | |
<a href="#" title="Animação e recreação">Animação e recreação</a><br><br> | |
<a href="#" title="Artigos para festas">Artigos para festas</a><br><br> | |
<a href="#" title="Bolos e doces">Bolos e doces</a><br><br> | |
<a href="#" title="Cabeleireiro infantil">Cabeleireiro infantil</a><br><br> | |
<a href="#" title="Convites">Convites</a><br><br> | |
<a href="#" title="Decoração de festa">Decoração de festa </a><br><br> |
This file contains 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
# cat ~/.rdebugrc | |
set autoeval | |
set autoirb |