This is a collection of unmaintained sources. You may download and use these programs according to their license. You may also send feature request. However, without any incurragement these programs will stick to their version. If it's C++ and no compilation information has been given, try ccbuild.
THIS PROJECT's FEATURES HAVE BEEN INCORPORATED UPSTREAM, VISIT THE XD HOMEPAGE.
The first fruit of my C++ work: exd. A program to change directories like xd by Frank B. Brokken (README). However you are allowed to use more then just the first characters of a directory.
The program allows you to change directories using only the first letter(s) of the directories in the path you want.
When installed, exd can get you from you current place to "/jail/happy/horse" by typing xd /jhh.
When the case-insensitive matching is enables (commandline option) you would also be able to get to "/jail/Happy/horse" with the same command.
Also the commands xd /jaihh will get you there.
For further information, see the README in the archive.
This is a simple preprocessor macro to use with any STL container that supports a forward iterator.
Use it like: _foreach(iterator , vector) which expands a for loop with iterator iterator, along all elements of vector.
Example of use:
File content of example.cc
#include <vector> #include <iostream> #include "foreach.hh" using namespace std; int main() { vector<unsigned> numbers; numbers.push_back(10); numbers.push_back(20); numbers.push_back(13); double sum; _foreach(number, numbers) sum += *number; //This is NOT a good example of use: you should use // something like double sum = accumulate(numbers.begin(), numbers.end(), double()); //See STL algorithms. double acc = 0, per = 0; _foreach(number, numbers) { cout << "Number: " << *number; acc += *number; per += (*number)/sum; cout << "\t" << ((*number)/acc); cout << "\t" << ((*number)/sum); cout << "\t" << per; cout << "\n"; } }