R's Workshop

Difference between Docker Save and Export

Docker 提供兩種輸出 image/container 成壓縮檔的方式: save/load 和 export/import 主要的差異是: docker save 將 docker image (包含 parent layers, tags, versions) 轉成壓縮檔, docker load 將還原所有的 layers 資訊 docker export 將 docke... Read more

Array Initialization with Named Initializers

C99 之後提供了 named initializers 功能. 在初始化 array 時, 可以透過 enumuraion constant 來設定 array 特定欄位的初始值. 但要注意的是, C++ 不支援此功能. Read more

Use Vim to Diff Two Directories

Command line 用習慣了, 所以想在 Vim 上做出像是 Meld 一樣的 directory diff 功能. 基本上只要裝一個 dirdiff vim plugin, 就可以做到囉. Read more

Copy and Paste between Vim and Clipboard

工程師最常用的按鍵就是 Ctrl-C 和 Ctrl-V (誤). 為了快速地把從 Google / Stack Overflow 把找到的東西貼進 vim. 當然也要動點手腳讓 vim 可以存取系統的剪貼簿 (clipboard). Read more

Inside .git Direcroty

紀錄一篇簡介 .git/ 下的檔案與目錄功能的文章. 最近在思考要如何備份最小的 .git/ 目錄時會用到 Read more