some libuv code snippets written while learning c and libuv