gem install rails
rails new my_app -T
=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') |
require 'dalton/strategies/skroutz' | |
require 'dalton/strategies/facebook' | |
require 'dalton/strategies/openid' # yahoo, #google | |
require 'dalton/strategies/twitter' | |
# Setup OpenId file storage, don't change the storage engine! | |
require 'openid/store/filesystem' | |
Rails.configuration.middleware.use(Rack::OpenID, | |
OpenID::Store::Filesystem.new(Rails.root + 'tmp/openid')) |
include_recipe "aws" | |
include_recipe "lvm" | |
include_recipe "xfs" | |
esvg = node.elasticsearch.ebs.lvm.volume_group | |
eslv = node.elasticsearch.ebs.lvm.logical_volume | |
Chef::Log.info "ElasticSearch: setting up 8 100G EBS volumes" | |
aws = data_bag_item("aws", node.app_environment) | |
8.times do |d| | |
disk = (d == 0 ? "/dev/sdi" : "/dev/sdi#{d}") |
require 'aws/s3' | |
class StoredFile < ActiveRecord::Base | |
include AWS::S3 | |
after_destroy :delete_on_s3! | |
validates_presence_of :filename, :size, :content_type | |
validates_numericality_of :size, :greater_than => 0 | |
def extension |
#To install ruby-debug on Ubuntu ruby-1.9.3 you need to download from http://rubyforge.org/frs/?group_id=8883 | |
linecache19-0.5.13.gem | |
ruby_core_source-0.1.5.gem | |
ruby-debug19-0.11.6.gem | |
ruby-debug-base19-0.11.26.gem | |
#Then in your console | |
export RVM_SRC=/your/path/to/ruby-1.9.3 |
This installs a patched ruby 1.9.3-p327 with various performance improvements and a backported COW-friendly GC, all courtesy of funny-falcon.
You will also need a C Compiler. If you're on Linux, you probably already have one or know how to install one. On OS X, you should install XCode, and brew install autoconf
using homebrew.
;; Keybonds | |
(global-set-key [(hyper a)] 'mark-whole-buffer) | |
(global-set-key [(hyper v)] 'yank) | |
(global-set-key [(hyper c)] 'kill-ring-save) | |
(global-set-key [(hyper s)] 'save-buffer) | |
(global-set-key [(hyper l)] 'goto-line) | |
(global-set-key [(hyper w)] | |
(lambda () (interactive) (delete-window))) | |
(global-set-key [(hyper z)] 'undo) |
license: gpl-3.0 | |
border: no | |
height: 1060 | |
redirect: https://beta.observablehq.com/@mbostock/d3-radial-tidy-tree |