Windowsではテキストエディタに「Mery」を利用しているので、Macにもインストールしてみる。
省略...
brew update
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var x = 10; | |
var lazyInt = Lazy.New( () => x + 1 ); | |
x = 20; | |
Console.WriteLine("value: " + lazyInt.Value); // print => value: 21 |
// Scala2.10.0のDependent method typesと型クラスを組み合わせた『The Magnet Pattern』がヤバい件 | |
// http://yuroyoro.hatenablog.com/entry/2013/01/23/192244 | |
// 共通 | |
trait Magnet[A] { | |
type Result = A | |
def f(): Result | |
def apply(): Result = f | |
} |
object Application extends Controller with FilterController { | |
def ValidateFilter = Filter { request => | |
val isValid = // なんかのバリデーション処理 | |
if (isValid) continue | |
else BadRequest | |
} | |
def index = Action { | |
Ok("index") |
<p id="hello">Hello world!</p> |
package scalafx.scene.layout | |
import scalafx.scene.Node | |
trait InAnchorPane { self: Node => | |
def topAnchor: Double = AnchorPane.getTopAnchor(self) | |
def topAnchor_=(v: Double) { | |
AnchorPane.setTopAnchor(self, v) | |
} |
** Invoke test (first_time) | |
** Invoke base_test (first_time) | |
** Execute base_test | |
C:/Users/asamizu_kengo/dev/lib/ruby/ruby-1.9.3-p362-i386-mingw32/bin/ruby.exe -I"lib;test" -I"C:/Users/asamizu_kengo/dev/lib/ruby/ruby-1.9.3-p362-i386-mingw32/lib/ruby/gems/1.9.1/gems/rake-10.1.0/lib" "C:/Users/asamizu_kengo/dev/lib/ruby/ruby-1.9.3-p362-i386-mingw32/lib/ruby/gems/1.9.1/gems/rake-10.1.0/lib/rake/rake_test_loader.rb" ""test\config.rb"" | |
-------------------------------------------------------------------------------- | |
RR deprecation warning: RR now has an autohook system. You don't need to | |
`include RR::Adapters::*` in your test framework's base class anymore. | |
-------------------------------------------------------------------------------- | |
Run options: |
keycode 97 = underscore backslash underscore backslash |
// らびたろちゃんは『0、6、0、7』をつかって10にしてください。 http://shindanmaker.com/217387 | |
List(0, 6, 0, 7) | |
.reverse | |
.map(x => List(x).zipWithIndex.map{case (y, i) => y.toString + i.toString}) | |
.map(_.mkString.toInt) | |
.reduce((z, n) => z - n) | |
// => 10 |
@echo off | |
echo %1 | |
exit /b %errorlevel$ |