I hereby claim:
- I am ifedotov on github.
- I am ifedotov (https://keybase.io/ifedotov) on keybase.
- I have a public key ASBcuIVq8_SvaLnuq5eCrQA4vnC8BHVsyrq84et7vmFvdwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
storeSchema.pre('save', async function(next) { | |
if (!this.isModified('name')) { | |
next(); // skip it | |
return; // stop this function from running | |
} | |
var _slug = slug(this.name); | |
this.slug = _slug; | |
// find other stores that have a slug of wes, wes-1, wes-2 | |
const slugRegEx = new RegExp(`^(${_slug})((-[0-9]*$)?)$`, 'i'); |
component name="result" | |
{ | |
/* | |
* | |
* PARSES RESPONSE FROM CONNECTION | |
* | |
* */ | |
//CALL parseResult() TO PARSE EACH ROW WITHING THE RETURNED TABLE | |
private function parseSubTable(connectionResult, fieldName) |
export TMPDIR=c:/temp |
component | |
{ | |
this.name = "many_to_many"; | |
this.datasource = "test_mysql"; | |
this.ormenabled = true; | |
this.ormsettings.dbcreate = "update"; | |
this.ormsettings.flushAtRequestEnd = false; | |
} |
<cfscript> | |
component output="false" persistent="true" table="Person" { | |
property name="personid" column="personid" generator="identity" index="true" fieldtype="id" ormtype="int" insert="false" update="false"; | |
property type="timestamp" name="created" generated="insert"; | |
property name="name" ormtype="string"; | |
property | |
name="guides" | |
singularname="guide" | |
fieldtype="many-to-many" |
<cffunction name="preProcess" access="public" returntype="void" output="false"> | |
<cfargument name="eventContext" type="MachII.framework.EventContext" required="true" /> | |
<cfscript> | |
var e = arguments.eventContext.getNextEvent(); | |
var key = makeCacheKey(e); | |
var cacheData = ''; | |
//get data from cache | |
if(key neq '') { |
<cfscript> | |
paths = []; | |
loader = ''; | |
//paths[1] is path to bin-groovy forlder where eclipse puts Groovy .class files | |
paths[1] = "C:\...\bin-groovy"; | |
//this is where Groovy .jar files are, again you might have different paths | |
paths[2] = "C:\groovy\groovy-1.6-RC-2\lib\groovy-1.6-RC-2.jar"; | |
paths[3] = "C:\groovy\groovy-1.6-RC-2\lib\asm-2.2.3.jar"; | |
//create the loader | |
loader = createObject("component", "javaloader.JavaLoader").init(paths); |
<cfcomponent output="false"> | |
<cffunction name="init" access="public" returntype="Collection" output="false"> | |
<cfscript> | |
variables.container = arrayNew(1); | |
variables.currentIndex = 0; | |
return this; | |
</cfscript> | |
</cffunction> | |
<cffunction name="add" access="public" output="false" returntype="void"> |