sudo update-alternatives --install /usr/bin/editor editor (which vim) 100
-
[初心者向け] 図解まるわかり ネットワークの仕組み https://www.amazon.co.jp/dp/B07FTHYKGV/ref=cm_sw_r_tw_dp_U_x_r93rEbX0NQKAV
-
[初心者向け] TCP/IPの絵本 第2版 ネットワークを学ぶ新しい9つの扉 https://www.amazon.co.jp/dp/B07DZZ2DFQ/ref=cm_sw_r_tw_dp_U_x_Z.3rEbFG2KS2Q
-
[中級〜上級者向け] [試して理解]Linuxのしくみ ~実験と図解で学ぶOSとハードウェアの基礎知識 https://www.amazon.co.jp/dp/477419607X/ref=cm_sw_r_tw_dp_U_x_sc4rEbHE4YJJ7
- Makefile と .github/workflows をコピる。
- Makefile の BIN と VERSION_PATH を書き換える(必要があれば)
- main に -v 等でバージョンを吐くコードを足す。これは mmv の main.go を参考に
あとは全部 push。git tag vX.X.X したらクロスコンパイルされたバイナリが GitHub Release にアップロードされる。 https://github.com/itchyny/mmv/blob/master/Makefile
手元では 123ci.bat というバッチコマンドを用意しています。
This file contains hidden or 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
document.getElementById('gorilla').addEventListener("paste", e => { | |
e.clipboardData.files[0].arrayBuffer().then(b => { | |
fs.writeFile(path.join(__dirname, "gorilla.png"), new Buffer(b), err => { | |
if (err) { | |
console.log(err) | |
} else { | |
console.log("ウホウホ") | |
} | |
}) | |
}) |
This file contains hidden or 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
const app = new Vue({ | |
el: '#app', | |
data: { | |
}, | |
methods: { | |
get(file_name) { | |
req = window.indexedDB.open("mycache", 1) | |
req.onsuccess = event => { | |
const db = event.target.result | |
const idx = db.transaction("mycache", "readwrite").objectStore("mycache").index("file_name") |
This file contains hidden or 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 main | |
import ( | |
"fmt" | |
"log" | |
"golang.org/x/sys/unix" | |
) | |
func main() { |
This file contains hidden or 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
function! s:comment(obj, timer) abort | |
let winid = popup_create(a:obj.text, #{ | |
\ col: &columns - 40, | |
\ line: rand(srand()) % &lines, | |
\ minwidth: strlen(a:obj.text), | |
\ maxwidth: 40, | |
\ tabpage: -1, | |
\ zindex: 300, | |
\ }) |