Skip to content

Instantly share code, notes, and snippets.

@daimatz
daimatz / Build.scala
Last active August 29, 2015 14:05
sbt assembly for Finatra application
import sbt._
import sbt.Keys._
import sbtassembly.Plugin.{MergeStrategy, assemblySettings, defaultMergeStrategy}
import sbtassembly.Plugin.AssemblyKeys.{assembly, mergeStrategy}
import sbtassembly.AssemblyUtils
object AppBuild extends Build {
lazy val app = Project(
id = "app",
base = file("app"),
@daimatz
daimatz / CityHash_1_0_3.java
Last active July 14, 2023 06:36
Java implementation of CityHash 1.0.3 that behaves as same hash function as BigQuery.
/*
* Copyright (C) 2012 The Guava Authors
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express