Using Python's built-in defaultdict we can easily define a tree data structure:
def tree(): return defaultdict(tree)
That's it!
#!/usr/bin/env python | |
# | |
# udp_hole_punch_tester.py - UDP Hole Punching test tool | |
# | |
# Usage: udp_hole_punch_tester.py remote_host remote_port | |
# | |
# Run this script simultaneously on 2 hosts to test if they can punch | |
# a UDP hole to each other. | |
# | |
# * remote_port should be identical on 2 hosts. |
--- Color Scheme - Default/Solarized (Light).tmTheme 2012-02-08 19:39:09.000000000 -0500 | |
+++ User/Solarized (Light).tmTheme 2012-02-13 19:26:32.000000000 -0500 | |
@@ -1368,17 +1368,6 @@ | |
</dict> | |
<dict> | |
<key>name</key> | |
- <string>Markdown: Raw</string> | |
- <key>scope</key> | |
- <string>text.html.markdown markup.raw.inline</string> | |
- <key>settings</key> |
Using Python's built-in defaultdict we can easily define a tree data structure:
def tree(): return defaultdict(tree)
That's it!
package com.vast.example | |
import java.net.InetSocketAddress | |
import java.util.UUID | |
import java.util.concurrent.{Executors, TimeUnit} | |
import com.google.common.base.Splitter | |
import com.twitter.finagle.http.Http | |
import com.twitter.finagle.builder.{Server, ServerBuilder} | |
import com.twitter.finagle.service.TimeoutFilter | |
import com.twitter.finagle.{Service, SimpleFilter, GlobalRequestTimeoutException} |
----- Esc ----- | |
---|---|
Quick change directory | Esc + c |
Quick change directory history | Esc + c and then Esc + h |
Quick change directory previous entry | Esc + c and then Esc + p |
Command line history | Esc + h |
Command line previous command | Esc + p |
View change | Esc + t |
Print current working directory in command line | Esc + a |
Switch between background command line and MC | Ctrl + o |
ror, scala, jetty, erlang, thrift, mongrel, comet server, my-sql, memchached, varnish, kestrel(mq), starling, gizzard, cassandra, hadoop, vertica, munin, nagios, awstats
#include <roxlu/core/Log.h> | |
#include <roxlu/core/Utils.h> | |
#include <video/X264Encoder.h> | |
X264Encoder::X264Encoder() | |
:in_width(0) | |
,in_height(0) | |
,in_pixel_format(AV_PIX_FMT_NONE) | |
,out_width(0) | |
,out_height(0) |
#!/usr/bin/env python | |
"""l15decode.py: L15 image format decoder.""" | |
import os, sys | |
from time import time | |
import array | |
NUMPY = False | |
try: |
#pragma once | |
#include <boost/optional.hpp> | |
/** | |
* Wraps any value with a context of Left for the Either class. | |
* | |
* By convention, Left represents some sort of less-desired condition. | |
*/ |