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
Ember.ObservableObjectProxy = Ember.Object.extend({ | |
init: function() { | |
this._super(); | |
Ember.defineProperty(this, 'properties'); | |
this.set('properties', {}); | |
}, | |
unknownProperty: function(property) { | |
return this.get('properties.'+property); | |
}, |
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
Playlists | |
Grunge Rock | |
=========== | |
Trophy Wife It Comes In Waves…(Neil Young) | |
Dead Confederate The Rat | |
Indie/Folk | |
========== | |
Josh Ritter The Temptation of Adam |
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
// verses.js - controller | |
import Ember from 'ember'; | |
import DS from 'ember-data'; | |
export default Ember.ObjectController.extend({ | |
actions: { | |
getAnotherVerse: function() { | |
// Here you need to understand a little bit about promises. A promise is | |
// asynchronous, so in you need to use .then() to get the value of the | |
// promise that is returned. |
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
# See /usr/share/postfix/main.cf.dist for a commented, more complete version | |
# Debian specific: Specifying a file name will cause the first | |
# line of that file to be used as the name. The Debian default | |
# is /etc/mailname. | |
#myorigin = /etc/mailname | |
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU) | |
biff = no |
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 | |
if( mail("pzuraq@gmail.com", "Test email from PHP", "msmtp as sendmail for PHP") ) | |
echo "it works!"; | |
else | |
echo "fail!"; | |
?> |
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
'use strict'; | |
/* http://docs.angularjs.org/#!angular.service */ | |
// Declare app level module which depends on filters, and services | |
angular.module('case', [ 'case.services' ]). | |
config(['$routeProvider', function($routeProvider) { | |
$routeProvider.when('/inventory', {templateUrl: 'partials/inventory.html', controller: InventoryCtrl}); | |
$routeProvider.when('/inventory/:currentPage', {templateUrl: 'partials/inventory.html', controller: InventoryCtrl}); | |
$routeProvider.when('/inventory/:currentPage/:_id', {templateUrl: 'partials/inventory.html', controller: InventoryCtrl}); |
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
/*global App*/ | |
window.App = Ember.Application.create(); | |
// Router | |
App.Router.map(function() { | |
this.resource('inventory', function(){ | |
this.route('review'); | |
this.resource('vehicle', { path: '/vehicle/:stock_no' }, function(){ |
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
/*global App*/ | |
window.App = Ember.Application.create(); | |
// Router | |
App.Router.map(function() { | |
this.resource('inventory', function(){ | |
this.route('review'); | |
this.resource('vehicle', { path: '/vehicle/:stock_no' }, function(){ |
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.InventoryReviewController = Ember.ArrayController.extend({ | |
needs: ["inventory"], | |
inventoryBinding: 'controllers.inventory', | |
addVehicle: function(vehicle) { | |
vehicle.set('active', 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
/*global App*/ | |
window.App = Ember.Application.create(); | |
// Router | |
App.Router.map(function() { | |
this.resource('inventory', function(){ | |
this.route('review'); | |
this.resource('vehicle', { path: '/vehicle/:stock_no' }, function(){ |
OlderNewer