Skip to content

Instantly share code, notes, and snippets.

@mururu
mururu / 無題.md
Last active August 3, 2018 03:16
無題

ちょっと前の話ですが、トレジャーデータという会社を辞めました。えぐいほどいい会社だし、全世界のIoTデータをさばくやつを作るのは技術者として死ぬほど楽しいんだろうなと思ったけど、僕はあるスタートアップに行くことにしました。

カンムという会社です。よろしくお願いします。

class ApiServer extends HttpApp {
protected val design: Design = bind[Design] // ApiServerの外部で定義されているDesginを参照したい
.bind[AtomicReference[ActorSystem]]
.toInstance(systemReference)
.bind[ActorSystem]
.toInstanceProvider[AtomicReference[ActorSystem]](_.get)
// snip
@grimrose
grimrose / Server.scala
Last active March 9, 2019 00:48
airframe-http-finagle(19.2.0) + zipkin-finagle-http(2.0.11) or finagle-opencensus-tracing(19.2.0) sample
import com.twitter.finagle.Http
import com.twitter.finagle.http.{ Request, Response }
import com.twitter.finagle.tracing.Tracer
import wvlet.airframe._
import wvlet.airframe.http.{ Endpoint, HttpMethod }
import wvlet.airframe.http.finagle.FinagleServer.FinagleService
import wvlet.airframe.http.finagle._
import wvlet.airframe.http.{ ControllerProvider, ResponseHandler, Router }
import wvlet.log.LogFormatter.SourceCodeLogFormatter
@grimrose
grimrose / ScalaFutureSupport.scala
Last active September 20, 2019 19:14
AirSpec(19.9.7) for Scala Future
package ninja.grimrose.sandbox
import wvlet.airframe.SourceCode
import wvlet.airspec.AirSpec
import wvlet.airspec.spi.AssertionFailure
import scala.concurrent.{ExecutionContext, Future}
import scala.util.{Failure, Success}
trait ScalaFutureSupport { this: AirSpec =>

明日の下書き


これはなに

  • 高円寺.dev #3 用の資料 https://koenji.connpass.com/event/160886/
  • フロントエンド専門じゃない人向けの、フロントエンドの最先端〜やや未来の話です
  • このレイヤーでは Node.js を使うべき/使うと強いという部分がありますが、他言語を否定しているわけではありません。むしろ他言語でこのアーキテクチャを模倣してほしいという話です。
@xerial
xerial / karabiner-cursor-mode.json
Last active June 9, 2023 03:37
Karabiner Cursor Mode Setting. Put this file in ~/.config/karabiner/assets/complex_modifications/
{
"title": "Cursor-mode layout for saving your little fingers",
"rules": [
{
"description": "Cursor-mode: Enter the cursor mode with left command click. i/j/k/l to arrows. Exit when ctrl/esc/enter/backspace or command+(any) is pressed.",
"manipulators": [
{
"conditions": [
{
"name": "cursor_layout",