Hi there!
The docker cheat sheet has moved to a Github project under https://github.com/wsargent/docker-cheat-sheet.
Please click on the link above to go to the cheat sheet.
| /** @jsx React.DOM */ | |
| 'use strict'; | |
| // Components wrapping Twitter Bootstrap stuff | |
| // | |
| var BSNames = { | |
| // This isn't exhaustive. Need to think through what should go here. Should | |
| // be exclusive. | |
| bsClass: {'column': 'col', 'button': 'btn', 'btn-group': 'btn-group', 'label': 'label', |
| import scala.language.higherKinds | |
| trait Functor[F[_]] { | |
| def map[A, B](fa: F[A])(f: A => B): F[B] | |
| } | |
| object Functor { | |
| def apply[F[_], A, B](fa: F[A])(f: A => B)(implicit F: Functor[F]): F[B] = | |
| F.map(fa)(f) | |
| } |
| object Test extends App { | |
| import DefaultJsonProtocol._ | |
| trait ToLowerCase | |
| object ToLowerCase { | |
| def apply(str: String): String with ToLowerCase = str.toLowerCase.asInstanceOf[String with ToLowerCase] | |
| implicit val strWithToLowerCaseFormat: JsonFormat[String with ToLowerCase] = | |
| new JsonFormat[String with ToLowerCase] { | |
| def write(obj: String with ToLowerCase): JsValue = JsString(obj) |
Hi there!
The docker cheat sheet has moved to a Github project under https://github.com/wsargent/docker-cheat-sheet.
Please click on the link above to go to the cheat sheet.
| #!/bin/sh | |
| # RWW.IO Web app deployer. Simply run `sh deploy.sh` inside your Web app dir and follow the steps. | |
| CERTCMD="" | |
| # get target URI | |
| read -p "Please provide the URI of the target dir (ex: http://example.org/apps/myapp/): " HOST | |
| if [ "$HOST" = "" ] | |
| then |
| package Vect | |
| import scala.language.higherKinds | |
| sealed trait Nat | |
| sealed trait Z extends Nat | |
| sealed trait S[N <: Nat] extends Nat | |
| trait Exists[A, +B[_ <: A]] { | |
| type fst <: A |
| package play.api.libs.ws | |
| import play.api.libs.iteratee.{Enumeratee, Concurrent, Enumerator} | |
| import play.api.libs.concurrent.Execution.Implicits._ | |
| import com.ning.http.client._ | |
| import com.ning.http.client.AsyncHandler.STATE | |
| import play.api.Logger | |
| import scala.concurrent.{Future, Promise} |
| package deiko | |
| import java.nio.charset.Charset | |
| import java.util.concurrent.CancellationException | |
| import org.jboss.netty.buffer.ChannelBuffers | |
| import org.jboss.netty.channel.{ Channel, ChannelFuture, ChannelFutureListener } | |
| import org.jboss.netty.handler.codec.http.{ DefaultHttpChunk, HttpChunk } | |
| import scalaz.stream.{ Process, process1, processes } | |
| import scalaz.concurrent.Task | |
| import Process.{ Process1, Sink } |
| class Outer { | |
| class Inner | |
| type Type | |
| } | |
| trait Trait | |
| object Object extends Outer { | |
| val inner = new Inner | |
| } | |
| class OuterP[A] { | |
| class InnerP[B] |