Skip to content

Instantly share code, notes, and snippets.

View iknowkungfoo's full-sized avatar

Adrian J. Moreno iknowkungfoo

View GitHub Profile
@iknowkungfoo
iknowkungfoo / revealing_module_template.js
Last active July 20, 2021 17:52
JavaScript Revealing Module Template with jQuery setup
NameSpace.moduleName = function($) {
// Private variable, global to the module.
var _foo;
// Private variable, global to the module.
// Will represent a jQuery object.
var $_bar;
// Constructor
var init = function() {
@iknowkungfoo
iknowkungfoo / ColdFusion 11 on OSX
Last active July 23, 2016 04:29
Start and stop ColdFusion server on OSX.
function finish {
/Applications/ColdFusion11/cfusion/bin/coldfusion stop
}
trap finish 2
/Applications/ColdFusion11/cfusion/bin/coldfusion start
tail -f /Applications/ColdFusion11/cfusion/logs/coldfusion-out.log
@iknowkungfoo
iknowkungfoo / ChildTag.cfc
Last active August 29, 2015 13:56
A parent CFC uses implicit getters and setters with the property "data". A child CFC extends the parent with a defined setter for "data", which calls super.setData(). setData() is not found.
<!--- Child CFC, extends Parent --->
<cfcomponent displayName="ChildTag" output="false" accessors="true" extends="ParentTag">
<cfproperty name="wibble" type="string" required="true" />
<cffunction name="setData" output="false" returntype="void">
<cfargument name="data" type="string" required="true" />
<cfset super.setData(arguments.data & " via Child.") />
</cffunction>