This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
| =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') |
| # 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") |
| knife node configure my_node.example.com |
| @Override | |
| protected void onHandleIntent(Intent intent) { | |
| this.nm = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); | |
| int jobId = intent.getIntExtra(JOB_ID_EXTRA, -1); | |
| QypeModel model = intent.getParcelableExtra(MODEL_EXTRA); | |
| if (model instanceof Place) { | |
| this.uploadStrategy = new PlacePhotoUploadStrategy((Place) model); | |
| } else if (model instanceof User) { | |
| this.uploadStrategy = new UserPhotoUploadStrategy((User) model); | |
| } else { |
| ## mysql::master | |
| ruby_block "store_mysql_master_status" do | |
| block do | |
| node.set[:mysql][:master] = true | |
| m = Mysql.new("localhost", "root", node[:mysql][:server_root_password]) | |
| m.query("show master status") do |row| | |
| row.each_hash do |h| | |
| node.set[:mysql][:master_file] = h['File'] | |
| node.set[:mysql][:master_position] = h['Position'] | |
| end |
| /* | |
| * Copyright 2012 CodeSlap - Cristian Castiblanco | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
| # encoding: utf-8 | |
| class AvatarUploader < CarrierWave::Uploader::Base | |
| include CarrierWave::MiniMagick | |
| # Choose what kind of storage to use for this uploader: | |
| storage :file | |
| # Override the directory where uploaded files will be stored. |
| # DEPRECATED: use https://gist.github.com/cblunt/1042832 | |
| # rails new my-app -m [raw url to this file] | |
| gem 'json' | |
| # Slim template | |
| gem 'slim-rails' | |
| gem 'simple_form' |
| sudo a2enmod proxy_http | |
| sudo service apache2 restart |