よく忘れるやつ
$ git checkout branch_b
$ git merge branch_a| -- |A @'Trie' a b@ is a map with keys of type @[a]@ and values of type @b@. | |
| data Trie a b = Fork (Maybe b) (Map a (Trie a b)) | |
| deriving (Show, Eq) | |
| instance (Ord a, Arbitrary a, Arbitrary b) => Arbitrary (Trie a b) where | |
| arbitrary :: Gen (Trie a b) | |
| arbitrary = sized $ \n -> if n == 0 -- We interpret the size n as maximum number of values | |
| -- stored in the trie. | |
| then return empty -- If the n == 0, the trie must be empty. |
| @ def foo[T: scala.reflect.ClassTag](obj: Any): Unit = obj match { | |
| case t: T => println(t.getClass.getName) | |
| case _ => println("ng") | |
| } | |
| defined function foo | |
| @ foo[Int](1) | |
| java.lang.Integer | |
| <head> | |
| <title>Spin radio button</title> | |
| <link rel="stylesheet" href="style.css"> | |
| </head> | |
| <body> | |
| <div class="forms-area"> | |
| <h3>性別</h3> | |
| <div class="classic-area"> | |
| <div class="" ><input type="radio" name="classic-gender" value="1"> 男性</div> | |
| <div class="" ><input type="radio" name="classic-gender" value="2"> 女性</div> |
いつもいつもいつもRe:VIEWの記法に悩んでぐぐってしまう皆さんへ送るチートシートです。
| 名称 | ルール | 概要・備考 |
|---|---|---|
| 段落 | 1行以上の空行をはさむと別の段落になる | HTMLでいうP |
| 見出し | =ではじまる行 | =の個数で、章・節・項・段という感じで増えます。HTMLで言うH1, H2, H3, H4, H5 |