Skip to content

Instantly share code, notes, and snippets.

beanFactory = new aop("/services");
ReverseService = beanFactory.getBean("ReverseService");
WriteOutput(ReverseService.doReverse("Hello!"));
component {
function before(method,args,target){
arguments.args.input = "before" & arguments.args.input;
}
}
beanFactory = new aop("/services");
beanFactory.intercept("ReverseSercice", "BeforeInterceptor");
ReverseService = beanFactory.getBean("ReverseService");
WriteOutput(ReverseService.doReverse("Hello!"));
<cfscript>
Items = [];
outer:for(i=1;i<10;i++){
Stuff = ":";
inner:for(x=1;x<3;x++){
if(i IS 5){
continue outer;
{
"selector": "source.js",
"shell":true,
"cmd": ["/Applications/mongodb-osx-x86_64-2.4.1/bin/mongo < ${file}"]
}
{
"selector": "source.js",
"shell":true,
"cmd": ["/Applications/mongodb-osx-x86_64-2.4.1/bin/mongo < $file"]
}
@cybersonic
cybersonic / cfelse.cfm
Last active August 29, 2015 14:15
Demo code suggestion
<cfif false>
This will never run
<cfelse>
This will always run
</cfif>
or
<cfscript>
if(false){
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: ""