Skip to content

Instantly share code, notes, and snippets.

View iconecd's full-sized avatar

iconecd

  • iConstituent
  • Atlanta, GA
View GitHub Profile
<cfscript>
writedump(server.coldfusion.productversion); //4.5.1.004
function noRecordsTest() {
var q = queryNew("columnA");
//return no records
var qData = queryExecute("SELECT columnA FROM q", {}, {dbtype="query"});

here's a pretty comprehensive earwash. you might not know all of them, but you'll know at least one. simply by writing this, i put myself at tremendous risk of infection. i hope we both come out of it okay.

i'm a barbie girl, in a barbie world. made of plastic, it's fantastic.

i know what boys like. i know what guys want. i know what boys like. i know what guys want. boys like me.

because i'm cool like that. i'm cool like that.. i'm cool like that.. i'm cool like that.

is someone getting the best, the best, the best, the best of you? is someone getting the best, the best, the best, the best of you?

<cfscript>
function monthAbbrAsInt(required string input) {
var dte = input & " 1, 2000";
if ( isDate( dte ) ) {
return dateFormat(dte, "m");
}
return 0;
}
writedump(monthAbbrAsInt("jul"));
<cfscript>
public boolean function isValidEmail (
required string email
) {
var ia = CreateObject( "java", "javax.mail.internet.InternetAddress" );
try {
ia.parse( arguments.email, false );
} catch ( any e ) {
return false;
<cfscript>
public boolean function isValidEmail (
required string email
) {
var ia = CreateObject( "java", "javax.mail.internet.InternetAddress" );
ia.setAddress( arguments.email );
try {
ia.validate();
} catch ( any e ) {
return false;