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:
| Compile the Redis "notifications" branch on Github. | |
| Start Redis with ./redis-server --notify-keyspace-events yes | |
| Subscribe to all the events with: | |
| redis-cli psubscribe '*' | |
| In another terminal window, play with redis-cli: set, del, expire, ... Only a few already work. |
| diff --git a/Zend/zend_language_parser.y b/Zend/zend_language_parser.y | |
| index ccbc9b1..75b2431 100644 | |
| --- a/Zend/zend_language_parser.y | |
| +++ b/Zend/zend_language_parser.y | |
| @@ -588,7 +588,7 @@ class_statement: | |
| variable_modifiers { CG(access_type) = Z_LVAL($1.u.constant); } class_variable_declaration ';' | |
| | class_constant_declaration ';' | |
| | trait_use_statement | |
| - | method_modifiers function is_reference T_STRING { zend_do_begin_function_declaration(&$2, &$4, 1, $3.op_type, &$1 TSRMLS_CC); } | |
| + | method_modifiers method_definition is_reference T_STRING { zend_do_begin_function_declaration(&$2, &$4, 1, $3.op_type, &$1 TSRMLS_CC); } |
| <?php | |
| class CollectionMonad extends Monad { | |
| public function __construct(array $value) { | |
| $this->value = $value; | |
| } | |
| public function bind($callback) { | |
| $newValues = array(); | |
| foreach ($this->value as $value) { | |
| $newValues[] = $this->callCallback($callback, $value); |
This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.
The script is here:
#!/bin/bash
convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2"
| FROM ubuntu | |
| ENV DEBIAN_FRONTEND noninteractive | |
| RUN apt-get -y install wget | |
| RUN wget -O - http://dl.hhvm.com/conf/hhvm.gpg.key | apt-key add - | |
| RUN echo deb http://dl.hhvm.com/ubuntu trusty main | tee /etc/apt/sources.list.d/hhvm.list | |
| RUN apt-get update | |
| RUN apt-get -y install hhvm |