Skip to content

Instantly share code, notes, and snippets.

@hiraiva
Last active April 26, 2016 04:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hiraiva/e37844fbae3b858efcab7701d86c718f to your computer and use it in GitHub Desktop.
Save hiraiva/e37844fbae3b858efcab7701d86c718f to your computer and use it in GitHub Desktop.
市ヶ谷Geek★Night #7 LT順の抽選用スニペット
def lotteryForGeekNight = {
val random = new scala.util.Random(new java.security.SecureRandom())
val entries = Seq(
"【大名】Fringe81様「型で仕様を表現する際に最低限知っておきたいこと」",
"【大名】TIS様「Akkaを使ったスケーラブルなLINE Bot」",
"【大名】VOYAGE GROUP様「頑張らないScala」",
"【大名】CyberZ様「社内のScala戦士を増やせ!(仮)」",
"【大名】NYLE様「十人十色のScalaの始め方」",
"【大名】ドワンゴ様「株式会社ドワンゴにおけるScala教育の現状」",
"【大名】TECH TO VALUE様「ロジックを型で表現する」",
"【大名】リクルートマーケティングパートナーズ様「いろんなところでScala Compile」",
"【大名】オプト「3ヶ月間Scalaと付き合って感じた事 ……という発表を想定していたのですが」",
"【将軍】Marverick様「ScalaでWebAPIラッパーを作る」",
"【将軍】セプテーニオリジナル様「Introduction of ScalaTest 〜ScalaTest移行への手引き〜」",
"【将軍】チャットワーク様「未定」"
)
random.shuffle(entries).zipWithIndex.map { case (s, i) => s"LT${i + 1}: $s" }
}
lotteryForGeekNight.foreach(println)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment