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 toBinaryString(number) { | |
// 8バイト(64ビット)のメモリ領域を確保 | |
let buffer = new ArrayBuffer(8); | |
// メモリ領域を浮動小数点数として読み書きできるようにするDataViewを作成 | |
let view = new DataView(buffer); | |
// 浮動小数点数の数値をバッファにセット | |
view.setFloat64(0, number); | |
let result = ''; | |
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
#!/bin/zsh | |
# Fetch changes from the remote repository and prune (delete) remote tracking branches that no longer exist on the remote | |
git fetch --prune && \ | |
# Display a list of local branches and their associated remote branches | |
git branch -vv | \ | |
# Extract lines related to deleted remote branches | |
grep ': gone]' | \ | |
# Extract branch names from the lines that were extracted | |
awk '{print $1}' | \ |
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
console.log("[1]"); | |
setTimeout(() => { | |
console.log("[7]"); | |
}); | |
Promise.resolve() | |
.then(() => { | |
console.log("[3]"); | |
}) |