- 2014/07/13 Scalaz勉強会
- @gakuzzzz
- 中村 学
- 株式会社Tech to Value
- play2-auth が scala-awesomeに載りました
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
# こんな感じで書ける | |
- a | |
- b | |
- c |
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 | |
## =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= | |
## -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- USAGE -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- | |
## | |
## ./network-rate.sh eth0 | |
## | |
## =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= | |
tx_bytes=0 |
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
c:\> md c:\data\db |
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
{ | |
"cmd": ["coffee.cmd", "-c", "$file"] | |
, "selector": "source.coffee" | |
, "encoding": "cp932" | |
, "working_dir": "$project_path" | |
, "variants": | |
[ | |
{ | |
"name": "Run", | |
"cmd": ["coffee.cmd", "$file"] |
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
192.168.59.103 | |
connecting... | |
## . | |
## ## ## == | |
## ## ## ## === | |
/""""""""""""""""\___/ === | |
~~~ {~~ ~~~~ ~~~ ~~~~ ~~ ~ / ===- ~~~ | |
\______ o __/ | |
\ \ __/ | |
\____\______/ |
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 org.scalatest._ | |
import org.scalatest.matchers.ShouldMatchers | |
class HelloSpec extends FlatSpec with ShouldMatchers { | |
"Hello" should "have tests" in { | |
var result = 1 + 1 | |
println(result) | |
result should be === 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
import org.scalatest._ | |
import com.example.Calculate | |
class AddSpec extends FlatSpec with MustMatchers { | |
"Calculate" should "addメソッドの 1 + 2 = 3" in { | |
val calculate = new Calculate() | |
val result = calculate.add(1, 2) | |
result must be === 3 | |
} | |
} |
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.example | |
object Hello { | |
def main(args: Array[String]): Unit = { | |
println("Bye, world!") | |
} | |
} |
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
cd [プロジェクトのルートディレクトリ] |
NewerOlder