| Service | SSL | status | Response Type | Allowed methods | Allowed headers |
|---|
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 slick.lifted.MappedTypeMapper | |
| import java.sql.Date | |
| import org.joda.time.DateTime | |
| import slick.lifted.TypeMapper.DateTypeMapper | |
| object DateTimeMapper { | |
| implicit def date2dateTime = MappedTypeMapper.base[DateTime, Date] ( | |
| dateTime => new Date(dateTime.getMillis), | |
| date => new DateTime(date) |
This guide assumes that:
- you already have an instance set up on GCP that you want to mount locally
- the GCP CLI (
gcloud) is installed on your local machine - you have authenticated locally to your google account
gcloud auth login
- make sure your gcloud config is correct for the instance you're trying to access:
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
| # (c) miraculixx, licensed as by the terms of WTFPL, http://www.wtfpl.net/txt/copying/ | |
| # License: DO WHATEVER YOU WANT TO with this code. | |
| # | |
| # THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR | |
| # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED | |
| # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | |
| # | |
| from io import StringIO | |
| from contextlib import contextmanager |