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:
| int[][] result; | |
| float t; | |
| float ease(float p) { | |
| return 3*p*p - 2*p*p*p; | |
| } | |
| float ease(float p, float g) { | |
| if (p < 0.5) | |
| return 0.5 * pow(2*p, g); |
| // Processing motion blur | |
| // 'time' runs from 0 to 1 | |
| // ignore everything above the ///////// | |
| // by Dave @ beesandbombs | |
| int[][] result; | |
| float time; | |
| void setup() { | |
| setup_(); |
| .element:hover { | |
| -moz-animation: blink 150ms steps(1, end) infinite; | |
| -webkit-animation: blink 150ms steps(1, end) infinite; | |
| } | |
| @-moz-keyframes blink { | |
| 0% { opacity: 0; } | |
| 50% { opacity: 1; } | |
| } |
| // Just before switching jobs: | |
| // Add one of these. | |
| // Preferably into the same commit where you do a large merge. | |
| // | |
| // This started as a tweet with a joke of "C++ pro-tip: #define private public", | |
| // and then it quickly escalated into more and more evil suggestions. | |
| // I've tried to capture interesting suggestions here. | |
| // | |
| // Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_, | |
| // @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant, |
| Simple demonstrations of putting AVR microcontrollers to sleep in power-down mode, | |
| which results in minimum current. Coded with Arduino IDE version 1.0.4 (and with | |
| the Arduino-Tiny core for the ATtiny MCUs, http://code.google.com/p/arduino-tiny/) | |
| For ATmega328P, ~0.1µA. | |
| For ATtinyX5 revisions that implement software BOD disable, ~0.1µA, | |
| for ATtinyX5 revisions that don't, ~20µA. |