Command Line Calculator





ranking Sort Sort   |   date Sort Sort   |   member Sort Sort
Syndication

7
Date Submitted Sat. Oct. 28th, 2006 6:03 PM
Revision 1
Scripter SCoon
Tags "Command Line" | Java | Reflection
Comments 0 comments
This class uses reflection to locate option setters. Client class must contains methods setFile (to receive file names from the command line) and setOption### (to receive option ###).

(See also adapter-based implementation)
5
Date Submitted Mon. Oct. 30th, 2006 2:15 AM
Revision 1
Scripter SCoon
Tags "Command Line" | GUI | Ruby | Tk
Comments 0 comments
This class illustrates mixed GUI/command line parameters passing. Any parameter may be specified in the command line. All unspecified parameters will be read using GUI dialog box.
9
Date Submitted Fri. Aug. 25th, 2006 7:46 PM
Revision 1
Helper psykoprogrammer
Tags .Net | C | drag | drop | treeview
Comments 2 comments
Below is a bit of code which sets up drag and drop in a treeview. This is handy for if you have a list of items that can be sorted by the user.

Here is a bit of code to demonstrate how to do this. First create a new Windows executable project. Drop a TreeView component on the form, and let's name it 'myTree' for this demonstration. Go ahead and populate it with some dummy data; enough data to see the dragging and dropping in action. You will need a variable global to the form's scope.

private TreeNode sourceNode;

This is used to track the item we are dragging in our TreeView. Then define the event handlers listed below.
5
Date Submitted Mon. Feb. 19th, 2007 1:56 PM
Revision 1
Beginner mentat_emre
Tags C | converter | Number | roman
Comments 1 comments
It is a simple converter which converts your number into roman number.
Due to roman numbers it can converts 4 digits.
6
Date Submitted Mon. Mar. 13th, 2006 11:49 AM
Revision 1
Coder mattrmiller
Tags "MAC Address" | C | Devices | Ethernet
Comments 3 comments
Code snippet that prints MAC addresses for Ethernet type devices.
1
Date Submitted Mon. Apr. 16th, 2007 9:34 PM
Revision 1
Beginner leroi
Tags API | C | scraping | Screen | webrequest | webresponse
Comments 4 comments
Shows a few objects I built to perform some screen scraping...
6
Date Submitted Thu. Jan. 4th, 2007 4:30 AM
Revision 1
Beginner jimmah
Tags C | factorial | Fast | Recursive
Comments 3 comments
Gives factorials for a given value.
5
Date Submitted Fri. Nov. 3rd, 2006 12:07 PM
Revision 1
Helper jarfil
Tags "Command Line" | Perl
Comments 2 comments
I've found it kind of complicated to strip newline chars from a file with just the commandline. This tiny piece of code does just that.

I've found it especially useful when extracting tabulated data from a grabbed site where each cell is on a different html line. This way I can pre-filter the html, remove the newlines, and insert them again at register boundaries (row end in this case), so that with just a couple more replacement from within a regex enabled text editor I can copy&paste it directly to a database.
-5
Date Submitted Tue. May. 2nd, 2006 3:26 PM
Revision 1
Helper gbarendt
Tags C | conversion | hexadecimal
Comments 3 comments
Converts a hexadecimal string to an integer.
5
Date Submitted Sat. Oct. 28th, 2006 8:07 AM
Revision 1
Beginner FlyingIsFun1217
Tags C
Comments 2 comments
Simple C++ program that creates a directory with the asked username, and places 2 files within the directory that contain the asked for username and the asked for password.

This is an edit of another snippet I made, but I have fixed the creation of the user's folder so it is named after the user.

FlyingIsFun1217