This file contains hidden or 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
#!/bin/sh | |
# Prune everything docker every day | |
docker volume prune -f && docker container prune -f && docker image prune -f |
This file contains hidden or 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 Vegetable { | |
constructor(name) { | |
this.name = name; | |
} | |
sayHey(){ | |
console.log("Sup' I'm a #{@name}") | |
} | |
} | |
class Tomato extends Vegetable { |
This file contains hidden or 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 Vegetable | |
def initialize(name) | |
@name = name | |
end | |
def say_hey | |
puts "Sup' I'm a #{@name}" | |
end | |
end | |
class Tomato < Vegetable |
This file contains hidden or 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 Ember from "ember"; | |
export Ember.Route.extend({ | |
model: function(){ | |
this.store.createRecord('user'); | |
}, | |
actions: { | |
save: function(){ | |
return this.get('currentModel').save() | |
.then(function(){ |
This file contains hidden or 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 Ember from "ember"; | |
export default Ember.Route.extend({ | |
model: function(){ | |
return this.store.createRecord('user'); | |
} | |
}); |
This file contains hidden or 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 DS from "ember-data"; | |
export default DS.Model.extend({ | |
name: DS.attr(), | |
email: DS.attr() | |
}); |
This file contains hidden or 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
<form {{action 'save' on=submit}}> | |
{{input value=email type="text"}} | |
{{input value=password type="password}} | |
<button type="submit">Submit</button> | |
</form> |
This file contains hidden or 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 Ember from 'ember'; | |
import config from './config/environment'; | |
var Router = Ember.Router.extend({ | |
location: config.locationType | |
}); | |
Router.map(function() { | |
this.route('signup'); | |
}); |
This file contains hidden or 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 Ember from "ember"; | |
export default Ember.Route.extend({ | |
model: function(){ | |
this.store.createRecord('user') | |
}, | |
actions: { | |
save: function(){ | |
return this.get('currentModel').save() | |
.then(function(){ |
NewerOlder