- upgrade windows 10 to 19041+
- install wsl
# Step 1: https://www.python.org/downloads/ => Install Python 3 | |
# Step 2: `python -m pip install --upgrade pip` => Update the pip | |
# Step 3: `pip install opencv-python` => Install opencv | |
# Step 4: `pip install opencv-contrib-python` => Install opencv contrib for non-free modules `xfeatures2d` | |
import numpy as np | |
import cv2 | |
dir | where {!$_.PsIsContainer -and # 選不是 dir | |
$_.Extension -eq ".jpg"} # 選.jpg | |
| select-object name # 只取名字 | |
| ft -HideTableHeaders # 把上面的 Name ===== 說明標題 hide 起來 | |
> 1.txt # 存在旁邊的 1.txt |
# Const a b 與 Identity a 是兩個極端 | |
Const a b = F b: | |
- 實體 b 是誰,完全不重要。 | |
- 不管怎樣,我都只要 (容器/F/Const a) 的 a。 | |
Identity b = F b | |
- Context/Side Effect 完全不重要。 | |
- 不管怎樣 (容器/F/Identity) 怎樣算,我都只要內容物的 b。 |
#include <windows.h> | |
#include <cstdio> | |
#include <iostream> | |
#include <atlbase.h> | |
#include <atlstr.h> | |
#include <atlconv.h> | |
#include <string> | |
#include <codecvt> | |
#include <xlocbuf> |
#include <iostream> | |
#include <vector> | |
#include <iterator> | |
#include <algorithm> | |
#include <functional> | |
#include <iomanip> | |
#include <string> | |
// bubble sort |
"C:\\Program Files\\Oracle\\VirtualBox\\VBoxManage.exe" modifyhd "D:\\path\\to\\your\\vm\\file.vdi" --resize 30000
expr = do -- A chain of >>=, flatMap, chain the a -> T b | |
a <- [1, 2] -- The init T a, T a :: Array Int, make T is Array | |
b <- [Just 4] -- f, f :: Int(a) -> Array Maybe Int, | |
pure unit -- g, g :: Maybe Int(b) -> Array Unit | |
c <- ["a","b"] -- h, h :: Unit -> Array String | |
empty -- i, i :: String(c) -> Array Unit | |
d <- [5, 6] -- j, j :: Unit -> Array Int | |
[7, 8] -- k, k :: Int(d) -> Array Int | |
pure $ d -- l, l :: Int(ignored) -> Array Int | |
{- |