Skip to content

Instantly share code, notes, and snippets.

@stp-che
stp-che / Dockerfile
Created October 3, 2018 11:12 — forked from RoyalIcing/Dockerfile
Rails 5.1 Dockerfile
FROM ruby:2.4-alpine
ENV PATH /root/.yarn/bin:$PATH
RUN apk update && apk upgrade && \
apk add --no-cache bash git openssh build-base nodejs tzdata
RUN apk update \
&& apk add curl bash binutils tar gnupg \
&& rm -rf /var/cache/apk/* \
@stp-che
stp-che / SlickTraits.scala
Created January 18, 2017 07:25 — forked from dragisak/SlickTraits.scala
Composing Slick tables as traits in Play!
import javax.inject.{Inject, Singleton}
import play.api.db.slick.DatabaseConfigProvider
import slick.backend.DatabaseConfig
import slick.driver.JdbcProfile
import scala.concurrent.Future
/*
* The problem we are trying to solve here is how to have one trait per Slick table definition.