Using Python's built-in defaultdict we can easily define a tree data structure:
def tree(): return defaultdict(tree)That's it!
| (* /// | |
| PROPERTIES | |
| /// *) | |
| --Formatting | |
| (* DO NOT CHANGE *) | |
| property line_feed : (ASCII character 10) | |
| property md_line_feed : (ASCII character 32) & (ASCII character 32) & (ASCII character 10) | |
| property as_delims : AppleScript's text item delimiters |
| #!/usr/bin/env ruby | |
| # SearchLink 2.1.0 by Brett Terpstra 2014 (http://brettterpstra.com) | |
| # Free to use and modify, please maintain attribution | |
| require 'net/https' | |
| require 'shellwords' | |
| require 'yaml' | |
| require 'rubygems' | |
| require 'json' | |
| require 'cgi' |
| #!/bin/sh | |
| # Alot of these configs have been taken from the various places | |
| # on the web, most from here | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # Set the colours you can use | |
| black='\033[0;30m' | |
| white='\033[0;37m' | |
| red='\033[0;31m' |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>ANSIBlackColor</key> | |
| <data> | |
| YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS | |
| AAGGoKMHCA9VJG51bGzTCQoLDA0OVU5TUkdCXE5TQ29sb3JTcGFjZVYkY2xhc3NPECcw | |
| LjIwMDAwMDAxNzkgMC4yMzkyMTU3MDE4IDAuMjc0NTA5ODE3NAAQAoAC0hAREhNaJGNs | |
| YXNzbmFtZVgkY2xhc3Nlc1dOU0NvbG9yohIUWE5TT2JqZWN0XxAPTlNLZXllZEFyY2hp |
Using Python's built-in defaultdict we can easily define a tree data structure:
def tree(): return defaultdict(tree)That's it!