This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public Boolean function structKeyHasValue( required struct s, required any o) | |
{ | |
return ( structKeyExists(s,o) && len(s[o]) > 0); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfscript> | |
/** | |
* queryToCsv | |
* Allows us to pass in a query object and returns that data as a CSV. | |
* This is a refactor of Ben Nadel's method, http://www.bennadel.com/blog/1239-Updated-Converting-A-ColdFusion-Query-To-CSV-Using-QueryToCSV-.htm | |
* @param {Query} q {required} The cf query object to convert. E.g. pass in: qry.execute().getResult(); | |
* @param {Boolean} hr {required} True if we should include a header row in our CSV, defaults to TRUE | |
* @param {String} d {required} Delimiter to use in CSV, defaults to a comma (,) | |
* @return {String} CSV content | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Tidy Yammer | |
// @version 1.2 | |
// @include http*://*yammer.com/* | |
// ==/UserScript== | |
/* | |
* Original idea by dwnz http://userscripts.org/scripts/review/107377 | |
* Updated 04/13/2012 by @CreativeNotice |
NewerOlder