Installing Supervisor on OS X is simple:
sudo pip install supervisor
This assumes you have pip. If you don't:
#!/usr/bin/env bash | |
# memusg -- Measure memory usage of processes | |
# Usage: memusg COMMAND [ARGS]... | |
# | |
# Author: Jaeho Shin <netj@sparcs.org> | |
# Created: 2010-08-16 | |
############################################################################ | |
# Copyright 2010 Jaeho Shin. # | |
# # | |
# Licensed under the Apache License, Version 2.0 (the "License"); # |
scalaVersion := "2.9.1" | |
resolvers += "typesafe" at "http://repo.typesafe.com/typesafe/releases" | |
libraryDependencies ++= Seq( | |
"play" %% "anorm" % "2.0-RC4", | |
"com.github.seratch" %% "scalikejdbc" % "[0.5,)", | |
"org.hsqldb" % "hsqldb" % "[2,)" | |
) |
expose_php = Off |
/** | |
* This interpolator can be evaluated in compile time, so you can use to generate | |
* constant strings (if all params are also constant) | |
* | |
* Works on Scala 2.10.2 | |
*/ | |
implicit class stripInterpolator(sc: StringContext) { | |
def strip(params: Any*) = macro stripMacro | |
} |
package akka.http.scaladsl | |
import java.io.File | |
import akka.http.scaladsl.unmarshalling.Unmarshal | |
import akka.util.ByteString | |
import scala.concurrent.duration._ | |
import akka.actor.ActorSystem |
A primer/refresher on the category theory concepts that most commonly crop up in conversations about Scala or FP. (Because it's embarassing when I forget this stuff!)
I'll be assuming Scalaz imports in code samples, and some of the code may be pseudo-Scala.
A functor is something that supports map
.
> compile | |
[info] Compiling 1 Scala source to /Users/pchiusano/Dropbox/projects/scalaz-stream/target/scala-2.11/classes... | |
[error] /Users/pchiusano/Dropbox/projects/scalaz-stream/src/main/scala/streams/Process1.scala:27: polymorphic expression cannot be instantiated to expected type; | |
[error] found : [F(in method run)(in method run)(in method run)(in method run)(in method run)(in method run)(in method run)(in method run)[_], I2(in method run)(in method run)(in method run)(in method run)(in method run)(in method run)(in method run)(in method run) <: I]streams.Stream.Handle[F(in method run)(in method run)(in method run)(in method run)(in method run)(in method run)(in method run)(in method run),I] => streams.Pull[F(in method run)(in method run)(in method run)(in method run)(in method run)(in method run)(in method run)(in method run),O,streams.Stream.Handle[F(in method run)(in method run)(in method run)(in method run)(in method run)(in method run)(in method run)(in method run),I2(in method run)(in method run)(in |
alias youtube-dl-playlist="youtube-dl --ignore-errors --output '%(playlist)s/%(playlist_index)s- %(title)s.%(ext)s'" |
/** | |
* Single-file play framework application! Make sure everything | |
* works, as this is the test case that un-earthed #371 | |
*/ | |
load.ivy("com.typesafe.play" %% "play" % "2.5.0") | |
load.ivy("com.typesafe.play" %% "play-netty-server" % "2.5.0") | |
load.ivy("org.scalaj" %% "scalaj-http" % "2.2.1") | |
@ |