Skip to content

Instantly share code, notes, and snippets.

Avatar
🚲

Vlad Derzhavin avevlad

🚲
View GitHub Profile
@avevlad
avevlad / gist:dc8ba65c8e5b5367f879
Created Oct 19, 2015 — forked from ctcarrier/gist:9918087
Joda DateTime Serializer for ReactiveMongo
View gist:dc8ba65c8e5b5367f879
import reactivemongo.bson.{BSONHandler, BSONDateTime, Macros}
import org.joda.time.format.ISODateTimeFormat
import org.joda.time.{DateTime, DateTimeZone}
package object myApp {
DateTimeZone.setDefault(DateTimeZone.UTC)
implicit object BSONDateTimeHandler extends BSONHandler[BSONDateTime, DateTime] {
val fmt = ISODateTimeFormat.dateTime()
def read(time: BSONDateTime) = new DateTime(time.value)
View gist:1166a43e448fd007c10dca3e813c0be2
No such command: dasd
Commands:
build Build or rebuild services
config Validate and view the Compose file
create Create services
down Stop and remove containers, networks, images, and volumes
events Receive real time events from containers
exec Execute a command in a running container
help Get help on a command
View gist:8d0e773a1a22e8f9d2d1f404b66fb1b3
No such command: fake_command
Commands:
build Build or rebuild services
config Validate and view the Compose file
create Create services
down Stop and remove containers, networks, images, and volumes
events Receive real time events from containers
exec Execute a command in a running container
help Get help on a command