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
// app/authenticators/admin.js | |
import Ember from "ember"; | |
import Base from "simple-auth/authenticators/base"; | |
import ENV from "../config/environment"; | |
export default Base.extend({ | |
// called by login form action | |
// this.get("session").authenticate("authenticator:admin", credentials).then(...) | |
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
// app/routes/login.js | |
import Ember from "ember"; | |
import ENV from "../config/environment"; | |
export default Ember.Route.extend({ | |
setupController: function(controller, model) { | |
controller.set("errorMessage", null); | |
}, | |
actions: { |
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
// config/environment.js | |
module.exports = function(environment) { | |
var ENV = { | |
// ... | |
APP: { | |
inIframe: false | |
} |
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
// some controller | |
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
responses : [], | |
filteredResponses: [], | |
sectors : [], | |
dateFrom : null, | |
dateTo : null, |
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 Ember from 'ember'; | |
export default Ember.Component.extend({ | |
classNames: ['embed-src'], | |
regex : /https?:/, | |
width : null, | |
height : null, | |
src : null, |
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 | |
// see User model at: | |
// https://gist.github.com/brianally/f4f70f5bb8c0f2304307 | |
App::uses('AppShell', 'Console/Command'); | |
class UserShell extends AppShell { | |
public $uses = array('User'); |
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('AppModel', 'Model'); | |
App::uses('SimplePasswordHasher', 'Controller/Component/Auth'); | |
class User extends AppModel { | |
public $actsAs = [ | |
'Acl' => ['type' => 'requester'] | |
]; |
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/Lib/Routing/Route/PageSlugRoute.php | |
// | |
App::uses('Page', 'Model'); | |
App::uses('CakeRoute', 'Routing/Route'); | |
class PageSlugRoute extends CakeRoute { | |
public function parse($url) { | |
$params = parent::parse($url); | |
if (empty($params)) return false; |
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 | |
class Category extends AppModel { | |
public $hasAndBelongsToMany = [ | |
'Item' => [ | |
'className' => 'Item', | |
'with' => 'CategoryItem', | |
'foreignKey' => 'category_id', | |
'associationForeignKey' => 'item_id' | |
] |
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
NPRI Number Facility Name Company Name Province City Address Postal Code Rural Address NAICS Name NAICS Data Link 2013 NOx Emissions (t) 2013 SOx Emissions (t) 2013 VOC Emissions (t) 2013 PM2.5 Emissions (t) 2013 PM10 Emissions (t) 2013 TPM Emissions (t) 2013 NH3 Emissions (t) 2013 CO Emissions (t) NPRI Data Link NAICS2 NAICS3 NAICS4 NAICS6 Latitude Longitude | |
0000003758 Hanlan Robb Gas Plant Direct Energy Marketing Ltd. Alberta Edson PO Box 6480 Road East T7E1T8 0 124.04 2182.45 9.97 2.02 2.02 -99.00 -99.00 74.63 http://www.ec.gc.ca/inrp-npri/donnees-data/index.cfm?do=facility_substance_summary&lang=En&opt_npri_id=0000003758&opt_report_year=2013 53.20450000 -116.81120000 | |
0000015596 Marten Hills 12-18-76-25w4 Canadian Natural Resources Limited Alberta N/A 0 21.90 26.16 -99.00 1.03 1.03 -99.00 -99.00 -99.00 http://www.ec.gc.ca/inrp-npri/donnees-data/index.cfm?do=facility_substance_summary&lang=En&opt_npri_id=0000015596&opt_report_year=2013 55.58560000 -117.89160000 | |
0000019534 Wapiti 12-03 Devon C |
OlderNewer