Skip to content

Instantly share code, notes, and snippets.

View cyppan's full-sized avatar

Cyprien Pannier cyppan

View GitHub Profile
@cyppan
cyppan / ADTEnum.scala
Created February 3, 2015 12:52
Scala Enumeration alternative
import play.api.libs.json.{JsValue => PJsValue, JsString => PJsString, _}
import spray.json
import spray.json.{DeserializationException, JsString, JsValue, JsonFormat}
/**
* Enum alternative with Json marshallers for free (Play and Spray)
*
* credit: https://gist.github.com/atamborrino/1d992ebb942cd5518ca2
*
* Use:
@cyppan
cyppan / gist:3878866
Created October 12, 2012 11:52
Apache virtual host
<VirtualHost *:80>
ServerName jobeet2.lcl
DocumentRoot /var/www/jobeet2/web
<Directory /var/www/jobeet2/web>
Options -Indexes -MultiViews +FollowSymLinks
AllowOverride None
Order allow, deny
Allow from all