This file contains hidden or 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
beanFactory = new aop("/services"); | |
ReverseService = beanFactory.getBean("ReverseService"); | |
WriteOutput(ReverseService.doReverse("Hello!")); |
This file contains hidden or 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
component { | |
function before(method,args,target){ | |
arguments.args.input = "before" & arguments.args.input; | |
} | |
} |
This file contains hidden or 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
beanFactory = new aop("/services"); | |
beanFactory.intercept("ReverseSercice", "BeforeInterceptor"); |
This file contains hidden or 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
ReverseService = beanFactory.getBean("ReverseService"); | |
WriteOutput(ReverseService.doReverse("Hello!")); |
This file contains hidden or 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
adfasdf |
This file contains hidden or 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> | |
Items = []; | |
outer:for(i=1;i<10;i++){ | |
Stuff = ":"; | |
inner:for(x=1;x<3;x++){ | |
if(i IS 5){ | |
continue outer; |
This file contains hidden or 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
{ | |
"selector": "source.js", | |
"shell":true, | |
"cmd": ["/Applications/mongodb-osx-x86_64-2.4.1/bin/mongo < ${file}"] | |
} |
This file contains hidden or 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
{ | |
"selector": "source.js", | |
"shell":true, | |
"cmd": ["/Applications/mongodb-osx-x86_64-2.4.1/bin/mongo < $file"] | |
} |
This file contains hidden or 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
<cfif false> | |
This will never run | |
<cfelse> | |
This will always run | |
</cfif> | |
or | |
<cfscript> | |
if(false){ |
This file contains hidden or 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
component { | |
this.name = "ClusterDemo"; | |
this.sessionType = "application"; | |
this.datasources["sessionData"] = { | |
class: 'org.gjt.mm.mysql.Driver' | |
, connectionString: 'jdbc:mysql://localhost:3306/sessionData?useUnicode=true&characterEncoding=UTF-8&useLegacyDatetimeCode=true' | |
, username: '' | |
, password: "" | |