$ docker
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
var Dogs = function (name, breed, age, happiness, hunger, energy){ | |
var dog = {name : name, breed : breed, age : age, happiness : happiness, hunger : hunger, energy : energy}; | |
extend(dog, Dogs.methods) | |
return dog; | |
} | |
Dogs.methods = { | |
feed : function(food){ | |
if(this.hunger - food > 0) { | |
this.hunger -= food; |
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
var Dogs = function (name, breed, age, happiness, hunger, energy){ | |
var dog = Object.create(Dogs.prototype) | |
dog.name = name; | |
dog.breed = breed; | |
dog.age = age; | |
dog.happiness : happiness; | |
dog.hunger = hunger; | |
dog.energy = energy; | |
return dog; |
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
// pseudoclassical class | |
var Dogs = function (name, breed, age, happiness, hunger, energy){ | |
this.name = name; | |
this.breed = breed; | |
this.age = age; | |
this.happiness = happiness; | |
this.hunger = hunger; | |
this.energy = energy; | |
} |
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
{ | |
"font_size": 12, | |
"ignored_packages": | |
[ | |
"Vintage" | |
], | |
"draw_white_space": "all", | |
"ignored_packages": | |
[ | |
"Vintage" |
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
http://127.0.0.1:8000/reviews | |
{wasHelpful: 11, _id: "5bd3c9b573783bd6701f52f2", course: 1, body: "Excepturi quas quae odit facere. Et ipsa iure alia…mus. Quia omnis qui nisi voluptatem voluptas non.", author: "Kathlyn Wilkinson", …} |
maxvolovikov
I hereby claim:
- I am maxvolovikov on github.
- I am maxvolovikov (https://keybase.io/maxvolovikov) on keybase.
- I have a public key ASBDq3zuKG0ftRt8LV8CHO9yr3KnBRoyJ06j9OhmvZh8rwo
To claim this, I am signing this object:
I hereby claim:
- I am maxvolovikov on github.
- I am maxvolovikov (https://keybase.io/maxvolovikov) on keybase.
- I have a public key ASBDq3zuKG0ftRt8LV8CHO9yr3KnBRoyJ06j9OhmvZh8rwo
To claim this, I am signing this object: