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') |
| // | |
| // ARC Helper | |
| // | |
| // Version 2.2 | |
| // | |
| // Created by Nick Lockwood on 05/01/2012. | |
| // Copyright 2012 Charcoal Design | |
| // | |
| // Distributed under the permissive zlib license | |
| // Get the latest version from here: |
| import com.google.common.io.CharStreams; | |
| import java.io.BufferedReader; | |
| import java.io.IOException; | |
| import java.io.InputStreamReader; | |
| /** | |
| * Zero error checking or recovery. Apologies. | |
| * | |
| * Requires the READ_LOGS permission. |
| /* | |
| * This is an example provided by Facebook are for non-commercial testing and | |
| * evaluation purposes only. | |
| * | |
| * Facebook reserves all rights not expressly granted. | |
| * | |
| * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS | |
| * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
| * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL | |
| * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN |
| #!/usr/bin/env xcrun swift | |
| // $ chmod +x script.swift | |
| // $ ./script.swift | |
| // or $ ./script.swift -xcode=/Applications/Xcode-beta.app | |
| import Foundation | |
| @noreturn private func failWithError(message: String) { | |
| print("🚫 \(message)") |
| // | |
| // Obfuscator.swift | |
| // SwiftObfuscatorExample | |
| // | |
| // Created by Mathieu White on 2016-07-03. | |
| // Copyright © 2016 Mathieu White. All rights reserved. | |
| // | |
| import Foundation |
| // | |
| // SSLPinningValidator.swift | |
| // | |
| // Created by Angel Garcia on 17/08/16. | |
| // | |
| import Foundation | |
| import CommonCrypto | |
| protocol SSLPinningValidator { |
| import Foundation | |
| struct Country { | |
| let name: String | |
| let capital: String | |
| var visited: Bool | |
| } | |
| extension Country: Equatable { | |
| static func == (lhs: Country, rhs: Country) -> Bool { |