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 index() { | |
if($this->request->is('post') && isset($this->request->query['message']) && !isset($this->request->query['page'])){ | |
$logs = $this->IrcLogs->find()->order(['IrcLogs.created' => 'desc']); | |
$result = $logs->where(['IrcLogs.id >=' => $this->request->query['message']])->count(); | |
$this->paginate['page'] = ceil($result/$this->paginate['limit']); | |
} | |
$this->set('ircLogs', $this->paginate($this->IrcLogs)); | |
} |
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 | |
//SitesController | |
class SitesController extends AppController { | |
public $components = array('RequestHandler'); | |
/** | |
* Index method | |
* | |
* @return void | |
*/ |
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
<core-scroll-header-panel condenses> | |
<core-toolbar> | |
<paper-tabs selected="home" valueattr="name" self-end> | |
<paper-tab name="test1">Home</paper-tab> | |
<paper-tab name="test2">About</paper-tab> | |
</paper-tabs> | |
</core-toolbar> | |
<div class="container" layout vertical center content> | |
<site-view></site-view> | |
</div> |
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
<link rel="import" href="../polymer/polymer.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
width: 100%; | |
height: 100%; |
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 pprint | |
def setup(app): | |
app.connect("builder-inited", testb) | |
def testb(app): | |
pprint.pprint(app.builder.css_files) |
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
Receivers{ | |
id, | |
phone_number | |
} | |
Datasets{ | |
id, | |
reveiver_phone_number, | |
... | |
} |
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
<template name="events"> | |
{{#each events}} | |
{{title}}-{{date}}<br /> | |
{{/each}} | |
</template> |
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
process.env.MAIL_URL = 'smtp://' + | |
encodeURIComponent(username) + ':' + | |
encodeURIComponent(password) + '@' + | |
encodeURIComponent(server) + ':' + port; | |
// 2. Format the email | |
//-- Set the from address | |
Accounts.emailTemplates.from = 'test@test.com'; | |
//-- Application name |
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
dashboard.route('/app/:id',{ | |
action: function(){ | |
BlazeLayout.render("yourLayout", { | |
main: "yourView" | |
}); | |
} | |
}); |
OlderNewer