Skip to content

Instantly share code, notes, and snippets.

View virtix's full-sized avatar
💭
I may be slow to respond.

bill shelton virtix

💭
I may be slow to respond.
View GitHub Profile
@virtix
virtix / far_from_any_road.md
Last active August 29, 2015 13:56
Music and Lyics and by The Handsome Family - http://www.handsomefamily.com/

(Intro: percussion x 2 + Am x 4)

Am             E      
From the dusty mesa, her
Dm             Am
Looming shadow grows
Am            E               
Hidden in the branches, of the 
@virtix
virtix / Brothers Under the Bridge.md
Last active August 29, 2015 14:02
Songs, Lyrics, Charts

Brothers Under The Bridge

-Bruce Springsteen

Covered by David Lindley, The Cowboy Junkies, and probably others

Saigon, it was all gone.
The same Coke machines, as the streets I grew on.
Down a mesquite canyon, we come walking along the ridge.

Notes on Macro-econ models & Heterogeneity

Marginal Propensity to Consume. Transitory vs. Permanent Shocks. The Paradox of Thrift and Toil.

Platforms for collaboration? Issues with Uptake? The CFPB experience. [Moved to lunch] [Bill Shelton]

  • What tools to foster collaboration here? What infrastracture?
  • Open-source issues with uptake and collaboration
  • General topics and experiences at CFPB
<cfcomponent extends="mxunit.framework.TestCase">
<cffunction name="setUp" returntype="void" access="public" hint="put things here that you want to run before each test">
</cffunction>
<cffunction name="tearDown" returntype="void" access="public" hint="put things here that you want to run after each test">
</cffunction>
<cfcomponent hint="A really stupid component">
<cffunction name="echo">
<cfargument name="arg" />
<cfreturn arguments.arg />
</cffunction>
</cfcomponent>
<cfcomponent extends="mxunit.framework.TestCase">
<cfscript>
function setUp(){
plainOldComponent = createObject("component" ,"PlainOldStupidAssCFC");
assertSame(plainOldComponent,plainOldComponent);
}
...
</cfscript>
</cfcomponent>
function freakinIdioticInvocationUsingPageContextAndRequestScope(){
var localFunc = 'localFunc';
var page = getPageContext().getRequest().setAttribute( localFunc , plainOldComponent.echo );
assertEquals('Hey, let''s hang out at BestBuy and give the computer staff shit.', request.localFunc('Hey, let''s hang out at BestBuy and give the computer staff shit.') );
}
function uselessUltraRedundantCallbackForMorons(){
var callBackFunc = plainOldComponent.echo( plainOldComponent.echo(plainOldComponent.echo) );
assertEquals('I LIKE spam.', callBackFunc('I LIKE spam.') );
}
function loserJavaWeanieInvocationUsingCfJspPage(){
var page = getPageContext().getPage();
var actual = page.createObject('java','java.lang.String').init(chr(0));
var args = ['hey, loser, you suck.'];
actual = createObject('java' ,'coldfusion.runtime.CfJspPage')._invokeUDF(page._get('plainOldComponent.echo'), 'echo', page, args);
debug(actual);
assertEquals( 'hey, loser, you suck.', actual );
}
function boneheadedTimeWasterWalkingAroundInCirclesLikeADoucheBag(){
var actual = getPageContext().getFusionContext().parent.plainOldComponent.echo('Now this is a fucking waste of time');
assertEquals('Now this is a fucking waste of time', actual);
}