Skip to content

Instantly share code, notes, and snippets.

Ember.ObservableObjectProxy = Ember.Object.extend({
init: function() {
this._super();
Ember.defineProperty(this, 'properties');
this.set('properties', {});
},
unknownProperty: function(property) {
return this.get('properties.'+property);
},
Playlists
Grunge Rock
===========
Trophy Wife It Comes In Waves…(Neil Young)
Dead Confederate The Rat
Indie/Folk
==========
Josh Ritter The Temptation of Adam
// 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.
# 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
<?php
if( mail("pzuraq@gmail.com", "Test email from PHP", "msmtp as sendmail for PHP") )
echo "it works!";
else
echo "fail!";
?>
'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});
/*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(){
/*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(){
App.InventoryReviewController = Ember.ArrayController.extend({
needs: ["inventory"],
inventoryBinding: 'controllers.inventory',
addVehicle: function(vehicle) {
vehicle.set('active', true);
}
});
/*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(){