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
services: | |
api: | |
build: | |
context: /path/to/my/repo/services/api | |
client: | |
build: | |
context: /path/to/my/repo/services/client | |
depends_on: | |
- api | |
- nginx |
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
val result: AsyncResult<MyData> = // ... | |
val viewState = result | |
.map { MyViewState.from(it) } | |
.onError(IOException::class) { | |
map { | |
if (cachedValue == null) { | |
failure(NoConnectionViewState) | |
} else { | |
success(cachedValue) |
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
view_user: function(user_id) { | |
app.tmpl.renderPage('view-user-tmpl', | |
new User().load(user_id, { | |
extensions: { | |
urlExtender: { edit: true } | |
}, | |
includes: { | |
blogs: true, | |
recent_posts: { | |
includes: { tags: 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
define([ | |
'core', | |
'util', | |
'viewmodels/geo/lat_lng' | |
], function(core, util, LatLng) { | |
var Destination = function(data) { | |
this.id = ko.observable(); | |
this.title = ko.observable(); |