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:
| // | |
| // UIView+Debug.m | |
| // Symbols | |
| // | |
| // Created by Khanov on 16/03/14. | |
| // Copyright (c) 2014 Khanov. All rights reserved. | |
| // | |
| #import "UIView+Debug.h" |
| -- Two dashes start a one-line comment. | |
| --[[ | |
| Adding two ['s and ]'s makes it a | |
| multi-line comment. | |
| --]] | |
| ---------------------------------------------------- | |
| -- 1. Variables and flow control. | |
| ---------------------------------------------------- |
| // | |
| // UIImage+ImageWithColor.h | |
| // WordClock | |
| // | |
| // Created by James Rutherford on 2012-12-03. | |
| // Copyright (c) 2012 Braxio Interactive. All rights reserved. | |
| // | |
| #import <MapKit/MapKit.h> | |
| @interface DPAnnotationView : MKAnnotationView | |
| @property (nonatomic, assign) MKMapView *mapView; | |
| @end |
| #ifdef DEBUGX | |
| NSLog(@"%s %@", __FUNCTION__, objectToDisplay)); | |
| #endif |
Using Python's built-in defaultdict we can easily define a tree data structure:
def tree(): return defaultdict(tree)That's it!
| # 0 is too far from ` ;) | |
| set -g base-index 1 | |
| # Automatically set window title | |
| set-window-option -g automatic-rename on | |
| set-option -g set-titles on | |
| #set -g default-terminal screen-256color | |
| set -g status-keys vi | |
| set -g history-limit 10000 |