interface Foo {
}
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.net.{HttpURLConnection, URI, URL} | |
import sbt.plugins.IvyPlugin | |
import sbt.{AllRequirements, AutoPlugin, Keys, Logger, MavenRepository, Patterns, PluginTrigger, Plugins, Resolver, URLRepository} | |
import scala.collection.mutable | |
import scala.util.control.NonFatal | |
object RedirectHackPlugin extends AutoPlugin { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ peco-src | |
failed MSpanList_Insert 0x6b6000 0x1596717189b31 0x0 | |
fatal error: MSpanList_Insert | |
runtime stack: | |
runtime.throw(0x5f713b) | |
/usr/local/Cellar/go/1.3/libexec/src/pkg/runtime/panic.c:520 +0x69 | |
runtime.MSpanList_Insert(0x6105e8, 0x6b6000) | |
/usr/local/Cellar/go/1.3/libexec/src/pkg/runtime/mheap.c:618 +0x8a | |
MHeap_FreeLocked(0x60c5e0, 0x6b6000) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import scala.concurrent.{ExecutionContext, Future} | |
import scala.util.{Failure, Success} | |
import scalaz.std.scalaFuture._ | |
import scalaz.{ContT, Kleisli} | |
package object smt { | |
type FutureCont[A] = ContT[Future, A, A] | |
type DBActionz[A] = Kleisli[FutureCont, Context, A] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package foo | |
import akka.stream.ActorAttributes.SupervisionStrategy | |
import akka.stream.Attributes.name | |
import akka.stream.impl.Stages.DefaultAttributes.IODispatcher | |
import akka.stream.stage.{GraphStage, GraphStageLogic, InHandler} | |
import akka.stream.{Attributes, Inlet, SinkShape, Supervision} | |
import scala.annotation.tailrec | |
import scala.util.control.NonFatal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -s https://ip-ranges.amazonaws.com/ip-ranges.json | jq '[ .prefixes | .[] | select(.region=="ap-northeast-1") | select(.service=="EC2") | .ip_prefix ]' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
COMPANY_REMOTE=plucky | |
git fetch $COMPANY_REMOTE | |
git checkout master | |
git reset --hard $COMPANY_REMOTE/master | |
git merge --no-ff $COMPANY_REMOTE/develop |
foo.js をコンパイル
export default function () {
console.log('foo');
}
babel 5.8.29
http://www.haskell.org/haskellwiki/Emacs の適当訳
Emacs 用のパッケージやモジュールは数多くあります。 もっとも有名なものは haskell-mode, ghc-mod, Scion です。
Emacs は拡張性に富んだテキストエディタで mode と呼ばれるものを拡張し、キー入力をカスタマイズすることができます。 mode は Emacs Lisp (.el) 言語で書かれ、コマンドとキー入力が追加されます。 通常、mode はファイル拡張子 (.hs, .cabal など) に関連付けられた hook により自動的に有効になります。