Profile
Achievement
trusktr's Recent Snippets
- All /
« Prev 1 Next »
This is a linked list that can be used like an array where instead of using [] after the reference you just used .get() (and some other methods) but now you don't have to worry about sizing.
For example, with an array you would do:
cout <<...
0
904
posted 13 years ago by trusktr
A php program to check whether two simple connected graphs are isomorphic.
0
737
posted 13 years ago by trusktr
A recursive function to permute the items of an array. The function returns an array that contains many arrays, where each array is a permutation of the original array. This process can get intensive depending on how many items are in the initial arr...
0
753
posted 13 years ago by trusktr
Place this at the top of your php files. This will remove white space and formatting from HTML, making it smaller and faster for download by your users.
0
797
posted 13 years ago by trusktr
This code will allow you to embed flash on websites and those sites will validate on w3c validator.
Unfortunately, sloppy developers don't usually care about validation. :/
1
1093
posted 13 years ago by trusktr
A custom class for retrieving deliminated data from a (custom) MyString string.
0
679
posted 14 years ago by trusktr
Use this to read from a file. It is wrapped in a try/catch statement in case something breaks when trying to read the file. It will simply throw and exception (error) and continue rather than crashing your app.
0
1383
posted 14 years ago by trusktr