I hereby claim:
- I am sdevore on github.
- I am sdevore (https://keybase.io/sdevore) on keybase.
- I have a public key ASDZB-mhOIoxQbSh7DVOkoayQGDexOpkygXH23jEfSU6Sgo
To claim this, I am signing this object:
get available () { | |
const status = this.status.toLowerCase() | |
// if the date is essentially empty then | |
if (['', '0000-00-00'].includes(this.when_available.trim())) { | |
// if the status contains `not ready` then show `Coming Soon` | |
if (status.indexOf('not ready') !== -1) { | |
return 'Coming Soon' | |
} | |
// other wise it is `Available` | |
return 'Available' |
<form v-model="$v.valid" @submit.prevent="submit"> | |
<input | |
type="text" | |
v-model.trim="$v.form.text.$model" | |
@input="$v.form.text.$touch()" | |
@blur="$v.form.text.$touch()" | |
/> | |
<button @click="submit">Submit</button> | |
</form> |
import { Model } from "@vuex-orm/core"; | |
import { required, maxLength, minLength } from "vuelidate/lib/validators"; | |
export default class Comment extends Model { | |
static fields() { | |
return { | |
id: this.attr(null), | |
text: this.string(""), | |
}; | |
} |
{ | |
"require": { | |
"sdevore/cakephp-scid-plugin": "dev-feature/bootstrap-4", | |
}, | |
"repositories": [ | |
{ | |
"type": "vcs", | |
"url": "git@github.com:sdevore/cakephp-scid-plugin.git" | |
}, | |
], |
<?php | |
namespace App\Mailer\Preview; | |
use Cake\Core\Configure; | |
use Cake\ORM\Locator\LocatorAwareTrait; | |
use DebugKit\Mailer\MailPreview; | |
class UsersMailPreview extends MailPreview | |
{ | |
use LocatorAwareTrait; |
$query = $articles->find() | |
->where(['title LIKE' => '%First%']) | |
->andWhere(function ($exp) { | |
return $exp->or_([ | |
'author_id' => 2, | |
'is_highlighted' => true | |
]); | |
}); |
I hereby claim:
To claim this, I am signing this object:
<?php // in a model | |
if (empty($this->_modelWithCustomSource)) { | |
App::import('Model', 'MyPlugin.MyPluginModel'); | |
$this->_modelWithCustomSource = new MyPluginModel(); | |
$this->_modelWithCustomSource->useDbConfig; // is an instance of the datasouce | |
} |
I hereby claim:
To claim this, I am signing this object:
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |