The link below will FTP a zipped file of code samples I put together. Most are original. On a few I have borrowed an idea from papers.
Details are in the header of the source code.
Autocorr - Translated version of joincount by Dr. Bryan Epperson. Sequin.exe - scans NCBI output, extracting loci names and positions of first and last bases. Patex.exe - Paternity exclusion. Also calculates effective number of alleles, observed and expected hetero and homozygosity and fixation. This is a rarefaction program, though it uses a clumsy routine of actually doing the rarefacting the hard way.