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
| ar = [1] | |
| iter = 1 | |
| iterCount = 10 | |
| result = [] | |
| while (iter < iterCount) | |
| result = [] | |
| i = 0 | |
| j = 0 |
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
| img.photo_img { | |
| border-radius: 10px; | |
| -moz-border-radius: 10px; | |
| -webkit-border-radius: 10px; | |
| box-shadow: 0px 2px 8px rgba(0,0,0,0.33); | |
| overflow: hidden; | |
| } |
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
| source :rubyforge | |
| gem "httparty" | |
| gem "activesupport" | |
| gem "i18n" |
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
| source 'http://rubygems.org' | |
| gem 'i18n' | |
| gem 'activesupport', '>= 2.3.5' | |
| gem 'octokit', '~> 0.6.0' | |
| group :development do | |
| gem 'cucumber', '>= 0' | |
| gem 'bundler', '~> 1.0.0' |
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
| source :rubygems | |
| gem 'rspec' | |
| gem 'capybara' | |
| gem 'json' |
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
| source 'http://rubygems.org' | |
| gem 'i18n' | |
| gem 'activesupport', '>= 2.3.5' | |
| gem 'octokit', '~> 0.6.0' |
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
| Feature: Sign up | |
| Scenario: Successful sign up | |
| Given I have chosen to sign up | |
| When I sign up with valid details | |
| Then I should receive a confirmation email | |
| And I should see a personalized greeting message | |
| Scenario: Duplicate email | |
| Given I have chosen to sign up |
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
| group :development, :test do | |
| gem 'rspec-rails' | |
| gem 'mail_safe' | |
| gem 'tddium' | |
| 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
| group :development do | |
| gem 'rails_best_practices' | |
| gem 'brakeman' | |
| 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
| #!/usr/bin/env ruby | |
| PASSWORD = "123456" | |
| USERNAME = "user%d" | |
| (1..3).each do |i| | |
| user = USERNAME % i | |
| puts `/usr/sbin/useradd --groups rvm #{user}` | |
| puts `echo -e "#{PASSWORD}\n#{PASSWORD}" | (/usr/bin/passwd --stdin #{user})` |