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:
#!/bin/bash | |
# Author: Tobias Preuss | |
# Version: 2018-01-05 | |
echo "Creating symbolic links in Android SDK folder" | |
echo "=============================================" | |
echo | |
if [ -z "$ANDROID_HOME" ] ; then |
import Foundation | |
public func profiling<R>(label: String, @noescape _ block: () -> R) -> R { | |
NSLog("*** %@...", label) | |
let start = NSDate() | |
defer { | |
let end = NSDate() | |
NSLog("*** %@ took %5.3g seconds", label, end.timeIntervalSinceDate(start)) | |
} | |
return block() |
<html> | |
<body> | |
<script> | |
function createString() { | |
return "0".repeat(25 * 1024 * 1024).substring(0, 12); | |
} | |
var arr = []; | |
setInterval(function() { | |
let str = createString().split('').join(''); | |
arr.push(str); |