Below are snippets for psykoprogrammer.

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

6
Date Submitted Thu. Aug. 31st, 2006 6:16 PM
Revision 1
Helper psykoprogrammer
Tags ColdFusion | RegExp
Comments 0 comments
Below is a function written in ColdFusion MX that will return an array containing all matches found when running a regex against a particular string. Each array item is a structure with the match, the starting character position, the ending character position, and an array of any
sub-pattern captures.
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.
10
Date Submitted Fri. Aug. 25th, 2006 7:30 PM
Revision 1
Helper psykoprogrammer
Tags inheritance | JavaScript
Comments 0 comments
A small example demonstrating inheritance in Javascript, complete with calling base class constructors and methods. For the more detailed description, visit http://www.adampresley.com.
16
Date Submitted Sat. Aug. 26th, 2006 11:20 PM
Revision 1
Helper psykoprogrammer
Tags ajax | JavaScript
Comments 1 comments
A simple AJAX class. The code for the class is provided as well as example HTML and PHP code for usage.