Since my first year in university, I have been learning datastructures all by myself. I found that the code in nearly every book that introduces datastructures is ugly. So I rewrote them. Now, the code is available here and it is free.
Hmm, I wrote a simple shell in our practice several months ago. It can parse simple command lines even including wildcards, pipes and redirections.
Download: sshell.tar.gzI wrote two self-printing programs in C, one of them is accidentally similar to quine and the other one is absolutely new and is worthy your attention. :-P
selfprint.c selfprint2.c
This one is in the same way, but using Perl.
selfprint.pl
I tried to write one little program in C, which is very suitable for writing obfuscated code. This program is used to solve a simple puzzle. Please GUESS what it does. The source file is here. If you can understand that, please send a mail to me!
Recently, I program a micro controller using C51. But I don't want to show that code here. I write another program for my Linux to communicate with that micro controller. The program is simple, just sends user's input and shows it's response. The only one fresh thing is controlling serial ports on Linux. [serial.c] Hack it for your own purpose,
This is the first kernel module I wrote. Just a simple hello-world.
Note that makefiles of all modules are also provided, you can get
them in the tar ball. After uncompressing, get into that dir and just
type make modules to compile the module. These modules are all
tested on Linux kernel 2.6.17.7 and I think they will work fine on all
the 2.6.* kernel.
I was inspired by the book Kernel Projects for Linux to write this program. It implements a file named clock in the dir /proc. When you read it, it tells you the current system time in the form of "sec usec". And no one can write it. The test program for it comes along.
This Perl program converts C source files to proper HTML files and also has grammar highlights. However, it is not so satisfying. Anyone who wants to hack it is welcome!
This program is little but useful. It is used to do some simple calculation between numbers of different index and display the result in bin/hex/oct/dec forms.
This Perl program is useful. It searches the specified string in the current directory or replaces it with another specified string if exists.
Hmmm, this program can collect some useful information of your Linux machine. Enjoy it!
Be careful! This script is dangerous! Run it on your own risk!
This is a small ftp client written in Python. But I plan to add more features to it, including GUI features. Hopefully, you can find it useful for you. ;)
It is a small tool to be used to convert your C99 style comments to K&R style. It was intended for Linux kernel source code, since there are lots of comments written in uncompatible C99 style.