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
yuidoc : | |
{ | |
Controller : | |
{ | |
name: '<%= pkg.name %>', | |
description: '<%= pkg.description %>', | |
version: '<%= pkg.version %>', | |
url: '<%= pkg.homepage %>', | |
options: | |
{ |
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
YUI.add("yuidoc-meta", function(Y) { | |
Y.YUIDoc = { meta: { | |
"classes": [], | |
"modules": [], | |
"allModules": [] | |
} }; | |
}); |
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
//[...] | |
webfont: | |
{ | |
icons: | |
{ | |
src: 'font/baked/*.svg', | |
dest: 'app/webroot/fonts', | |
destCss: 'less', | |
options: | |
{ |
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->autoRender = false; | |
if($this->request->is('ajax')) | |
{ | |
$day = $this->request->data('day'); | |
$data = array( | |
'mister' => 'x', | |
'affe' => $day | |
); |
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
<head> | |
<script type="text/javascript" src="/js/jquery-2.1.1.min.js"></script> | |
<script type="text/javascript" src="/js/bootstrap.min.js"></script> | |
<link rel="stylesheet" type="text/css" href="/css/bootstrap.min.css" /> | |
<script type="text/javascript" src="/js/bootstrap-slider.min.js"></script> | |
<link rel="stylesheet" type="text/css" href="/css/bootstrap-slider.min.css" /><script> | |
<script> |
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
<? | |
//Controller/PagesController.php | |
// at the top | |
use Cake\I18n\I18n; | |
//inside a view method, homepage | |
public function home() | |
{ | |
I18n::locale('es'); |
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\Query; | |
use Cake\ORM\RulesChecker; | |
use Cake\ORM\Table; | |
use Cake\Validation\Validator; | |
/** | |
* Images Model |
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
public function affe() | |
{ | |
} |
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 | |
public function edit($id = null) | |
{ | |
$page = $this->Pages->get($id, [ | |
'contain' => [] | |
]); | |
if ($this->request->is(['patch', 'post', 'put'])) { | |
$page = $this->Pages->patchEntity($page, $this->request->data); | |
if ($this->Pages->save($page)) { | |
$this->Flash->success(__('The page has been saved.')); |
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 { css, html, LitElement } from 'lit-element'; | |
import { foo } from './styles.js'; | |
customElements.define('fancy-app', class extends LitElement { | |
static get styles() { return [ | |
foo, | |
css` | |
.bar { color: pink; } | |
` |
OlderNewer