Skip to content

Instantly share code, notes, and snippets.

View syedahmedhussaini's full-sized avatar

Syed Hussaini syedahmedhussaini

View GitHub Profile
@syedahmedhussaini
syedahmedhussaini / Goan fish
Created April 24, 2013 20:41
Super simple goan fish
Coriander seeds
Sabit zeera seeds
5-10 dried chilli peppers
½ tsp halthi
Salt or garlic salt
Black pepper
4 garlic cloves - crushed
3 garlic cloves - chopped
ginger - grated
1tsp mint chutney
//------------------------------------------
//- Model ----------------------------------
// The model is abstract and has no knowledge of the presentation layer.
var Product = Backbone.Model.extend({
initialize: function(){
this.set({price : 0, pricePlusTax : 0});
this.on("change:price", function(){
this.set({pricePlusTax: this.get('price') * 1.2})
})
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});