Skip to content

Instantly share code, notes, and snippets.

@llj098
llj098 / skiplist.h
Created December 20, 2011 10:19
a simple skiplist implementation
//author liulijin<llj098@gmail.com>
//licence New BSD
#ifndef __SKIPLIST_H_
#define __SKIPLIST_H_
#include <stdio.h>
#include <stdlib.h>
@llj098
llj098 / Makefile
Created December 23, 2010 01:36
a sample tcp server runs in kernel
obj-m += tcp_svr_sample.o
all:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
clean:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clea
@llj098
llj098 / Makefile
Created November 27, 2010 03:07
a software switch written with the netfilter framework
obj-m += switch.o
all:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
clean:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clear
@llj098
llj098 / vimpress plus
Created November 22, 2010 08:28
vimpress multiuser support
" Copyright (C) 2007 Adrien Friggeri.
"
" This program is free software; you can redistribute it and/or modify
" it under the terms of the GNU General Public License as published by
" the Free Software Foundation; either version 2, or (at your option)
" any later version.
"
" This program is distributed in the hope that it will be useful,
" but WITHOUT ANY WARRANTY; without even the implied warranty of
" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@llj098
llj098 / pa.vim
Created November 12, 2010 06:12
a small enhancement of vim
" File: pa.vim
" Author: llj098<llj098@gmail.com>
" Description: my plugin for myself
" Last Modified: 十一月 12, 2010
if exists('loaded_pa') || &cp || version < 700
finish
endif
let loaded_pa= 1