Skip to content

Instantly share code, notes, and snippets.

def merge_sort(msg, m, depth=0):
print " " * depth, msg, m
result=[]
#Exit condition
if len(m) < 2:
return m
mid = int(len(m)/2)
left = m[:mid]
@dhruvbird
dhruvbird / Makefile
Created July 16, 2012 23:02 — forked from utaal/Makefile
webserver using libuv
webserver: webserver.c libuv/uv.a http-parser/http_parser.o
gcc -I libuv/include \
-lrt -lm -lpthread -o \
webserver webserver.c \
libuv/uv.a http-parser/http_parser.o
libuv/uv.a:
$(MAKE) -C libuv
http-parser/http_parser.o: