Code
For quick reference, here's all the code snippets I've posted on the site, grouped by language. I only bother posting the most generic code since, well, the rest of it would be pretty useless. The function name / post title should give a pretty good idea of what each one does. Click on the language heading to view all code within the language.
Actionscript
ColdFusion
JavaScript- Avoiding timing problems with innerHTML (4)
- Function: Array.contains() (4)
- Function: Array.copy()
- Function: Array.customJoin()
- Function: Array.is_equal_to()
- Function: Array.removeAllOccurences() (2)
- Function: Array.remove_duplicates()
- Function: Array.sort()
- Function: base10_to_16
- Function: g.get_ancestor_node() (requires Prototype) (2)
- Function: g.toggle_unique_class (requires Prototype)
- Function: getElementsByClassName()
- Function: insertAfter()
- Function: Number.roundToDecimalPlace
- Function: String.prototype.pad (2)
- Function: String.reverse() (2)
- Function: String.ucFirstLetter()
- Functions: String.trim(), rtrim(), ltrim()
- jQuery plugin: switchClass
PHP- Function: check_duplicate_filename()
- Function: check_upload_folder()
- function: cleanPhoneString()
- Function: convert_datetime_to_timestamp()
- Function: convert_int_to_price()
- Function: format_name
- Function: generate_password()
- Function: generate_random_alphanumeric_str()
- Function: get_date()
- Function: get_random_subset()
- Function: get_thumb_dimensions()
- Function: html_dump()
- Function: is_hash()
- Function: trim_long_string()
- get_distinct_size_2_subsets()
- MySQL datetime from PHP
- Removing index from array (1)
- Sending HTML + text emails in PHP
- States & Provinces dropdown (2)
XSLT
sitemap plugin by dagondesign.com








