Skip to content

Instantly share code, notes, and snippets.

Martin Zachrison cyberzac

Block or report user

Report or block cyberzac

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:f56d9d6bc9d4d7902316
Verifying I am +cyberzac on my passcard. https://onename.com/cyberzac
View keybase.md

Keybase proof

I hereby claim:

  • I am cyberzac on github.
  • I am cyberzac (https://keybase.io/cyberzac) on keybase.
  • I have a public key whose fingerprint is A923 43FE 2AF1 2F8B 6F1E 287C 127F 1B27 1F59 AA02

To claim this, I am signing this object:

@cyberzac
cyberzac / ScalaRouteBuilder
Created Mar 18, 2011
Apache Camel RouteBuilder in the Scala DSL
View ScalaRouteBuilder
def createRouteBuilder(minaPort: Int, xmppAddress: String): ScalaRouteBuilder = new ScalaRouteBuilder {
val xmpp = "xmpp://" + xmppAddress
val mina = "mina:tcp://localhost:%s?textline=true&sync=true&encoding=UTF-8".format(minaPort)
mina process((exchange:Exchange) => {
val translated = chainedTranslator.translate(exchange.in.toString)
exchange.out = translated
})
@cyberzac
cyberzac / ScalaRouteBuilder
Created Mar 18, 2011
Apache Camel RouteBuilder in the Scala DSL
View ScalaRouteBuilder
def createRouteBuilder(minaPort: Int, xmppAddress: String): ScalaRouteBuilder = new ScalaRouteBuilder {
val xmpp = "xmpp://" + xmppAddress
val mina = "mina:tcp://localhost:%s?textline=true&sync=true&encoding=UTF-8".format(minaPort)
mina process((exchange:Exchange) => {
val translated = chainedTranslator.translate(exchange.in.toString)
exchange.out = translated
})
You can’t perform that action at this time.