Skip to content

Instantly share code, notes, and snippets.

View nekonado's full-sized avatar
🥨
🤤

Keisuke Ozeki nekonado

🥨
🤤
View GitHub Profile
// ビット列を取得するための関数
function toBinaryString(number) {
// 8バイト(64ビット)のメモリ領域を確保
let buffer = new ArrayBuffer(8);
// メモリ領域を浮動小数点数として読み書きできるようにするDataViewを作成
let view = new DataView(buffer);
// 浮動小数点数の数値をバッファにセット
view.setFloat64(0, number);
let result = '';
#!/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}' | \
console.log("[1]");
setTimeout(() => {
console.log("[7]");
});
Promise.resolve()
.then(() => {
console.log("[3]");
})