An implementation of Conway's Game of Life in 140 characters of Ruby.
Created by Simon Ernst (@sier).
| # config/enviroment.rb | |
| config.gem 'mongo' | |
| config.gem 'mongo_mapper' | |
| # remove AR | |
| config.frameworks -= [ :active_record, :active_resource ] |
| =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') |
An implementation of Conway's Game of Life in 140 characters of Ruby.
Created by Simon Ernst (@sier).
cribbed from http://pastebin.com/xgzeAmBn
Templates to remind you of the options and formatting for the different types of objects you might want to document using YARD.
| var now = new Date(); | |
| var quarter = Math.floor((now.getMonth() / 3)); | |
| var firstDate = new Date(now.getFullYear(), quarter * 3, 1); | |
| var endDate = new Date(firstDate.getFullYear(), firstDate.getMonth() + 3, 0); |
| #!/usr/bin/env ruby | |
| require 'image_optim' | |
| staged_files = `git diff --cached --name-only --diff-filter=ACM`.split("\n") | |
| staged_files.select! { |f| f =~ %r{/images/} } | |
| if staged_files.any? | |
| image_optim = ImageOptim.new(pngout: false) |
A curated list of AWS resources to prepare for the AWS Certifications
A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.