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 |
Using Python's built-in defaultdict we can easily define a tree data structure:
def tree(): return defaultdict(tree)That's it!
| #ifdef DEBUGX | |
| NSLog(@"%s %@", __FUNCTION__, objectToDisplay)); | |
| #endif |
| #import <MapKit/MapKit.h> | |
| @interface DPAnnotationView : MKAnnotationView | |
| @property (nonatomic, assign) MKMapView *mapView; | |
| @end |
| // | |
| // UIImage+ImageWithColor.h | |
| // WordClock | |
| // | |
| // Created by James Rutherford on 2012-12-03. | |
| // Copyright (c) 2012 Braxio Interactive. All rights reserved. | |
| // | |
| -- Two dashes start a one-line comment. | |
| --[[ | |
| Adding two ['s and ]'s makes it a | |
| multi-line comment. | |
| --]] | |
| ---------------------------------------------------- | |
| -- 1. Variables and flow control. | |
| ---------------------------------------------------- |
| // | |
| // UIView+Debug.m | |
| // Symbols | |
| // | |
| // Created by Khanov on 16/03/14. | |
| // Copyright (c) 2014 Khanov. All rights reserved. | |
| // | |
| #import "UIView+Debug.h" |
| #if DEBUG | |
| // http://www.zero4racer.com/blog/480 | |
| static void uncaughtExceptionHandler(NSException *exception) { | |
| NSLog(@"CRASH: %@", exception); | |
| NSLog(@"Stack Trace: %@", [exception callStackSymbols]); | |
| // Internal error reporting | |
| } | |
| #endif | |
| @implementation AppDelegate |