Skip to content

Instantly share code, notes, and snippets.

@firehooper
firehooper / postal-codes.json
Last active June 2, 2022 20:26 — forked from jamesbar2/postal-codes.json
Global postal codes regex formats
[{
"Note": "The first two digits (ranging from 10–43) correspond to the province, while the last two digits correspond either to the city/delivery zone (range 01–50) or to the district/delivery zone (range 51–99). Afghanistan Postal code lookup",
"Country": "Afghanistan",
"ISO": "AF",
"Format": "NNNN",
"Regex": "^\\d{4}$"
}, {
"Note": "With Finland, first two numbers are 22.",
"Country": "Åland Islands",
"ISO": "AX",
package printtextlocations;
/*
<dependency>
<groupId>org.apache.pdfbox</groupId>
<artifactId>pdfbox</artifactId>
<version>2.0.11</version>
</dependency>
*/
@firehooper
firehooper / AutoProductFormat.scala
Last active March 8, 2017 19:35 — forked from guersam/AutoProductFormat.scala
Macro-based json format generator for spray-json (https://github.com/spray/spray-json)
package spray.json
import spray.json.{DefaultJsonProtocol, RootJsonFormat}
import scala.reflect.macros.blackbox.Context
trait AutoProductFormat extends DefaultJsonProtocol {
implicit def jsonFormat[T <: Product]: RootJsonFormat[T] = macro AutoProductFormatMacro.autoProductFormatMacro[T]
}
# Container running Event Store
#
# VERSION 0.1
FROM ubuntu
MAINTAINER Alexander "iam.asm89@gmail.com"
# make sure the package repository is up to date
RUN apt-get update
# install packages required to build mono and the eventstore