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:
| /** | |
| Workaround for iOS 6 setTimeout bug using requestAnimationFrame to simulate timers during Touch/Gesture-based events | |
| Author: Jack Pattishall (jpattishall@gmail.com) | |
| This code is free to use anywhere (MIT, etc.) | |
| Note: UIWebView does not support requestAnimationFrames. If your timer is failing during a scroll event, | |
| take a look at https://gist.github.com/ronkorving/3755461 for a potential workaround. | |
| Usage: Pass TRUE as the final argument for setTimeout or setInterval. |
| static inline float euclidean_baseline_float(const int n, const float* x, const float* y){ | |
| float result = 0.f; | |
| for(int i = 0; i < n; ++i){ | |
| const float num = x[i] - y[i]; | |
| result += num * num; | |
| } | |
| return result; | |
| } | |
| static inline float euclidean_intrinsic_float(int n, const float* x, const float* y){ |