I hereby claim:
- I am cameroncf on github.
- I am cameroncf (https://keybase.io/cameroncf) on keybase.
- I have a public key ASA7gSiWV3qlqCWP_ZfhHwksp8uFxi-4moU7IrehVZ7PEwo
To claim this, I am signing this object:
// to reproduce, run this on command line and accept default config for vue | |
vue create projectX && cd projectX && yarn build |
const env = require('process').env; | |
const fetch = require('node-fetch'); | |
const URL = require('url'); | |
const AWS = require('aws-sdk'); | |
AWS.config.update({ | |
region: env.AWS_REGION, | |
credentials: new AWS.Credentials(env.AWS_ACCESS_KEY_ID, env.AWS_SECRET_ACCESS_KEY, env.AWS_SESSION_TOKEN) | |
}); |
<cfscript> | |
this.ormenabled = true; // turnm ORM on or this application | |
this.ormsettings.dbcreate = 'update'; // valid settings: none | update | dropcreate | |
//this.ormsettings.eventhandling = true; // activate event handing | |
//this.ormsettings.eventhandler = "appname.model.EventHandler"; | |
this.ormsettings.flushatrequestend = false; // we are going to manually commit all transactions | |
this.ormsettings.automanagesession = false; // we are going to manually commit all transactions | |
this.ormsettings.secondarycacheenabled = true; | |
this.ormsettings.cacheprovider = 'EhCache'; | |
this.ormsettings.cfclocation = ['/appname/model/beans']; // CFC location (s) |
I hereby claim:
To claim this, I am signing this object:
component | |
{ | |
public void function setBFKey( string key ) { | |
request.somethinglongandmysterious = key; | |
} | |
public string function getBFKey() { | |
return request.somethinglongandmysterious; | |
} |
// all ORM entities need to extend me | |
conponent | |
{ | |
public any function getService( required string objectName ) { | |
getBeanFactory().getBean( arguments.objectName ); | |
} | |
private any function getBeanFactory() { | |
return application[ request.framework_applicationKey ].factory; // get DI/1 factory |
component | |
extends = 'libs.framework.one' | |
{ | |
/* other content trimmed */ | |
/* gets a cached singleton */ | |
public any function getService( required string serviceName ) { | |
return createObject('component','model.SingletonFactory').getObject( arguments.serviceName ); | |
} |
<cfscript> | |
/* | |
This file is part of MuraFW1 | |
Copyright 2010-2015 Stephen J. Withington, Jr. | |
Licensed under the Apache License, Version v2.0 | |
http://www.apache.org/licenses/LICENSE-2.0 | |
NOTES: |
<!--- intentionally blank ---> |
public any function onBeforeContentSave($) { | |
var newBean = $.event('newBean'); | |
if( !len(trim(newBean.getCredits())) ) { | |
newBean.setCredits( $.currentUser().getFullName() ); // autoinsert name | |
//newBean.setCredits( $.currentUser().getUserID() ); // autoinsert id | |
} | |
} |