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
| Category - info | |
| Domain - http://slideshare.net | |
| http://www.slideshare.net/doina/happy-easter-from-holland-slideshare | |
| http://www.slideshare.net/stinson/easter-1284190 | |
| http://www.slideshare.net/angelspascual/easter-events | |
| http://www.slideshare.net/sirrods/happy-easter-3626014 | |
| http://www.slideshare.net/sirrods/happy-easter-wide-screen | |
| http://www.slideshare.net/carmen_serbanescu/easter-holiday | |
| http://www.slideshare.net/Lithuaniabook/easter-1255880 |
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
| set-window-option -g mode-keys emacs | |
| set-window-option -g window-status-current-bg red | |
| set-window-option -g window-status-current-fg white | |
| set-window-option -g window-status-current-attr 'bold' | |
| set-window-option -g window-status-current-attr 'bold' | |
| set-window-option -g window-status-fg black | |
| set-window-option -g window-status-bg white | |
| set-window-option -g automatic-rename on | |
| set-window-option -g utf8 on |
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') |
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 "time" | |
| require "date" | |
| class Date | |
| def to_time | |
| Time.local(year, month, day) | |
| end | |
| end | |
| class Time |
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
| gem "resque", :require => "resque/server" |
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 'rake/clean' | |
| HAML = FileList['**/*.haml'] | |
| LESS = FileList['**/*.less'] | |
| COFFEE = FileList['**/*.coffee'] | |
| HTML = HAML.ext('html') | |
| CSS = LESS.ext('css') | |
| JS = COFFEE.ext('js') |
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
| if __FILE__ == $0 | |
| puts "Run with: watchr #{__FILE__}. \n\nRequired gems: watchr rev" | |
| exit 1 | |
| end | |
| # -------------------------------------------------- | |
| # Convenience Methods | |
| # -------------------------------------------------- | |
| def run(cmd) | |
| puts(cmd) |
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
| # Adapted for Rspec2. This won't work in RSpec 1. | |
| # Put this code in acceptance_helper.rb or better in a new file spec/acceptance/support/javascript.rb | |
| Rspec.configure do |config| | |
| config.before(:each) do | |
| Capybara.current_driver = :selenium if example.metadata[:js] | |
| end | |
| config.after(:each) 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
| # Create a file `spec/acceptance/support/warden.rb' with the following | |
| # contents: | |
| Spec::Runner.configure do |config| | |
| config.include Warden::Test::Helpers, :type => :acceptance | |
| config.after(:each, :type => :acceptance) { Warden.test_reset! } | |
| end | |
| # Or, if you're using RSpec 2 / Rails 3, the contents should be the following | |
| # instead: |
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
| # Rack file for local Rubygems server, using YARD | |
| require "rubygems" | |
| require "yard" | |
| libraries = {} | |
| Gem.source_index.find_name('').each do |spec| | |
| libraries[spec.name] ||= [] | |
| libraries[spec.name] << YARD::Server::LibraryVersion.new(spec.name, spec.version.to_s, nil, :gem) | |
| end |
OlderNewer