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
// Base.cfc | |
component { | |
writeOutput("Top of pseudo-constructor of #getMetadata(this).name#<br>") | |
exit; | |
writeOutput("Bottom of pseudo-constructor of #getMetadata(this).name#<br>") | |
function init() { | |
writeOutput("In #getMetadata(this).name#.#getFunctionCalledName()#<br>") | |
} | |
} |
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
Top of test.cfm | |
Top of inc.cfm | |
Top of f | |
Bottom of inc.cfm | |
Bottom of test.cfm |
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
curl -vs http://blog.adamcameron.me 1> /dev/null | |
* Trying 142.250.180.19:80... | |
* TCP_NODELAY set | |
* Connected to blog.adamcameron.me (142.250.180.19) port 80 (#0) | |
> GET / HTTP/1.1 | |
> Host: blog.adamcameron.me | |
> User-Agent: curl/7.68.0 | |
> Accept: */* | |
> |
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
// C.cfc | |
component { | |
static { | |
final static.staticProperty = "value" | |
} | |
final this.instanceProperty = "value" | |
public string function f(final required string s) { |
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
// /var/www/src/miscellaneous/importTest/Base.cfc There is a mapping `cfmInDocker` to /var/www/src | |
component {} |
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
<cffunction name="scriptInTagFunction101Lines"><!--- <cffunction /> & <cfscrtipt /> tags set the baseline overhead @ 4 ---> | |
<cfscript> | |
x = "Function is now 5 lines long"; | |
x = "Function is now 6 lines long"; | |
x = "Function is now 7 lines long"; | |
x = "Function is now 8 lines long"; | |
x = "Function is now 9 lines long"; | |
x = "Function is now 10 lines long"; | |
x = "Function is now 11 lines long"; | |
x = "Function is now 12 lines long"; |
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> | |
function scriptOnlyFunction100Lines() {// function(){} set the baseline overhead @ 2 | |
x = "Function is now 3 lines long"; | |
x = "Function is now 4 lines long"; | |
x = "Function is now 5 lines long"; | |
x = "Function is now 6 lines long"; | |
x = "Function is now 7 lines long"; | |
x = "Function is now 8 lines long"; | |
x = "Function is now 9 lines long"; | |
x = "Function is now 10 lines long"; |
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
<cfcomponent> | |
<cffunction name="f"> | |
<cfscript> | |
x = 0; | |
x = 0; | |
x = 0; | |
x = 0; | |
x = 0; | |
x = 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
<cffunction name="null"></cffunction> | |
<cfset apiData = [ | |
{hasValue="some value", noValue=null()}, | |
{none=null(), anothervalue="something here"}, | |
{nowt=null(), nothing=null()} | |
]> | |
<cfset prunedApiData = duplicate(apiData)> |
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> | |
jsoup = CreateObject("java", "org.jsoup.Jsoup"); | |
htmlDom = jsoup.parseBodyFragment('<a href="/" target="_blank" alt="home" data-test="1">Test</a>'); | |
aHrefs = htmlDom.select('a'); | |
for (aHref in aHrefs) { | |
iterator = aHref.attributes().iterator(); | |
while (iterator.hasNext()) { |