Skip to content

Instantly share code, notes, and snippets.

View trK54Ylmz's full-sized avatar

Tarık Yılmaz trK54Ylmz

View GitHub Profile
@afrikaan-official
afrikaan-official / app.conf
Created October 5, 2017 16:44
Griffin project's config file
appname = central-api
httpport = 8080
runmode = dev
autorender = false
copyrequestbody = true
EnableDocs = true
RedisHost=172.17.0.2
RedisPort=6379
MySQL=readonly:readonly*34@tcp(146.185.158.165:3306)/container
@trK54Ylmz
trK54Ylmz / hadoop-install.sh
Last active October 20, 2019 06:37
hadoop-2.7.3 with native libraries on Macos
# install prerequisties
xcode-select --install
brew tap homebrew/versions
brew install cmake maven openssl protobuf250 snappy
# download hadoop
cd /tmp
git clone https://github.com/apache/hadoop.git
cd hadoop
git checkout rel/release-2.7.3
@stoikerty
stoikerty / javascript.js
Last active May 31, 2020 14:02
Gulp + Browserify - multi-file recipe (JSX, coffeescript, uglify & sourcemaps)
// Config that can be loaded externally, similar
// to [gulp-starter](https://github.com/greypants/gulp-starter)
var src = './app/assets';
var dest = './public';
var config = {
javascript: {
src: src + '/javascript_app/**/*.{js,coffee}',
rootFiles: [
{
@tixxit
tixxit / EditDistance.scala
Created September 28, 2011 03:10
Short Levenshtein distance implementation in Scala
package net.tixxit.levenshtein
import scala.math.min
object EditDistance {
def editDist[A](a: Iterable[A], b: Iterable[A]) =
((0 to b.size).toList /: a)((prev, x) =>
(prev zip prev.tail zip b).scanLeft(prev.head + 1) {
case (h, ((d, v), y)) => min(min(h + 1, v + 1), d + (if (x == y) 0 else 1))
}) last