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
- apt_key: | |
url: https://repo.varnish-cache.org/GPG-key.txt | |
- apt_repository: | |
repo: deb https://repo.varnish-cache.org/ubuntu/ {{ ansible_distribution_release }} varnish-4.1 | |
filename: varnish-cache | |
- apt: | |
update_cache: yes | |
name: varnish |
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
-module(mwpastore_week1). | |
-export([area/1, perimeter/1, enclose/1, bits/1]). | |
area({square, L}) -> | |
L * L; | |
area({rectangle, H, W}) -> | |
H * W; | |
area({circle, R}) -> | |
math:pi() * R * R; | |
area({triangle, A, B, C}) -> |
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
-module(mwpastore_week2). | |
-export([ | |
shunt/2, reverse/1, | |
join/2, concat/1, | |
member/2, | |
msort/1, qsort/1, isort/1, | |
perms/1 | |
]). | |
shunt([], Ys) -> Ys; |
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 Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle', | |
receivedArg: null, | |
save(arg) { | |
return this.set('receivedArg', `-->${arg}<--`); | |
} |
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 Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle' | |
}); |
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 Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle' | |
}); |
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 Ember from 'ember'; | |
import computed from 'ember-macro-helpers/computed'; | |
const Foo = Ember.ArrayProxy.extend({ | |
content: [], | |
expected: computed('content.@each.qux', content => JSON.stringify({ content })), | |
actual: computed('@each.qux', content => JSON.stringify({ content })) | |
}); |
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 Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle' | |
}); |
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
module.exports = { | |
// .. | |
rules: { | |
'arrow-parens': [2, 'as-needed', { requireForBlockBody: true }], | |
// .. | |
} | |
// .. | |
} |
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 Model from 'ember-data/model'; | |
import { validator } from 'ember-cp-validations'; | |
import attr from 'ember-data/attr'; | |
import buildValidations from '../utils/build-validations'; | |
const ValidationsMixin = buildValidations({ | |
street: { | |
deferred: true, // N.B. | |
validators: [ |