Using Python's built-in defaultdict we can easily define a tree data structure:
def tree(): return defaultdict(tree)That's it!
| [package] | |
| name = "test" | |
| version = "0.1.0" | |
| authors = ["YOU <YOU@users.noreply.github.com>"] | |
| edition = "2018" | |
| [lib] | |
| crate-type = ["cdylib"] |
| internal static IEnumerable<string> ReadLines(this string s) | |
| { | |
| string line; | |
| using (var sr = new StringReader(s)) | |
| while ((line = sr.ReadLine()) != null) | |
| yield return line; | |
| } |
| #!/bin/sh | |
| # add a simple 'nuget' command to Mac OS X under Mono | |
| # get NuGet.exe binary from http://nuget.codeplex.com/releases/view/58939 | |
| # get Microsoft.Build.dll from a Windows .NET 4.0 installation | |
| # copy to /usr/local/bin and Robert is your father's brother.... | |
| # | |
| PATH=/usr/local/bin:$PATH | |
| mono --runtime=v4.0 /usr/local/bin/NuGet.exe $* |
| load 'rake/helper.rb' | |
| desc "Set up the VM" | |
| task :up do | |
| vm = VM.new | |
| vm.cli('up') | |
| end | |
| desc "Shutdown the VM" | |
| task :graceful_down do |
Using Python's built-in defaultdict we can easily define a tree data structure:
def tree(): return defaultdict(tree)That's it!
| ಠ_ಠ | |
| ( ͡° ͜ʖ ͡°) | |
| ¯\_(ツ)_/¯ | |
| (╯°□°)╯︵ ┻━┻ | |
| http://www.fileformat.info/convert/text/upside-down.htm | |
| WRTTN http://wrttn.me/30dbfd/ | |
| Unicode Emoticons |