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
=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 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
de: | |
activerecord: | |
attributes: | |
user: | |
confirmation_sent_at: Bestätigung gesendet am | |
confirmation_token: Bestätigungs-Token | |
confirmed_at: Bestätigt am | |
created_at: Erstellt am | |
current_password: Bisheriges Passwort | |
current_sign_in_at: Aktuelle Anmeldung vom |
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
chflags nohidden ~/Library | |
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true | |
defaults write com.apple.desktopservices DSDontWriteUSBStores -bool true | |
defaults write com.apple.dock autohide -bool true | |
defaults write com.apple.dock autohide-delay -float 0 | |
defaults write com.apple.dock launchanim -bool false | |
defaults write com.apple.dock magnification -bool false | |
defaults write com.apple.dock mru-spaces -bool false | |
defaults write com.apple.dock show-process-indicators -bool true | |
defaults write com.apple.dock size-immutable -bool true |
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
add_index :attachments, :parent_id | |
add_index :attachments, :asset_id | |
add_index :domain_names, :user_id | |
add_index :domain_names, :event_id | |
add_index :event_memberships, :user_id | |
add_index :event_memberships, :event_id | |
remove_index :attachments, :parent_id | |
remove_index :attachments, :asset_id | |
remove_index:domain_names, :user_id | |
remove_index:domain_names, :event_id |
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
# RSpec 2.0 syntax Cheet Sheet by http://ApproachE.com | |
# defining spec within a module will automatically pick Player::MovieList as a 'subject' (see below) | |
module Player | |
describe MovieList, "with optional description" do | |
it "is pending example, so that you can write ones quickly" | |
it "is already working example that we want to suspend from failing temporarily" do | |
pending("working on another feature that temporarily breaks this one") |
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
#!/usr/bin/env ruby | |
# USAGE | |
# gemfile [--bundle] [--details] [--fetch] [--sorted] [--commentate] | |
# DESCRIPTION | |
# Displays gem urls and summaries found in a Gemfile. | |
# cd into a directory with a Gemfile and run `gemfile` | |
# PREREQUISITES | |
# gem install bundler paint | |
# FLAGS |
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
$ history | awk {'print $2, $3, $4'} | sort | uniq -c | sort -k1 -rn | head -n 30 | |
577 gcoma | |
551 g st | |
533 g push | |
439 g add . | |
282 rails s | |
249 cap deploy | |
228 mvim . | |
167 g aa | |
143 g pull |