Using Python's built-in defaultdict we can easily define a tree data structure:
def tree(): return defaultdict(tree)That's it!
| { | |
| "manifest_version": 2, | |
| "name": "Hacker News styles", | |
| "version": "0.1", | |
| "content_scripts": [{ | |
| "matches": ["https://news.ycombinator.com/*"], | |
| "css": ["style.css"] | |
| }] | |
| } |
| using System; | |
| using System.Collections.Generic; | |
| using System.ComponentModel; | |
| using System.ComponentModel.Composition; | |
| using System.Deployment.Application; | |
| using System.Globalization; | |
| using System.Linq; | |
| using System.Reactive.Linq; | |
| using System.Timers; | |
| using System.Windows; |
| (function () { | |
| var c = !0, | |
| d = !1; | |
| try { | |
| window.google || (window.google = {}); | |
| google.doodle || (google.doodle = {}); | |
| var f = google.doodle, | |
| h, j, k, l, m, n, o = 0, | |
| p = 23, | |
| q, r, s, u, v, w, x, y = 142, |
Using Python's built-in defaultdict we can easily define a tree data structure:
def tree(): return defaultdict(tree)That's it!
| /* | |
| * This file has been commented to support Visual Studio Intellisense. | |
| * You should not use this file at runtime inside the browser--it is only | |
| * intended to be used only for design-time IntelliSense. Please use the | |
| * standard jQuery library for all production use. | |
| * | |
| * Comment version: 1.4.2 | |
| */ | |
| /*! |
| # Mercurial (HG) ignore file for Visual Studio 2010 | |
| # use glob syntax | |
| syntax: glob | |
| # Ignore Visual Studio 2010 files | |
| *.obj | |
| *.exe | |
| *.pdb | |
| *.user |