Below are the top ranked snippets.

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

« Previous 1 2 3 4 5 6 7 8 9  ...  55 56 Next »
3
Date Submitted Thu. Nov. 15th, 2007 2:37 PM
Revision 1
Helper BerndSchiffer
Tags groovy
Comments 1 comments
Answer to a groovier solution to Hamlet D'Arcy's Rot13 algorithm. This is the refactored version with less redundance.
3
Date Submitted Mon. Nov. 26th, 2007 1:01 PM
Revision 1
Helper DrivingManiac
Tags assembler | microblaze | putChar | UART
Comments 0 comments
Microblaze ISA assembler for putChar to UART
3
Date Submitted Mon. Nov. 26th, 2007 12:58 PM
Revision 1
Helper DrivingManiac
Tags getChar | microblaze | UART
Comments 0 comments
Assembler getChar for Microblaze
3
Date Submitted Mon. Nov. 26th, 2007 1:09 PM
Revision 1
Helper DrivingManiac
Tags UART
Comments 0 comments
Assemble
3
Date Submitted Wed. Nov. 28th, 2007 1:08 PM
Revision 1
Helper HRCerqueira
Tags CSS | DOM | HTML | JavaScript
Comments 1 comments
These are some prototype methods to handle class names in html elements. As you all should know, a html element can have more than one class name.

This is part of my dom handling toolkit. Check it out and use it at will.

Cheers
3
Date Submitted Fri. Dec. 14th, 2007 4:41 PM
Revision 1
Scripter Fordiman
Tags "javascript" | Form | Prototype
Comments 0 comments
Prototype's Form.Methods library has a nice piece of code called 'serialize', which, if passed with the optional 'hash' parameter set to true, will convert an HTML form into a Javascript Object.

I was dismayed, however, to find that there was no way to reverse it; just as simply load a form using a Javascrip object.

So, here's one. enjoy.
3
Date Submitted Thu. Dec. 20th, 2007 6:48 PM
Revision 1
Scripter Fordiman
Tags JavaScript | promise | Prototype
Comments 0 comments
This is a version of my previous entrant, Promise, that will work with prototype, but does not require it. It's slightly more advanced, using .apply here and there.

It's basically a function to allow any other function to poll. Polling is generally regarded as bad practice in object oriented code, but can make very simple the matter of, for example, running a bit of code only after a single-run event (like onload) occurs (whether that be in the future or past), another unrelated bit of code needs to be hack-tracked, or any other generic condition.

Note that when the function runs, it doesn't necessarily run within the scope that's called it. Its context is set to itself, rather than its normal context, and it's asynchronous, so you'll not get a return value. If you use Prototype, you can bind the function and it'll behave as it should in terms of context, but I'm unaware of a way to cause an asynch function to block execution - and you'd really rather that not happen anyway, trust me.
3
Date Submitted Mon. Feb. 4th, 2008 9:14 PM
Revision 1
Helper rugi
Tags Directory | Java | Recursive | search
Comments 0 comments
Search file directory (recursive method) with java language
3
Date Submitted Thu. Mar. 6th, 2008 3:09 AM
Revision 1
Scripter Fordiman
Tags JavaScript | parse_url | PHP
Comments 0 comments
Simple. It's parse_url, from PHP, implemented in Javascript. Seen a lot of similar ones around the web, but they were all bulky code and none of them took advantage of the RegEx parser in JS.

Applied as a member of the String prototype, so just call as myURL.parseURL(); Will return a named object with naming identical to that of PHP's function.

Additional: if first argument is present, will break the querystring up into name/value pairs, unescaped, and return that instead of the raw querystriing.
4
Date Submitted Mon. Oct. 10th, 2005 12:23 PM
Revision 1
Beginner davidjmedlock
Tags Alternating | ColdFusion | Row
Comments 1 comments
Quick and Easy Alternating Row Colors
« Previous 1 2 3 4 5 6 7 8 9  ...  55 56 Next »