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 ProductView from 'appkit/templates/products/product' | |
export default Ember.View.extend({ | |
afterRenderEvent: function() { | |
$('.spinner .btn:first-of-type').on('click', function() { | |
view.incrementProperty('amount'); | |
}); | |
$('.spinner .btn:last-of-type').on('click', function() { | |
view.decrementProperty('amount'); | |
}); |
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
class Person | |
attr_accessor :name, :gender, :height, :weight | |
def initialize(name, gender, height, weight) | |
@name = name | |
@gender = gender | |
@height = height | |
@weight = weight | |
end | |
def cry | |
"woooo" |
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
class Rectangle | |
attr_accessor :width, :height | |
def initialize(width, height) | |
@width = width | |
@height = height | |
end | |
end | |
class Square < Rectangle | |
def initialize(length) |
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
require 'pry' | |
class Car | |
attr_reader :model, :valve | |
attr_writer :passenger | |
def initialize(model, valve) | |
@model = model | |
@engine = Engine.new(valve) | |
end | |
def run | |
puts "wowowowo" |
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
require 'pry' | |
class Car | |
attr_reader :model, :valve | |
def initialize(model, valve) | |
@model = model | |
@engine = Engine.new(valve) | |
end | |
def run | |
puts "wowowowo" | |
end |
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
This a gist file |
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
This a gist file |
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
This is a gist |
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
This is a gist |
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
This is a gist |
NewerOlder