sudo pacman -Syy
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
set clipboard=unnamed | |
set hlsearch | |
noremap ; : | |
noremap : ; | |
noremap n nzz | |
noremap N Nzz | |
noremap j jzz | |
noremap k kzz | |
noremap gd gdzz |
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
open System | |
open FParsec | |
type Json = | |
| JInteger of int | |
| JFloat of float | |
| JString of string | |
| JBool of bool | |
| JArray of Json list | |
| JObject of Map<string, Json> |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>WebWorker</title> | |
</head> | |
<body> | |
<h1>WebWorker</h1> |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Document</title> | |
</head> | |
<body> | |
<h1>WebWorker</h1> |
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
{ | |
"editor.detectIndentation": false, | |
"editor.insertSpaces": false, | |
"window.zoomLevel": 0, | |
"editor.renderLineHighlight": "all", // 選択中の行を強調する | |
"workbench.colorCustomizations": { // カラーテーマに上書きする個別の設定 | |
"editor.background": "#121817", // エディタ背景色 | |
"editor.lineHighlightBackground": "#740ca0", // 選択している行の強調色 | |
}, |
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
object Main extends App { | |
val list = (1 to 10000).toVector | |
val start = System.currentTimeMillis() | |
val a = mapA(list)(_ * 2) | |
println(s"a elap = ${System.currentTimeMillis() - start}ms") | |
val start2 = System.currentTimeMillis() | |
val b = mapB(list)(_ * 2) | |
println(s"b elap = ${System.currentTimeMillis() - start2}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
trait Monoid[A] { | |
def op(a1: A, a2 : A): A | |
def zero: A | |
} | |
trait Foldable[F[_]] { | |
def foldRight[A, B](as: F[A])(z: B)(f: (A, B) => B):B | |
def foldLeft[A, B](as: F[A])(z: B)(f: (B, A) => B): B | |
def foldMap[A, B](as: F[A])(f: A => B)(mb: Monoid[B]):B |
NewerOlder