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/sh | |
java -jar $HOME/.sbt/launchers/0.13.9/sbt-launch.jar -Dsbt.main.class=sbt.ScriptMain -Dsbt.boot.directory=$HOME/.sbt/boot "$@" |
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
#!/usr/bin/env scalas | |
/*** | |
scalaVersion := "2.11.7" | |
resolvers += "sonatype releases" at "https://oss.sonatype.org/content/repositories/releases" | |
libraryDependencies += "org.skinny-framework" %% "skinny-micro-server" % "1.0.+" | |
*/ | |
import skinny.micro._ |
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 akka.actor._ | |
import scala.collection.mutable.ArrayBuffer | |
object Reaper { | |
case class WatchMe(ref: ActorRef) | |
} | |
abstract class Reaper extends Actor { | |
import Reaper._ |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace AtCoder { | |
class Cont014_4 { | |
static void Main(string[] args) { | |
string fst = Console.ReadLine(); |
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 std.stdio; | |
import std.math; | |
class Penta | |
{ | |
private: | |
pure uint pentagonal(uint n) { | |
return n*(3*n - 1)/2; | |
} |
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 com.ponkotuy; | |
import java.util.function.Consumer; | |
/** | |
* Created with IntelliJ IDEA. | |
* User: yosuke | |
* Date: 13/05/31 | |
* Time: 3:23 | |
* 実装付きinterface |
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.Await | |
import scala.concurrent.duration._ | |
import akka.actor._ | |
import akka.pattern.gracefulStop | |
object Main extends App { | |
implicit val duration = 5.seconds | |
val system = ActorSystem() | |
// 初期化時に、データを渡すAcotrRefを引数にして初期化する | |
val ref = { |
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.text.SimpleDateFormat | |
import java.util.{Calendar, Date} | |
import com.github.nscala_time.time.Imports._ | |
object Main extends App { | |
def timer[A](name: String)(f: => A): A = { | |
val start = System.currentTimeMillis() | |
val result = f | |
println(s"${name}: ${System.currentTimeMillis() - start}ms") |
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/sh | |
# 勇者の塔を自動プレイする簡易スクリプト | |
# ただしNexus6(1440x2560)に限る | |
# 必要なもの: adb | |
# 条件: 兵士タブを開いた状態にし、スクロールを一番上にしておくこと | |
while : | |
do |
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.io._ | |
import com.jpexs.decompiler.flash.SWF | |
import com.jpexs.decompiler.flash.tags.{ShowFrameTag, PlaceObject2Tag, DefineSpriteTag, DefineBitsJPEG3Tag} | |
import scala.collection.JavaConverters._ | |
object Main { | |
val LineRegex = """line(\d)""".r | |
def main(args: Array[String]) { |