This file contains 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
<?php | |
App::uses('Folder', 'Utility'); | |
App::uses('AppShell', 'Console/Command'); | |
class UpgradeTask extends AppShell { | |
public function execute() { | |
$this->out(sprintf('Location: %s', APP)); | |
$this->hr(); | |
$files = $this->_getFiles(); |
This file contains 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
src/Controller/Admin/UsersController.php (line 64) | |
object(App\Model\Entity\User) { | |
'role' => '', | |
'[new]' => true, | |
'[accessible]' => [ | |
'*' => true | |
], | |
'[dirty]' => [ | |
'role' => true |
This file contains 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
<?php | |
namespace App\Model\Table; | |
use Cake\ORM\Table; | |
use Cake\ORM\Query; | |
use Cake\Validation\Validator; | |
class UsersTable extends Table | |
{ |
This file contains 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
/src/Model/Table/UsersTable.php (line 46) | |
object(Cake\Validation\Validator) { | |
'_presenceMessages' => [], | |
'_allowEmptyMessages' => [], | |
'_useI18n' => true, | |
'_providers' => [], | |
'_fields' => [] | |
} |
This file contains 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
<?php | |
namespace App\Model\Table; | |
use Cake\ORM\Table; | |
use Cake\ORM\Query; | |
use Cake\Validation\Validator; | |
class UsersTable extends Table | |
{ |
This file contains 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
PLUGIN (save as selectize-fast-click.js and load after selectize.js): | |
------------------------------------------------------ | |
Selectize.define('fast_click', function(options) { | |
var self = this; | |
this.render = (function() { | |
var original = self.render; | |
return function(templateName, data) { | |
var html = original.apply(this, arguments); | |
var $output = $(html).addClass('needsclick'); |
This file contains 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
import { Observable } from 'rxjs/Observable'; | |
import { Subject } from 'rxjs/Subject'; | |
import { AbstractAudioEngine } from './abstract-audio-engine'; | |
export class CordovaMediaAudioEngine extends AbstractAudioEngine { | |
private _play: Subject<boolean> = new Subject(); | |
private _pause: Subject<boolean> = new Subject(); | |
private _ended: Subject<boolean> = new Subject(); |
This file contains 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
ionic run ios -l --device | |
The port was taken on the host 10.0.0.210 - using port 8000 instead | |
The port was taken on the host 10.0.0.210 - using port 8000 instead | |
> mindly-app@ ionic:serve /Users/kim/ionic/mindly-app/rc-wip | |
> ionic-app-scripts serve "--port" "8000" "--address" "10.0.0.210" "--liveReloadPort" "8000" "--nobrowser" | |
[2m[06:01:15][22m[36m ionic-app-scripts 0.0.45 [39m | |
[2m[06:01:15][22m watch started [2m...[22m |
This file contains 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
Copied /Users/kim/ionic/mindly-app/master/src/env/config.dev.ts to /Users/kim/ionic/mindly-app/master/src/app/app.config.ts | |
Running app-scripts build: | |
[12:56:50] build dev started ... | |
[12:56:50] clean started ... | |
[12:56:50] clean finished in 4 ms | |
[12:56:50] copy started ... | |
[12:56:50] transpile started ... | |
[12:56:54] transpile finished in 3.93 s | |
[12:56:54] preprocess started ... | |
[12:56:54] preprocess finished in less than 1 ms |
This file contains 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
``` | |
$this->loadModel('Cfc.Events'); | |
$data = [ | |
'eid' => rand(0, 99999), | |
'name' => 'TEST ' . rand(0, 99999), | |
'start_date_time' => Time::now(), | |
'end_date_time' => Time::now(), | |
'capacity' => 10, |
OlderNewer