made with esnextbin
made with esnextbin
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta http-equiv="Content-type" content="text/html; charset=utf-8" /> | |
<title>Stripe Getting Started Form</title> | |
<!-- The required Stripe lib --> | |
<script type="text/javascript" src="https://js.stripe.com/v2/"></script> | |
<!-- jQuery is used only for this example; it isn't required to use Stripe --> |
- http://stackoverflow.com/questions/9400387/how-to-name-repository-and-service-interfaces
- http://blog.aspercom.com.br/2009/08/11/repositorios-ddd/
- http://simon-says-architecture.com/2011/08/23/repository/
- http://simon-says-architecture.com/2012/02/29/repository-2/
- http://blog.jonathanoliver.com/dddd-why-i-love-cqrs/
- http://blog.sapiensworks.com/post/2012/02/22/The-Repository-Pattern-Explained.aspx/
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
class BigDecimal | |
def inspect | |
format("#<BigDecimal: %s>", to_s('F')) | |
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
def self.join(first, last) | |
if first.is_a?(Range) && last.is_a?(Range) | |
first.first..last.last | |
elsif first.is_a?(Range) | |
first.first..last | |
elsif first == last | |
first | |
else | |
first..last | |
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
#!/bin/bash | |
set -e | |
schema_migrate="db/migrate/20141107164010_schema.rb" | |
echo Running current migrations... | |
rm db/migrate/* | |
git checkout db/migrate/ | |
rm -f $schema_migrate | |
dropdb -U postgres bedel_test |
1. Install Xcode and "Command Line Tools"
- Go to App Store and install Xcode.
- Open and accept the terms
- Then go to the terminal and install "Command Line Tools":
xcode-select --install
I hereby claim:
- I am tiagoefmoraes on github.
- I am tiagoefmoraes (https://keybase.io/tiagoefmoraes) on keybase.
- I have a public key whose fingerprint is 61A3 00D4 8FB5 E0AF EE05 3D7F 597B 4699 75CF 0E23
To claim this, I am signing this object:
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
wget http://downloads.sourceforge.net/project/freepascal/Linux/2.6.2/fpc-2.6.2.x86_64-linux.tar | |
tar -xvf fpc-2.6.2.x86_64-linux.tar | |
pushd fpc-2.6.2.x86_64-linux | |
echo 'echo /home/action/fpc' > answers.sh | |
echo 'echo Y' >> answers.sh | |
echo 'echo Y' >> answers.sh | |
echo 'echo Y' >> answers.sh | |
echo 'echo Y' >> answers.sh |