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:
| # Is there a coffeescript way of doing this? | |
| (function($, exports){ | |
| # doing random stuff here | |
| })(jQuery, window); | |
| # Other than this: | |
| ( ($, exports) -> | |
| # doing random stuff here |
| CMRotationMatrix rotationMatrixFromGravity(float x, float y, float z) | |
| { | |
| // The Z axis of our rotated frame is opposite gravity | |
| vec3f_t zAxis = vec3f_normalize(vec3f_init(-x, -y, -z)); | |
| // The Y axis of our rotated frame is an arbitrary vector perpendicular to gravity | |
| // Note that this convention will have problems as zAxis.x approaches +/-1 since the magnitude of | |
| // [0, zAxis.z, -zAxis.y] will approach 0 | |
| vec3f_t yAxis = vec3f_normalize(vec3f_init(0, zAxis.z, -zAxis.y)); | |