Skip to content

Instantly share code, notes, and snippets.

@elderica
elderica / submarine.hs
Created January 11, 2012 16:46
Submarine Shooter
import System.IO.Unsafe (unsafePerformIO)
import System.IO (hFlush, stdout)
import System.Random (randomRIO)
import Control.Monad (foldM_)
import Data.Functor ((<$>))
import System.Exit (exitSuccess)
-- prerequisite
mapSize :: Int
mapSize = 9
@halcat0x15a
halcat0x15a / mathgirl.v
Created January 9, 2012 22:14
Coqの練習だよ。
Inductive P : Set :=
I : P
| PS : P -> P.
Fixpoint Padd (n m : P) : P :=
match n with
| I => PS m
| PS n' => PS (Padd n' m)
end.
@xuwei-k
xuwei-k / Main.scala
Created October 26, 2011 06:49
Scala から Clojure 使う
import clojure.lang.{RT,Compiler}
object Main{
def main(args:Array[String]){
println(Compiler.eval(RT.readString("(+ 1 2 3 4)")))
}
}