sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt-get autoremove
sudo reboot
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
| package controllers; | |
| public class Application extends Controller { | |
| // in cache during 1800 seconds (30 min) | |
| @Cached(key = "pagingList", duration = 1800) | |
| public static Result index(Integer page) { | |
| String uuid = session("uuid"); | |
| if (uuid == null) { | |
| uuid = java.util.UUID.randomUUID().toString(); |
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
| # lib/tasks/deploy.rake | |
| namespace :deploy do | |
| desc 'Deploy to staging environment' | |
| task :staging do | |
| exec 'mina deploy -f config/deploy/staging.rb' | |
| 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
| class BankAccount < ActiveRecord : :Base | |
| . . . | |
| def transfer_to( account , amount ) | |
| self . debt( amount ) | |
| account . credit( amount ) | |
| 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
| class BankAccount < ActiveRecord : :Base | |
| . . . | |
| def transfer_to( account , amount ) | |
| self . debt( amount ) | |
| account . credit( amount ) | |
| email_sender . send_account_changed_notification( account ) | |
| email_sender . send_account_changed_notification( self ) | |
| 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
| class BankAccount < ActiveRecord : :Base | |
| . . . | |
| def transfer_to( account , amount ) | |
| self . debt( amount ) | |
| account . credit( amount ) | |
| email_sender . send_account_changed_notification( account ) | |
| email_sender . send_account_changed_notification( self ) | |
| 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
| def paypal_transfer_to( account , amount ) | |
| #PayPal stuff | |
| email_sender . send_account_changed_notification( account ) | |
| email_sender . send_account_changed_notification( self ) | |
| 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
| class AccountTransaction | |
| . . . | |
| def transfer( fromAccount , toAccount , amount ) | |
| fromAccount . debt( amount ) | |
| toAccount . credit( amount ) | |
| send_notifications_to_accounts( fromAccount , toAccount ) | |
| end | |
| def paypal_transfer_to( fromAccount , toAccount , amount ) | |
| #PayPal stuff |
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
| Steps to Configuring for Xcode Developemnt: | |
| 1. Install Xcode | |
| 2. Ruby | |
| 3. Install RubyGems | |
| 4. Install LiftOff | |
| -- https://github.com/thoughtbot/liftoff | |
| 5. Download Project from Bitbucket | |
| 6. Run the following command from the project folder: | |
| -- liftoff |
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
| =Navigating= | |
| visit('/projects') | |
| visit(post_comments_path(post)) | |
| =Clicking links and buttons= | |
| click_link('id-of-link') | |
| click_link('Link Text') | |
| click_button('Save') | |
| click('Link Text') # Click either a link or a button | |
| click('Button Value') |