-15
Transform XML File with XSL Stylesheet
8
This little function puts a string of a specified color and (centered) location. However, keep the word simple in mind. I purposfully not made it capable of supporting newlines.
By the way, this is my first snippet
By the way, this is my first snippet
8
I made this a little while back for a friend who was having trouble learning sockets. Below are snf.h, snferror.h and example.cpp (a little example).
The example opens a "web server" at port 8080 on the machine. However, it displays just one page.
Have fun!
The example opens a "web server" at port 8080 on the machine. However, it displays just one page.
Have fun!
9
I was coding a project that used arrays when the lack of a standard foreach in C/C++ got to me. So, I coded this little function to help me. It applies a function that returns int to each element of the array.
5
This class intended to collect TODO comments from java/c++/etc source files.
Example:
protected readFileData (String path) throws IOException {
// TODO: add try...catch block for IOException
InputStream is = new FileInputStream(path);
...
}
See also DirectoryScanner class.
Example:
protected readFileData (String path) throws IOException {
// TODO: add try...catch block for IOException
InputStream is = new FileInputStream(path);
...
}
See also DirectoryScanner class.
8
Add this header after all your other headers. Compiles on standards compliant compilers.
7
Simple tests for dir and file existance. Path creation and removal.
-6
Verify Path Exists
-11
Is String Empty
-7
Validate Email Address









