Skip to content

Instantly share code, notes, and snippets.

Avatar

Hung whatvn

View GitHub Profile
@phemmer
phemmer / main_test.go
Created Apr 22, 2015
go bcrypt benchmark
View main_test.go
package main
import (
"testing"
"golang.org/x/crypto/bcrypt"
)
func BenchmarkBcrypt4(b *testing.B) {
benchBcrypt(b, 4)
@josdirksen
josdirksen / Boot.scala
Last active Oct 25, 2021
HTTP server using akka-http and akka-streams
View Boot.scala
import akka.actor._
import akka.http.model.HttpMethods._
import akka.http.model._
import akka.stream.scaladsl._
import akka.stream.scaladsl.Flow
import play.modules.reactivemongo.json.BSONFormats
import reactivemongo.bson.BSONDocument
import scala.concurrent.Future
import scala.concurrent.ExecutionContext.Implicits.global
import play.api.libs.json._