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:
/* Copyright 2021 David Haegele - Source from JPlotter */ | |
import java.awt.Color; | |
import java.awt.Paint; | |
import java.awt.PaintContext; | |
import java.awt.Rectangle; | |
import java.awt.RenderingHints; | |
import java.awt.Shape; | |
import java.awt.geom.AffineTransform; | |
import java.awt.geom.Point2D; |
// When a jQuery deferred is resolved with a single value, the arguments to | |
// the .then callback are the same as when .then is called directly on the | |
// deferred or on $.when(deferred) AND ALSO $.when(deferred, deferred). | |
var dfd = $.Deferred().resolve([1, 2, 3]); | |
dfd.then(function(a) { | |
console.log('[1a]', a); // [1, 2, 3] | |
}); | |
$.when(dfd).then(function(a) { | |
console.log('[2a]', a); // [1, 2, 3] | |
}); |
// Anonymous empty module. | |
define(); | |
// Anonymous values. | |
define({}); | |
define(true); | |
define(1234); | |
define(null); | |
define(undefined); |
Open Apple menu → System Preferences → Bluetooth and disable Bluetooth on Mac as well as any other nearby Macs or devices which will try to pair with and confuse the controller.
Reset PS3 controller by inserting paperclip into pinhole near L2 button.
Connect PS3 controller to Mac with USB cable.
Enable Bluetooth.