I hereby claim:
- I am muuki88 on github.
- I am muki (https://keybase.io/muki) on keybase.
- I have a public key whose fingerprint is ADDD 9B3B 0F47 EAD3 6D9B C1B9 59B7 C730 340E 30A7
To claim this, I am signing this object:
| private static FloatMatrix multiply(FloatMatrix A, FloatMatrix B, boolean local) throws IOException { | |
| if (A.getColumnDimension() != B.getRowDimension()) { | |
| throw new IllegalArgumentException("Matrix inner dimensions must agree."); | |
| } | |
| CLContext context = JavaCL.createBestContext(); | |
| CLQueue queue = context.createDefaultQueue(); | |
| int resultLength = A.getRowDimension() * B.getColumnDimension(); | |
| Pointer<Float> aPtr = matrixToPointer(A); |
| import scala.concurrent._ | |
| import scala.concurrent.duration._ | |
| import scala.concurrent.ExecutionContext.Implicits._ | |
| import scala.util.{ Success, Failure } | |
| import akka.actor._ | |
| import akka.pattern.{ after, ask, pipe } | |
| import akka.util.Timeout | |
| object LogSearch extends App { |
| // API proposal # 1 | |
| lazy val root = project(file(".") | |
| .enablePlugins(SbtNativePackager, JavaServerArchetype) | |
| .settings( | |
| "maintainer" in Debian := "Your Name <your.name@your-company.com" | |
| ) | |
| ) | |
| // Implementation may look like | |
| object SbtNativePackager extends AutoPlugin |
I hereby claim:
To claim this, I am signing this object:
made with esnextbin
| import com.twitter.app.App | |
| object MyApp extends App { | |
| def main() { | |
| println("Hello, World") | |
| } | |
| } |
| import com.twitter.app.App | |
| object MyApp extends App { | |
| // parses an integer from the "-port" flag. | |
| // Finagle already provides an implicit Flaggable typeclass for Int | |
| // usage: -port 9000 | |
| val port = flag[Int]("port", 8080, "port this server should use") | |
| // parses an Env trait. See typeclass below |
| namespace * net.gutefrage.temperature.thrift | |
| /** | |
| * temperature in celisus and timestamp in UTC milliseconds | |
| */ | |
| struct TemperatureDatum { | |
| 1: i32 celsius, | |
| 2: i64 timestamp | |
| } |
| import net.gutefrage.temperature.thrift._ | |
| import com.twitter.finagle.ThriftMux | |
| // this is the raw implementation with the twitter Future based API | |
| val service = new TemperatureService.FutureIface { | |
| override def add(datum: TemperatureDatum): Future[Unit] = ??? | |
| override def mean(): Future[Double] = ??? | |
| } |
| package net.gutefrage | |
| import com.twitter.app.App | |
| import com.twitter.conversions.time._ | |
| import com.twitter.finagle.{ThriftMux} | |
| import com.twitter.finagle.util.DefaultTimer | |
| import com.twitter.util.{Await, Future} | |
| import net.gutefrage.temperature.thrift._r | |
| /** |