Skip to content

Instantly share code, notes, and snippets.

@coldfumonkeh
Created July 9, 2020 09:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save coldfumonkeh/1a86b5a30599f97b022d60cb8015ccfc to your computer and use it in GitHub Desktop.
Save coldfumonkeh/1a86b5a30599f97b022d60cb8015ccfc to your computer and use it in GitHub Desktop.
<cfscript>
function airwolfMe(
numeric passCount = 1,
array hexArray = []
){
var aw = '0123456789ABCDEF';
var hexArray = arguments.hexArray;
var hexLine = '';
try{
if( arguments.passCount <= 200 ){
for( var i = 1; i<=10; i++ ){
if( i == 10 ){
arrayAppend( hexArray, hexLine, true );
// Loop back and start again
return airwolfMe( arguments.passCount+1, hexArray );
} else {
l1 = mid( aw, int( randRange( 1, 16 ) ), 1 );
l2 = mid( aw, int( randRange( 1, 16 ) ), 1 );
hexLine = hexLine & '#l1##l2#' & ': ';
}
}
}
} catch( any e ){
dump( e );
abort;
}
return hexArray;
}
consoleOutput = airwolfMe();
dump( consoleOutput );
</cfscript>
<!---
https://www.popularmechanics.com/technology/apps/a26473/air-wolf-code-debugging/
--->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment